Fix URL in Virtuemart Order Confirmation Email to Customer

Hi,

Many of the virtuemart users facing the following problem. I am showing a solution which may work for you. Its worked fine for me. This solution for the people who is using VM version 1.1.2.

Your Question:

==================

When I place an order on my Virtuemart shopping cart, the order confirmation email comes through fine, BUT the URL at the bottom of the mail where it says:

View the order by following the link below. Goes to View the order by following the link below.

(/?page=account.order_details&order_id=21)

The above url shows the code in the brackets.

obviously this URL is not the correct one for my shop to view the order details or to view the invoice to make payment which failed while making the payment.

- how do I correct this?

Yes. Please do the follwoing.

==================================

Go to your website FTP

Locate the following file in the FTP

components/com_virtuemart/themes/default/templates/order_emails/confirmation_email.tpl.php

Find the bellow line in the file confirmation_email.tpl.php (Before going to modify the file, please take a copy of this file and save in your local system)


if( VM_REGISTRATION_TYPE != 'NO_REGISTRATION' ) {
 $footer_html .= "<br /><a title=\"".$VM_LANG->_('PHPSHOP_CHECKOUT_EMAIL_SHOPPER_HEADER5')."\" href=\"$order_link\">"
 . $VM_LANG->_('PHPSHOP_CHECKOUT_EMAIL_SHOPPER_HEADER5')."</a>";
 }

Please change the above code as follows. Please note that you may need to change the domainname.com to your domain name.

if( VM_REGISTRATION_TYPE != ‘NO_REGISTRATION’ ) {
$footer_html .= “<br /><a title=\”".$VM_LANG->_(‘PHPSHOP_CHECKOUT_EMAIL_SHOPPER_HEADER5′).”\” href=\”http://www.domainname.com$order_link\”>”
. $VM_LANG->_(‘PHPSHOP_CHECKOUT_EMAIL_SHOPPER_HEADER5′).”</a>”;
}

Now save the file and order another product. Now you see the order confirmation mail with the link, its perfectly works.

Hope this helps you.

Twitter Digg Delicious Stumbleupon Technorati Facebook

No comments yet... Be the first to leave a reply!