Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2009
    Location
    UK
    Posts
    737
    Plugin Contributions
    0

    Default Send customer a link on checkout

    This may be obvious but is there a built-in way to send, in the checkout email, a custom link related to the product(s) purchased?

    I'm looking at a customer buying a video - hosted elsewhere, with the order confirmation email sending a link to that video. Similar to the downloadable product attribute I guess, but without the need to include a file download. One way would I suppose, to put the link in a pdf and have the customer 'buy' that.
    Simon

  2. #2
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    1,552
    Plugin Contributions
    3

    Default Re: Send customer a link on checkout

    Quote Originally Posted by simon1066 View Post
    This may be obvious but is there a built-in way to send, in the checkout email, a custom link related to the product(s) purchased?

    I'm looking at a customer buying a video - hosted elsewhere, with the order confirmation email sending a link to that video. Similar to the downloadable product attribute I guess, but without the need to include a file download. One way would I suppose, to put the link in a pdf and have the customer 'buy' that.
    obvious? i do not know.... easy? for some... for others, probably not....

    the best way, IMO, is to use an observer. in the order class on line 1127, there is a hook known as an observer that would allow you to modify the email message just before sending it:

    PHP Code:
    $this->notify('NOTIFY_ORDER_INVOICE_CONTENT_READY_TO_SEND', array('zf_insert_id' => $zf_insert_id'text_email' => $email_order'html_email' => $html_msg), $email_order$html_msg); 
    you would then need to construct an observer to looks at the order and modifies the email accordingly based on the products in the order. this would be the cleanest way to do it as you do not modify base code.

    perhaps there are other ways to do it, and someone else might chime in, but that's how i would go about it.

    you can review this link for more info on it:

    https://www.zen-cart.com/showthread....in-order-class

    good luck,

    good luck.
    practice #socialdistancing #staysafe
    email is hard....
    help out with the green....

  3. #3
    Join Date
    Feb 2009
    Location
    UK
    Posts
    737
    Plugin Contributions
    0

    Default Re: Send customer a link on checkout

    Thank you, I'll take a look.
    Simon

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    9,543
    Plugin Contributions
    73

    Default Re: Send customer a link on checkout

    Remember, too, that some payment methods are automatic and some (like moneyorder) aren't. Make sure that the product's actually paid for before including that text in the email/order's history.

  5. #5
    Join Date
    Feb 2009
    Location
    UK
    Posts
    737
    Plugin Contributions
    0

    Default Re: Send customer a link on checkout

    Ah yes, that's a good point, I have both Paypal and Square set to authorize only - I might have to rethink those.
    Simon

  6. #6
    Join Date
    Jul 2012
    Posts
    15,004
    Plugin Contributions
    17

    Default Re: Send customer a link on checkout

    On perhaps another note, if this video is hosted elsewhere and a link were to be provided in an email (upon completion of payment), is the linked item controlled further still so that the email doesn't just get forwarded around and "everyone" is able to get to it?

    Basically is there some uniqueness between the purchase and the purchaser to limit access to the product to ideally just that individual or one time "use"?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...
    Upgraded to Zen Cart V1.5.3 from V1.5.1 from V1.5.0 from V1.3.9h

  7. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    7,067
    Plugin Contributions
    267

    Default Re: Send customer a link on checkout

    If you want to make it a link to a web page or some static content, you can always use the Order Message feature built in to Zen Cart 1.5.6.
    Just set the define EMAIL_ORDER_MESSAGE in includes/languages/english/email_extras.php.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.

 

 

Similar Threads

  1. Provide link to customer after successful checkout
    By karine in forum Managing Customers and Orders
    Replies: 1
    Last Post: 30 Jul 2014, 10:05 PM
  2. Send email with link to PDF (link expires)
    By mdawg0916 in forum General Questions
    Replies: 3
    Last Post: 4 Feb 2011, 01:15 PM
  3. No option to send customer emails.
    By annav in forum General Questions
    Replies: 4
    Last Post: 4 Aug 2010, 03:40 PM
  4. How do I send BCC to myself when I Send Email to Customer?
    By Zinfandel in forum General Questions
    Replies: 3
    Last Post: 20 Aug 2008, 01:55 PM
  5. How to send manual download link
    By mlm2005 in forum General Questions
    Replies: 3
    Last Post: 8 Jul 2006, 12:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR