# How to modify product attribute and send this product to a basket.

**URL:** https://forum.shopware.com/t/how-to-modify-product-attribute-and-send-this-product-to-a-basket/66713
**Category:** Plugins
**Created:** [4. Mai 2020 um 22:06 UTC](https://forum.shopware.com/t/how-to-modify-product-attribute-and-send-this-product-to-a-basket/66713 "2020-05-04T22:06:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Emios](https://avatars.discourse-cdn.com/v4/letter/e/aeb1de/32.png) [@Emios](https://forum.shopware.com/u/Emios)
#### Post date: [4. Mai 2020 um 22:06 UTC](https://forum.shopware.com/t/how-to-modify-product-attribute-and-send-this-product-to-a-basket/66713/1 "2020-05-04T22:06:02Z")

</div>

Hello.

I try to write own plugin that will be working as „calculator“. Customer went to [shop.com/myPlugin](http://shop.com/myPlugin) and then after calculation my JavaScript page generate&nbsp;ammount of euro’s qustomer must to pay. In my shop i have a product called „Custom product“ with price per piece = 1€.&nbsp;And when script calculate 12€, plugin should add 12 pieces of this product. For more i have 1 custom string input with comment for this product.

Now i would like to create button „Add to basket“ that will be add to basket this product with 12 quantity and i think that is simple to do by creating simple form with post (just like in product page) but how to submit also this string value with this posistion as attribute5?

I create Free text field in table Order positions (s\_order\_details\_attributes) and when i manualy change this value in DB i see that it posted to backend, but it is manualy :\<

&nbsp;I will be really happy for any advices how to attach this string with Add to basket action

Regards
