• Resolved alortiz3

    (@alortiz3)


    alortiz3

    Hello,

    I’m trying to add to cart a product that comes from an API list. So far I have found ways of creating custom add to cart buttons but nothing pointing me to how to add a product from my API list to the cart. Is this even possible?
    The API returns all the necessary information to create the order. However, there are no products in the inventory list.
    Any assistance or direction will be greatly appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @alortiz3,

    That’s an interesting setup. Do these products end up getting created as WooCommerce products or are they only available on the API? In order to add them to the WooCommerce cart, they will have to be products that exist inside of WooCommerce.

    If they don’t exist, they will need to be created prior to being added to the cart. Does that make sense?

    Thread Starter alortiz3

    (@alortiz3)

    alortiz3

    Yes, it is indeed an interesting setup. It opens up the power of Woo to a whole new level. This would be similar to using external products (as in Amazon) except that the products would not exist in the inventory.

    Thank you for the tip, I think that would be an easier way to process them.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add to Cart without Product’ is closed to new replies.