Flashblocks Flash CMS
Welcome, Guest
Please Login or Register.    Lost Password?
Re:PAYPAL SHOPPING CART. (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: Re:PAYPAL SHOPPING CART.
#102
PAYPAL SHOPPING CART. 3 Years, 3 Months ago
By default the Flashblocks pc_paypal command is a "Buy Now" button which effectively only lets users purchase one item at a time - you can easily change this to become an "Add to Cart" button by changing the code in the pc_paypal movie clip. You only need to change the last two items (v.cmd and v.send).

function init() {
trace("pc_paypal");
p = param.split(",");
this._parent.placeHolder.onPress = function() {
v = new LoadVars();
v.business = p[0];
v.undefined_quantity = p[1];
v.item_name = p[2];
v.item_number = p[3];
v.amount = p[4];
v.upload="1";
v.shipping = p[5];
v.currency_code = p[6];
v.lc = p[7];
v.cmd = "_cart";
v.send("https://www.paypal.com/cart/add=","_blank", "POST");
};
}
init();


You can see it working in the online - www.sbirchmore.co.uk/flashblocks


-----------------------------------
Stephen Birchmore
www.sbirchmore.com
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#103
SM ()
Click here to see the profile of this user
Birthdate:
 
Re:PAYPAL SHOPPING CART. 3 Years, 3 Months ago
Good work Stephen! :cheer:
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop

Thank you