Ir al contenido
Menú
Se marcó esta pregunta
54 Vistas

Hello I am patching WebsiteSale.prototype to modify the behavior of the add to cart button. Everything is working fine except I need to show the little popup when I press add to cart, I see in that by default the button uses updateCartNavBar and showCartNotification but I can't import these functions.

I tried

import { updateCartNavBar, showCartNotification } from "@website_sale/js/website_sale_utils";

or 

import { updateCartNavBar, showCartNotification } from "@website_sale/js/utils";

The former is giving me an error saying updateCartNavBar is not a function and the latter is saying that it cannot import from website_sale/js/utils

Any way I can fix that

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
jul 25
1000
1
jul 25
6236
0
jul 25
1956
0
jun 25
1926
1
jun 25
1663