I have ‘addon’ post_type and and its price are stored in meta data i.e. I can get price of addon by get_post_meta($addon_id,’add_on_price’,true).

Now when a product (WooCommerce) is added to a cart, user may select multiple addon and these addon will be added to cart along with product.

how would I add these addon to the cartand order.

Any suggestion will help me.

Read more here: custom addon in WooCommerce product in cart and order programmatically


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: