AbsoluteWebServices / vsf-magento-wishlist

0 stars 2 forks source link

Extended module is not working #1

Open meghasharma-24 opened 3 years ago

meghasharma-24 commented 3 years ago

I have added this module to add logged-in customer product in magento wishlist, but when I add a product to wishlist it doesn't come in module function. I have added console in addItem function to debug. Can any one help?

michhy commented 3 years ago

Same issue here, it didn't extend the function from wishlist. Hope someone could help.

youanden commented 3 years ago

Hi, you two might be using a newer version of Vue Storefront.

There is a separate branch (v1.x) that will let you import modules the modern way:

git clone --branch vsf/1.x https://github.com/AbsoluteWebServices/vsf-magento-wishlist

Then in the modules/index you can import it the modern way:

import { WishlistModule } from './vsf-magento-wishlist'

Let me know if that works, @michhy

michhy commented 3 years ago

Hello @youanden

Thank you for your reply :) Yes, I am using vsf 12.2 I just downloaded your branch (v1.x), but still failed to get it work. I tried both extendModule(WishlistModule) and registerModule(WishlistModule) in registerClientModules () please see the screenshots:

螢幕截圖 2021-03-16 下午4 33 39 螢幕截圖 2021-03-16 下午4 33 09
michhy commented 3 years ago

Hi @youanden

I just get it working, by simply comment out the original wishlist module, without extendModule(WishlistModule) in modules/index.ts.

i just need to fix the dulplicated vuex errors