---
title: "Our own `addToCart` callback is ignored: the button at the end of the size advice still adds to cart"
description: For some shops, Faslet keeps an add-to-cart script in the shop's settings.
---

[Skip to content](https://site.faslet.me/knowledge-base/own-addtocart-ignored-portal-script#main-content)

- [English](https://site.faslet.me/knowledge-base/own-addtocart-ignored-portal-script)
- [Nederlands](https://site.faslet.me/knowledge-base-nl/own-addtocart-ignored-portal-script)

English

Show submenu for translations

![Faslet-logo-rgb (4)](https://site.faslet.me/hs-fs/hubfs/Faslet-logo-rgb%20(4).png?width=100&height=24&name=Faslet-logo-rgb%20(4).png)

- Solutions
  
  Show submenu for Solutions

    - [For Kids](https://site.faslet.me/en/products-kids)
- About
  
  Show submenu for About

    - [Blogs](https://site.faslet.me/blog)
    - [Press](https://www.deondernemer.nl/innovatie/startup-van-de-week-faslet-oplossing-online-maattabellen~3789309)
    - [Contact us](https://site.faslet.me/contact-us)
- Partners
- [Sign-up](https://portal.faslet.net/signup)

Open main navigation

Close main navigation

- Solutions
  
  Show submenu for Solutions

    - [For Kids](https://site.faslet.me/en/products-kids)
- About
  
  Show submenu for About

    - [Blogs](https://site.faslet.me/blog)
    - [Press](https://www.deondernemer.nl/innovatie/startup-van-de-week-faslet-oplossing-online-maattabellen~3789309)
    - [Contact us](https://site.faslet.me/contact-us)
- Partners
- [Sign-up](https://portal.faslet.net/signup)
- - [English](https://site.faslet.me/knowledge-base/own-addtocart-ignored-portal-script)
    - [Nederlands](https://site.faslet.me/knowledge-base-nl/own-addtocart-ignored-portal-script)

  English
  
  Show submenu for translations
- Contact us

 Contact us

 How can we help you?

- There are no suggestions because the search field is empty.

1. [Faslet Knowledge Base](https://site.faslet.me/knowledge-base)
2. [Integrations and API](https://site.faslet.me/knowledge-base/integrations-and-api)

# Our own \`addToCart\` callback is ignored: the button at the end of the size advice still adds to cart

## The question

- Our `window._faslet.addToCart` callback only selects the recommended size, but the button at the end of the size advice still adds the product to the cart.

## Applies to

- A shop with its own Faslet integration that defines `window._faslet.addToCart`; any shop platform except Shopify, Lightspeed, WooCommerce and InstantCommerce, where Faslet adds to the cart itself

## Answer

For some shops, Faslet keeps an add-to-cart script in the shop's settings. When it is there, the button at the end of the size advice runs that script instead of your own `window._faslet.addToCart`. You can't see or change it yourself: ask us, and we remove it, so your own callback is used from then on.

Rather have no button at the end at all? We can switch it off for your shop instead.

Good to know: your shop's Faslet settings apply to every site that uses the same shop ID, such as a staging site and your live shop. Once the script is gone, each of them runs its own `window._faslet.addToCart`, so make sure the live one does what you want too. A site that doesn't set `window._faslet.addToCart` no longer shows the button at the end.

Want the button to say something else, now that it does something else? See [changing the texts in the size advice](https://site.faslet.me/knowledge-base/change-widget-texts).

## Why it happens

- An add-to-cart script kept in the store's settings at Faslet takes precedence over the shop's own `window._faslet.addToCart`

## Is this your situation?

- Your own `window._faslet.addToCart` never runs when the button at the end of the size advice is clicked (for example, a line it writes to the browser console never shows), while the button still does something, such as adding to the cart: this article.

- [Size advice](https://site.faslet.me/knowledge-base/size-advice)
- [Products and size charts](https://site.faslet.me/knowledge-base/products-and-size-charts)
- [Getting started](https://site.faslet.me/knowledge-base/getting-started)
- [Fit Bar](https://site.faslet.me/knowledge-base/fit-bar)
- [Look and placement](https://site.faslet.me/knowledge-base/look-and-placement)
- [Returns and orders](https://site.faslet.me/knowledge-base/returns-and-orders)
- [Integrations and API](https://site.faslet.me/knowledge-base/integrations-and-api)
- [Portal, reports and A/B tests](https://site.faslet.me/knowledge-base/portal-reports-and-a-b-tests)

- Solutions 
    - [For Kids](https://site.faslet.me/en/products-kids)
- About 
    - [Blogs](https://site.faslet.me/blog)
    - [Press](https://www.deondernemer.nl/innovatie/startup-van-de-week-faslet-oplossing-online-maattabellen~3789309)
    - [Contact us](https://site.faslet.me/contact-us)
- Partners
- [Sign-up](https://portal.faslet.net/signup)

[![Faslet | The Size and Fit Technology for online clothing stores](https://site.faslet.me/hs-fs/hubfs/Faslet-logo-rgb.png?width=640&height=264&name=Faslet-logo-rgb.png "Faslet | The Size and Fit Technology for online clothing stores")](http://faslet.me)

<https://www.facebook.com/> <https://www.twitter.com/> <https://www.instagram.com/> <https://podcasts.apple.com/> [mailto:email@email.com](mailto:email@email.com)

Copyright © 2026, Faslet B.V.