Okay
  Public Ticket #4487396
Why doesn’t the official example work?
Closed

Comments

  • eric started the conversation

    I would like to add some display columns (e.g. price) in the b2bking_bulkorder shortcode. According to the documentation’s example, it’s not possible to retrieve the price — it seems that b2bking_bulkorder_cream_custom_column is not actually a hook, or something similar.

    Also, is b2bking_variations_table an official shortcode? I couldn’t find any documentation about it. Similarly, under this shortcode, I also tried to add display columns such as price, but it doesn’t work either.

    Could you please help clarify? Thank you.

  •  2,510
    WebWizards replied

    Hi Eric,

    Glad to assist,

    Please see my answer here first as it covers some of what is discussed: https://webwizards.ticksy.com/ticket/4486086

     

    The code snippet mentioned in the above ticket should work for both the bulk order form and the variations table (should work the same way for shortcode vs. default tables). If that code snippet does not work for you, it may be a problem with how the snippet is added, or perhaps a cache problem. Please make sure to:

    • Clear all site caches
    • Add the code snippet in a way that runs everywhere, not just on frontend (it needs to run during ajax requests).

     

    [b2bking_variations_table] is an official shortcode as well - We would only recommend using this if you are creating a custom single product page template. Otherwise in most cases it is easiest to work with the default options.

     

    If you are not able to get custom columns to work, I'd be glad to take a look directly to see what the issue might be. We would need a backend login to the site or a staging clone site,

    Kind regards,

    Stefan