Extension Giftor is intended for the implementation of promotions in the store on OpenCart 3 - the provision of gift products when certain conditions of the order are met. That is, some paid products can be gifted to the client for free (sold with a price of 0) upon reaching the specified order conditions.
DEMO AdminDEMO Live
Login/password: demo/demo
Giftor extension for OpenCart
Gift conditions can be set as follows:
- dependence on order total;
- dependence on the products in cart;
- dependence on the categories of products in cart;
- dependence on manufacturers of products in cart;
- combine dependence on products, categories, manufacturers with dependence on order total;
- dependence on a group of clients;
- validity period of the promotion;
Any paid or free product can be a gift. On the product page, you can display a block with information that by purchasing this product you will receive a gift. This block can be displayed automatically in all gift items and can be customized.
In one order, the client will be able to receive only one gift unit, but at the same time he can receive different gifts at the same time, if several conditions are fulfilled at once for different gifts in one order. Now in the settings you can choose whether to give only one gift or the number of gifts will correspond to the number of products in the cart that meet the specified conditions.
Examples of promotions using the Giftor on OpenCart module
- Place an order in the amount from 1000 to 5000 and get a branded pen as a gift, in the amount over 5000 - a T-shirt with a logo as a gift.
- Buy a laptop and get a mouse as a gift.
- Buy a TV + set-top box and get an annual subscription to the video service as a gift.
- Buy goods from category "A" for an amount over 10,000 and get a gift.
- Buy product from category "A" with product from category "B" and get a gift.
- Buy products from manufacturer "C" and get a gift.
Full compatibility of the gifts module with all versions of OpenСart 3.
Module installation instructions:
- Upload the module in the admin panel in the "Extensions" : "Install".
- Go to the "Modifications" section and update the cache.
- Go to the "Dashboard" section and update the template cache.
- Go to the "Extensions" : "Extensions" : "Modules" and enable the module.
- Edit module. Enable the status of the module and adjust all its options to your needs and save the settings.
- Go to menu "Catalog" : "Gifts" to create a gift.
- Check module operation.
- Bingo!
v1.3.1 (08/02/2023) - Fixed bug: Undefined index: product_id in .../admin/controller/catalog/product.php
v1.3.0 (31/01/2023) - Ability to add a gift to the product in the product form, when adding or editing the product (Links tab)
v1.2.0 (04/08/2022) - Added an option for the number of gifts to correspond to the number of products in the cart that fit the given conditions. Fixed an issue with overwriting the condition in all gifts.
v1.1.0 (21/07/2022) - Added a block with a gift to the product page and its settings. Checking gift stock Fixed bugs.
v1.0.0 (13/05/2021) - Module published
How to sort the gifts in the cart?
For this you need the module
sort products in cart. After installing it, you can choose the product sorting method.
So that the gifts are at the end of the list of products in the cart - select the "By price" sorting in "Descending" order. That is, products with the lowest price will be at the end of the list. Since the gifts have a price of 0, they will be the last ones in the basket.
If you need to display in the form: product/gift, product/gift, etc., then select the sort type "In order of adding to cart" and the order "Ascending".
How can I inform about a gift in the product page?
You have the opportunity to enable such an option in the module, to configure the appearance of the block and the parameters that should be displayed there. You can choose one of the available positions for displaying such an information block: before the price, before or after the product description, at the top or bottom of the page. If you need to display such a block yourself - add the {{ giftor }} code in the appropriate place of the product.twig template
How to add a gift to a product?
In the form for adding/editing a product, on the Links tab, the "Gifts for the product" field has been added, where you can choose which gifts the buyer will receive when ordering this product. This makes it easier to work with the module if you add gifts to specific products without any other prerequisites. If you need to create gifts with additional conditions that will be checked, use the form for adding gifts in the module.
You must be logged in to view the files!