Skip to main content

Price per Unit display on Product Overview

5 years 4 months ago #334458 by BSchiedl
-- HikaShop version -- : 4.4.4
-- Joomla version -- : 3.9.28
-- PHP version -- : 7.3.25
-- Browser(s) name and version -- : Chrome

Hi,

is it possible to display the price per unit not only on the product details page but also on the product overview page?
I am from germany and we always have to give the base price when we sell drinks.

Sincerly,
Bernd

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

5 years 4 months ago - 5 years 4 months ago #334473 by Philip
Hello,

You have to edit in your Item Menu the "Which price" option, follow me step by step :
1. In Menus dropdown => Main Menu
2. Click to edit the required Item Menu
3. In Products options tab, and Product data display parts
4. Find the Which price option, to select Unite price only


Hope this will fit your needs.
Regards
Last edit: 5 years 4 months ago by Philip.

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

5 years 4 months ago #334491 by BSchiedl
Thank you for your help!
I tried all the different options, but nothing changes.
The price shows allways 49,00 Euro per piece.

On the poduct details page the shop shows: 49,00 Euro per piece - 70,00 € / l
1 Bottle is 0,7 Liters
I need both prices also on the Product List/Overview Page.

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

5 years 4 months ago #334494 by nicolas
Hi,

The display of the price per weight unit is only available on the product details page not on the listings.
Philipe thought you had configured several prices on your product, with a different minimum quantity in each price and you wanted to display the one for the unit price (when the quantity is 1) instead of the cheapest as it is set by default.
To do what you want, you'll have to edit the file product / listing_price.php via the menu Display>Views. There, you want to change the code:
Code:
if($this->params->get('show_price_weight')){ if(!empty($this->element->product_id) && isset($this->row->product_weight) && bccomp($this->row->product_weight, 0, 3)) {
to:
Code:
if(true){ if(isset($this->row->product_weight) && bccomp($this->row->product_weight, 0, 3)) {

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

5 years 4 months ago #334522 by BSchiedl
Works as expected!
Thank you very much.

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

Time to create page: 0.072 seconds
Powered by Kunena Forum