Okay
  Public Ticket #3735954
Display a text notification
Closed

Comments

  • Fuchs started the conversation

    Hi,

    I would like to know how to display a text to notify on the product page ([b2bking_content show_to=b2c]' . $content . '[/b2bking_content])

     that a discount is offered to the registered B2B member when a dynamic rule is applied.

  •  2,218
    WebWizards replied

    Hi there,

    Thank you for getting in touch with us,

     

    Is the goal to display the discount on the product page? If so, I just want to mention that it is possible to apply the discount as a sale price, by enabling this switch here:

    9255502399.png

    With this enabled, the rule will directly change the price of the product, instead of adding the discount to the cart page.

     

    If you cannot use this here, or just generally want to add a text to the product page:

    You can certainly use the content shortcode, to apply a text only for a specific group. Examples:

    [b2bking_content show_to=b2b]B2B Content here[/b2bking_content]

    [b2bking_content show_to=1234]Content for B2B group 1234 here[/b2bking_content]

    These shortcodes can be added directly to the product description or short description (when you edit the product in the backend).

     

    Kind regards,

    Stefan

  • Fuchs replied

    Hi,

    We misunderstood each other, the configurations you are talking about are already in place.

    My goal is to be able to indicate on the product page for people who are not connected or in B2C that a dynamic discount (dedicated to B2B) is applied to the product in question. (and if we can select the dynamic rules to take into account, that would be even better)

    This allows us to highlight the products where price rules are applied in order to highlight the registration in a B2B account.

    We would like to set this up because we have noticed that many professionals buy products dedicated to professionals from us without creating a professional account and not having the discount that could be applied to them.

  •  2,218
    WebWizards replied

    Thank you for clarifying, I see what you mean.

    I think there are 2 main options:

     

    1.You could add a content shortcode to each product page, similar to what you described, e.g.:

    [b2bking_content show_to=b2c,loggedout]There is a discount for B2B users.....details...etc[/b2bking_content]

     

    2. In the latest plugin version, we have added a "add to information table" rule. You could use this to display a text on each product page, in the plugin's info table. The main advantage of this is that you could select and add this info to many different products, using a single rule.

    For example:

    5418085843.png

    This will display an info table, as shown here: https://woocommerce-b2b-plugin.com/docs/custom-information-table-in-product-page

     

    Kind regards,

    Stefan