0
votes

I have "Size" as a custom attribute for products. The question is, how can I add the size data while adding a product to the cart and checkout, so when the admin sees the order, he becomes aware of this information?

Thanks!

1
How are you adding your product into the cart?user487772
With a form and a button: <button type="button" class="btn-add-cart button" title="" onclick="<?php echo 'productListForm'.$_product->getId().'.submit()'; ?>"></button>Felipe Peña
Is you size attribute configured as required?user487772
Then it is something wrong with your installation because normally Magento will not allow to add a product into cart w/o choosing required attribute.user487772
I only want to add the size data when adding a product to the cart. Should I add a select field? Should I name it size?Felipe Peña

1 Answers

0
votes

There are two possible ways.

  1. Use custom options. For size this will not apply correctly (I'll explain why below), but for some kind of data it could be particularly useful (e.g. save logo placement or other attribute which can not be represented by a physical item). For custom option tutorial you can use this link.

  2. Use Configurable product. For attributes like size or colour it's the best option. It has few benefits compared to custom options - automatic stock management for your options, ability to assign different pictures, and you don't need to recreate the whole set of options for different products. Here's the official tutorial -> tutorial.