Is anyone else experiencing products that have default options not working and also when trying to add to cart, you get the error ‘Please select an option in each set.’
Currently this is happening to 2 ecommerce site in webflow and I havent seen anything in the Status page about the issue.
The only difference is one site has over 100 products on the site while the other only has 10. However, both collections have less than 10 items in them.
To repro do the following:
Create a collection
Create 100+ products
Add 5-10 products to the collection
Go to the collection page
Try adding items to the cart, you’ll run into the error
To workaround the error:
Remove products and make sure you have less than 100 products on the site and you’ll see the issue is fixed.
Obviously this work around is not viable at all for production sites but serves to illustrate the issue. For those who are more engineering savvy, you can see the error is being thrown in webflow.js on the following lines where selectedProduct is null. There should be a null check there, the store isn’t being properly updated with the SKU map:
var items = (_ref4 = data === null || data === void 0 ? void 0 : (_data$database4 = data.database) === null || _data$database4 === void 0 ? void 0 : (_data$database4$colle = _data$database4.collections) === null || _data$database4$colle === void 0 ? void 0 : (_data$database4$colle2 = _data$database4$colle.c_sku_) === null || _data$database4$colle2 === void 0 ? void 0 : _data$database4$colle2.items) !== null && _ref4 !== void 0 ? _ref4 : [];
var products = (_ref5 = data === null || data === void 0 ? void 0 : (_data$database5 = data.database) === null || _data$database5 === void 0 ? void 0 : (_data$database5$colle = _data$database5.collections) === null || _data$database5$colle === void 0 ? void 0 : (_data$database5$colle2 = _data$database5$colle.c_product_) === null || _data$database5$colle2 === void 0 ? void 0 : _data$database5$colle2.items) !== null && _ref5 !== void 0 ? _ref5 : [];
var selectedProduct = products.find(function (product) {
return product.id === productId;
});
var productType = selectedProduct ? selectedProduct.f_ec_product_type_2dr10dr.name : 'Advanced';
var selectedItem = items.find(function (item) {
return item.f_product_.id === productId;
}); // build the possible sku values for the given product
// since all items have the same sku values, we just use the first
// then we iterate over the skus, and create an object of [propertyId: string]: ''
// to represent that by default, no property has been selected yet
if (event.detail.isInitial && selectedItem.f_sku_values_3dr && selectedItem.f_sku_values_3dr.length > 0) {
var skuValuesMap = selectedItem.f_sku_values_3dr.reduce(function (map, sku) {
map[sku.property.id] = '';
return map;
}, {});
updateStore(instanceId, {
skuValues: skuValuesMap
});
}
This seems like an issue related to new updates to the CMS system with the membership + variants codebase.
I’m having the same issue. And for some reason, products that are out of stock are only displaying that information once someone tries to add to cart. Please help.
Hey everyone, this is a known issue and the fix is on its way. I’ll respond back here when the fix is live so that I can get verification that your sites are working properly.
@matthewpmunger This is still not working. No one can buy on our sites still. We have had contact from customers trying to buy, telling us our site is broken.
The issue:
The default option for products is not preselecting.
You can not select an option
You can not add to cart because the error ‘Please select an option in each set.’
@matthewpmunger Yes the issue is now resolved. I had to publish the site to see the fix.
Just to note when I first contacted the support team about this issue the response was that it was my site that was the issue because we have custom code. Just a blanket blame. It took hours for weblfow to acknowledge this major issue. Also when I replied back to that support member about trying to get some more details I never got a reply to my questions.
I’m someone that wants to and is currently building an agency on Webflow as a core offering but every week my confidence is lowered. I hope to see some focus on ecommerce.
@mark-joncheff that definitely sounds frustrating. We are currently debriefing on the incident and will also figure out what happened around your support ticket with the goal of improving the process moving forward. What happened is far from ideal.
Hey @adalmagro please submit the issue directly support. It is likely we’ll need to investigate and discuss your private account details. Could you please contact our Customer Support Team at support@webflow.com?
One of our Customer Support Team Specialists will be able to investigate and respond via email! Thank you so much!