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-coreTo install the module you can add it to our projects nuxt.config.ts or directly install the module inside your module as moduleDependencies inside your module.ts/index.ts:
ts
moduleDependencies: {
'@plentymarkets/shop-core': {
version: '>=1.13.4',
},
},You are still able to install the module with installModule from @nuxt/kit but this has been deprecated https://nuxt.com/docs/4.x/api/kit/modules#installmodule
Outdated 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
useSdkcomposable for initializing and accessing the SDK - Error handling.