Adding products programatically – adding attribute to basket
-
Hi, I have a script that adds a product using wp_insert_post()
It’s all fine and the product is added but i’m not sure how to add an attribute then pass the attribute through to the basket using $woocommerce->cart->add_to_cart
Can somebody give me any advice?
The topic ‘Adding products programatically – adding attribute to basket’ is closed to new replies.