Cart.js is empty when "Buy it Now" button is used instead of "Add to Cart" then "Checkout"

Highlighted
New Member
1 0 1

Hi,

 

We're currently building a gateway with the hosted payment API. We're using the AJAX /cart.js in order to retrieve the line items and display it on our gateway page. The thing is, when the user clicks "Buy it Now" instead of adding an item to cart then checking out, cart.js would return an empty cart. Is there any other way to retrieve the line items?

 

1 Like
Highlighted
New Member
14 0 0

Did anyone solve this problem?

When I go to checkout page directly using url(https://shop.xxx.com/cart/123456789:1) , cart.js returns emtpy.

 

Is this a known issue?

 

0 Likes