When I try install stock it seems ok but the rules in workflow are all broken with the following error messages.

Stock: disable add to cart
Machine name: rules_stock_disable_add_to_cart, Weight: 0
Error: Data selector commerce-product:commerce-stock for parameter data is invalid

Stock: validate add to cart
Machine name: rules_stock_validate_add_to_cart, Weight: 0
Error: Data selector commerce-product:commerce-stock for parameter input_1 is invalid.

Stock: validate checkout
Machine name: rules_stock_validate_checkout, Weight: 0
Error: Data selector commerce-product:commerce-stock for parameter approved_quantity is invalid.

I have tried combinations of versions of rules and stock both dev and stable releases, currently I am using "Rules 7.x-2.0+15-dev" and "stock 7.x-2.x-dev"

Cheers Dan

Comments

guy_schneerson’s picture

did you have stock v1 before you installed 2?
the rules in 2 are not compatible with 1 so will probably need uninstalling first

danharper’s picture

Status: Active » Closed (works as designed)

I had tried a clean install lots of times I spent hours at the weekend trying to fix it but uninstalling an reinstalling just cured. I was having php memory errors at the time so maybe it had never been uninstalled correctly

Cheers Dan