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

Display in the shopping cart / at checkout how many trees we plant for the customer

Display in the shopping cart / at checkout how many trees we plant for the customer

naturas
Visitor
3 0 0

Is it possible to display in the shopping cart / at checkout how many trees we plant for the customer?

We plant 1 tree per $10 spent. Example: the customer wants to buy products for the amount of $115.80

2 messages need to be shown: 

  1. How many trees we plant for their total (in this case 11 trees)
  2. How many more they need to spend for an extra tree:

in this case “We plant an extra tree in Naturas Forest if you spend €4.20 more”

then I want two 'buttons': “add a donation of €4.20” or “shop more”

are there sollutions / apps for this?

Replies 5 (5)

ankitsharma14
Shopify Partner
25 0 3

Hi

 

You can check & use 3rd party apps such as " EG Auto Add to Cart Free Gift  (https://apps.shopify.com/gifter-cart-auto-include?search_id=05f15fd5-7550-419f-838c-246ee919e8b1&sur...)", "BOGOS: Free gift & Buy X Get Y (https://apps.shopify.com/freegifts?search_id=05f15fd5-7550-419f-838c-246ee919e8b1&surface_detail=gif...)", "All‑in‑One Free Gift on Cart (https://apps.shopify.com/free-gift-on-cart-manager-pro?search_id=05f15fd5-7550-419f-838c-246ee919e8b...)"
I hope this can help you out.

 

Ankit

Ankit Sharma
naturas
Visitor
3 0 0

Many thanks for your help and suggested apps! Will definitely have a look.

 

gr_trading
Shopify Partner
1973 146 205

 

Yes, this can be custom code in the theme.

 

To get the total number of tree will be plant please refer the below code.

{%liquid 
   assign tree_count = cart.total_price | divided_by : 1000.0
%}            
<h2 style="text-align:right;">
     We will plant {{ tree_count | floor }} tree. 
</h2>
            

 

Code needs to be added in cart-footer.liquid for the DAWN theme please refer the screenshot below.

 

gr_trading_0-1698513722204.png

 

 

Other requirements can be fulfilled using the custom code.

 

let me know if interested we can connect over WhatsApp or the email details are in the post footer.

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
naturas
Visitor
3 0 0

Many thanks for your help and suggestions! Will definitely have a look.

 

mirvise
Shopify Partner
5 0 1

Hi Naturas team,

 

I just came across this post so thought I would my 2 cents. I am the founder of Sprout, the #1 tree planting app in the Shopify app store.  https://apps.shopify.com/tree-planting

 

Sprout allows you to plant for every $x dollars. So you can choose to plant 1 tree for every $10 spent. The app also has a cart badge that is dynamic and auto updates to show how many trees are being planted. i.e. If its $115.80, it will show 11 trees planted. We currently don't have the option to show "Spend $4.20 more to plant 1 more tree" but that's something we can build with you if you were interested in trying our app

 

Also, our app also has the feature to allow your customers to donate or top-up to plant more trees e.g. Plant 2 trees for $2 to help continue growing your forest.

 

Hope it helps if you are still looking around for a solution 

 

Cheers,

Mirvise

Co-founder at GoodAPI, helping merchants embed sustainability
https://apps.shopify.com/tree-planting