page-heavy-1080p.mp4
Note
"An offer" is a pattern that can be used to create a special price for a product. It is a page with a reference to a product variant and a special price.
Tip
By running saleor/configurator's bootstrap command with the config.yml file, you can create the data types needed for this app.
A Saleor app that enables special offer prices for products in your store. It allows you to:
- Display store pages with special offers
- Display products with both their base price and special offer price
- Enable direct purchase of products at the offer price
- Track offers through order metadata
- Store Pages: Display store pages with special offers
- Offer Management: Each offer can reference a product variant and set a special price
- Price Override: Automatically applies the offer price during checkout
- Checkout: One-click purchase that creates and completes the checkout
- Order Tracking: Stores offer information in order metadata for reference
- Install dependencies
pnpm install- Configure environment variables
cp .env.example .env.local- Start the development server
pnpm devThe app requires the following configuration in Saleor:
Note
For demo purposes, you need to set channel.allowUnpaidOrders to true, so that an order can be created in the demo storefront.
- A page type with slug
store- used for store pages - A page type with slug
offer- used for offer pages
- Store page attributes:
store-offers(reference attribute) - references offer pages
- Offer page attributes:
offer-variant(reference attribute) - references a product variantoffer-price(text attribute) - contains price in JSON format:{"amount": 14.99, "currency": "USD"}
- Create store pages using the
storepage type - Create offer pages using the
offerpage type - Configure offer pages with:
- Link to a product variant using
offer-variant - Set special price using
offer-price
- Link to a product variant using
- Add offer pages to a store using
store-offersattribute
The app will then:
- Display store pages with their associated offers
- Show both base and offer prices for each product
- Enable direct purchase at the offer price
- This repo is a fork of Saleor App Checkout Prices.