Home Forums WoodMart support forum Role based pricing appears wrong in quickview

Role based pricing appears wrong in quickview

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #493595

    design-3474
    Participant

    Dear 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!

    #493722

    Artem Temos
    Keymaster

    Hello,

    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 file wp-content/themes/woodmart/inc/integrations/woocommerce/modules/quick-view.php
    https://gyazo.com/0122101676d5d95d729702d49c6694ae

    Kind Regards

    #493936

    design-3474
    Participant

    Dear 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!

    #493949

    Artem Temos
    Keymaster

    Hello,

    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

    #501156

    design-3474
    Participant

    Dear 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!

    #501159

    Artem Temos
    Keymaster

    Hello,

    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

    #501213

    design-3474
    Participant

    Hi,

    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

    #501234

    Artem Temos
    Keymaster

    Hello,

    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

Viewing 8 posts - 1 through 8 (of 8 total)