Hello there, need some help with an error being thrown while trying to add a product with different options to the cart using the updated .addProducts() method.
I created a custom product page that checks availability for all the different options (color, size and etc.) and then I’m trying to add the selected product and options to the cart that is giving me this error:
TypeError: Cannot read properties of undefined (reading 'id')
This error is being caught by the .catch() method of the resulting promise.
I don’t know if this is related (I will open up another thread just in case) but I am having add to cart errors with subscription products.
We added 7 non-subscription products just fine, but when we attempt to add a subscription product we receive a message saying "one time purchase is not allowed for product with id … "
We can add it to cart via Wix stores just fine ---- but not via code?
I am working on a new project for a client that involves adding Products to The Store and Items To The Cart. I have found a few issues using the new APIs. Can we schedule a Zoom meeting from someone on your team and I will be happy to review the issues I have found. Let me know if that works and we can schedule it.
Currently, you can’t perform “Subscribe now” from Velo (add a subscription to cart).
You can add a subscription product to cart if it has a “one time purchase” option.
@bwprado Hi Bruno,
A developer on the Stores team looked into the issue, and he reported that he was not able to get the error when logged in as the site owner. Everything worked fine in both Preview mode and on the live site. However, he did see an Identity issue in Preview mode when logged in as a temp contributor. What is your site role?
This issue was reported and fixed before, but he will report it again to the team to look into. The error is not coming from adding to cart, but from fetching the updated cart after the add to cart is complete.
hello, we have the same problem, We can create a custom product with 8 options in a dynamic page, similar to the custom sweater example, but we are unable to send the final design to cart.
The product goes to cart, but only the default product image appears in the cart, so we cannot tell what the chosen options are in the final sale/purchase of the custom product.
Can anybody please help with a solution. We have speant a few weeks on this and have even tried a different product randomisation dynamic page option, which also fails at the cart stage.
We have read through several velo posts and it appears that many people are unable to get the cart page working with customised or randomised products.
Product customisation is becoming increasingly popular so making this happen will be a big win for many WIX website customers.
I have a number of clients that can add customized products to the cart. There are a lot of issues that have to be overcome to get it to work.
If you are interested in my solution and would like to have a discussion send me an email at mcustode@aol.com or call me at (201) 207-5387 and we can discuss. I am located in New Jersey EDT (timezone). - Mike Custode