PER_UNIT display

  • Posts: 47
  • Thank you received: 0
11 years 4 months ago #151091

Hello,

1. Is it possible to have more than one PER_UNIT value ?

---> For example I would like to display "kg" for product A and "à la pièce" for product B.

2. If PER_UNIT for product B is displayed is it possible to hide de price ?

Thanks !

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

  • Posts: 84290
  • Thank you received: 13691
  • MODERATOR
11 years 4 months ago #151127

Hi,

1. Yes, it's possible. You need to follow the instructions of the section "I sell packed products, how can I change "each" text in the product page ?" of our FAQ:
www.hikashop.com/support/support/documen...on/106-faq.html#tran

2. That would require to customize the view file "listing_price" of the view "product" via the menu Display>Views.

The following user(s) said Thank You: nijan

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

  • Posts: 47
  • Thank you received: 0
11 years 4 months ago #151265

Hi,

I created a custom field (see Issue_HikaShop_09).
In my product I select for example "Méthode de vente - le kilo" (see Issue_HikaShop_08).

In the frontend, I have 2 problems : I would like to replace "l'unité" by "le kilo" (see Issue_HikaShop_07 & 10).

And for information I didn't changed the listing_price.
I only find the following line :
echo '<span class="hikashop_product_price_per_unit">'.JText::_('PER_UNIT').'</span>';

Greetings !







Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
11 years 4 months ago #151318

Hi,
The solution will probably be to replace that line :

echo '<span class="hikashop_product_price_per_unit">'.JText::_('PER_UNIT').'</span>';
By something like :
echo '<span class="hikashop_product_price_per_unit">'.$this->row->mthodedevente.'</span>';

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

Time to create page: 0.088 seconds
Powered by Kunena Forum