- Posts: 41
- Thank you received: 4
product variant showing different price
2 years 3 months ago #361876
by Genr8r
product variant showing different price was created by Genr8r
-- HikaShop version -- : 5.1.0
-- Joomla version -- : 3.10.12
-- PHP version -- : 7.4.33
-- Browser(s) name and version -- : Brave Version 1.67.123 Chromium: 126.0.6478.126 (Official Build) (arm64)
-- Error-message(debug-mod must be tuned on) -- : No error messages
Greetings,
Our client has a handful of products on their site that are showing dramatically lower prices for individual variants. There is no special pricing set for the variants and I don't see any coupons or discounts that would cause the issue.
I have left this product published but am hoping for a quick resolution so that I don't have to reimburse my client for the lost revenue if it sells at the wrong price.
Please advise.
-- Joomla version -- : 3.10.12
-- PHP version -- : 7.4.33
-- Browser(s) name and version -- : Brave Version 1.67.123 Chromium: 126.0.6478.126 (Official Build) (arm64)
-- Error-message(debug-mod must be tuned on) -- : No error messages
Greetings,
Our client has a handful of products on their site that are showing dramatically lower prices for individual variants. There is no special pricing set for the variants and I don't see any coupons or discounts that would cause the issue.
I have left this product published but am hoping for a quick resolution so that I don't have to reimburse my client for the lost revenue if it sells at the wrong price.
Please advise.
Please Log in or Create an account to join the conversation.
2 years 3 months ago #361877
by nicolas
Replied by nicolas on topic product variant showing different price
Hi,
I'm not able to access your link:
i.imgur.com/qp8TMS1.png
What I would recommend is to set the "access level" of this product to a special user group and provide us with a user account with access to that user group. That way, we could access the page of that product in order to check things out without your normal users seeing it.
Also, a backend access would be great in order to check the settings of the shop. Besides a discount, or the price of the variant itself, plugins could also change the price of a variant on the fly, like the "price calculations" plugin we have on our marketplace.
Also, since there is the problem for only a handful of products, how about making a copy of these products ? If it comes from a discount or something like this, the duplicated products might not be affected.
I'm not able to access your link:
i.imgur.com/qp8TMS1.png
What I would recommend is to set the "access level" of this product to a special user group and provide us with a user account with access to that user group. That way, we could access the page of that product in order to check things out without your normal users seeing it.
Also, a backend access would be great in order to check the settings of the shop. Besides a discount, or the price of the variant itself, plugins could also change the price of a variant on the fly, like the "price calculations" plugin we have on our marketplace.
Also, since there is the problem for only a handful of products, how about making a copy of these products ? If it comes from a discount or something like this, the duplicated products might not be affected.
Please Log in or Create an account to join the conversation.
2 years 3 months ago - 2 years 3 months ago #361898
by Genr8r
Replied by Genr8r on topic product variant showing different price
edit
Last edit: 2 years 3 months ago by Genr8r. Reason: sensitive info
Please Log in or Create an account to join the conversation.
2 years 3 months ago #361900
by Philip
Replied by Philip on topic product variant showing different price
Hello,
The price you obtain corresponds to the application of your discount "QuartzJuly2024", the simple fact of unpublishing this discount allows you to have prices consistent with the settings of your products.
Regards
The price you obtain corresponds to the application of your discount "QuartzJuly2024", the simple fact of unpublishing this discount allows you to have prices consistent with the settings of your products.
Regards
Please Log in or Create an account to join the conversation.
2 years 3 months ago #361940
by Genr8r
Replied by Genr8r on topic product variant showing different price
Why does the discount not apply correctly? It is 35.5% discount
When I look at size 5 I get the following prices - [strike]$47.73[/strike] $30.79 each
When I look at size 11 I get the following prices - [strike]$3.44[/strike] $2.22 each
The two variants are set up the same and have the same pricing, but the discount is applying dramatically differently for the two variants.
I would not mind but there are other products that have the same issue.
When I look at size 5 I get the following prices - [strike]$47.73[/strike] $30.79 each
When I look at size 11 I get the following prices - [strike]$3.44[/strike] $2.22 each
The two variants are set up the same and have the same pricing, but the discount is applying dramatically differently for the two variants.
I would not mind but there are other products that have the same issue.
Please Log in or Create an account to join the conversation.
2 years 3 months ago #361944
by nicolas
Replied by nicolas on topic product variant showing different price
Hi,
I'm not following you.
If I remove 35.5% of 47.73, I get 30.79:
i.imgur.com/WyRKa7I.png
If I remove 35.5% of 3.44, I get 2.22:
i.imgur.com/sIM4q8P.png
So mathematically speaking, the discount is added to both prices in the exact same way.
I think you must be talking about something else than the way the discount is applied to the price.
That 3.44 must come from somewhere. I wanted to look at the settings of your product and its variants, but I can't find the "blue / green created opal quartz ring" product. The frontend link you had provided for it before also doesn't work anymore. Did you delete it since talking about it ?
I'm not following you.
If I remove 35.5% of 47.73, I get 30.79:
i.imgur.com/WyRKa7I.png
If I remove 35.5% of 3.44, I get 2.22:
i.imgur.com/sIM4q8P.png
So mathematically speaking, the discount is added to both prices in the exact same way.
I think you must be talking about something else than the way the discount is applied to the price.
That 3.44 must come from somewhere. I wanted to look at the settings of your product and its variants, but I can't find the "blue / green created opal quartz ring" product. The frontend link you had provided for it before also doesn't work anymore. Did you delete it since talking about it ?
Please Log in or Create an account to join the conversation.
2 years 3 months ago #361954
by Genr8r
Replied by Genr8r on topic product variant showing different price
You are addressing exactly our concern. The discount is applying properly to size 5 but when we switch to size 11 it drops the retail price dramatically and then applies the discount.
I can't figure out why adding the discount changes the retail price down to 3.44.
The product is visible only to logged in super users. It is product code - m363rbl
I can't figure out why adding the discount changes the retail price down to 3.44.
The product is visible only to logged in super users. It is product code - m363rbl
Please Log in or Create an account to join the conversation.
2 years 3 months ago #361957
by nicolas
Replied by nicolas on topic product variant showing different price
Hi,
Thanks. It seems to be a problem with the discount being applied several times, once for each variant. It must be an issue with the variable reference being reused by PHP. It might be a problem specific to the version of PHP you have as I don't have the problem on my end. Could you provide a FTP access to the website via our contact form so that I can add debug into the code in order to dig deeper into the problem and apply a fix for it ?
www.hikashop.com/support/contact-us.html
Thanks. It seems to be a problem with the discount being applied several times, once for each variant. It must be an issue with the variable reference being reused by PHP. It might be a problem specific to the version of PHP you have as I don't have the problem on my end. Could you provide a FTP access to the website via our contact form so that I can add debug into the code in order to dig deeper into the problem and apply a fix for it ?
www.hikashop.com/support/contact-us.html
Please Log in or Create an account to join the conversation.
2 years 3 months ago #362065
by nicolas
Replied by nicolas on topic product variant showing different price
Hi,
Thank you for the access.
I found out that the issue was related to another change we made to be able to support discounts made directly on variants. For this, we have to add the discount on the price of the variant. However, at the point where this is done, the price of the variant is, in your case, a copy of the price from the main product. And that price from the main product already has the discount on the main product applied to it.
I've modified the code so that when the system tries to add a discount to a price, it first checks if the price doesn't already have a discount applied. If so, it skips the process.
I've tested the modification on your website and I can confirm it fixes the problem.
For anyone with the same issue, download again the install package of HikaShop on our website and install it on yours and it will add the patch.
Thank you for the access.
I found out that the issue was related to another change we made to be able to support discounts made directly on variants. For this, we have to add the discount on the price of the variant. However, at the point where this is done, the price of the variant is, in your case, a copy of the price from the main product. And that price from the main product already has the discount on the main product applied to it.
I've modified the code so that when the system tries to add a discount to a price, it first checks if the price doesn't already have a discount applied. If so, it skips the process.
I've tested the modification on your website and I can confirm it fixes the problem.
For anyone with the same issue, download again the install package of HikaShop on our website and install it on yours and it will add the patch.
Please Log in or Create an account to join the conversation.
Time to create page: 0.177 seconds