Discussions

Ask a Question

Headless Shopify

Is it possible to make the cart work on a headless setup with Shopify?

Update cart drawer after adding new item through Javascript

I'm trying to refresh the Smart Cart after adding a new item to the cart using Shopify's AJAX API. However, after the request is completed, the product gets added to the cart, but the Smart Cart doesn't update with the new item.

Create custom logic to show Products grid add to cart button .

I want to add some javascript logic before rendering the add to cart button. I am using another app for inventory checking based on location and I want to create some custom logic to show customer add to cart or sold out based on the availability of products in that location .

ANSWERED

Showing Product Variant's metafield in Smart Cart

I want to show data that's only available from Product Variant into the Smart Cart. We're using Rebuy's custom template to render the cart in our store. The data I want to process are:

Need help in smart cart

Hello,

Track Post-Purchase page's purchases using TikTok pixel

One of our clients wants to track the purchases that are done through the Post-Purchase page using Tiktok pixel. Is there an event, API, or something that I can use to trigger the TikTok pixel every time a post-purchase is made through the app?

ANSWERED

Reloading product recommendation on variant change

We're looking for a way to reload our product recommendation from Rebuy whenever our user change a product variant. Since switching variants didn't reload the whole product page, we're stuck with the recommendation from the first variant shown in the page. Is there a way to reload the product recommendation through javascript?

Rebuy app smartcart item quantity change.

I want to change rebuy lineItem quantity from label to dropdown select or input tag, so that on change of item input field by typing lineItem change accordingly increase or decrease. I didn't found any onChange/change method for smart cart. theres only increaseItem decreaseItem