Hello, I am offering a free gift on my store with the purchase of another item. If the main item is purchased, the free item has no issues. If the customer wanted to order 2 main items, the free item has no issues. The issue I run into is when 2 main items are added to the cart, it will say “free gift” under one of the main items and under the free gift. I do not want it to say free gift under one of the main items purchased. The dollar amount is sill correct and doesn’t change either. I just want the text to be removed from the main item. It should only say free gift under the free item, I have a pic below for reference.
Hi @BobbyJ
Can you kindly share your store link (with the password, if any) with us? We will check it and suggest you a solution if possible
Hi @BobbyJ
This problem is related to liquid theme handling, so we need your theme file to quick check and fix this issue.
Can you kindly download your theme and share your file zip with us? We will help you check it and suggest you a solution.
It will not allow me to send a zip on this page.
Please try this solution:
Add code below into one of any file: global.js, theme.js, custom.js or any file can run JS code
if (window.location.pathname === '/cart') {
const saleProduct = document.querySelectorAll(`.cart-item__details a[href='/products/ice-therapy-roller?variant=45114971423012']`);
if (saleProduct.length) {
saleProduct.forEach((item) => {
const discountMess = $(item).parent().find('li.discounts__discount');
if (discountMess) {
$(discountMess).hide();
}
});
}
}
—> Save file and reload cart page and check result
Hi,
I recommend using a gift app like BOGOS to achieve exactly what you’re looking for.
With BOGOS, each free gift is clearly labeled with its own icon, so shoppers can easily identify it — without affecting the main product’s label.
You can check out a demo here:
Additionally, since BOGOS is built specifically for promotional campaigns, its gift logic is highly advanced:
-
Offer free items under conditions like:
-
Buy X Get Y
-
Spend More Get More
-
Free Gift With Purchase
-
-
Show interactive gift popups, allowing customers to select their gifts once they qualify
-
Automatically add gifts to the cart for a smooth, frictionless checkout experience
This is generally caused when Walmart’s API credentials are not aligned with the region or permissions configuration. Regenerate the client ID and secret in the Walmart Developer Center for the appropriate environment (production, not sandbox). Then re-enter them in Marketplace Connect and refresh. That’s the one that usually turns the connect button back on.


