Hi. We are wanting to use this plugin to process a larger number of groupon vouchers with specific rules. I have read a lot the creation kills the backend operating speeds due to database pressures. Can you please advise on this and if there is anyway around this? We run a lot of Groupon deals with each deal requiring 500-1500 vouchers to be uploaded. Probably running 20 deals at any one time (20 x 1500) Also can i confirm we can set a specific rules (product based) before bulk upload?
#2
Posted 07 September 2021 - 06:05 AM
Hi. We are wanting to use this plugin to process a larger number of groupon vouchers with specific rules. I have read a lot the creation kills the backend operating speeds due to database pressures. Can you please advise on this and if there is anyway around this? We run a lot of Groupon deals with each deal requiring 500-1500 vouchers to be uploaded. Probably running 20 deals at any one time (20 x 1500) Also can i confirm we can set a specific rules (product based) before bulk upload?
Hello,
So you want to have something about 30 000 codes in shop's database with active condition(s) related to products. In my opinion it's not a large number of codes.
The main problem with large number of codes is in front office (back office is not affected) on cart page. When customer access to cart page prestashop checks all the voucher codes in database to verify if there are some codes to add to cart automatically or to display them (highlight option of voucher code). If voucher codes will have some active conditions (like product condition you expect) it will check also product associations. This can slow down cart, but it can be fixed easily. Its just enough to disable feature (code modification) to automatically add vouchers to cart / highlight them.
our module gives possibility to import voucher codes with active conditons.
during import process you define "pattern" of voucher code where you can activate "product" condition (as well as other conditons). Screenshot for reference:
imported voucher codes will have these conditions active.
if you want to import many different voucher codes you will need to split import process and process the import for each group of codes (for different groupon deals) individually.
best regards
milos
#3
Posted 07 September 2021 - 09:42 AM
This can slow down cart, but it can be fixed easily. Its just enough to disable feature (code modification) to automatically add vouchers to cart / highlight them.
#4
Posted 07 September 2021 - 09:45 AM
Hello,
Prestashop has feature to "highlight" voucher code in cart. This is the "highlight" option:
Highlight. If enabled, PrestaShop will let the user know that a voucher corresponding to the items in the cart is available and can be added.
When visitors will open cart page in your shop, prestashop will check all voucher codes in database to verify if "highlight" option is active for some of them.
This means that if you will have 30000 codes, prestashop will verify each code one by one to verify if there is any code to "highlight" in cart. This can slow down cart, especially if you have thousands of codes.
To avoid problem, it is possible to exclude "highlight" feature verification during checkout. It is possible to remove the feature from prestashop core,
so in effect prestashop will not check these codes. This can help in problem with performance if shop has many voucher codes.
how to do this?
this depends on prestashop version.
usually it's a matter of modification of static function CartRule::getCustomerHighlightedDiscounts() or CartRule::getCustomerCartRules()
this method has pros and cons
pros: cart performance will not be affected
cons: you will loose "highlight" feature, it will be deactivated at all so you will not be able to use it
Also tagged with one or more of these keywords: import, groupon
Modules discussion →
Export catalog for facebook pixel dynamic ads →
Export for import to other prestashop installationStarted by BarbaraPalvin , 05 Aug 2021 csv, import, export |
|
|
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users