Add-to-cart by url – add product by SKU
-
Hi,
I’m currently working on a website for a client, and their product catalogue is supplied by a third party website, via an iframe. I’m well aware of the downsides of doing things this way, however with a constantly changing catalogue of over 22000 products, maintaining the catalogue themselves would be impossible as a small business.
It’s all working fine, having added the products to the WooCommerce database, however I’m at a loss as to how I can reference products via the add-to-cart url. Each of the products has a unique SKU, which is the database field I’d like to add to the cart with, however WooCommerce seems to be enforcing that I can only add products to the cart using the id, which the third party catalogue obviously can’t provide.
Is there a way around this?
Kind regards,
Aaron
- The topic ‘Add-to-cart by url – add product by SKU’ is closed to new replies.