• Resolved alexsina

    (@alexsina)


    Hello,

    I am using a plugin of woo-total-sales:
    https://www.ads-software.com/plugins/woo-total-sales/

    It is used to show total sold out number, once Dynamic Pricing With Discount Rules for WooCommerce is activated, the sold out number will not show up.

    It seems there is conflict with woo-total-sales, any suggestions please?

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support ijas

    (@ijasacodez)

    Hi,

    We have checked the compatibility with ‘Woo Total Sales’ plugin yet. Can you tell us does this plugin show the total sold out number in the frontend / backend, if possible can you please share a screenshot (with and without sold number)

    Thread Starter alexsina

    (@alexsina)

    Hello,

    When Acowebs Woocommerce Dynamic Pricing is deactivate:

    https://prntscr.com/rjgi66

    once it is actiated:

    That number of sold out will disppear:

    https://prntscr.com/rjgizd

    It would be appreciated if you could help.

    Thanks

    Plugin Support ijas

    (@ijasacodez)

    Thanks for sharing the details, we are looking into the issue, will get back to you with the updates very soon.

    Plugin Support ijas

    (@ijasacodez)

    We have checked the same and could see that both plugins use ‘woocommerce_get_price_html’ filter for updating the price view, the priority is actually causing the issue. As a temporary fix please change the priority of any one of the plugin (note priority of woo-total-sales should be higher)

    Eg: On our plugin, please do the following changes on ‘class-awdp-front-end.php.php’ (includes folder)

    Line 81:
    add_filter('woocommerce_get_price_html', array($this, 'get_product_price_html'), 1000, 2 );

    to

    add_filter('woocommerce_get_price_html', array($this, 'get_product_price_html'), 100, 2 );

    Or on Woo Total Sales plugin, ‘awts-frontend.php’ (includes folder)

    Line 31:
    add_filter( 'woocommerce_get_price_html', array( $this, 'awts_display_total_sales') , 101, 2 );

    to

    add_filter( 'woocommerce_get_price_html', array( $this, 'awts_display_total_sales') , 1001, 2 );

    Thread Starter alexsina

    (@alexsina)

    Thanks for code lines. I prefer to change the code of woo-total-sales since it was not updated for long time.

    Just make sure:

    ‘awts-frontend.php’ Line 31?

    But I found it is line 37, please check screenshot:

    https://prntscr.com/rkyz0m

    Thanks

    Plugin Support ijas

    (@ijasacodez)

    Yes, its 37

    Thread Starter alexsina

    (@alexsina)

    Thanks, it works.

    So, Placement priority option should be a way to avoid conflict please?

    please check the screenshot to understand what I mean:

    https://prntscr.com/rl0kq4

    Thanks again.

    Plugin Support ijas

    (@ijasacodez)

    I’m marking this as resolved. Please feel free to open a new thread if you have any further questions. Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Conflict with woo-total-sales’ is closed to new replies.