Skip to main content

show coupon code on invoice

More
10 years 2 months ago #245411 by bobhawthorne
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6

Is there a way to show the coupon code used on an order on the printed invoice?

Can't find any reference to this on the forum or Google.

Thanks :)

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

More
10 years 2 months ago #245426 by nicolas
Replied by nicolas on topic show coupon code on invoice
Hi,

Yes. Edit the file "invoice" of the view "order" via the menu Display>Views and add such code:
<?php echo $this->element->order_discount_code; ?>

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

More
10 years 2 months ago #245448 by bobhawthorne
Terrific - thank you! :)

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

More
10 years 2 months ago #245555 by bobhawthorne
This looked easy but I have found that no matter what I edit the Invoice view with, it doesn't appear?

I did a little test and deleted ALL the content of the invoice view but the invoice then still showed up which suggests it's not being edited or saved at all?

I assume it should affect all orders and not just those created after the mod?

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

More
10 years 2 months ago #245556 by nicolas
Replied by nicolas on topic show coupon code on invoice
Hi,

If you don't see any change when you edit the view file, it means that you're editing the view file for another template than the one you're using. Since it's in the backend, you need to edit the view file for your backend template ( "isis" I assume ).

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

More
10 years 2 months ago #245769 by bobhawthorne
No - that's not it. the backend is ISIS template and that's the one i edited although for proof I did edit the only other one on the list too.

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

More
10 years 2 months ago #245783 by nicolas
Replied by nicolas on topic show coupon code on invoice
Hi,

Then, you're not talking about editing the invoice that you can get via the "invoice" button in the backend when you edit an order, or you have the PDF invoice plugin overriding the default invoice.

Please provide a screenshot of the invoice and a screenshot of where you click to reach it so that we can tell you what to edit.

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

Time to create page: 0.198 seconds
Powered by Kunena Forum