No customfields in to attached PDF invoice

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
7 years 9 months ago #262041

-- HikaShop version -- : 3.0.0
-- Joomla version -- : 3.6.5
-- PHP version -- : 7.0

Hi Hikashop,

At the moment the custom fields are not showing up on the attached PDF invoice.
But I think that's because I bought it 2 years ago. Do I have to buy it again or isn't it changed yet?
Do you have plans to make this happen?

I hope so and I don't mind to pay for it.
Maybe you could also add a option that you can change the header and the footer? ;-)


Kind regards,
Lumiga

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

  • Posts: 86
  • Thank you received: 9
  • Hikashop Business
7 years 9 months ago #262046

Hi,
With Hika 3.0 several options are DISABLED by default..... please look at the settings of each custom field. You now have options to include or exclude in DISPALY, in MAIL and in CART. On of the option under DISPALY is to include it in the invoice....


Kind regards,
Cornel
The following user(s) said Thank You: Philip

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

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
7 years 9 months ago #262056

Thanks! I am aware of it.
But beside of the normal invoice there is also a PDF attached invoice, and that one don't displays the custom fields.
see: www.hikashop.com/component/hikashop/product/cid-18.html


Kind regards,
Lumiga
Attachments:
Last edit: 7 years 9 months ago by Lumiga.

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

  • Posts: 82866
  • Thank you received: 13373
  • MODERATOR
7 years 9 months ago #262069

Hi,

We've had to update the plugin yes.
The plugin doesn't have a subscription system , so to get a new version would require purchasing it again.
I don't know what version of the plugin you have, but the modification that was necessary was basically changing the code:
display:field_item_invoice=1
to:
display:back_invoice=1
in the invoice.php file.
In older versions of the plugin, it was:
'frontcomp'
So with that information, you should be able to make it work with the latest version of HikaShop without purchasing it again.

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

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
7 years 9 months ago #262299

Hi Nicolas,

I bought the PDF invoice plugin this morning (Order C3N0H8A43) but I still don't see any custom fields in the PDF.
See PDF Attached

Hope you can help me.

Best Regards,
Lumiga


Kind regards,
Lumiga
Attachments:
Last edit: 7 years 9 months ago by Lumiga.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 9 months ago #262304

Hi,

If you have an override (a customization) for the invoice, that override will persist with the update.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
7 years 9 months ago #262375

Hi Jerome,

I have no customization done on this attached PDF invoice.

Kind regards,
Lumiga


Kind regards,
Lumiga

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

  • Posts: 82866
  • Thank you received: 13373
  • MODERATOR
7 years 9 months ago #262382

Hi,

Then, can you provide a FTP and backend access along with information to reproduce the problem and a link to this thread so that we can check on what's going on ?
www.hikashop.com/support/contact-us.html

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

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
7 years 9 months ago #262530

Hi Nicolas,

I have sent the super admin login and FTP through the contact form.

Kind regards,
Lumiga


Kind regards,
Lumiga

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
7 years 9 months ago #262545

Hello,

I have a look on your back end, and I see that you have some override view on the invoice view, maybe it's linked to your issue.
Can you save your custom view on your side, delete it by clicking on little trash icon and process some tests to see if that solve your issue.
Awaiting news from you.



Regards

Attachments:
Last edit: 7 years 9 months ago by Philip.

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

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
7 years 9 months ago #262621

Done! And unfortunately the invoices are still without custom fields.


Kind regards,
Lumiga

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

  • Posts: 82866
  • Thank you received: 13373
  • MODERATOR
7 years 9 months ago #262661

Hi,

I see what is the problem now. It's that for the whole time we thought that you were talking about custom fields of the table "item" which are supposed to display on the PDF invoice but might not due to the update (there were some bugs we fixed for that).
We thought that because we understood that you implied that it worked before the update to HikaShop 3.
But actually, looking at your order in your backend, I can see that you're talking about custom fields of the table product.
And for that table, yes the PDF invoice plugin doesn't support their display.

That's done on purpose actually.
The PDF conversion library is kinda hard to deal with and we have to specify the width for each column of the table. Adding new columns dynamically in the PDF would be quite problematic as we don't know which column needs more space and which can be ok with less. You might have some products with long names, or only products with show names, you might have prices like 156 0000 YEN, taking a lot of space, or small prices like 25€ with a small width necessary, and that's the same for the custom product fields.

So while you could add it as a customization of the invoice.php of the PDF invoice plugin, doing it by default in the PDF invoice plugin is not something we plan on doing for now. Maybe in the future, if we completely redo the plugin to use another PDF generating system which is better at dealing with the width of columns in a table.

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

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
7 years 9 months ago #263063

Hi Nicolas,

Oké thanks for your explanation.
We looked also into Invoice manager but also there it's not possible.

So we have to make another plan. ;-)

Hopefully in the future and maybe you don't have to put all the field into 1 line.
You could make 2 or even more lines for the information from one product.
In that case you don't have the problem with all the information.

Thank you for your beautiful product so far!
I like it more and more ;-)

Kind regards,
Lumiga


Kind regards,
Lumiga

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

  • Posts: 82866
  • Thank you received: 13373
  • MODERATOR
7 years 9 months ago #263064

Hi,

What you could do then is add such code:
if(!empty($product->XXX)) echo '<br/>XXX: '.$product->XXX;
where XXX is the column name of your custom field before the line:
if ($config->get('show_code')) {
in the invoice.php of the PDF invoice plugin.
That will add the custom product field XXX to the products in the PDF invoice below the name of the product.

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

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
7 years 9 months ago #263249

Thanks Nicolas,

I appreciate this very much, I'll give it a try.

Kind regards,
Lumiga


Kind regards,
Lumiga

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

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
7 years 9 months ago #263445

Hi Nicolas,

I have put the code into the invoice.php of the PDF invoice plugin.
But I can't get it work.

See my code:



As you can see I have a order with custom code Expiration date:


And I use the right column name:


And the code is at the right place, because when I use only the code:
echo '<br/>Expiration date: '.$product->product_expiration_date;
It shows the content on the right place. But there is no input from the database over there.


I hope you can tell me what's going wrong.

Kind regards,
Lumiga


Kind regards,
Lumiga
Attachments:

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

  • Posts: 82866
  • Thank you received: 13373
  • MODERATOR
7 years 9 months ago #263454

Hi,

Then try like that:

$productClass = hikashop_get('class.product');
$productData = $productClass->get($product->product_id);
if(!empty($productData->XXX)) echo '<br/>XXX: '.$productData->XXX;

The following user(s) said Thank You: Lumiga

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

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
7 years 8 months ago #264784

Thanks, this is working perfect now!


Kind regards,
Lumiga

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

Time to create page: 0.130 seconds
Powered by Kunena Forum