Skip to main content

How to exclude a product or category from the coupon

More
2 years 4 months ago #360967 by Jerome
Hello,

No, that's not the page I gave you.

Your Paypal IPN logs should be at : www.paypal.com/merchantnotification/ipn/history
( as explained in the documentation page : developer.paypal.com/api/nvp-soap/ipn/IPNOperations/ )
{/quote]

Regards


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #360995 by studiocurci
Hi,
in any case, I think that PayPal correctly sends the information to Hikasghop, because the renewal of the first test without a discount coupon was successful.
Sorry, but have you tried to do any tests successfully with the discount coupon?
I thank you
Francesco

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #361032 by Jerome
Hello,

We performed an investigation and the recurring price should not contain the discount price.
For a reason that I can't understand right now, the detection of the discount during the recurring value processing is not working properly.

Please edit the file "administrator/components/com_hikaserial/classes/cart.php" and replace the content
Code:
if($fullcart) { unset($order_products); return; }
By
Code:
if(false && $fullcart) { unset($order_products); return; }
in order to force the processing of the recurring price using the total of the products (and not using the order price).

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #361048 by studiocurci
Hi,
If I understand correctly, with your code it will become possible to make the first purchase with the discount. The subsequent renewals will be at full price, with the price of the product without discount?
Thank you

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago - 2 years 4 months ago #361065 by Jerome
Hello,

Yes, that's it.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Last edit: 2 years 4 months ago by Jerome.

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #361090 by studiocurci
Well, I replaced the code. Today I'm doing a new test with a product. Renewal every 3 days. I'll let you know how it goes. It seems that it is not possible to override the file you indicated, so kindly do not make new versions without including the new code otherwise it would overwrite the code I modified.
Regards

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #361102 by Jerome
Hello,

Since you have that error, we will perform further tests regarding that discount detection.
If we can understand the issue, we will work on a patch.
Otherwise, we will change the behavior and add a setting to configure which mode should be use.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #361119 by studiocurci
Hi,
with your new code the renewal worked correctly.
Here is the test: 1) total order 1 euro, 10% discount = 0.90 euros.
2) renewal: total order 1 euro (no discount)
Best regards
The following user(s) said Thank You: Jerome

Please Log in or Create an account to join the conversation.

More
2 years 3 months ago #361611 by studiocurci
Hi,
did add your new custom code to the last Hikashop and Hikaserial versions?
Now I still have:
HikaShop Business 5.0.4 [2405021549]
HikaSubscription: 4.0.2

I didn't update the versions because of the new custom code.
I was afraid of update them because of the risk to overraide the code I manually added on a system file.
Thank you
Regards

Please Log in or Create an account to join the conversation.

More
2 years 3 months ago #361622 by Jerome
Hello,

You can update HikaShop, it's not impacted by your local modification.
The next release of HikaSerial/HikaSubscription will take care of your issue.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #364973 by studiocurci
Hi, I'm now using Hikashop 5.0.4, I'd like to updated it to 5.1.2. Does 5.1.2 contain the custom code you had me add?

Jerome wrote: We performed an investigation and the recurring price should not contain the discount price.
For a reason that I can't understand right now, the detection of the discount during the recurring value processing is not working properly.

Please edit the file "administrator/components/com_hikaserial/classes/cart.php" and replace the content

Code:
if($fullcart) { unset($order_products); return; }
By
Code:
if(false && $fullcart) { unset($order_products); return; }
in order to force the processing of the recurring price using the total of the products (and not using the order price).

Thank you
Francesco

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #364976 by Jerome
Hello,

Like I told you in my previous message ; you can update HikaShop freely.
The modification is HikaSerial only.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #364982 by studiocurci
Hi, I'm now using Hikaserial 4.0.2, I'd like to updated it to 5.0.0. Does 5.0.0 contain the custom code you had me add?
Regards
Francesco

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #364996 by Jerome
Hello,

You can download HikaSerial 5.0.0 ; it contains a small patch which seems to work fine during my tests.
Feel free to send us your feedback if you still have an issue.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.288 seconds
Powered by Kunena Forum