Web Design Forum: PayPal Shopping Cart Discounts - 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

PayPal Shopping Cart Discounts Rate Topic: -----

#1 User is offline   voodoochild529 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 15
  • Joined: 22-March 10
  • Reputation: 0
  • Gender:Male
  • Location:Gloucestershire
  • Experience:Intermediate
  • Area of Expertise:I'm Learning

Posted 23 March 2010 - 02:22 PM

Hey guys

I have a website currently in the making where I want to sell stocks and prints of my photos. For the sake of simplicity and cost I want to use a paypal shopping cart using the "website payments standard". I was just wondering if anyone here has any experience with the coding. Since postage is a hard thing to calculate I have included postage in the price of each item. When my buyer spends over £10 on a series of items, I wanted to offer them 20% discount as an insentive to buy more or spend atleast £10.

So basically, I want to offer 20% discount on all items in the shopping cart when the buyer spends over £10.

Can anyone help me please? :)
0

#2 User is offline   nellyshark 

  • Expert
  • PipPipPipPip
  • Group: Members
  • Posts: 531
  • Joined: 03-November 07
  • Reputation: 12
  • Gender:Male
  • Experience:Nothing
  • Area of Expertise:Entrepreneur

Posted 23 March 2010 - 03:14 PM

Might be absolutely no use to you but have you have had a look at opencart open source shopping system. AFAIK it supports multiple payment gateways including paypal and has Downloadable Products and Shipping Calculation and Discount Coupon System which might be suitable to a store like yours.

I am in no way affiliated with open cart but think it is an awesome script that is skinnable using css, its quite possible to get a niffy custom shop for a few hundred

Regards,
shark

View Postvoodoochild529, on 23 March 2010 - 02:22 PM, said:

Hey guys

I have a website currently in the making where I want to sell stocks and prints of my photos. For the sake of simplicity and cost I want to use a paypal shopping cart using the "website payments standard". I was just wondering if anyone here has any experience with the coding. Since postage is a hard thing to calculate I have included postage in the price of each item. When my buyer spends over £10 on a series of items, I wanted to offer them 20% discount as an insentive to buy more or spend atleast £10.

So basically, I want to offer 20% discount on all items in the shopping cart when the buyer spends over £10.

Can anyone help me please? :)

0

#3 User is offline   TopShopper 

  • Expert
  • PipPipPipPip
  • Group: Members
  • Posts: 878
  • Joined: 21-July 09
  • Reputation: 14
  • Gender:Male
  • Location:Cardiff, UK
  • Experience:Intermediate
  • Area of Expertise:Coder

Posted 23 March 2010 - 04:12 PM

Shameless plug I'm afraid.
See signature.:good:
Any questions? PM me.
0

#4 User is online   rallport 

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

Posted 23 March 2010 - 04:58 PM

LOL, such a simple question from the OP and all the usual buy my shopping cart plugs - total overkill for what the OP is asking.

@OP: if you read the IPN guide (have you even read this?) there a hidden field you can add called 'discount_rate_cart' - that applies a discount to the whole cart. There are other variables aswell that let you apply discounts to particular items in your cart to. E.g.g


$total = $cart->getTotal();

if ($total > 10.00) {
echo '<input type="hidden" name="discount_rate_cart" value="20" />'
}



This whole forum is turning into one big advertisment, I've all but given up reading the hosting forum as everysingle reply is advert for the company :)
0

#5 User is offline   voodoochild529 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 15
  • Joined: 22-March 10
  • Reputation: 0
  • Gender:Male
  • Location:Gloucestershire
  • Experience:Intermediate
  • Area of Expertise:I'm Learning

Posted 23 March 2010 - 05:21 PM

View Postrallport, on 23 March 2010 - 04:58 PM, said:

LOL, such a simple question from the OP and all the usual buy my shopping cart plugs - total overkill for what the OP is asking.

@OP: if you read the IPN guide (have you even read this?) there a hidden field you can add called 'discount_rate_cart' - that applies a discount to the whole cart. There are other variables aswell that let you apply discounts to particular items in your cart to. E.g.g


$total = $cart->getTotal();

if ($total > 10.00) {
echo '<input type="hidden" name="discount_rate_cart" value="20" />'
}



This whole forum is turning into one big advertisment :)



Yes, it does seem to be a bit of an advertisment. Selling stock photo's is only small income, so buying a cart seems a little pointless at this stage. Paying no set up fees and only per transaction is the way to go for me right now.

Anyway, thank you for your response. I have read the IPN guide and came across 'discount_rate_cart' but then below it on the guide it also mentioned 'discount_rate_x' which then confused me. I thought I had to use both codes somewhere for it to work. Sorry, I am new to all this and only have basic CSS and HTML skills. So 'discount_rate_cart' is all I need to add to my checkout! Brilliant, thanks rallport.
0

#6 User is offline   voodoochild529 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 15
  • Joined: 22-March 10
  • Reputation: 0
  • Gender:Male
  • Location:Gloucestershire
  • Experience:Intermediate
  • Area of Expertise:I'm Learning

Posted 23 March 2010 - 05:24 PM

Another quick question (if anyone has any idea), how would I apply worldwide postage for those outside of the UK? The problem is I will be applying it only to photo prints as I can send JPEG files for free via email.

Why can't things be simple? :unknw:
0

#7 User is online   rallport 

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

Posted 23 March 2010 - 05:40 PM

View Postvoodoochild529, on 23 March 2010 - 05:24 PM, said:

Another quick question (if anyone has any idea), how would I apply worldwide postage for those outside of the UK? The problem is I will be applying it only to photo prints as I can send JPEG files for free via email.

Why can't things be simple? :unknw:

Again, all the IPN variables are there for you too. There's one called mc_shipping that can apply a shipping amount to the whole cart. Like my example above, you can set this value on your website using some simple logic. If you know what IPN variables there (gained through reading the paypal docs, hiont, hint :) ) everything is simple tbh. Everything really would be a lot simpler if you had a quick read of https://cms.paypal.c...in_IPNReference
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