custom addon in WooCommerce product in cart and order programmatically

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

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

Leave a Reply

Your email address will not be published. Required fields are marked *