WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Adding products programatically - adding attribute to basket (1 post)

  1. JimDestruct
    Member
    Posted 1 year ago #

    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?

    http://wordpress.org/extend/plugins/woocommerce/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic