hawksama / hyva-checkout-used-product-notice
Extends Hawksama_HyvaCheckoutUsedProductNotice to support Hyvä Checkout consent.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:magento2-module
Requires
- hawksama/hyva-used-product-notice: ^1.0
- hawksama/magento2-admin-menu: ^1.0
- hyva-themes/magento2-hyva-checkout: ^1.1
- magento/framework: *
README
Hawksama_HyvaCheckoutUsedProductNotice is a Magento 2 module that extends Hawksama_HyvaUsedProductNotice to add a checkout confirmation step for used or “no-warranty” products on Hyvä Checkout.
Important
- If you only need the product page disclaimer, install Hawksama_HyvaUsedProductNotice without this module.
- If you want both product page notices and a checkout confirmation step, install this module:
composer require hawksama/hyva-checkout-used-product-notice- You must have Hyvä Checkout installed for this module to function correctly. Otherwise, you will encounter errors.
Overview
-
Extends the Used Product Notification
- By default, Hawksama_HyvaUsedProductNotice shows a notice on the product detail page for items flagged as “used.”
- This module adds checkout-level functionality that requires customers to confirm they understand these items have no warranty or return policy before placing an order.
-
Hyvä-Exclusive
- Built specifically for Hyvä Checkout using Magewire. If you don’t use Hyvä Checkout, this module is not applicable.
-
Customer Consent
- During checkout, customers see a checkbox acknowledging the limited return/warranty policy for used goods.
- No consent → they can’t finalize the checkout. This ensures clarity and reduces potential disputes.
Product Page Example
When a product is marked as “used,” a notice appears below the price or any custom block you configure:
Checkout Page Example
When a product is flagged as “used,” this module injects a confirmation step into the Hyvä Checkout flow. A checkbox appears prompting the customer to acknowledge that these items come with limited or no warranty/return policy. This ensures the customer is fully informed before they place their order:
-
Clear Messaging
A concise label or disclaimer text (customizable via CMS block or configuration) appears next to the checkbox, explaining the policy for used products. -
Required Confirmation
If the customer doesn’t check the box, they can’t proceed with the checkout. This prevents accidental purchases or misunderstandings about return rights. -
Seamless Integration
The checkbox and disclaimer are rendered via a Magewire component, blending neatly into the Hyvä Checkout UI without disrupting the customer experience.
Admin Configuration
Enable or customize the “used product” notices directly in Magento’s Stores > Configuration.
Below is a screenshot of the admin settings:
Features
- Seamless Hyvä Checkout Integration: Adds a Magewire component that hooks into the Hyvä checkout flow.
- Session-Based Consent: Customer acknowledgment persists during the checkout session.
- Customizable Language: Adjust disclaimers to suit your store’s branding and legal requirements.
- Lightweight Extension: Focuses on the checkout experience; all product page logic remains in the original module.
CMS Block Usage
You can edit the CMS block with id used_product_message
and make it tailored to your store needs:
Requirements
- Magento 2.4.x
- Hyvä Themes with Hyvä Checkout enabled
- Hawksama_HyvaUsedProductNotice (for the underlying “used product” attribute checks)
Configuration
- Checkout Consent: In your admin panel, ensure the “Enable On Checkout” option is on.
- Hyvä Checkout: Confirm you’re running Hyvä Checkout so the Magewire component can properly render.
Usage & Customization
- Once this module is enabled, any items with the
used_product
attribute set totrue
will trigger a consent checkbox on the checkout page.
Known Limitations
- Hyvä Dependency
- This module will not function with Luma or other checkouts.
- Single-Attribute Check
- Currently monitors a single attribute (e.g.,
used_product
); extending to multiple attributes might require custom logic.
- Currently monitors a single attribute (e.g.,
License & Contributing
- License: Distributed under the MIT License.
- Contributions: Feedback and PRs are welcome. Feel free to open an issue or submit improvements.
Installation
composer require hawksama/hyva-checkout-used-product-notice bin/magento setup:upgrade bin/magento cache:flush
Contact
For any questions or suggestions:
- Maintainer: Alexandru Carabus
- Email: manue971@icloud.com
- Or open an issue in this repository.
**Thank you for using Hawksama_HyvaCheckoutUsed