Ecommerce Shopify WordPress Discussion

Shopify Remix App: Open chat window on cart change

I'm creating an Remix Shopify App using Shopify CLI. I want to open a "dialog window" when the user creates or changes the cart. At the moment I am using a "theme app extension" to render a window in the bottom right corner. I can open it by clicking it, but I would like it to open automatically when a user adds a product to the cart. All I could do up to now is to send the cart change events to an external endpoint using the webhooks "cart create/change". But I need the reaction in the frontend. I'm new to Remix so I don't know if Remix can do something like re-routing a webhook payload to a frontend handler function in a theme app extension(?) or if this behavior should be achieved in a different way.
As you well know, every theme comes with a bunch of custom events now. One common event is the "cart:updated" variation. You would want to hook your theme app extension into that, so that you avoid any obscure and/or difficult messaging. No matter how great these extension from Shopify are though, it does remain tricky to hook into those events that are essentially someone's interpretation. Good luck!

January 7, 2024

TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.