How to configure coupons?

  • Posts: 111
  • Thank you received: 0
  • Hikashop Essential
7 years 5 months ago #272258

-- url of the page with the problem -- : www.portal-gestao.com
-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.2

Hello,
A customer gets a 30% discount coupon on a product that costs €55.
How can we calculate the right price?
Right price:
* Price: 55
* Coupon: 16,5
* Price before taxes: 38,5
* VAT (23%): 8.86
* Final price 47.36

And this is how HS is calculating the price (see attachment).

Thanks

Attachments:
The topic has been locked.
  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
7 years 5 months ago #272285

Hello,

Can you provide a screenshot of your taxes configuration please (in Component => Configuration => HikaShop, Main tab & Taxes part), AND other elements that can explain us better the situation.
Awaiting news from you.

Regards

Last edit: 7 years 5 months ago by Philip.
The topic has been locked.
  • Posts: 111
  • Thank you received: 0
  • Hikashop Essential
7 years 5 months ago #272290

Yes, have a look at the attachments.
Than

ks!

Attachments:
The topic has been locked.
  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
7 years 5 months ago #272318

Hello again,

Sorry but I need this :



Like I precised in my previous post :

"in Component => Configuration => HikaShop, Main tab & Taxes part"


Regards

Attachments:
Last edit: 7 years 5 months ago by Philip.
The topic has been locked.
  • Posts: 111
  • Thank you received: 0
  • Hikashop Essential
7 years 5 months ago #272359

Hello,
Here it is:

Attachments:
The topic has been locked.
  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
7 years 5 months ago #272381

Hello,

I try to reproduce your result with a product price without taxe 55.00 Euro and 67.65 with taxe (23%) and a coupon of 30%, and impossible to get your results with your configuration, so we forget something...

Can you provide an Url link to your website AND a frontend/backend access in order to process some tests ?
Precise if your website is on production phase.
And use our Contact us form to provide these elements, add an url link to this topic and notify us here we it's done.

Regards

Last edit: 7 years 5 months ago by Philip.
The topic has been locked.
  • Posts: 111
  • Thank you received: 0
  • Hikashop Essential
7 years 5 months ago #272393

Yes, I know what the problem is:

The coupon is generated by a tag in Acymailing:



That results in a code like this:

{hikashop_coupon:30|1||2017-09-30 23:59|30|0|1|[name][key][value]|}

BUT, the coupon code has no Product Tax Category:



So you have to add that in the tag generator.

Attachments:
The topic has been locked.
  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
7 years 5 months ago #272403

Hello,

Can you try to create (via manual classic way) a coupon with same criteria in order to see if your coupon leads different results from the one created via Acymailing tag.
The point is to see if the issue (strange results in your checkout cart) come from Acymailing coupon creation OR something in your HikaShop configuration.
Awaiting news from you.

Regards

Last edit: 7 years 5 months ago by Philip.
The topic has been locked.
  • Posts: 111
  • Thank you received: 0
  • Hikashop Essential
7 years 5 months ago #272471

Hello,

Yes, same configurations get the same results:



Attachments:
The topic has been locked.
  • Posts: 111
  • Thank you received: 0
  • Hikashop Essential
7 years 5 months ago #272473

However, when the product tax category is defined, the price is correct:



Attachments:
The topic has been locked.
  • Posts: 111
  • Thank you received: 0
  • Hikashop Essential
7 years 5 months ago #272528

Hello,

My customers are complaiting...
Can you please fix this asap? Coupons sent automatically are a critical feature for us...

Thanks!

The topic has been locked.
  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
7 years 5 months ago #272479

Hello,

It seems that the issue is up to your HikaShop, and not the AcyMailing integration with HikaShop... And I didn't see what can be the roots of this.
Can you provide an Url link to your website AND a frontend/backend access in order to process some tests ?
Precise if your website is on production phase.
And use our Contact us form to provide these elements, add an url link to this topic and notify us here we it's done.

Regards

The topic has been locked.
  • Posts: 111
  • Thank you received: 0
  • Hikashop Essential
7 years 5 months ago #272581

Sent, please help.

The topic has been locked.
  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
7 years 5 months ago #272594

Hello,

Thanks for waiting and sorry for the issue, here with this message you will find a new hikashop.php file.
You have to replace your in your Acymailing plugin in YourWebsite\plugins\acymailing\hikashop.
After replaced this file, go in your AcyMailing Newsletter configuration, and especially the coupon manager part, you will see a new option in order to set the tax link to your coupons.



That's may solve your issue, hope this will fit your needs and awaiting returns from you.

Regards

Last edit: 7 years 5 months ago by Jerome.
The topic has been locked.
  • Posts: 111
  • Thank you received: 0
  • Hikashop Essential
7 years 5 months ago #272642

Hello,

Proceeded accordingly, but the coupon tag in Acymailing interface seems to be broken...

Attachments:
The topic has been locked.
  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
7 years 5 months ago #272656

Hi,

There seems to be an error with the modification Philippe added in the plugin.
Unfortunately, I don't have the modifications on my end as we're on the weekend.

Could you try again with the "error reporting" setting of the Joomla configuration activated ?
That will display an error message you can provide which will allow Philippe to easily fix the issue on monday.

The topic has been locked.
  • Posts: 111
  • Thank you received: 0
  • Hikashop Essential
7 years 5 months ago #272667

Hi,

Here it is:

Attachments:
The topic has been locked.
  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
7 years 5 months ago #272727

Hello,

Sorry for the delay, I analyse the code and I think I get the root issue, can you go to your plugin code in YourWebsite\plugins\acymailing\hikashop, and replace this around line 580 :

echo $this->categoryType->display('', '', 'onchange="updateTag();"', true, 'tax_id');
For this :
echo $categoryType->display('', '', 'onchange="updateTag();"', true, 'tax_id');
Hope this will solve your issue, and awaiting news from you.

Regards

Last edit: 7 years 5 months ago by Philip.
The topic has been locked.
  • Posts: 111
  • Thank you received: 0
  • Hikashop Essential
7 years 5 months ago #272729

The product tax category is now displayed, but the coupon is invalid!

The topic has been locked.
  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
7 years 5 months ago #272746

Hi,

I've checked on my end but the modifications of Philippe properly generate coupons with their tax category selected now.
Did you recreate your coupon tag in the newsletter ? There is an extra parameter that is necessary in order to select the tax category and you need to select it if you want it to be selected in the coupons that are generated.

The topic has been locked.
Time to create page: 0.156 seconds
Powered by Kunena Forum