VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: matthewgowan on September 13, 2012, 23:41:23 PM

Title: Receipt Format
Post by: matthewgowan on September 13, 2012, 23:41:23 PM
Using Joomla 2.5.6 and VM2.0.10

How do I remove the hyperlink generated for a product in a receipt?

Sigh. I have customers (depending on their screen widths) just can't fathom the difference between the two items.
I think the easiest thing to do is leave the download link alone (that's critical because it's what they purchased).

(http://graysystems.com/images/receipt.jpg)
Title: Re: Receipt Format
Post by: ivus on September 14, 2012, 06:02:18 AM
Hi matthewgowan,

You need to modify your template.

/components/com_virtuemart/views/orders/tmpl/details_items.php @ line 54.

Remove the ANCHOR tag that surrounds the product name


<a href="<?php echo $_link?>"><?php echo $item->order_item_name?></a>



to



<?php echo $item->order_item_name?>



Title: Re: Receipt Format
Post by: matthewgowan on September 14, 2012, 15:44:30 PM
I appreciate your tip, thank you very much for your time.

Unfortunately this edit (removing the anchor, etc) removed the product, the download link, shipping and payment info, etc.

(http://graysystems.com/images/afteredit.jpg)
Title: Re: Receipt Format
Post by: matthewgowan on September 17, 2012, 20:29:06 PM
May I ask for additional assistance on this question?
Title: Re: Receipt Format
Post by: ivus on September 17, 2012, 20:34:54 PM
Quote
Unfortunately this edit (removing the anchor, etc) removed the product, the download link, shipping and payment info, etc.

It shouldn't have. All that was removed was the anchor tag as you requested.