# Adding products to Wix store database using code

**URL:** <https://forum.wixstudio.com/t/adding-products-to-wix-store-database-using-code/39320>\
**Category:** Ask the community\
**Tags:** wix-stores, code, question\
**Created:** [October 29, 2019, 2:40pm UTC](https://forum.wixstudio.com/t/adding-products-to-wix-store-database-using-code/39320 "2019-10-29T14:40:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bardhyls](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/bardhyls/32/15375_2.png) [@bardhyls](https://forum.wixstudio.com/u/bardhyls)\
**Post date:** [October 29, 2019, 2:40pm UTC](https://forum.wixstudio.com/t/adding-products-to-wix-store-database-using-code/39320/1 "2019-10-29T14:40:02Z")

</div>

Dear all,

I am trying to add new products to the Wix store database using code but I am unable to. Does the store have restricted permissions? If so, can I change them to enable me to add new products?

P.S. An alternative that also works for me is if I can add products to the store cart from a different database which allows me to add products. However, when I use the .addToCart function it only adds products from the Products database.

Regards,  
Bardhyl

---

<div class="post-metadata">

**Author:** ![givemeawhisky](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/givemeawhisky/32/5383_2.png) [@givemeawhisky](https://forum.wixstudio.com/u/givemeawhisky)\
**Post date:** [October 29, 2019, 5:53pm UTC](https://forum.wixstudio.com/t/adding-products-to-wix-store-database-using-code/39320/2 "2019-10-29T17:53:35Z")

</div>

[https://support.wix.com/en/corvid-by-wix/wix-stores-with-corvid](https://support.wix.com/en/corvid-by-wix/wix-stores-with-corvid)  
[https://support.wix.com/en/article/importing-products-to-wix-stores](https://support.wix.com/en/article/importing-products-to-wix-stores)  
[https://support.wix.com/en/article/request-automatic-tool-to-import-products-from-other-ecommerce-platforms-to-wix-stores](https://support.wix.com/en/article/request-automatic-tool-to-import-products-from-other-ecommerce-platforms-to-wix-stores)

Wix CartIcon - addToCart will only add items to the cart which are in the Wix Stores Product Collection.  
[https://www.wix.com/corvid/reference/$w.CartIcon.html#addToCart](https://www.wix.com/corvid/reference/$w.CartIcon.html#addToCart)

[https://www.wix.com/corvid/reference/wix-stores.html](https://www.wix.com/corvid/reference/wix-stores.html)  
[https://www.wix.com/corvid/reference/wix-stores-backend.html](https://www.wix.com/corvid/reference/wix-stores-backend.html)
