By Default Magento create new row in Database in table sales_flat_quote_item_option once we click on ADD TO CART
We are giving an option of uploading custom image on Product image with help of custom module.
When we upload custom image on Product image [ link ] & click on Add to cart, we are saving custom image in Database in table sales_flat_quote_item_option
& in column : value
.
As like Add to cart
button, we want same feature for one more custom button Save Design
.
Save design button
<button id="submit-editorApply-{{rand}}" >Save Design</button>
i want to know which code is responsible for creating new row in Database after clicking Add to cart button.
Where i need to look in Module's Block or Controllers or Data or Helper or Model ?
I can just copy Add to cart code and just rename to "Save design", but once we click on "Save design", i don't want to add Product to cart , I just want to create new row in Database.
Add to cart
&save design
button, right now if we just uploadimage
and click onadd to cart
button, new row will create in DB & image will save in Server. i want same feature forsave design
button also.save image in server
andcreate new column
in Database.....