[Skip to main content](#vessel-content)

#   Wrong price shown in product variation

##

- **[MGFM](/forum/user/34554-mgfm "View MGFM's Profile")**
- [![MGFM's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34554-mgfm "View MGFM's Profile") Topic Author
- [ Offline](/forum/user/34554-mgfm)

Less More

- Posts: 30
- Thank you received: 0
-
-

10 years 11 months ago [\#223662](#223662) by [MGFM](/forum/user/34554-mgfm "View MGFM's Profile")  *[Wrong price shown in product variation](/forum/26-product-category-display/881012-wrong-price-shown-in-product-variation#223662 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6.14 -- Browser(s) name and version -- : all browsers -- Error-message(debug-mod must be tuned on) -- : wrong price in product variation  We have 2 product variations here:   glamour.parfumerieworld.nl/nl/geuren/pro...e-eau-de-parfum.html  50 ml 35 ml  while the main product is showing correct price, the variant of 35 ml says 'Normal price: 96,--' , which is actulally the price of the 50 ml product. The sales price 'Our price 50,99'is ok.  What I am doing wrong?")* was created by *[MGFM](/forum/user/34554-mgfm "View MGFM's Profile")*

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.6.14
-- Browser(s) name and version -- : all browsers
-- Error-message(debug-mod must be tuned on) -- : wrong price in product variation

We have 2 product variations here:
[ glamour.parfumerieworld.nl/nl/geuren/pro...e-eau-de-parfum.html](http://glamour.parfumerieworld.nl/nl/geuren/product/117-guerlain-idylle-eau-de-parfum.html)

50 ml
35 ml

while the main product is showing correct price, the variant of 35 ml says 'Normal price: 96,--' , which is actulally the price of the 50 ml product. The sales price 'Our price 50,99'is ok.

What I am doing wrong?
[ ![front-end-wrong&#95;price.jpg](/forum/attachment/28371) ](/forum/attachment/28371 "...rong&#95;price.jpg")

[ ![main-product-price-ok.jpg](/forum/attachment/28372) ](/forum/attachment/28372 "...t-price-ok.jpg")

[ ![variants-price-ok.jpg](/forum/attachment/28373) ](/forum/attachment/28373 "...s-price-ok.jpg")

- [ ![front-end-wrong&#95;price.jpg](/forum/attachment/28371) ](/forum/attachment/28371 "...rong&#95;price.jpg") [ ](/forum/attachment/28371?download=1 "...rong&#95;price.jpg")
- [ ![main-product-price-ok.jpg](/forum/attachment/28372) ](/forum/attachment/28372 "...t-price-ok.jpg") [ ](/forum/attachment/28372?download=1 "...t-price-ok.jpg")
- [ ![variants-price-ok.jpg](/forum/attachment/28373) ](/forum/attachment/28373 "...s-price-ok.jpg") [ ](/forum/attachment/28373?download=1 "...s-price-ok.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODEwMTItd3JvbmctcHJpY2Utc2hvd24taW4tcHJvZHVjdC12YXJpYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

10 years 11 months ago [\#223714](#223714) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Wrong price shown in product variation](/forum/26-product-category-display/881012-wrong-price-shown-in-product-variation#223714 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6.14 -- Browser(s) name and version -- : all browsers -- Error-message(debug-mod must be tuned on) -- : wrong price in product variation  We have 2 product variations here:   glamour.parfumerieworld.nl/nl/geuren/pro...e-eau-de-parfum.html  50 ml 35 ml  while the main product is showing correct price, the variant of 35 ml says 'Normal price: 96,--' , which is actulally the price of the 50 ml product. The sales price 'Our price 50,99'is ok.  What I am doing wrong?")*

Hi,

I'm not sure I understand the issue. But if I got it right, the issue is that the retail price doesn't change when you change the selected characteristic value. Is that right ?
In that case, make sure that you set your retail price in each variant and that you don't set it in the main product.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODEwMTItd3JvbmctcHJpY2Utc2hvd24taW4tcHJvZHVjdC12YXJpYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[MGFM](/forum/user/34554-mgfm "View MGFM's Profile")**
- [![MGFM's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34554-mgfm "View MGFM's Profile") Topic Author
- [ Offline](/forum/user/34554-mgfm)

Less More

- Posts: 30
- Thank you received: 0
-
-

10 years 11 months ago [\#223882](#223882) by [MGFM](/forum/user/34554-mgfm "View MGFM's Profile")  Replied by *[MGFM](/forum/user/34554-mgfm "View MGFM's Profile")* on topic *[Wrong price shown in product variation](/forum/26-product-category-display/881012-wrong-price-shown-in-product-variation#223882 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6.14 -- Browser(s) name and version -- : all browsers -- Error-message(debug-mod must be tuned on) -- : wrong price in product variation  We have 2 product variations here:   glamour.parfumerieworld.nl/nl/geuren/pro...e-eau-de-parfum.html  50 ml 35 ml  while the main product is showing correct price, the variant of 35 ml says 'Normal price: 96,--' , which is actulally the price of the 50 ml product. The sales price 'Our price 50,99'is ok.  What I am doing wrong?")*

First tip helps, as whenI take out the retail price from main product it shows the right price : Thank you;-)
But if I want to add the 'normal' price to a variation, it only gives me the opportunity to fill in a percentage?
Is there not an option to show the normal retail price, as percentages differ depending on size.

- [ ![shows&#95;only&#95;percentage.jpg](/forum/attachment/28418) ](/forum/attachment/28418 "...percentage.jpg") [ ](/forum/attachment/28418?download=1 "...percentage.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODEwMTItd3JvbmctcHJpY2Utc2hvd24taW4tcHJvZHVjdC12YXJpYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

10 years 11 months ago [\#223913](#223913) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Wrong price shown in product variation](/forum/26-product-category-display/881012-wrong-price-shown-in-product-variation#223913 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6.14 -- Browser(s) name and version -- : all browsers -- Error-message(debug-mod must be tuned on) -- : wrong price in product variation  We have 2 product variations here:   glamour.parfumerieworld.nl/nl/geuren/pro...e-eau-de-parfum.html  50 ml 35 ml  while the main product is showing correct price, the variant of 35 ml says 'Normal price: 96,--' , which is actulally the price of the 50 ml product. The sales price 'Our price 50,99'is ok.  What I am doing wrong?")*

Hi,

Ah, I see that there is no retail price for variants.
Change the code: Code:

if(@$this-&gt;product-&gt;product_type != 'variant') { $curr = ''; $mainCurr = $this-&gt;currencyClass-&gt;getCurrencies($this-&gt;main_currency_id, $curr);

to: Code:

if(true) { $curr = ''; $mainCurr = $this-&gt;currencyClass-&gt;getCurrencies($this-&gt;main_currency_id, $curr);

in the file "form" of the view "product" for your backend template via the menu Display&gt;Views and that should allow you to set the retail price for each variant.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODEwMTItd3JvbmctcHJpY2Utc2hvd24taW4tcHJvZHVjdC12YXJpYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[MGFM](/forum/user/34554-mgfm "View MGFM's Profile")**
- [![MGFM's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34554-mgfm "View MGFM's Profile") Topic Author
- [ Offline](/forum/user/34554-mgfm)

Less More

- Posts: 30
- Thank you received: 0
-
-

10 years 11 months ago [\#223991](#223991) by [MGFM](/forum/user/34554-mgfm "View MGFM's Profile")  Replied by *[MGFM](/forum/user/34554-mgfm "View MGFM's Profile")* on topic *[Wrong price shown in product variation](/forum/26-product-category-display/881012-wrong-price-shown-in-product-variation#223991 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6.14 -- Browser(s) name and version -- : all browsers -- Error-message(debug-mod must be tuned on) -- : wrong price in product variation  We have 2 product variations here:   glamour.parfumerieworld.nl/nl/geuren/pro...e-eau-de-parfum.html  50 ml 35 ml  while the main product is showing correct price, the variant of 35 ml says 'Normal price: 96,--' , which is actulally the price of the 50 ml product. The sales price 'Our price 50,99'is ok.  What I am doing wrong?")*

Problem is, I can't find this line
if(@$this-&gt;product-&gt;product_type != 'variant') {
within backend template isis, view product, form.php ?
see attachment

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODEwMTItd3JvbmctcHJpY2Utc2hvd24taW4tcHJvZHVjdC12YXJpYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

10 years 11 months ago [\#224019](#224019) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Wrong price shown in product variation](/forum/26-product-category-display/881012-wrong-price-shown-in-product-variation#224019 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6.14 -- Browser(s) name and version -- : all browsers -- Error-message(debug-mod must be tuned on) -- : wrong price in product variation  We have 2 product variations here:   glamour.parfumerieworld.nl/nl/geuren/pro...e-eau-de-parfum.html  50 ml 35 ml  while the main product is showing correct price, the variant of 35 ml says 'Normal price: 96,--' , which is actulally the price of the 50 ml product. The sales price 'Our price 50,99'is ok.  What I am doing wrong?")*

Well, I do see it in the file you gave...
[ take.ms/dJwt7](http://take.ms/dJwt7)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODEwMTItd3JvbmctcHJpY2Utc2hvd24taW4tcHJvZHVjdC12YXJpYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[MGFM](/forum/user/34554-mgfm "View MGFM's Profile")**
- [![MGFM's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34554-mgfm "View MGFM's Profile") Topic Author
- [ Offline](/forum/user/34554-mgfm)

Less More

- Posts: 30
- Thank you received: 0
-
-

10 years 11 months ago [\#224072](#224072) by [MGFM](/forum/user/34554-mgfm "View MGFM's Profile")  Replied by *[MGFM](/forum/user/34554-mgfm "View MGFM's Profile")* on topic *[Wrong price shown in product variation](/forum/26-product-category-display/881012-wrong-price-shown-in-product-variation#224072 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6.14 -- Browser(s) name and version -- : all browsers -- Error-message(debug-mod must be tuned on) -- : wrong price in product variation  We have 2 product variations here:   glamour.parfumerieworld.nl/nl/geuren/pro...e-eau-de-parfum.html  50 ml 35 ml  while the main product is showing correct price, the variant of 35 ml says 'Normal price: 96,--' , which is actulally the price of the 50 ml product. The sales price 'Our price 50,99'is ok.  What I am doing wrong?")*

sorry, it seems Iwas blind :blush:

However I change the line as you can see from screenshot 1, but nothing changes: main product is still only in percentage?

where I am still wrong?;-(

- [ ![changed-line-currency.jpg](/forum/attachment/28455) ](/forum/attachment/28455 "...e-currency.jpg") [ ](/forum/attachment/28455?download=1 "...e-currency.jpg")
- [ ![main-product-still-percentage.jpg](/forum/attachment/28456) ](/forum/attachment/28456 "...percentage.jpg") [ ](/forum/attachment/28456?download=1 "...percentage.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODEwMTItd3JvbmctcHJpY2Utc2hvd24taW4tcHJvZHVjdC12YXJpYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

10 years 11 months ago [\#224075](#224075) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Wrong price shown in product variation](/forum/26-product-category-display/881012-wrong-price-shown-in-product-variation#224075 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6.14 -- Browser(s) name and version -- : all browsers -- Error-message(debug-mod must be tuned on) -- : wrong price in product variation  We have 2 product variations here:   glamour.parfumerieworld.nl/nl/geuren/pro...e-eau-de-parfum.html  50 ml 35 ml  while the main product is showing correct price, the variant of 35 ml says 'Normal price: 96,--' , which is actulally the price of the 50 ml product. The sales price 'Our price 50,99'is ok.  What I am doing wrong?")*

Hi,

You're correct. It seems that this modification is not enough.
Add the code: Code:

&lt;?php $curr = ''; $mainCurr = $this-&gt;currencyClass-&gt;getCurrencies($this-&gt;main_currency_id, $curr); ?&gt; &lt;dt class="hikashop_product_msrp"&gt;&lt;label for="data_variant__product_msrp"&gt;&lt;?php echo JText::_('PRODUCT_MSRP'); ?&gt;&lt;/label&gt;&lt;/dt&gt; &lt;dd class="hikashop_product_msrp"&gt; &lt;input type="text" id="data_variant__product_msrp" name="data[variant][product_msrp]" value="&lt;?php echo $this-&gt;escape(@$this-&gt;product-&gt;product_msrp); ?&gt;"/&gt; &lt;?php echo $mainCurr[$this-&gt;main_currency_id]-&gt;currency_symbol.' '.$mainCurr[$this-&gt;main_currency_id]-&gt;currency_code;?&gt; &lt;/dd&gt;

before the code: Code:

&lt;?php if(hikashop_acl('product/variant/price')) { ?&gt;

in the file "variant" of the view "product", and change the line: Code:

'manufacturer_id', 'page_title', 'url', 'meta_description', 'keywords', 'alias', 'msrp', 'canonical',

to: Code:

'manufacturer_id', 'page_title', 'url', 'meta_description', 'keywords', 'alias', 'canonical',

in the file administrator/components/com_hikashop/classes/product.php and that should do it.

The following user(s) said Thank You: [MGFM](/forum/user/34554-mgfm "View MGFM's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODEwMTItd3JvbmctcHJpY2Utc2hvd24taW4tcHJvZHVjdC12YXJpYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[MGFM](/forum/user/34554-mgfm "View MGFM's Profile")**
- [![MGFM's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34554-mgfm "View MGFM's Profile") Topic Author
- [ Offline](/forum/user/34554-mgfm)

Less More

- Posts: 30
- Thank you received: 0
-
-

10 years 11 months ago [\#224351](#224351) by [MGFM](/forum/user/34554-mgfm "View MGFM's Profile")  Replied by *[MGFM](/forum/user/34554-mgfm "View MGFM's Profile")* on topic *[Wrong price shown in product variation](/forum/26-product-category-display/881012-wrong-price-shown-in-product-variation#224351 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.6.14 -- Browser(s) name and version -- : all browsers -- Error-message(debug-mod must be tuned on) -- : wrong price in product variation  We have 2 product variations here:   glamour.parfumerieworld.nl/nl/geuren/pro...e-eau-de-parfum.html  50 ml 35 ml  while the main product is showing correct price, the variant of 35 ml says 'Normal price: 96,--' , which is actulally the price of the 50 ml product. The sales price 'Our price 50,99'is ok.  What I am doing wrong?")*

First it seemed to help partly, as now there is a field for retailprice indeed in both variants
but it did not save the price when filled in and as a consquence it does not show the retail price.
Every time I reopend the product variants, the field of Retail price showed me 0.000000 :evil:
Finally I changed the rights of the file classes/product.php to 777 and it worked fine ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODEwMTItd3JvbmctcHJpY2Utc2hvd24taW4tcHJvZHVjdC12YXJpYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.088 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
