Re: Everytime I add something to my cart, some random code appears, i dont want this to happen

Solved

Everytime I add something to my cart, some random code appears, i dont want this to happen

GatewayMidera
Excursionist
24 1 2

my website: gatewaymidera.com
password: GatewayMidera45

for some reason when i add something to my cart, this pops up.

GatewayMidera_0-1693249930948.png


this is the code that is that is being shown when i add something to my cart

GatewayMidera_1-1693249967311.png


why is this happening and how do i fix it?

 

Accepted Solution (1)

GatewayMidera
Excursionist
24 1 2

This is an accepted solution.

i accidently typed some code in the cart-icon-bubble.liquid file, i fixed it.

View solution in original post

Replies 6 (6)

code_with_adam
Shopify Partner
43 1 2

Hi ,

Some of extra or unwanted code is added.

Or may be some tags are not closing.

For this issues I need to check your theme.

 

Thanks 

GatewayMidera
Excursionist
24 1 2

what should i send?

 

code_with_adam
Shopify Partner
43 1 2

Kindly check on the inbox

saurav9005
Shopify Partner
99 15 25

so weird,

 

To only remove the text, you can use Jquery code

 

<script>
$("#cart-icon-bubble").contents().each(function()
{
    if (this.nodeType === Node.TEXT_NODE) this.remove();
});

</script>

 

please hit Like and Mark as Solution, If this answer solve your problem.  If you find my reply helpful, a small Coffee Tip would make my coding heart soar!

GatewayMidera
Excursionist
24 1 2

This is an accepted solution.

i accidently typed some code in the cart-icon-bubble.liquid file, i fixed it.

Kitana
Shopify Staff
159 11 41

Hey @GatewayMidera, thanks for reaching out. 

As stated this is probably a code added by an app you're using or if you've already made coding changes. If you've recently added any apps to your store, you can uninstall them and remove the code, see if that fixes anything. Otherwise there's a few other options going forward. 

 

You can reach out directly to your theme support to see if this is something they can fix for you. You can find more information on your theme support here. If this is a change that there will be a charge for, you can look into your other options by hiring a freelancer instead of the theme support. Browse websites like Fiverr, and UpWork to find great freelancers to work with. 

 

Don't forget to check out the Shopify Developer and Partner forums for someone with a similar question or you can post this exact one there. 

 

Kitana | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog