2 Replies - 289 Views - Last Post: 18 September 2012 - 07:27 PM Rate Topic: -----

#1 iheartbreakz  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 196
  • Joined: 27-April 11

stop number from adding

Posted 18 September 2012 - 07:19 PM

$queryString .= '&shipping_' . $count . '=' . "6.25";


im trying to forward my websites shopping cart to paypal.. the above code works fine but its adding the 6.25 togather depending on the number of items there are.. i want a fixed shipping cost of 6.25$

i have tried:
$queryString .= '&shipping_' '=' . "6.25";


Is This A Good Question/Topic? 0
  • +

Replies To: stop number from adding

#2 creativecoding  Icon User is offline

  • Hash != Encryption
  • member icon


Reputation: 926
  • View blog
  • Posts: 3,205
  • Joined: 19-January 10

Re: stop number from adding

Posted 18 September 2012 - 07:25 PM

My guess is that Paypal assumes you are charging shipping per item. Meaning one item is $6.25, two would be $12.50, and so on.

Obviously all you need to do now is make your line like so:
$queryString .= '&shipping_1=' . "6.25";


(this is assuming $count is a number)
Was This Post Helpful? 1
  • +
  • -

#3 iheartbreakz  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 196
  • Joined: 27-April 11

Re: stop number from adding

Posted 18 September 2012 - 07:27 PM

worked like a charm! thanks
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1