What's your biggest current challenge? Have your say in Community Polls along the right column.

How to implement a conditional cart banner or notice?

How to implement a conditional cart banner or notice?

bluewhippet
Visitor
2 0 0

Hello - 

 

We are looking to add a cart banner / popup / notice that is conditional to the cart total value OR total items in cart. 

 

How would i go about implementing such a feature? Is there an app? Or could I just code it in? I do not have Shopify Plus.

 

I am using the Be Yours Shopify Theme.

Replies 2 (2)

gr_trading
Shopify Partner
1973 146 205

Hi @bluewhippet ,

 

you can achieve it via custom coding in the theme.

 

editing the code would depend where you want to show it.

 

you need a pop up code for that you can use bootstrap to create HTML.

https://getbootstrap.com/docs/4.0/components/modal/

Read the cart object and check for 

 

cart.total_price

 

and put your logic which will show the pop up

 

 

 

 

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee

simple01dev
Shopify Partner
2 0 0