- Posts: 608
- Thank you received: 13
Blank Space on Invoice
- mohairbears
-
Topic Author
- Away
Less
More
4 years 2 weeks ago #344939
by mohairbears
Blank Space on Invoice was created by mohairbears
-- HikaShop version -- : 4.6.1
-- Joomla version -- : 4.2.2.
-- PHP version -- : 8.0.3
-- Browser(s) name and version -- : chrome
Hi, Using J4 with new update to the invoice plugin. See attached, I have a lot of white space in the product section and its dropping the wording to another line? I cannot find a solution in the invoice.php?
Rgds
-- Joomla version -- : 4.2.2.
-- PHP version -- : 8.0.3
-- Browser(s) name and version -- : chrome
Hi, Using J4 with new update to the invoice plugin. See attached, I have a lot of white space in the product section and its dropping the wording to another line? I cannot find a solution in the invoice.php?
Rgds
Please Log in or Create an account to join the conversation.
4 years 2 weeks ago #344941
by nicolas
Replied by nicolas on topic Blank Space on Invoice
Hi,
We do that on purpose so that the text of the product name doesn't run over the other columns.
If you look in the invoice.php file you can see this line:
which cuts the product name every 50 characters.
That's a conservative value we used because depending on the font used and the characters used, the width of 50 characters would be longer.
So in your case, you can just increase that value from 50 to 70 and it should display fine.
We do that on purpose so that the text of the product name doesn't run over the other columns.
If you look in the invoice.php file you can see this line:
Code:
<?php echo implode('<br/>',$this->str_split_unicode(strip_tags($product->order_product_name),50));
That's a conservative value we used because depending on the font used and the characters used, the width of 50 characters would be longer.
So in your case, you can just increase that value from 50 to 70 and it should display fine.
The following user(s) said Thank You: mohairbears
Please Log in or Create an account to join the conversation.
Time to create page: 0.189 seconds