-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Price on ProductPage event is zero for configurable products #69
Comments
@ericclaeren .... sorry about this... I will push a new update shortly |
@ericclaeren... please upgrade to the latest version |
Wow that was incredibly fast, thanks @srenon. I'm afraid there's still something not right. I'm was expecting a price with the same amount as shown on the configurable page. Except I'm getting the price excluding VAT. That's probably due to the getBaseAmount() change and not the real final price. Would you mind looking into that? Thanks |
Hi @srenon OpenGraph is not enabled. This issue is occuring in the datalayer push, not in the part you're showing in the screenshot. Although it uses the same code. https://github.com/magepal/magento2-google-tag-manager/blob/master/Block/Data/Product.php#L73 |
The initial commit already had logic for simple/configurable based on getFinalPrice() any idea what that was removed? And would reverting that commit won't fix this issue? |
@ericclaeren ... It was not working correct for discount/special price |
@ericclaeren .... is VAT 15%? |
Hi @srenon No it's 21% in The Netherlands (34.95/121 * 100). https://magento.stackexchange.com/a/235623 This post says there isn't one method to get the correct price and depends on the type of product. Think the last post may be correct, my guess is that you always want to match the price displayed on the page, from my understanding that is the final price, because of the applying of catalog rules and special prices. |
@srenon Are there any developments going concerning this issue? Maybe re-open this issue so other members may participate in providing a solution? |
I will figure out a fix for the by the end of the week |
Hi @srenon How are you? Is there any progress on this issue? |
@ericclaeren ... Could you let me know if this temporary workaround works?
Also, all the other European/vat sites that I have work on does not seem to have this issue |
@ericclaeren ... are you still having issues with the latest release? |
Hi @srenon Sorry I didn't respond earlier. I have checked the latest release 2.6.0 against the same configurable product and a simple product and now both seem broken or at least don't return the expected display price. I have updated all magepal packages, ran setup upgrade and clear all my caches. The code in 2.5.0 gives the expected result, isn't it possible to just revert to that or test against that code? |
If you take a look at https://github.com/magepal/magento2-google-tag-manager/blob/master/Helper/Data.php#L265 If the price is zero then it would use the old logic. So it should be identical to the previous code
|
Hi @srenon Yes, that's true, but if the price isn't zero, which is probably the case, the logic is incorrect.
|
Hi @srenon After some time away from this issue, ran into this again and decided to search for a possible solution. Could find any cases in which the PR didn't work, but you might have some? In case you do, please let me know. Cheers, Eric |
Magento version 2.3.5-p2 #:
Edition EE
Expected behavior:
The min price to be displayed for a configurable product.
Actual behavior:
Price is always displayed as 0.
Steps to reproduce:
What happened?
The change was introduced here:
2.4.0...2.5.1#diff-4431d83985d4d014ab1c33820ee280c9ebd92203b337426d3bedb772c2018831R104
It has changed from getFinalPrice() to getPrice() which broke this.
The text was updated successfully, but these errors were encountered: