Blank Space on Invoice

  • Posts: 517
  • Thank you received: 8
  • Hikashop Business
2 years 2 months ago #344939

-- 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

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 2 months ago #344941

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:

<?php echo implode('<br/>',$this->str_split_unicode(strip_tags($product->order_product_name),50));
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.

The following user(s) said Thank You: mohairbears

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

Time to create page: 0.055 seconds
Powered by Kunena Forum