How to open drawer cart, after add to cart action

How to open drawer cart, after add to cart action?

I’m using the Fastor theme, Which was deleted from themeforest 1 day after i purchased the theme.

So i need assistance from you guys…

website link

marsedo.com.tr

Hi @marsedo
Can you please go to Customize and then select Settings and find cart-related settings you will find a redirect to the cart or open drawer settings there, Not exactly sure as the theme is not free, and not able to find it.

Check the screenshots below they are from the DAWN Theme from Shopify. You need to find the similar settings from your theme.

Currently, your product form is being submitted to the server in a direct “native” way.

Visitor is immediately redirected to the cart page.

What you’re looking for is adding to cart with JS, also known as Ajax cart.

Your theme has a switch to select one way or another – you need to check theme settings.

When enabled, adding to cart will show a popup like this:

Unfortunately, can’t be more specific then this – have not seen this theme “from the inside” in a while.

We only have Page & Popup Notification options from theme settings

We only have Page & Popup Notification options from theme settings.

And the show popup notification option does not work!

Hmm. It works, but it’s temperamental (or how I’ve got the screenshot above if it does not?).

For example, it works for https://marsedo.com.tr/products/tookes-kadin-gunluk-sivri-burun-gold-aksesuar-detayli-babet?variant=51158032351505 but does not for some others.

Anyways, it’s possible to do what you want, but will require theme code change, which is not trivial. Would need some digging and testing.

Hi @marsedo
I have found the solution to this,

I have created a custom script for this.

Got to the Current live theme → Edit code → Find theme.liquid and add the below code before


1 Like

This solution worked perfectly.

Thank you for the support!

1 Like

@Huptech-Web so after i apply it live, i discovered that, “go to checkout” & “view cart” buttons dont appear on the drawer cart. So customers cant buy now… Could you revise the code?

Hi @marsedo
Here is the revised code with Total, Cart & Checkout buttons issue fixed


1 Like