News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

pdf invoice: product link on pdf invoice works but is scrambled

Started by Renata, August 10, 2013, 18:16:48 PM

Previous topic - Next topic

Renata

Dear all, i hope you can help me.

All works fine in the vm shop except for the link on the pdf invoice which customer receives after payment via iDEAL (Dutch online payment method)
The link seems to be crambled with the description of the product. How can i fix that?

An example you can find enclosed.

I hope to hear from you soon,

Kind regards
Renata

[attachment cleanup by admin]
Please visit my website https://responsivewebsitemaken.nl for all your graphic webdesign and Joomla websites.

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Renata

Quote from: Maxim Pishnyak on August 10, 2013, 19:14:36 PM
Edit template override for invoice.

Thanks for your reply. Could you pls be more specific on this?

Kind regards
Renata
Please visit my website https://responsivewebsitemaken.nl for all your graphic webdesign and Joomla websites.

Maxim Pishnyak

Quote from: Maxim Pishnyak on August 10, 2013, 19:14:36 PM
Edit template override(1) for invoice(2).
1 There are sticked threads about this in current forum section.
2 Invoice related stuff could be used from here com_virtuemart.2.0.22\components\com_virtuemart\views\invoice\
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Renata

Quote from: Maxim Pishnyak on August 10, 2013, 21:30:13 PM
Quote from: Maxim Pishnyak on August 10, 2013, 19:14:36 PM
Edit template override(1) for invoice(2).
1 There are sticked threads about this in current forum section.
2 Invoice related stuff could be used from here com_virtuemart.2.0.22\components\com_virtuemart\views\invoice\

Forgive me if i say the following:

1: there are NO threads about my specific problem. pls have a look at my attached pdf invoice. This error should not be standard in Virtuemart?? So this is not changing the looks of pdf invoices but solving a problem of pdf invoices of Virtuemart. I dont know exactly which script i have to change to solve the problem concerning the scrambled tekst on the invoice.
2: i know that, but i dont know the answer on point one. So please be more specific on this. You would be of great help!

Kind regards
Renata
Please visit my website https://responsivewebsitemaken.nl for all your graphic webdesign and Joomla websites.

Maxim Pishnyak

You could check these threads on forum:
Change size of vendor image in pdf invoice
Editing the VM Invoice PDF

Use them as tutorials how it's possible to customize invoice layout.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Renata

Dear Maxim Pishnyak

i presume you are not able to help me?

I hope someone else is kind enough to help me with my specific problem. I searched the entire forum and cannot find the solution for my problem.

f.y.i. i myself am an admin on a Joomla support forum in Holland and indeed if some topics are applicable to a certain problem i refer to that by giving an url. If there are no applicable topics i try to help directly and/or if i don't know the answer at all which is no shame, i hope someone else does.

Kind regards
Renata
Please visit my website https://responsivewebsitemaken.nl for all your graphic webdesign and Joomla websites.

Maxim Pishnyak

#7
Applicable threads were already given to you.

It's strange that you
Quote from: Renata on August 11, 2013, 11:48:50 AM
searched the entire forum and cannot find the solution for my problem.
I'll do search on forum for you and give you links to these two threads:
Change size of vendor image in pdf invoice
Editing the VM Invoice PDF
Why not say in plain words why these urls were not useful for you?

For example why this part of 2nd thread was not applicable for you
Quote from: jack19 on September 26, 2012, 19:38:39 PM
components\com_virtuemart\view\invoice\tmpl\invoice_items.php
?

Did you check that file? For example sku related part
<td align="left" width="5%"><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_SKU'?></strong></td>
?

Primary moderator goal is to guide others through these parts:
to search successfully
to read successfully
to dig code successfully

What of these parts you don't like to do?
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

Renata

Quote from: Maxim Pishnyak on August 11, 2013, 17:54:22 PM
Applicable threads were already given to you.

It's strange that you
Quote from: Renata on August 11, 2013, 11:48:50 AM
searched the entire forum and cannot find the solution for my problem.
I'll do search on forum for you and give you links to these two threads:
Change size of vendor image in pdf invoice  Now you give me a link, before NOT
Editing the VM Invoice PDF
Why not say in plain words why these urls were not useful for you? You did not say in plain words how these threads were usefull for me? They have another subject as my problem! And as i said before you gave me no working links! I search using the title of your link, but no search results

For example why this part of 2nd thread was not applicable for you
Quote from: jack19 on September 26, 2012, 19:38:39 PM
components\com_virtuemart\view\invoice\tmpl\invoice_items.php Why are you presuming i did not checked this??? I did! But again i dont know where to look for in that file as i do not know what causes this error. I ask you t4 for help!!!!
?

Did you checked that file? For example sku related part No, as you did not tell me this causes the problem of the scrambled tekst, thanks
<td align="left" width="5%"><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_SKU'?></strong></td>
?

Primary moderator goal is to guide others through these parts:
to search successfully
to read successfully
to dig code successfully

What of these parts you don't like to do?
I like all of them, but i mis one: to really help if TS doesnt know. what exactly have you done for me to help? Pls read the red above.

As my server is down now, i will look into it tonight. Pls read the red above
Regards
Renata
Please visit my website https://responsivewebsitemaken.nl for all your graphic webdesign and Joomla websites.

Maxim Pishnyak

I give up. I will not give you any chance in future to report my posts.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

jenkinhill

I don't see this error, where the product size/attribute and product name are printed together, but a possible fix for those who see it is to set up an override for components/com_virtuemart/views/invoice/tmpl/invoice_items.php

Locate this part of the table:

<td align="left" colspan="2" >
            <a href="<?php echo $product_link; ?>"><?php echo $item->order_item_name; ?></a>
            <?php
//             vmdebug('$item',$item);
               if (!empty($item->product_attribute)) {
                     if(!class_exists('VirtueMartModelCustomfields'))require(JPATH_VM_ADMINISTRATOR.DS.'models'.DS.'customfields.php');
                     $product_attribute = VirtueMartModelCustomfields::CustomsFieldOrderDisplay($item,'FE');
                  echo $product_attribute;
               }
            ?>
         </td>

Add a <br /> as highlighted below:

<td align="left" colspan="2" >
            <a href="<?php echo $product_link; ?>"><?php echo $item->order_item_name; ?></a><br />
            <?php
//             vmdebug('$item',$item);
               if (!empty($item->product_attribute)) {
                     if(!class_exists('VirtueMartModelCustomfields'))require(JPATH_VM_ADMINISTRATOR.DS.'models'.DS.'customfields.php');
                     $product_attribute = VirtueMartModelCustomfields::CustomsFieldOrderDisplay($item,'FE');
                  echo $product_attribute;
               }
            ?>
         </td>


I really don't know if this will work, but I cannot test as I don't have the problem!
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Renata

Dear jenkinhill

Thank you for your help! Your solution solved my problem. The PDF invoice is now in good order.

f.y.i. i use same VM version as you, and latest joomla 2.5.14. I don't understand why i have this problem. Anyway problem solved. Thanks!

edit: now i can read the tekst: the product-link and custom field were printed together. Perheps this info is of any use for you?

Kind regards
Renata
Please visit my website https://responsivewebsitemaken.nl for all your graphic webdesign and Joomla websites.