(Issue) Broken or Incorrect Display of "Tiered Price" or "Custom Information" Tables

You may encounter issues with how the "tiered price table" or the "custom information table" is displayed. They may appear too close to the "Add to Cart" button or otherwise look broken.

Example:

Broken tiered price table display

This can happen because each theme is slightly different, and the hook (i.e., the insertion point of the table) may not work well with a particular theme.

Here's how to fix it:

add_action('plugins_loaded', function(){
	global $b2bking_public;
	remove_action('woocommerce_after_add_to_cart_button', array($b2bking_public,'b2bking_show_tiered_pricing_table'));
	remove_action('woocommerce_after_add_to_cart_button', array($b2bking_public,'b2bking_show_custom_information_table'));
	add_action('woocommerce_after_add_to_cart_form', array($b2bking_public,'b2bking_show_tiered_pricing_table'));
	add_action('woocommerce_after_add_to_cart_form', array($b2bking_public,'b2bking_show_custom_information_table'));
});

If this works, the table will be placed after the "Add to Cart" button and should display correctly:

If that didn't work, you may need to use a different hook. You can find a list of available hooks here: https://www.businessbloomer.com/woocommerce-visual-hook-guide-single-product-page/

You can replace 'woocommerce_after_add_to_cart_form' with any hook from the above article until you find a placement that works.

If you're unable to resolve the issue, our support team will be happy to assist — simply open a ticket with us at https://webwizards.ticksy.com.

Add to Cart Button Does Not Exist #

If your product page does not have an "Add to Cart" button, the tables may not appear at all, as they are normally set to display after that button.

To resolve this, add the code snippet above to your site and replace 'woocommerce_after_add_to_cart_form' with "woocommerce_product_meta_start" or another hook from the Business Bloomer article linked above.

Powered by BetterDocs