Discount coupon codes? - Page 5 -...

User 197858 Photo


Registered User
8 posts

Thank you for this Eric. I really appreciated it.

I had a look at the code, but wasn't sure where I was supposed to copy it to (will try finding some web-savvy local friends to help me one of these days :) )

In the meantime, I managed to find some info about how to sell Paypal Gift Vouchers. It's not exactly what I am after, but I've been able to make a workaround that allows me to trial the concept at least. (Basically I just used one of my SCCP to be a dedicated webpage just to sell Paypal gift vouchers).

Still hoping that a discount coupon option and/or prepaid voucher option might be available in next round of SCCP ;)

Thank you again for all your help :)
User 187934 Photo


Senior Advisor
20,200 posts

You would copy the HTML from the discount.html to your shops page.
The promo.php needs to be uploaded to your host.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 54342 Photo


Registered User
58 posts

Thanks Eric for the help. So I can remove the NO Shipping section? Also will that field reside under the present Check out with PayPal button? If so, all my client will need to do will to the code and it will adjust? How do I set the discout to 10 or 20% off?
User 187934 Photo


Senior Advisor
20,200 posts

The Discount code I provide is totally independent of your shop. It's basically an independent Pay Now button.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 54342 Photo


Registered User
58 posts

How do a set the discount? What if I want 20% off? Does the discount button reside below the check out with paypal button? can I change the code for the discount? If it is independent of the cart, how do I get customers to use it?

I am thinking that three years have passed since the first request was made for this to be integral to the cart, does it take that long to create?
User 187934 Photo


Senior Advisor
20,200 posts

Look for this line in the promo.php:)
$discountamount = 99; //this assigns the discount amount to 99.00 dollars if the PromoCode is entered correctly
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 54342 Photo


Registered User
58 posts

My client wants to utilize the discount that you wrote of Eric? I am at a loss as to how you set this up. If it is independent do I have to give the URL to this independant Pay Now Button? Will it not cause confusion if the customer has to go to a separate Pay Now page? Do you have a demo for me to see?

On another note, is there any movement at all to have the Shopping Cart Creator Pro it own discount app?
User 187934 Photo


Senior Advisor
20,200 posts

Customers get confused on sites all the time even when you have things to keep them there.:lol: The button as stated is an independent solution. I look at it as a temporary thing until CC can come up with a solution. After all discounts are typically temporary. Just make sure you put instructions for the button on your page and set the return url in your PayPal site to your shops location or a thank you page added to your shop. The promo.php has comments to make implementation easy. In the discount.html read each line of code and I think you'll be able to figure it out.:) I have only tested the code to make sure it worked and don't use it in any site.:)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 54342 Photo


Registered User
58 posts

Here are the input fields for the promo.php code:

<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="tester@paypal.com">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="My Item">
<input type="hidden" name="item_number" value="123">
<input type="hidden" name="amount" value="100.00">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="cn" value="Add special instructions to the seller">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="rm" value="1">
<input type="hidden" name="custom" value="1">
<input type="hidden" name="return" value="https://www.x.com">
<input type="hidden" name="cancel_return" value="https://www.x.com">
<input type="hidden" name="tax_rate" value="2.000">
<input type="hidden" name="shipping" value="10.00">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted">
<table>
<tr><td>Discount Code</td></tr><tr><td><input type="text" name="promoCode" maxlength="60"></td></tr>
</table>
<input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">

Do I put my client's email unstead of tester@paypal.com? I surmise that that the return value and the cancel value will be his site URL? There are no taxes so the tax_rate should be 0 and the shipping rate will be free on this discount so this will be 0 also?

There does seem to be a lot of work involved to set this up. When it goes live, it has to be error free especially with the potential of 400 plus customers using this discount.
User 187934 Photo


Senior Advisor
20,200 posts

Yup change all the inputs to meet your needs. including the email address.:) I would setup a PayPal Sandbox account and test it out.;)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.