Invoice Appearance Changed After Upgrade To 4.3.5

Since the latest upgrade to 4.3.5, the appearance of the printable invoice has changed, although looking at the template file from before the change, I don't see any differences in the margins, padding, etc.

The change is that now there are spaces between product details. I.e.:

Product Name

(space)

Price in Points (this also wasn't on the printed invoice before and I don't see it on the template)

(space)

(space) (this one's double-spaced)

Option1

(space)

Option2

(space)

Option3

Before it was:

Product Name

Option1

Option2

Option3

How do I change it back? These spaces make the invoices unnecessarily long with too much white space and are printing on 2-3 sheets whereas before they'd print on one.

There are 2 invoice.tpl files. Make sure the second one has not changed or match

design/backend/mail/templates/orders/invoice.tpl

design/themes/name of theme/mail/templates/orders/invoice.tpl

Clear cache if changes are done

I did clear cache and it had no effect. I just checked the backend file and it's the same as well, no changes.

Must be coming from a different file. My invoice.tpl also changed after the upgrade do to missing fields I added before but I was able to edit and fixed.

Not sure what other file if could be. I also tried changing other attributes in the invoice.tpl file with strong changes that would be noticeable, but nothing changes even after clearing cache.

Manually delete the folders in /var/cache/ just to be sure.

I tried that after making changes and same result - absolutely nothing changes on the invoice. I even tried changing font sizes from 12 to 32 and no changes showed. (Note this is for the printable invoice from the admin that I'm referring to). I'm a little baffled.

You can also try the rebuild cache automatically. Turn it on and off in Designs - Themes to see if it helps.

Same result.

May be any 3rd party module overrides invoice.tpl file? Try to disable all 3rd party modules and check the result

I just disabled my 3rd party addons and tried again, same result. Very strange.

FYI I got this fixed with CS-Cart support. Here are the fixes:

1. Replace the following part of code:

{$oi.product|default:__("deleted_product") nofilter}
{hook name="orders:product_info"}
{if $oi.product_code}

{__("sku")}: {$oi.product_code}

{/if} {/hook} {if $oi.product_options}
{include file="common/options_info.tpl" product_options=$oi.product_options}{/if}

with this one:

{$oi.product|default:__("deleted_product") nofilter}
{hook name="orders:product_info"}
{if $oi.product_code}

{__("sku")}: {$oi.product_code}

{/if} {/hook} {if $oi.product_options}{include file="common/options_info.tpl" product_options=$oi.product_options}{/if}

in the invoice.tpl file located in the design/backend/mail/templates/orders directory of your CS-Cart installation.


2. Replace the following part of code:
{if $order_info.points_info.price}

{__("price_in_points")}: {$oi.extra.points_info.price}

{/if}

with this one:

{*{if $order_info.points_info.price}

{__("price_in_points")}: {$oi.extra.points_info.price}

{/if}*}

in the invoice_body.tpl file located in the design/backend/mail/templates/addons/reward_points/orders directory of your CS-Cart installation.


3. Replace the following part of code:
{$oi.product|default:__("deleted_product") nofilter}
{hook name="orders:product_info"}
{if $oi.product_code}

{__("sku")}: {$oi.product_code}

{/if} {/hook} {if $oi.product_options}
{include file="common/options_info.tpl" product_options=$oi.product_options}{/if}

with this one:

{$oi.product|default:__("deleted_product") nofilter}
{hook name="orders:product_info"}
{if $oi.product_code}

{__("sku")}: {$oi.product_code}

{/if} {/hook} {if $oi.product_options}{include file="common/options_info.tpl" product_options=$oi.product_options}{/if}

in the invoice.tpl file located in the design/themes/[CUSTOMER_ACTIVE_THEME]/mail/templates/orders directory of your CS-Cart installation, where [CUSTOMER_ACTIVE_THEME] is active theme of your storefront.


4. Replace the following part of code:
{if $order_info.points_info.price}

{__("price_in_points")}: {$oi.extra.points_info.price}

{/if}

with this one:

{*{if $order_info.points_info.price}

{__("price_in_points")}: {$oi.extra.points_info.price}

{/if}*}

in the invoice_body.tpl file located in the design/themes/[CUSTOMER_ACTIVE_THEME]/mail/templates/addons/reward_points/orders directory of your CS-Cart installation, where [CUSTOMER_ACTIVE_THEME] is active theme of your storefront.


5. Clear the template cache by removing the var/cache directory of your CS-Cart installation.

Hello,

I have a sdifferent issue with the invoices. I use bulk print for one or more invoices.

Before upgrading from 4.2.4 to 4.3.5, the margins were 1.25 inch all around. Immediately after the upgrade the side margins are still about the same, but the top margin is a whopping 2.5 inches and the bottom is about 1.5.

Now I get blank pages and what used to be a 1 page invoice is now two pages.

I checked the printer and the browsers and they did not change and are correct..

All I want to do is make 1 inch margins. Do not need any other changes.

Can someone please point me to the right location to correct this.

Thank you,

Bob

We failed to reproduce the issue on the clean installation. So it is required to examine it directly on your server.

Hello,

I have a sdifferent issue with the invoices. I use bulk print for one or more invoices.

Before upgrading from 4.2.4 to 4.3.5, the margins were 1.25 inch all around. Immediately after the upgrade the side margins are still about the same, but the top margin is a whopping 2.5 inches and the bottom is about 1.5.

Now I get blank pages and what used to be a 1 page invoice is now two pages.

I checked the printer and the browsers and they did not change and are correct..

All I want to do is make 1 inch margins. Do not need any other changes.

Can someone please point me to the right location to correct this.

Thank you,

Bob

I'm facing the same issue as you, did you figure it out?

Thanks

Joe

Joe,

I had eCom labs make the modification in dev. Looks much better and asked them to modify Production. I don't know what was done.

Now that I look more closely, the invoice itself looks ok (you can see the border of the invoice on the paper), its the way it fits on the 8 1/2" x 11" paper, with a 3.5" top margin.

Bob

Joe,

I had eCom labs make the modification in dev. Looks much better and asked them to modify Production. I don't know what was done.

Now that I look more closely, the invoice itself looks ok (you can see the border of the invoice on the paper), its the way it fits on the 8 1/2" x 11" paper, with a 3.5" top margin.

Bob

Thank you Bob, I will keep looking .