Show discount amount in invoice

  • Posts: 23
  • Thank you received: 0
10 years 1 month ago #175113

-- HikaShop version -- : 2.3.3
-- Joomla version -- : 3.3.4

Hi,

I've just upgraded to Hikashop Business to benefit from the discount per user group feature.

The prices in the invoice and email creation order are the discounted prices.
I'd like to show a column with the unit price befoire discount, a column with the discount amount, and a column with the price after discount.

How to get it? I set "Show discounted price" to no but that doesn't change anything.

This is really important for the customer to see in the invoice the amount of discount.

Thanks
François

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

  • Posts: 13201
  • Thank you received: 2322
10 years 1 month ago #175132

Hi,

You will have to edit the views "order / show" in frontend template and "order / invoice" in backend template to edit the invoice content.
And the emails via the menu System > Emails.

This require PHP knowledges.

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

  • Posts: 23
  • Thank you received: 0
10 years 1 month ago #175361

Hi,
Alright, thank you for your reply.
I also use the PDF invoice plugin. Does this plugin independent from theses views?
I actually use HS as a quote generator (for now). Customers don't see any prices on the checkout process. The only prices they see will be on the PDF invoice.
So here is my question: can I only customize the file invoice.php?

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

  • Posts: 13201
  • Thank you received: 2322
10 years 1 month ago #175367

Hi,

Yes the PDF invoice plugin is independent from the views.
You can edit the content of the PDF file by editing the file "plugins/hikashop/attachinvoice/attachinvoice/invoice.php"

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

  • Posts: 23
  • Thank you received: 0
10 years 1 month ago #175712

Hi,
I created a category for options called "options" in the "Products" category.
My discount must apply on all products. So in the discount panel I set the restrictions to "Category: Products Including Sub categories".
But the discount is not apply on the options.
Is there a reason why? Or is it a bug?
Thanks

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

  • Posts: 13201
  • Thank you received: 2322
10 years 1 month ago #176206

Hi,

The discount should be applied on the options too, I just tried on my end and it's working fine.
On the product page, the option price is well discounted.

Please give us a screenshot of your categories tree and the settings of your discount.

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

  • Posts: 23
  • Thank you received: 0
10 years 1 month ago #176215

Hi,
Please see the screenshots.
I don't know why the discount is not applied on the option.
This is not a big deal as I solved this "issue" by adding 2 unpublished categories for 2 different discount amounts. So each product/options is either in "discount tranche A" or "discount tranche B". Now my discounts only apply to these categories and that works fine for options too.
Thanks any way.

Attachments:

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

  • Posts: 5
  • Thank you received: 0
  • Hikashop Business
9 years 8 months ago #195171

How to include "price before discount" in the order notification email (the mail received by admin)?

thanks

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

  • Posts: 5
  • Thank you received: 0
  • Hikashop Business
9 years 8 months ago #195189

How to include "price before discount" in the order notification email (the mail received by admin)?

thanks

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

  • Posts: 13201
  • Thank you received: 2322
9 years 8 months ago #195186

Hi,

The discount data is not stored in the order for each products.
When a product is added to the cart, we take the already discounted price, so it is not possible to get the desired information.

This will require to add a column in the order_product table in order to store all the discount informations per product.
Which one has been used, it's amount or percentage, etc.

But for now, sorry, it is not possible.

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

  • Posts: 6
  • Thank you received: 0
9 years 3 months ago #212041

Hello,
can you please tell me, what code/variables I have to insert in 'invoice.php' to show the coupon amount?

Thank you!
André

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 3 months ago #212062

Hi,

The coupon amount is already displayed in the invoice thanks to the code:
take.ms/DDdmR

So you can use $this->order->order_discount_price but that should not be necessary.

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

Time to create page: 0.107 seconds
Powered by Kunena Forum