This package provides functionality within Rapidez to create order reminders for customers, prompting them to reorder products after a specified period.
composer require rapidez/order-reminder
You can publish the config with:
php artisan vendor:publish --tag=rapidez-order-reminder-config
You can publish the views with:
php artisan vendor:publish --tag=rapidez-order-reminder-views
To display the order reminder form on a product page, add the following to the product page, for example in resources/views/vendor/rapidez/product/overview:
<x-rapidez-order-reminder::add :productSku="$product->sku" :defaultTimespan="2" />This example adds the form with a default timespan of 2 automatically selected.
To create an order reminder from an order, you can add the following to the order template, for example in resources/views/vendor/rapidez/account/order.blade.php:
<x-rapidez-order-reminder::form products="Object.values(data.customer.orders.items[0].items)" key="product_sku" default-timespan="2" no-email />This makes it possible to add one or more products to an order reminder.
When an order reminder is added, a confirmation email will be sent to the provided email address. Once the order reminder is approved, it will appear in the account center at the URL /account/order-reminders. Here, users can view, edit and delete the order reminders.
A Vue component has been added to allow customers to add products from the order reminder email to the cart in one click. To enable this, add the following to the cart page:
<order-reminder-add-to-cart></order-reminder-add-to-cart>