Welcome, Guest Login

Support Center

Add Customer's Choice to Shopping Cart

Last Updated: Feb 01, 2018 04:23PM PST

You may want to allow your customers to choose which nonprofit your donation goes to when they check out their order. This article will explain how to add that to your shopping cart page.
 

Embed the Dropdown


You will need to edit the code for your theme. Once you locate the section or snippet for your shopping cart form, paste the following two lines inside the <form> tags.
 

<div data-select-nonprofit-via-pledgeling></div>
<script id="plg-npo-select" src="https://hello.pledgeling.com/assets/shop/nonprofit/select.js" async></script>


To edit the code:
 

  1. Go to Online Store settings in sidebar

     
  2. Click the “Actions” button and select “Edit Code”

     
  3. Find the section/snippet for the shopping cart form. In the default Shopify theme, this is located in a file called "Sections/cart-template.liquid".

     
  4. Let's add the button under the shopping cart contents. To locate the form, run Ctrl+F (on PC) or Cmd+F (on Mac) and type “/cart”. Then paste your embed code inside it. This is how it looks on our store:

     
  5. Click the Save button, and Preview the Customer's Choice dropdown on your shopping cart page.
     
  6. If you are having trouble embedding the Customer's Choice, we are happy to help. Send an email to shopify@pledgeling.com with the subject line: "Integration Help."
     

Contact Us

693a5ce0f8c13aee99d71af1b50a6757@pledgeling.desk-mail.com
http://assets1.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete