Knowledge Base

Save us time to focus on some great new features and try our self service knowledge base. Search for anything.

WooCommerce Product Accessories Filter & Hooks

Change product accessories Position


Let's say you want to show Optional and mandatory accessories before the related products and not at the bottom. Then you can use the following code inside your child theme functions.php: Mandatory accessories: remove_action(...

Change the Number of Accessory Columns


Lets say you want to show 5 accessories in one row. Then use this shortcode: function filter_woocommerce_upsell_display_args( $array ) { $array = 5; return $array; }; // add the filter add_filter(...

Stop adding Mandatory Accessories to Cart


How can I cancel auto add to cart of mandatory products so it only will also act like the optional products? you can add the following hook into your child theme functions.php remove_action( 'woocommerce_add_to_cart', array(...

Did not found what you was looking for?

Please submit a ticket with a detailed explanation about your problem.

Submit Ticket

We use cookies to give you the best online experience. By agreeing you accept the use of cookies in accordance with our cookie policy.

Privacy Settings saved!
Privacy Settings

When you visit any web site, it may store or retrieve information on your browser, mostly in the form of cookies. Control your personal Cookie Services here.

These cookies are necessary for the website to function and cannot be switched off in our systems.

In order to use this website we use the following technically required cookies
  • wordpress_test_cookie
  • wordpress_logged_in_
  • wordpress_sec

Decline all Services
Accept all Services