Skip to main content

Free Shipping Displayed on The Invoice

More
13 years 2 months ago #119529 by davec
I would like the free shipping to be displayed on an invoice. Currently only chargeable shipping is shown under the tax rate. Can you please advise how this might be achieved and where the change can be applied.

Thanks

Dave B)

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

More
13 years 2 months ago #119627 by Xavier
Hi,

You can edit the view "order / invoice" and the shipping method is displayed in the following if condition:
Code:
if($this->order->order_shipping_price!=0 || ($this->config->get('price_with_tax') && !empty($this->order->order_shipping_tax))) {
So you can change this "if", or add an "else" to display something when the "$this->order->order_shipping_price" is equal to 0

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

More
13 years 2 months ago #119635 by davec
Thanks for the reply. I am sorry but which part requires the change and how?

Dave B)

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

More
13 years 2 months ago - 13 years 2 months ago #119685 by Mohamed Thelji
Hi,
I think that you should edit the invoice file of the order view of your back-end template and change this line :
Code:
if($this->order->order_shipping_price!=0 || ($this->config->get('price_with_tax') && !empty($this->order->order_shipping_tax))) {
By :
Code:
if($this->order->order_shipping_price>=0 || ($this->config->get('price_with_tax') && !empty($this->order->order_shipping_tax))) {
Then your free shipping will also show through you invoice.
Last edit: 13 years 2 months ago by Mohamed Thelji.
The following user(s) said Thank You: davec

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

More
13 years 2 months ago #119821 by davec
Thank you very much for your help Mohamed

Dave B)

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

More
13 years 2 months ago #120935 by davec
The client has also asked if this can be displayed on the confirmed email?

Dave B)

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

More
13 years 2 months ago #120999 by Eliot
Hi there,

I think you just have to remove the if condition in your email:
Code:
if(bccomp($data->order_shipping_price,0,5)){

and the closing "}" of course :)

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

More
13 years 2 months ago #121018 by davec
Thanks Eliot, all sorted.

One issue I now have is that I couldn't make the changes via the admin so had to download the files and manually change them there. If I access for instance ORDER_CREATION_NOTIFICATION_SUBJECT email I get a Forbidden error when I try to save or even cancel.

You don't have permission to access /test/administrator/index.php on this server.

Dave

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

More
13 years 2 months ago #121034 by Mohamed Thelji
Hi Dave,
I think that you'll maybe find your answer through this thread :

That's an apache error message which says that the file administrator/index.php cannot be accessed because of access rights. If you have that error message it means that there is a problem with your apache setup. Apparently, it happens sometimes with joomla and mod_security. Here is more information about the problem with some solutions to disable mod_security for the back end of joomla:
joomlacode.org/gf/project/joomla/tracker...tracker_item_id=8900

But you might also want to ask your hosting company about the problem.

hope this will help you a little.

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

More
13 years 2 months ago #121340 by davec
This is now resolved, thanks for your input. An adjustment was required on the server

Dave B)

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

Time to create page: 0.091 seconds
Powered by Kunena Forum