title: How to add product to cart with product attributes and quantity?
body: <p>I tried to search some articles on the google but they mentioned to variation products and I don't know what they are. I'm only want to add product to cart with product attribute (or multi attribute) and quantity. I tried this url <code>&lt;?php echo home_url('/cart/?add-to-cart='.$product-&gt;id.'&amp;attribute_mau-sac=#425f70'); ?&gt;</code> for "a" element but attribute_mau-sac doesn't add to cart width product. My products are simple products. Please help me!</p>
  
  <p><img src="https://i.stack.imgur.com/ERuzK.png" alt="Sample product"></p>