Author Topic: view order link is not working in checkout email  (Read 6227 times)

mkto

  • Beginner
  • *
  • Posts: 5
view order link is not working in checkout email
« on: August 14, 2008, 23:35:04 pm »
After any client place and order, in the confirmation email on the footer says something like


Thank you for your patronage.

View the order by following the link below. " this is the link"


when i click on the link, the link is not fully complete, the link i get is

/categories?page=account.order_details&order_id=5

and i am missing my website url, the correct email link shoulbe

http://pescaboutique.com/categories?page=account.order_details&order_id=5


this problem happens also in the email that the owner of the site gets,

how can i fixed that?


generator

  • Beginner
  • *
  • Posts: 38
Re: view order link is not working in checkout email
« Reply #1 on: August 17, 2008, 13:30:18 pm »
I have the same issue. It is not resolving the complete URL back to the store.

SnakeDragon

  • Jr. Member
  • **
  • Posts: 61
Re: view order link is not working in checkout email
« Reply #2 on: September 07, 2008, 19:37:53 pm »
I'm having the same problem.

desd

  • Beginner
  • *
  • Posts: 3
Re: view order link is not working in checkout email
« Reply #3 on: September 17, 2008, 21:16:50 pm »
Hi,

I don't even get the link at all in my mails...  :(

What do I do to get this link to appear, or to remove the text that tells the user the link should be there...

Using J1.5.7, VM1.1.2.
Greetings,


Jeroen

sobers_2002

  • Beginner
  • *
  • Posts: 44
Re: view order link is not working in checkout email
« Reply #4 on: September 18, 2008, 08:47:57 am »
I am trying to get this to workout, hopefully by the end of the day I'll  post back the fix!

sobers_2002

  • Beginner
  • *
  • Posts: 44
Re: view order link is not working in checkout email
« Reply #5 on: September 20, 2008, 13:14:13 pm »
okay here it goes:

in ps_checkout.php at around line 2122 and change
Code: [Select]
'order_link' => $shopper_order_link, to
Code: [Select]
'order_link' => SECUREURL . $shopper_order_link,
seems like the SECUREURL parameter wasn't being read earlier. This works and should not create any kind of incompatibility as far as I understand.

Alex_09

  • Beginner
  • *
  • Posts: 7
Re: view order link is not working in checkout email
« Reply #6 on: October 22, 2008, 12:02:08 pm »
Hey

This fix didn't work for me :(

Alex

Damien

  • Beginner
  • *
  • Posts: 13
Re: view order link is not working in checkout email
« Reply #7 on: March 25, 2009, 05:46:11 am »
OK, I also found this to be a nightmare but I have fixed it.

I am posting here for others that may come across the same issue.

I found that the admin (vendor_link) was incorrect in that it showed the virtuemart admin in the home page template and for me the shopper (shopper_order) link was corrupted (i.e. removed the domain name) in the URl. The following code fixed the issue for me.


Code: [Select]
$shopper_order_link = $sess->url( SECUREURL ."index.php?page=account.order_details&order_id=$order_id", true, false );
//$vendor_order_link = $sess->url( SECUREURL ."index2.php?page=order.order_print&order_id=$order_id&pshop_mode=admin", true, false );

$shopper_order_link = SECUREURL . $shopper_order_link;
$vendor_order_link = SECUREURL ."/administrator/index.php?page=order.order_print&limitstart=0&keyword=&order_id=". $order_id ."&option=com_virtuemart";
Note: The first line of the above code is how I found it, but I placed the other code directly below it.

This was with Joomla! version 1.5.8 and Virtuemart version 1.1.3 stable.

ReJigged

  • Jr. Member
  • **
  • Posts: 82
Re: view order link is not working in checkout email
« Reply #8 on: August 10, 2009, 19:25:23 pm »
I found this after much searching.

The solution for me in case anyone else is seeing this was to make sure the 'SECUREURL' field was completed in the 'Security' tab of VM configuration.

Even if you are not using https this field still needs to be completed for the mails to contain the correct link.

Other wise, like mine the mails will contain the followin as a link without the domain url:

/index.php?page=account.order_details&order_id=3&option=com_virtuemart&Itemid=53