Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
43 Tampilan

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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Jul 25
998
1
Jul 25
6231
0
Jul 25
1953
0
Jun 25
1923
1
Jun 25
1658