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

  1. JimDestruct
    Posted 2 years 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?


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic