Shop Core
A Nuxt module for managing core shop functionality, shop events, and cookie consent.
The Shop Core module acts as a bridge between other modules and the base PWA application.
Installation
The Shop Core module is preinstalled in the base PWA application.
If you want to use it in a custom module, install it with your preferred package manager:
npm install @plentymarkets/shop-core
You can also install the module in your nuxt.config.ts
or module.ts
/index.ts
using @nuxt/kit
's installModule
:
typescript
await installModule('@plentymarkets/shop-core')
For reference, see our Google Analytics implementation.
Features
- EventBus to emit and listen to PlentyONE Shop events
- Register and manage cookies with consent
- React to cookie consent changes
- Utility composables for shop functionality
- Exposes
useSdk
composable for initializing and accessing the SDK