1b.app
Link copied -

Promo code - does not re-create when transferring from PROM

When using a promotional code on PROM,
the first order is unloaded as expected, with the added product with a negative price.
But if you create another order and use a promotional code, then ONEBOX no longer responds.
It turns out that on the site you can use the promotional code once instead of the required amount.
What is the problem? Or is this a flaw in the ONEBOX?
Original question is available on version: ru

Answers:

Good afternoon. Reset an example process with and without a promo code in the box, imported from the promo.
05.04.2021, 17:14
Original comment available on version: ru


Dobby
best house-elf ever wrote:
Good afternoon. Reset an example process with and without a promo code in the box, imported from the promo.

Here are two orders created:
first (promo code worked here):
https://b2bhub.crm-onebox.com/admin/customorder/order/23318/edit/
and the second one (promo code didn't work here):
https://b2bhub.crm-onebox.com/admin/customorder/order/23319/edit/
Import orders from PROM do "Automatic actions once a minute":
PromUA / Import orders from XML
there is a checkmark in the settings: If a promotional code is used in the order - add it to the system and to the process (with a negative price)
in coupons in ONEBOX coupon number 93 worked https://b2bhub.crm-onebox.com/admin/shop/coupon/ this is for the first order, and nothing happens for the second
On PROM, here is the promo code (two uses recorded)
No matter how many pieces you create, one will still work in ONEBOX.
06.04.2021, 12:36
Original comment available on version: ru

When importing from a promo, the box searches or creates, if not found, a one-time coupon with a code that passes the promo in the "promocode" field. In your case, for the first time, the box did not find a promotional code and created it, but in the second time, it saw that the promotional code had already been used and, accordingly, did not add it as a discount, because the promotional code already has a use date. As an option, you can make sure that the "Promo code can be used several times" checkbox is automatically checked in the promo code when importing from the promo and the coupon can be used many times. But at the same time, you will need to make sure that users cannot use the same promo several times if you have unique promo codes.
07.04.2021, 17:27
Original comment available on version: ru


Chewbacca
Wookiee wrote:
When importing from a promo, the box searches or creates, if not found, a one-time coupon with a code that passes the promo in the "promocode" field. In your case, for the first time, the box did not find a promotional code and created it, but in the second time, it saw that the promotional code had already been used and, accordingly, did not add it as a discount, because the promotional code already has a use date. As an option, you can make sure that the "Promo code can be used several times" checkbox is automatically checked in the promo code when importing from the promo and the coupon can be used many times. But at the same time, you will need to make sure that users cannot use the same promo several times if you have unique promo codes.

Doesn't work like that.
I'll explain below.
What you suggested applies only to a manually created promotional code in ONEBOX, and if it was a promotional code created by importing from PROM, then you need to edit it correctly (tick the unnecessary checkboxes like "Use", put the necessary "Promo code can be used several times" , select the correct generation type - edit and save = and only then does the supposedly promotional code work.
Why does not it work.
Because it is when importing from PROM
ONEBOX ignores data from PROM on order. And if the checkbox is "Promo code can be used several times" - then ONEBOX makes a discount on all products without exception.
And not everything is needed. Since there are discounted products on the promo, he ONEBOX should ignore.
There are two amounts in the import from PROM: this is the initial and final price of the order with all discounts and with all promotional codes.
It is for this difference that a negative (with a negative amount) product should be created in ONEBOX.
ONEBOX - completely ignores imports and does everything in its own way with a promotional code.
Therefore, in order for the promo code to work correctly when importing from prom, you need to:
or that it takes into account the data in the import file
or created a new promotional code each time (after all, it correctly creates the first-working promotional code in ONEBOX)
or that he would create this promotional code, but in the field where the "Coupon Promo Code" changed what was written - for example, he added a number
And since it works now, it turns out that you need to remove all discounts on the site - which is not acceptable
08.04.2021, 11:57
Original comment available on version: ru

We can generate a new unique promotional code every time in the box (add a date or something similar to the code itself). Takes 1h
08.04.2021, 12:15
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment