close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Printable Coupon

Thread began 5/06/2011 12:24 pm by mrobben375515 | Last modified 5/18/2011 10:08 am by Jason Byrnes | 2006 views | 6 replies |

mrobben375515

Printable Coupon

We're selling a "Groupon" savings collection and would like to have a printable coupon show up in the paypal receipt if the customer purchases the coupon product. Is there a simple php script that I could use like the one below?

<?php
if(isset($_SESSION['ProductID']))
$_SESSION['ProductID']=1;
echo "<img src="http://domainname.com/imagefilename" />";
else
$_SESSION['ProductID']!=1;
echo "";
?>

Sign in to reply to this post

Jason ByrnesWebAssist

you could add this code the email to show the image if product ID 1 is in the cart:

php:
<?php if($WA_Store_Cart->InCart("1") == true) echo("<img  src=\"http://domainname.com/imagefilename\" />"); ?>
Sign in to reply to this post

mrobben375515

Thanks Jason, I'm able to get it to work in the pp_checkout_success.php page, but it's not showing up in the email. I have attached the PayPal email if you want to take a look.

Thanks

Attached Files
pp_receipt.zip
Sign in to reply to this post

Jason ByrnesWebAssist

does just the image not show in the email? Or does all of the information not show in the email.

Most email programs wont show images by default unless you tell them to download the images.

Sign in to reply to this post

mrobben375515

Nevermind, my last test worked. Thanks

Sign in to reply to this post

mrobben375515

One last question, I want to put the quantity of coupons ordered on the printable coupon. I took this php string from the product section in the receipt, but it just puts the quantity for the first product in the cart. How do I specify it for a certain product?

<?php if($WA_Store_Cart->InCart("55") == true) echo $WA_Store_Cart->DisplayInfo("Quantity"); ?>

Sign in to reply to this post

Jason ByrnesWebAssist

use this code:

php:
<?php echo($WA_Store_Cart->GetInfo("55""Quantity")); ?>
Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...