Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Need to Batch Edit Paypal Buttons
Old 10-06-2010, 10:33 AM Need to Batch Edit Paypal Buttons
PBScott's Avatar
Extreme Talker

Posts: 160
Name: Scott
Location: Canada
Trades: 1
Does anyone know an easy way to change the price on my Website Payment Standard, Add to Cart buttons without going into PayPal's button generator on their website?

I need to increase the price of 100s of my items by $2, and the shipping by $1, and to do that on the Paypal website will take me days.

Anyone know something I can add to the script for the buttons that are already on the webpage that will add some amount to the sale?

I am really surprised they don't just let me download the database of all my items, edit it and upload it again.

Thanks in advance.

If this isn't possible can anyone reccomend a free and easy to set up shopping cart that can create add to cart buttons with multiple dropdowns for me?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
PBScott is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-06-2010, 10:37 AM Re: Need to Batch Edit Paypal Buttons
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
If the buttons are scripted just change the script, if not just go and edit the code on your site.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-06-2010, 10:47 AM Re: Need to Batch Edit Paypal Buttons
PBScott's Avatar
Extreme Talker

Posts: 160
Name: Scott
Location: Canada
Trades: 1
This is an example of the code, I am not sure if it allows variable to be added like a price = (price + 1) or something, but I am pretty sure it does, I just can't find any info on it.

The option value prices are display text only.

Code:
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="8522175">
<table>
<tr><td><input type="hidden" name="on0" value="Sizes">Sizes</td></tr><tr><td><select name="os0">
    <option value="Medium">Medium $17.99</option>
    <option value="Large">Large $17.99</option>
    <option value="X-Large">X-Large $19.99</option>
</select> </td></tr>
<tr><td><input type="hidden" name="on1" value="Colors">Colors</td></tr><tr><td><select name="os1">
    <option value="White">White </option>
    <option value="Black">Black </option>
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="USD">
<input type="image" src="PBPictures/AddtoCart.jpg" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">

</form>
I just found this
https://cms.paypal.com/us/cgi-bin/?c...#id08A6HF080O3

but I am still scratching my head
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Last edited by PBScott; 10-06-2010 at 10:54 AM..
PBScott is offline
Reply With Quote
View Public Profile
 
Old 10-06-2010, 12:18 PM Re: Need to Batch Edit Paypal Buttons
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
the values in "os0" are the ones to change.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-07-2010, 08:34 AM Re: Need to Batch Edit Paypal Buttons
PBScott's Avatar
Extreme Talker

Posts: 160
Name: Scott
Location: Canada
Trades: 1
Quote:
Originally Posted by chrishirst View Post
the values in "os0" are the ones to change.
thanks for identifying the variable, anyone know how to make os0 = (os0 + 2) ? in a way that paypal will accept it ?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
PBScott is offline
Reply With Quote
View Public Profile
 
Old 10-07-2010, 08:39 AM Re: Need to Batch Edit Paypal Buttons
lynxus's Avatar
Awesomeo-Maximo

Posts: 1,618
Location: UK
Trades: 1
The problem you have here is the :
<input type="hidden" name="hosted_button_id" value="8522175">



This bit means it verifys against the button stored on paypals website ( when you generated it )

Changing values on the form can mean that value actually doesnt change when people visit the store ( is it uses the saved value on paypals system under that ID )

Sometimes you just need to generate a new button and paste the new code in / change the ID and prices.
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


lynxus is offline
Reply With Quote
View Public Profile Visit lynxus's homepage!
 
Old 10-07-2010, 09:01 AM Re: Need to Batch Edit Paypal Buttons
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
The "hosted_button_id" is only required if you are saving the button data in your paypal account and using the code "short form" on your site. (Save Payment Buttons).

You would normally send either the button ID OR the payment parameters.

https://cms.paypal.com/us/cgi-bin/?&...tml_formbasics
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Need to Batch Edit Paypal Buttons
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.69223 seconds with 12 queries