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

How to add gift wrap option in cart in new Refresh theme

How to add gift wrap option in cart in new Refresh theme

Isa10
Tourist
10 0 3

Hi everyone,

 

I've been trying to add a gift wrap option in my refresh theme's cart. I added gift wrap as a product, created a "gift wrap" menu" linking to the product, but then the coding part starts, and it seems I need to add a custom section or block for the gift wrap option - I don't know how to do that at all, and what to type where.

 

I want my clients to get to the cart and have a box to check if they want a gift wrap - can anyone help me do that? my site is www.arvernefamily.com.

 

Thank you!

Isabelle

Replies 6 (6)

Mehran_Ali
Shopify Partner
427 54 67

Hi @Isa10 

 

You can achieve this by adding this liquid code:
You just need to follow these steps:

  1. Go to Online Store > Themes in your Shopify admin.
  2. Click three dots > Edit code.
  3. Open the product.liquid or sections/product-form.liquid file.
  4. Add the following code inside the <form> tag that wraps the product's Add to Cart button:

 

<div>
  <label>
    <input type="checkbox" id="custom-checkbox" name="properties[Gift Wrap]" value="Yes">
    Need Gift Wrap
  </label>
</div>​

 

NOTE: Make sure you add the above code into your add to cart after the  form tag then it's going to work

 

I hope this solution works for you! if not then share your store collaboration access in private I'll do that for you 
If it does, please Like It and Mark It As A Solution, or support me by Buying Me A Coffee to keep me going

-If this solution helps you, kindly LIKE THIS REPLY and MARK AS A SOLUTION OR

Buying Me A Coffee.

-If you need an expert Shopify developer for customization and development, feel free to contact me.


Email: Mehran.ali5300@gmail.com


WhatsApp: +92 343 0211536

Isa10
Tourist
10 0 3

Hi, so sorry I can't find a product.liquid or sections/product-form.liquid file in the "edit code" section...

And also I don't know what the form tag is, so what's the best way forward? I've never coded before so this is hard core for me... 

Mehran_Ali
Shopify Partner
427 54 67

OK @Isa10 

 

Than you can share your collaboration access to me in private I will do that for you 

-If this solution helps you, kindly LIKE THIS REPLY and MARK AS A SOLUTION OR

Buying Me A Coffee.

-If you need an expert Shopify developer for customization and development, feel free to contact me.


Email: Mehran.ali5300@gmail.com


WhatsApp: +92 343 0211536

Isa10
Tourist
10 0 3

OK I sent by email - let me know if you don't get it. Thanks for your kind help.

Mehran_Ali
Shopify Partner
427 54 67

HI @Isa10 

 

I didn't get any 

-If this solution helps you, kindly LIKE THIS REPLY and MARK AS A SOLUTION OR

Buying Me A Coffee.

-If you need an expert Shopify developer for customization and development, feel free to contact me.


Email: Mehran.ali5300@gmail.com


WhatsApp: +92 343 0211536

Isa10
Tourist
10 0 3

Thank you @Mehran_Ali for your help - the option for gift wrap is under each product, which works. Any chance we can add it to the basket or does that not seem possible? I'm worried people might not see the gift wrap option under the product cards... if it's too much to ask, no worries!