Okay
  Public Ticket #3577832
Tier price dynamic display
Closed

Comments

  •  1
    Emilis started the conversation

    I am using Divi and custom single product page created with Theme builder. 

    #1 active price doesn't work if "Show Tiered Price Range" is not ticked. 

    #2 dynamic color price range doesn't work on Divi's created page through Theme builder. It changes color on a press, but not regarding the quantity chosen. When the template is disabled, it works.  


    What I would like to achieve is: On top there is a Regular price crossed out and then a B2B price is shown besides. This doesn't change, keeps the same. 
    On the bottom there is an active price which changes regarding the quantity. 

    I don't like the "Show tiered price range" solution, because it does not show regular price. Also the price range is not needed, but I think it's easily achievable to hide it with a help of css.  

     Solution to #1 Maybe there is a shortcode for dynamic active price? Then it should solve most of the problems.  

     Regarding the #2 - no clue. I won't use standard single product page. Maybe there is a shortcode for the tier table as well? But the question is how to hide the original one and how would it work with variable products?

  •  2,217
    WebWizards replied

    Hi there,

    Thank you for your patience on this,


    I understand that you are using the B2BKing Pro plugin? For support, kindly please provide us with your license key for the plugin, as we need an active license for support purposes. To get your key:

    - If you purchased on KingsPlugins.com - Where is my KingsPlugins license key?

    - If you purchased on CodeCanyon (Envato/ThemeForest): Where is my Envato purchase code?


    Regarding your questions:

    #1 active price doesn't work if "Show Tiered Price Range" is not ticked. 

    This is the normal behaviour for the pluginOne of the reasons is that the active price needs the range in order to be able to go to the default / min / max values. 

    For example when the qty is set to 1, the active price goes to the lowest range qty. That is why this feature doesn't work without the range, and it cannot work only through a shortcode.

    A solution may be: Enable the range in settings, and add this code snippet to your site:

    add_filter('b2bking_tiered_hide_range','__return_true');
    

    It will show the normal price + a hidden range.

    #2 dynamic color price range doesn't work on Divi's created page through Theme builder. It changes color on a press, but not regarding the quantity chosen. When the template is disabled, it works.  

    Perhaps the issue has to do with the classes of the quantity input field - it may not have a class that our plugin can detect.

    It would help if you can share a link to a page where we can see the issue, so I can check.





  •   Emilis replied privately
  •   WebWizards replied privately
  •   Emilis replied privately
  •  2,217
    WebWizards replied

    Glad to hear that solved it,


    To make the tiered table discount column use the regular price, please add the following PHP code snippet to your site:

    add_filter('b2bking_tiered_table_discount_uses_sale_price', '__return_false');
    

    A PHP snippet can be added to functions.php, or by following our guide here: https://woocommerce-b2b-plugin.com/docs/how-to-add-a-snippet-php-or-js/

  •  1
    Emilis replied

    That's fabulous. Topic could be marked as solved. 
    Thank you so so much!

  •  2,217
    WebWizards replied

    Glad to hear that : ) If there's anything else I can help with, please let me know.

    Also, if you have a minute, I would really appreciate it if you considered leaving a quick rating for the plugin - it's a big help to us.