Zen Cart Logo
Forums / General Questions / Is ZenCart capable of this?

Is ZenCart capable of this?

Views: 619

Results 1 to 4 of 4
30 Mar 2011, 8:46 PM
#1
mattg71 avatar

mattg71

New Zenner

Join Date:
Mar 2011
Posts:
2
Plugin Contributions:
0

Is ZenCart capable of this?

I have a question regarding the capabilities of ZenCart and setting up a product that is a redirect to another site. Basically my issue is this:

I have a downloadable product, and have created a redirect page to the company that provides this product. Everything is working great on my test site and when I place an order and click the download button, I get a pop up asking me to open a file and when I do it, I'm taken to the company's website as expected. However, the company that provides this product would rather me hit their API instead of the login/registration page where my redirect page goes. This means passing as parameters the customer email among other info that will be provided by the company.

My question is, how do I get the customer's email out of ZenCart and into the link? Is there someplace I can code and embed the link in one of the emails after the customer has paid? Security is not an issue as this product revolves around fantasy sports, and, upon deployment, will actually be a freebie if someone places an order, so someone else accessing the link won't really matter as the information will be tailored to a particular customer and pretty useless to anyone else.

30 Mar 2011, 11:04 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Is ZenCart capable of this?

You can edit the e-mail template files and the PHP files that feed them information. Some of what you want will already be available to these files, and you can query the database for anything else you need. If you don't know how to do this, you might want to hire a pro to write the code.

31 Mar 2011, 12:52 AM
#3
mattg71 avatar

mattg71

New Zenner

Join Date:
Mar 2011
Posts:
2
Plugin Contributions:
0

Re: Is ZenCart capable of this?

Thanks for the response. I'm actually doing this as part of an e-commerce class project, so don't want to pay anyone. I've read other threads that talk about changing up the email files, but am confused as to what file I actually need to change to get the link to the customer in one of the update emails (preferably shipping).

31 Mar 2011, 6:52 AM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Is ZenCart capable of this?

Okay, if it's for a class you really should be doing the work yourself:)
You may find the function to edit in /includes/classes/order.php.