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. woocommerce_product_accessories_mandatory_display_args woocommerce_product_accessories_optional_display_args Then use this shortcode: function we_modify_optional_accessory_columns( $args ) { ...

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(...

Adjust WooCommerce Mandatory Accessory Quantity

Sometimes you need 2 or 3 times more mandatory accessories for a main product. For example your main product smartphone requires 2 chargers instead of just one. In this case you can use the following filter. Place that in your child theme...

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.

Close Popup
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.

Technical Cookies
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