Forum
clear perch_shop_cart_has_property('terms_agreed')
What kind of function I can use to clear perch_shop_cart_has_property('terms_agreed') and make it "NOT agreed"?
On my payment page, afterf succesfull payment I want to clear this property. Is there a way I can do this?
You can use
perch_shop_set_cart_property('terms_agreed', false);
Thanks Drew, but it does not help.
If have these condtions during checkout flow
I have added to my not-succesful-payment page your code, but it does not help.
You could try setting it to
null
. Otherwise you'll need to destroy the cart to get rid of it.thanks it worked!