Free Shipping Displayed on The Invoice

  • Posts: 440
  • Thank you received: 20
  • Hikashop Essential
11 years 4 months ago #119529

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.

  • Posts: 13201
  • Thank you received: 2322
11 years 4 months ago #119627

Hi,

You can edit the view "order / invoice" and the shipping method is displayed in the following if condition:

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.

  • Posts: 440
  • Thank you received: 20
  • Hikashop Essential
11 years 4 months ago #119635

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.

  • Posts: 12953
  • Thank you received: 1778
11 years 4 months ago #119685

Hi,
I think that you should edit the invoice file of the order view of your back-end template and change this line :

if($this->order->order_shipping_price!=0 || ($this->config->get('price_with_tax') && !empty($this->order->order_shipping_tax))) {
By :
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: 11 years 4 months ago by Mohamed Thelji.
The following user(s) said Thank You: davec

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

  • Posts: 440
  • Thank you received: 20
  • Hikashop Essential
11 years 4 months ago #119821

Thank you very much for your help Mohamed

Dave B)

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

  • Posts: 440
  • Thank you received: 20
  • Hikashop Essential
11 years 3 months ago #120935

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.

  • Posts: 2334
  • Thank you received: 403
11 years 3 months ago #120999

Hi there,

I think you just have to remove the if condition in your email:

if(bccomp($data->order_shipping_price,0,5)){

and the closing "}" of course :)

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

  • Posts: 440
  • Thank you received: 20
  • Hikashop Essential
11 years 3 months ago #121018

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.

  • Posts: 12953
  • Thank you received: 1778
11 years 3 months ago #121034

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.

  • Posts: 440
  • Thank you received: 20
  • Hikashop Essential
11 years 3 months ago #121340

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.110 seconds
Powered by Kunena Forum