Help with invoice layout

  • Posts: 74
  • Thank you received: 1
12 years 4 months ago #57965

I need some help please with your default invoice layout, to tidy it up.

I assume (in CSS) I can change font sizes & alter column width's (e.g. 'Price column' too narrow) & 'float:right' the amounts (e.g. to align the line prices with the totals).

  1. Are these contained within the 'template.css' file?
  2. Can I remove the line that says 'Payment fee £0.00' please?
  3. Where is the HTML code kept for generating invoices/shipping invoice, and can I edit these?
  4. I assume I have to get this layout right, as if I purchased your .pdf module it doesn't change the layout, only converts the invoice file to .pdf?

Also I don't seem to have an entry 'invoice' under 'order' in Display > Views, only 'Listing' & 'Show' which you have mentioned in answer to other questions?

Thanks.

Attachments:
Last edit: 12 years 4 months ago by Southcoaster.

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

  • Posts: 82819
  • Thank you received: 13366
  • MODERATOR
12 years 4 months ago #58017

You can edit the file 'invoice' under 'order' in Display > Views for that. It's not possible that you don't have it or you wouldn't be able to display invoices ;)

The CSS is inlined in there so you can directly edit it there.

If you want to remove the payment fee line, you can remove the code

<tr>
								<td colspan="2">
								</td>
								<td class="key">
									<label>
										<?php echo JText::_( 'HIKASHOP_PAYMENT' ); ?>
									</label>
								</td>
								<td>
									<?php echo $this->currencyHelper->format($this->order->order_payment_price,$this->order->order_currency_id); ?>
								</td>
							</tr>

The PDF plugin has to use another layout in order to render properly in the PDF. So it doesn't convert it.

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

  • Posts: 74
  • Thank you received: 1
12 years 3 months ago #58079

Hi Nicolas,

Found it.
I had filtered the Display > Views to be only the front-end, but found it on the back-end.

If the .pdf module uses another layout, does this mean I will have to redo all my invoice layout changes again if I purchase the module?

Many thanks.

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

  • Posts: 74
  • Thank you received: 1
12 years 3 months ago #58088

Hi Nicolas,

What am I doing wrong please?
I have edited the Display > Views > Order > Invoice for the backend Hagane template, saved it, refreshed the backend in Firefox, but still the invoice displayed in Views > Orders > Orders is the old/original layout.



Simple edit (changed 'Invoice title'):



Result (no change):



Many thanks.

Attachments:
Last edit: 12 years 3 months ago by Southcoaster.

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

  • Posts: 82819
  • Thank you received: 13366
  • MODERATOR
12 years 3 months ago #58138

Hi,

That's indeed the case for the PDF which is sent by email to the user. You will be able to edit the invoice file of the pdf plugin : plugins/hikashop/attachinvoice/attachinvoice/invoice.php

There is no Hagane template in the backend. The Hagane template is only for the frontend.
Please select the template you're using on your backend and it will work.

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

  • Posts: 74
  • Thank you received: 1
12 years 3 months ago #58304

Hi Nicolas,

I am using 'hathor' as the back-end template, and yes of course it worked.
However I am really confused:

If the 'hagane' template only has a front-end, why does it say it's got a back-end in the Display > Views and even has an 'invoice.php' under 'orders'.
Therefore how does one know which .php file one needs to edit?

It's a shame that the .pdf plug-in uses a different invoice file, as it's taken some time to get my invoice looking the way I want it.
Is the .pdf plug-in the only way to attach an invoice to emails sent to customers?

Many thanks.

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

  • Posts: 82819
  • Thank you received: 13366
  • MODERATOR
12 years 3 months ago #58381

We actually tried to use the default invoice for the PDF plugin. But the results were really not good because the HTML to PDF system is limited.
So we had to a separate invoice file which is adapted to the HTML to PDF system in order to have a nice looking PDF.
That plugin is the only way to attach invoice to emails.

There are hundreds of views in HikaShop.
We tried to name them as logically as possible. Also there are numerous threads on the forum about views edition. So you should already be able to find lots of them on your own. And if you can't find what view to edit, just ask us.

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

  • Posts: 74
  • Thank you received: 1
12 years 3 months ago #58392

Hi Nicolas,

Many thanks for the info.
Agreed, finding out which .php file to edit can be problematic, so I often make a simple change and see if it shows.

I am also having to edit some of the Joomla .php/css files (yes I know I shouldn't), but for example the page that allows the customer to edit his account details is rendered with a Joomla .php/css file not a Hikashop one.
(However I do make a note of which files, as I know they will get overwritten in any update).

Regards.

Last edit: 12 years 3 months ago by Southcoaster.

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

  • Posts: 82819
  • Thank you received: 13366
  • MODERATOR
12 years 3 months ago #58432

Note that you can override the CSS of joomla via your template CSS file and all of the views of Joomla can also be edited with a view override like in HikaShop. That would make it easy for you to update.
However, there is no interface in Joomla to do that easily:
docs.joomla.org/How_to_override_the_outp...rom_the_Joomla!_core

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

  • Posts: 74
  • Thank you received: 1
12 years 3 months ago #58456

Many thanks Nicolas,

Superb support as usual.

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

  • Posts: 4
  • Thank you received: 0
12 years 3 months ago #58470

Hi,

I'm trying to expand the price column as well, but I can't find the invoice.php file. I tried locating it in plugins/hikashop but no luck. I'm using the latest business version of Hikashop.

Attachments:

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

  • Posts: 82819
  • Thank you received: 13366
  • MODERATOR
12 years 3 months ago #58476

You can edit the file 'invoice' under 'order' in Display > Views for that.

In the folder plugins/hikashop/attachinvoice/ it's the invoice file for that plugin:
www.hikashop.com/en/component/hikashop/product/cid-18.html
which is not included in HikaShop by default.

The following user(s) said Thank You: Savickis

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

  • Posts: 4
  • Thank you received: 0
12 years 3 months ago #58615

I see, now I know why I couldn't find the file.

I have managed to change the invoice through the back end, thanks.

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

Time to create page: 0.105 seconds
Powered by Kunena Forum