55 users online (1 members and 54 guests)  


  Results 1 to 5 of 5

Related

  1. how to close or remove a frame    Forum: Javascript Forum
    Replies: 16
  2. Replies: 0
  3. Setup shipping fees by continent    Forum: CGI Perl Forum
    Replies: 0
  4. Info for login script    Forum: Website Scripts Forum
    Replies: 4
  5. remove browser toolbars    Forum: HTML Forum
    Replies: 1
  1. #1
    mat's Avatar
    New User

    Status
    Offline
    Join Date
    Jul 2006
    Posts
    14

    Question Remove 'shipping info' from php script?

    Hi
    I'm trying to set-up my site for selling digital downloads using a custom cart (php script) for PayPal.
    The problem is that the PayPal checkout asks for your shipping address and talks about Postage+Packing, which is confusing if you just want to buy a download.
    I've emailed the developer 4 times over the past 2 weeks, but he never replies
    I have found this file... ppbasket.inc
    on my web site and it contains code to remove the P+P/ shipping options...

    /**
    * Shipping address. If set to "1," your customer will
    * not be asked for a shipping address. This is
    * optional; if omitted or set to "0," your customer will
    * be prompted to include a shipping address
    *
    * @param boolean $value the paypal 'no_shipping' var.
    *
    * @access public
    */

    function setNoShipping($flag)
    {
    $this->data["no_shipping"] = $flag ? 1 : 0;
    }



    How do I set the option to not display the shipping/P+P info in the PayPal checkout?

    Can I change the ' = $flag ? 1 : 0;'
    to simple ' = 0 ' , or would this break something?


    Or am I looking in the wrong file?

    Many thanks for any advice!



    Mat

  2. #2
    DeadMeatGF's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    381

    Re: Remove 'shipping info' from php script?

    Code:
    setNoShipping(1)
    should be sufficient

  3. #3
    mat's Avatar
    New User

    Status
    Offline
    Join Date
    Jul 2006
    Posts
    14

    Re: Remove 'shipping info' from php script?

    Quote Originally Posted by DeadMeatGF
    Code:
    setNoShipping(1)
    should be sufficient
    Great, thanks for the code!
    Cheers
    Mat

  4. #4
    pegboy's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Aug 2001
    Location
    Knoxville, TN
    Posts
    76

    Re: Remove 'shipping info' from php script?

    i'm curious about this script you found... i was going ton impliment a similar download function on one of my sites.

    where did you find it?
    robert koons

  5. #5
    DeadMeatGF's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    381

    Re: Remove 'shipping info' from php script?

    Quote Originally Posted by pegboy
    i'm curious about this script you found... i was going ton impliment a similar download function on one of my sites.

    where did you find it?
    It looks like a package that's included with the hosting to me.
    If you google "php paypal script" you should get a few good hits.



Tags for this Thread