Conditional Cart Banner / 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.

Reply 1 (1)

gr_trading
Shopify Partner
1588 138 170

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. | YouTube Videos
To support Buy Me a Coffee