Home › Forums › WoodMart support forum › Role based pricing appears wrong in quickview
Role based pricing appears wrong in quickview
- This topic has 7 replies, 2 voices, and was last updated 1 year, 1 month ago by Artem Temos.
-
AuthorPosts
-
September 6, 2023 at 10:25 am #493595
design-3474ParticipantDear Support Team!
I’m using the WooCommerce Role Based Pricing by Meow Crew with the Woodmart theme and on the product quickview the prices is not correct (it shows the original price instead of the role based price). I contacted with the developer of the plugin and he wrote me this:
As far as we see it your theme function quickViewLoad sends an AJAX request to load quick-view content for a specific product. Most likely for that kind of functions they retrieve data directly from the database or use their own hooks that have the same or higher priority than ours to alter the prices….
We can only recommend you contact theme support to figure out if there is a way to retrieve prices for those elements the same way as they do for static pages, or maybe they can tell what hook priority to modify (if there’s one) to make it do not overwrite the cost set by role-based pricing.Could you please help in this?
Thanks in advance!September 6, 2023 at 2:37 pm #493722
Artem TemosKeymasterHello,
Yes, it is correct, our theme uses AJAX to load the information for the product. And it uses a core WooCommerce function to get this information called
wc_get_product
. This functionality can be viewed in the filewp-content/themes/woodmart/inc/integrations/woocommerce/modules/quick-view.php
https://gyazo.com/0122101676d5d95d729702d49c6694aeKind Regards
September 7, 2023 at 9:44 am #493936
design-3474ParticipantDear Support Team!
Thanks for your answer i contacted the plugin developer maybe can you help me where i can make those changes?
Thanks in advance!
September 7, 2023 at 10:02 am #493949
Artem TemosKeymasterHello,
WoodMart uses WooCommerce’s hook which contains their core price template tag function. It is absolutely the same as on the product page. Here is a screenshot https://gyazo.com/839e3546bceb20fb56ce3c239c4275ee
The problem is that they don’t hook their functions in WordPress AJAX requests. We suppose that it will not work with all quick-view plugins.Kind Regards
October 3, 2023 at 3:12 pm #501156
design-3474ParticipantDear Support Team!
I’ve another issue with the WooCommerce Role Based Pricing by Meow Crew, if i add a product to a page then the price is wrong on the cart (which slides from the right). After i refresh the page it shows the correct price if i click on the cart icon.
The plugin developer said that the theme uses some hook for the price and that’s why the plugin can’t show the correct price.
Could you help to solve this issue, or do you have some other plugin you could offer for role based pricing?
Thanks in advance!
October 3, 2023 at 3:22 pm #501159
Artem TemosKeymasterHello,
Could you please clarify how to reproduce this issue on your website now? We don’t see any problems now https://gyazo.com/7626367bfb8e53b8e5d8dc8523917966
Kind Regards
October 3, 2023 at 4:30 pm #501213
design-3474ParticipantHi,
Ohh, sorry please login with the credentials and try this item:
https://dev.firesec.hu/termek/fem-tuzallo-bilincs-m19-22-100db-doboz/Choose an option and then add it to cart.
The quickview doesn’t show the correct price also (it happens with all products 🙁 )
Thanks
October 3, 2023 at 5:08 pm #501234
Artem TemosKeymasterHello,
It is the same issue as we discussed before. This plugin doesn’t work in AJAX actions like adding a product to a cart and showing this content in quick view. It is not something that we could fix in our theme’s code. It has all the hooks so it is not a problem. The problem in the AJAX action. The plugin is not compatible with WordPress AJAX action as we can see so far.
Kind Regards
-
AuthorPosts
Tagged: quickview, role based price
- You must be logged in to create new topics. Login / Register