WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Auction Plugin
WP auctions Paypal link broken (2 posts)

  1. face2face
    Member
    Posted 1 year ago #

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    At the bottom of the page are examples of before and after code changes:

    In wp_admin.php

    $currencies = array(
              1 => array('code' => 'GBP', 'symbol' => '£'),

    Made 2x changes 'GBP' was 'GPB' and '£' was '&pound' which did not work on UK machines

    Also in wp_auctions.php this code to create link to Paypal does not work

    case "paypal":
               $payment  = "\n\nYou can pay for the auction by clicking on the link below:";
               $payment .= "\n\nhttps://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=".urlencode($paypal)."&item_name=".urlencode($rows->name)."&amount=".urlencode($rows->winning_price)."&shipping=".urlencode($rows->shipping_price)."&no_shipping=0&no_note=1&currency_code=".$currencycode."&lc=GB&bn=PP%2dBuyNowBF&charset=UTF%2d8";
               break;

    solution has been to include concatenation step - highlighted in red below. NOTE requires <space> + "."

    case "paypal":
               $payment  = "\n\nYou can pay for the auction by clicking on the link below:";
               $payment .= "\n\nhttps://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=".urlencode($paypal)."&item_name=".urlencode($rows->name)."&amount=".urlencode($rows->winning_price)."&shipping=".urlencode($rows->shipping_price)."&no_shipping=0&no_note=1& "."currency_code=".$currencycode."&lc=GB&bn=PP%2dBuyNowBF&charset=UTF%2d8";

    Example of Paypal:
    Before:

    Please follow this link
    You can pay for the auction by clicking on the link below:
    https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=benice_w%40yahoo.com&item_name=TEST+Abigail%3AIsaias&amount=70.00&shipping=0.00&no_shipping=0&no_note=1¤cy_code=GBP&lc=GB&bn=PP%2dBuyNowBF&charset=UTF%2d8 to pay for your pictures.

    After:

    Please follow this link
    You can pay for the auction by clicking on the link below:
    https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=benice_w%40yahoo.com&item_name=huw%27s+test+4&amount=75.00&shipping=0.00&no_shipping=0&no_note=1& currency_code=GBP&lc=GB&bn=PP%2dBuyNowBF&charset=UTF%2d8 to pay for your pictures.

    http://wordpress.org/extend/plugins/wp-auctions/

  2. face2face
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic