Pricing in products

  • Posts: 6
  • Thank you received: 0
13 years 3 weeks ago #29205

Hi I am new to hikashop and do like it however I am trying to change the products page to show price from £x.xx and not what it is showing at the moment £x.xx per unit for buying at least xxx.

Please treat me like a dummy as I have very little php knowledge.

Any help would be most welcome.
Thank you

Please Log in or Create an account to join the conversation.

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 3 weeks ago #29206

Hi,

You need to override the translation key PER_UNIT_AT_LEAST_X_BOUGHT and PRICE_BEGINNING at the beginning of your translation file, as explained there : www.hikashop.com/en/download/languages.html#modify

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
13 years 3 weeks ago #29208

ok got that bit but need to place the word "From" infront of the price when I ammend the file stated it shows the price the the word from

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
13 years 3 weeks ago #29214

Hi maybe not making myself clear just found problem

what i need to do is when you select a category it shows the product listing, on this page i need it to show the products then "from £xx.xx" but need it to show the breakdown prices when you select that product. So when you select the product it shows £xx.xx if buying a minimum of 10 etc. etc.

If I ammend the file you showed me it ammends both the product listing prices and the product prices.

Please help

Thak you

Please Log in or Create an account to join the conversation.

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
13 years 3 weeks ago #29224

Oh; Then in that case you don't need to change much the translations. You should go in the hikashop options of your menu/module and change the "Price display method" to "cheapest" so that it only displays the cheapest price on the listing and not all of them.

Then, you will have to edit the file "listing_price" of the view "product" via the menu Display->Views to remove the PER_UNIT_AT_LEAST_X_BOUGHT display on the listing and add a from before the price.
So replace the line:
echo JText::sprintf('PER_UNIT_AT_LEAST_X_BOUGHT',$price->price_min_quantity);
by:
if(@$_GET=='product'&&@$_GET=='show') echo JText::sprintf('PER_UNIT_AT_LEAST_X_BOUGHT',$price->price_min_quantity);

and:
echo JText::_('PRICE_BEGINNING');
by:
if(@$_GET=='product'&&@$_GET=='show'){ echo JText::_('PRICE_BEGINNING'); }else{ echo 'From ';}

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
13 years 3 weeks ago #29229

Thats perfect thank you so much for your help.

Please Log in or Create an account to join the conversation.

Time to create page: 0.066 seconds
Powered by Kunena Forum