Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

[Solved] Front-End PDF Invoice Icon Missing
(1 viewing) (1) Guest
PDF Invoice generator and editor for Joomla and VirtueMart.

If your topic falls within one of the subcategories, then please post it directly there. Post to this parent category only if your question does not match any subcategory topic.
  • Page:
  • 1

TOPIC: [Solved] Front-End PDF Invoice Icon Missing

[Solved] Front-End PDF Invoice Icon Missing 12 years, 11 months ago #21871

Hi there,

I have previously integrated well on my Virtuemart front-end which allowing the customers to download the invoice through the Virtuemart's Order List.

Without updating anything, the PDF icon and the link to download the invoice gone missing, while the 4th column for the icon is there "empty".

I have checked that the PDF gif file is still there at the correct location.

Can you tell me any possibility that cause this automatic disappear of the front-end PDF Invoice icon?

Thanks in advance.
Last Edit: 12 years, 11 months ago by siowwf83.
The topic has been locked.

Re: Front-End PDF Invoice Icon Missing 12 years, 11 months ago #21873

I am sorry. It is due to the status has been changed to Shipped and the icon disappeared.

I have fixed it by adding another rule $db->f("order_status") == 'S' on ps_order.php.

It now looks as follow:-

$tmp_cell = ($db->f("order_status") == 'C' || $db->f("order_status") == 'S') ? '<a href="' .JRoute::_($pdf_url) . '" target="_blank"><img src="' . JURI::base() . 'images/stories/pdf.png" /><br />' . JText::_('Invoice') .' </a>' : '';


instead of the previous:-


$tmp_cell = ($db->f("order_status") == 'C') ? '<a href="' .JRoute::_($pdf_url) . '" target="_blank"><img src="' . JURI::base() . 'images/stories/pdf.png" /><br />' . JText::_('Invoice') .' </a>' : '';


Thank you!
The topic has been locked.
  • Page:
  • 1
User Login Empty