Hi!
Seeking help setting up yet another "gift wrapping" option. Have set up / installed one checkout box (gift wrapping option) myself, which you can check in the checkout page - and where the associated product is added to the basket.
Unfortunately I have not had much luck in being able to add another option *(two gift wrapping options at the same time)*, where they both work optimally, although I have changed both name and liquid codes to "gift-wrapping2".
Right now I have an option in checkout called "Add exclusive jewelry box for DKK 9.00" and want another second option above which is called "Add sustainable gift wrapping for DKK 10.00"
Is this please something you guys can help with, or is it not possible to have two working "gift wrapping options" at the same time?
I am using a DEBUT theme in my store.
**Fingers crossed that this is something you can help with!**
Best regards, Stine - website: [www.melchiorjewelry.com](http://www.melchiorjewelry.com)
Hi @stinem123 ,
Can you send me the code you added, I will help you check it again
@Litos Yes, thank you - Here it is!
{% if linklists.gift-wrapping.links.size > 0 and linklists.gift-wrapping.links.first.type == ‘product_link’ %}
{% assign id = linklists.gift-wrapping.links.first.object.variants.first.id %}
{% assign gift_wraps_in_cart = 0 %}
{% for item in cart.items %}
{% if item.id == id %}
{% assign gift_wraps_in_cart = item.quantity %}
{% endif %}
{% endfor %}
{% else %}
You attempted to add a gift-wrapping script to your shopping cart, but it won't work because you don't have
a link list with handle gift-wrapping which, in turn, contains a link
to your gift-wrapping product. Please review the steps outlined
here.
{% endif %}
Hi Lotos, can you help ? Thank you very much!
Thank you very much. I have edited the code a little bit to fit better at checkout, and everything looks perfect.. but the second gift-wrapping-2 are unfortunately not added to cart when box is checked.
This is the product for the second gift-wrapping-2 option:
https://www.melchiorjewelry.com/products/miljovenlig-gaveindpakning?_pos=3&_psq=milj&_ss=e&_v=1.0
And I have already put the product in navigation bar with the name gift-wrapping-2, so I do not know what the problem could be?
Do you know why, maybe you can help with a solution. I really hope!
Here is the code as it is right now.
{% if linklists.gift-wrapping.links.size > 0 and linklists.gift-wrapping.links.first.type == 'product_link' %}
Can you help Litos? I have sent information in previous reply.
The second gift-wrapping-2 are unfortunately not added to cart when box is checked.
Hi @stinem123 ,
Please change all code:
{% if linklists.gift-wrapping.links.size > 0 and linklists.gift-wrapping.links.first.type == 'product_link' %}
Please try the check boxes at my website, I have just used the code you send. But it does not work.. https://www.melchiorjewelry.com/cart
I REALLY hope you can help !
gift-wrapping-2 should link to this product https://www.melchiorjewelry.com/products/miljovenlig-gaveindpakning?_pos=3&_psq=milj&_ss=e&_v=1.0
right now both options links to the same product, this one: https://www.melchiorjewelry.com/products/deluxe-smykkeaeske?variant=40073082568896
Can you help Litos? I have sent information in previous reply.
Hi @stinem123 ,
Please change all code:
{% if linklists.gift-wrapping.links.size > 0 and linklists.gift-wrapping.links.first.type == 'product_link' %}
Hi @stinem123 ,
I tested and it works fine, you need to clear the cache or turn off the 2nd ‘Gift Wrapping Options’ and then add it again:
Thank you very much, I have cleared the cache and turned off the 2nd ‘Gift Wrapping Options’ and then added it again: It is now possible to check both boxes, but it still have some function problems (but only first time customers try this in checkout)
(gift-wrapping-2 is the upper of the two options)
If you select only gift-wrapping-2 then it first puts the original gift-wrapping product in cart, and checks this box instead. Then you have to check the gift-wrapping-2 again, and uncheck the original gift-wrapping, and remove that product, before it works properly. Sometimes you have to do this twice before only gift-wrapping-2 have been put to cart.
I don’t now if that’s something that can be fixed, but otherwise customers just have to try their hand at it instead.


