You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have Craft 4.7, Commerce 4.4 and Commerce Bundles 2.0.0-beta.7 installed. When I click on add to basket on a bundle I get the following error "Invalid purchasable ID". I'll paste my basket code below as I might be missing something that isn't documented.
{% for bundle in craft.bundles.purchasables(product.variants).with(['bundleImage']).all()|unique %}
For anyone with the same as us after an upgrade to Craft 4, you need to re-create all the bundles which will assign new purchasable IDs to them, fixing the issue when adding bundles to the cart. I will leave this issue open so it's easier to find.
I have Craft 4.7, Commerce 4.4 and Commerce Bundles 2.0.0-beta.7 installed. When I click on add to basket on a bundle I get the following error "Invalid purchasable ID". I'll paste my basket code below as I might be missing something that isn't documented.
{% for bundle in craft.bundles.purchasables(product.variants).with(['bundleImage']).all()|unique %}
{% set bundlePrice = bundlePrice + bundle.price %}
{% endfor %}
Any help would greatly be appriciated.
The text was updated successfully, but these errors were encountered: