Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

[Bug] Cart attributes are not passed to functions when "Buy it Now" button is used

[Bug] Cart attributes are not passed to functions when "Buy it Now" button is used

Sam9516
Shopify Partner
44 1 15

There is one payment customization set on the checkout which hides all the payment options when cart attribute value is set. 

 

When product is added to the cart and the checkout button is used, there is no issue, everything works, all payment options are hidden on the checkout.

 

But when "buy is now" button is used directly from the product page to checkout, then the cart attribute always receives a value of NULL, even though when checking the cart attributes on the checkout, I can see the cart attribute value is correctly set. It is just not being passed to the function as an input for some reason.

 

Here is video demo,

https://drive.google.com/file/d/1KMgQx1nnyFV2iUQwMcj4uZm0Y77SzdZz/view?usp=sharing

 

Please help if possible, thank you.

Replies 2 (2)

rubby
Shopify Partner
3 0 0

Figured it out? I've been struggling with the same issue for a few months now. I ended up just straight up hiding the Buy Now button with custom CSS.

Sam9516
Shopify Partner
44 1 15

Unfortunately, no. Still waiting for a reply from Shopify.