vuestorefront / vue-storefront-1

The open-source frontend for any eCommerce. Built with a PWA and headless approach, using a modern JS stack. We have custom integrations with Magento, commercetools, Shopware and Shopify and total coverage is just a matter of time. The API approach also allows you to merge VSF with any third-party tool like CMS, payment gateways or analytics. Newest updates: https://blog.vuestorefront.io. Always Open Source, MIT license.
https://www.vuestorefront.io
MIT License
18 stars 13 forks source link

How do I override this file ? core\modules\cart\index.ts #233

Closed bloodf closed 3 years ago

bloodf commented 3 years ago

From vue-storefront created by zzzheli: vuestorefront/vue-storefront#5779

Prerequisites

Please answer the following questions for yourself before submitting an issue.

Check our forum:

https://forum.vuestorefront.io/

Is there something you don't understand? What is it? Describe it.

Can't find what you're looking for?

Keep the problem description concise and include:

Additional information

1

I want to modify the code here, how do I modify it in my extension file

bloodf commented 3 years ago

If you want to create your own CartModule: StorefrontModule function:

If you want to overwrite load action: https://docs.vuestorefront.io/v1/guide/cookbook/module.html#_2-2-recipe-b-override-vuex-store-with-extendstore