Web Design Forum: Adding PayPal discount/coupon code to site - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Adding PayPal discount/coupon code to site Rate Topic: -----

#1 User is offline   jamieclock 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 131
  • Joined: 22-February 08
  • Reputation: 0
  • Gender:Male
  • Location:Brackley, Northamptonshire
  • Experience:Intermediate
  • Area of Expertise:Designer

Posted 28 September 2011 - 09:21 AM

Hi, I've put a site together for a customer selling a selection of products online.
I'm pretty new to this and really could do with help on a couple of things if anyone can spare the time?

I've set it up so people can buy through her paypal account using a Dreamweaver plugin that generates the buttons/code etc for the site.
This all seams to be working fine but she's asked for a couple of things that I'm not sure how to do/

These are:

Can she give her friends a 10% discount code to enter when they buy through her website?
When I've done a test run through of buying something on the site, I can see an area where you can enter a discount code but I've no idea how to generate one. I've looked through the PayPal account and still had no luck... Does anyone have any ideas how I can do this?

The other thing...

She mentioned that if someone adds a product to their cart, then clicks continue shopping, then looks back through the site to buy something else... If they then decide not do buy that additional item and just proceed with what they first added to the cart, there's no way back to the shopping cart because that browser window closed to continue shopping. Is there a way to have a link on the webpages to 'view cart'??

Oh one last thing...

I've added all the products, descriptions, prices etc and it generates code similar to this...

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="bn" value="webassist.dreamweaver.4_5_0" />
<input type="hidden" name="business" value="email@jxxxx.co.uk" />
<input type="hidden" name="item_name" value="Liquid Soap" />
<input type="hidden" name="item_number" value="Jasmine" />
<input type="hidden" name="amount" value="7.00" />
<input type="hidden" name="currency_code" value="GBP" />
<input type="hidden" name="shipping" value="4.95" />
<input type="hidden" name="shipping2" value="00.00" />
<input type="hidden" name="handling" value="00.00" />
<input type="hidden" name="return" value="http://www.xxxx.co.uk/success.html" />
<input type="hidden" name="cancel_return" value="http://www.xxxx.co.uk/cancel.html" />
<input type="hidden" name="undefined_quantity" value="1" />
<input type="hidden" name="receiver_email" value="email@xxxx.co.uk" />
<input type="hidden" name="mrb" value="RXXX" />
<input type="hidden" name="pal" value="XXX" />
<input type="hidden" name="no_shipping" value="0" />
<input type="hidden" name="no_note" value="0" />
<input type="image" name="submit" src="images/buy-now.jpg" border="0" alt="Click here to purchase this product" />
</form>


Now you can see that it costs £4.95 for shipping. Is there an option to have optional shipping so that people who wish to collect the item locally, can opt out of the £4.95?

Thanks very much

This post has been edited by jamieclock: 28 September 2011 - 09:23 AM

0

#2 User is offline   jamieclock 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 131
  • Joined: 22-February 08
  • Reputation: 0
  • Gender:Male
  • Location:Brackley, Northamptonshire
  • Experience:Intermediate
  • Area of Expertise:Designer

Posted 28 September 2011 - 10:37 AM

Please ignore the request for the 'view cart' solution. I've managed to solve that.
Just really need help with the discount code and the option to collect and not pay postage.

Thank you
0

#3 User is offline   jamieclock 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 131
  • Joined: 22-February 08
  • Reputation: 0
  • Gender:Male
  • Location:Brackley, Northamptonshire
  • Experience:Intermediate
  • Area of Expertise:Designer

Posted 29 September 2011 - 10:06 AM

Please guys, I just need help now with setting 2 options for the customer to either pay £4.95 on top of their cart for shipping or choose not to add any shipping if they wish to collect...

This website needs to go live tomorrow as the client is promoting it at an exhibition!

Any help or advice would be gratefully received

Thanks
0

#4 User is offline   rallport 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 3,816
  • Joined: 03-January 10
  • Reputation: 266
  • Gender:Male
  • Location:England, UK
  • Experience:Advanced
  • Area of Expertise:Web Developer

Posted 01 October 2011 - 07:08 PM

Honestly, all this is in paypal ipn guide if you do a bit of reading :)

IIRC there is a hidden field you can set directly to give a discount. Alternatively, do a little more messy and recalulate the total send to paypal based upon the discount.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users