HTML - Help Needed With Shop Cart Using Paypal
with a software i created a webshop but the basket system goes to their own paysystem an i want to sent it to paypal.
I attached the original html form. I found out that the function post_bsk does the job. function post_bsk(pf){ if(core.active_servers.length==0&&!tf.isSafari){setTimeout('post_bsk(d.forms["'+pf.name+'"])',100);return;} var cgis=core.active_servers; if(!cgis||cgis.length==0)cgis=['www.globecharge.com/webshop/']; pf.basket.value = tf.xml_basket; pf.regions.value= tf.xml_regions; pf.action='https://'+cgis[0]+'shoporder.cgi'; if(tf.isSafari)setTimeout('d.forms["'+pf.name+'"].submit()',500); else pf.submit(); if(window.scrollTo)window.scrollTo(0,0); var gwcontent=gl('Content'),gwlen=gwcontent.childNodes.length; for(var n=0;n<gwlen;++n){ var el=gwcontent.childNodes[n]; if(el.id=='gwframe'||!el.style)continue; el.style.display='none'; } gl('gwframe').style.display='block'; if(tf.isSafari)gl('gwframe').style.opacity=1;// Safari 3.1.2 doesn't show text when opacity is lowered. AIT type of themes will be affected by this. tf.mfh('WebSiteContent'); } Can you help me please? Thank you Similar TutorialsVery new to HTML. I have a basic "Add To Cart" button created thru PayPal's website payments standard. I want to add a 20% discount cart wide for "New Customers Only" at checkout. I have checked add variables and added discount_amount_cart=20. Still doesn't work. I have read that PayPal will not allow discounts in their shopping carts because they are not the owner of said discount. True or False?? Is this possible to do thru PayPal w/out using a third party. If not, why do they give us an option to add advanced variables. Hopefully I'm on the right track here. All help is greatly appreciated!!! This is what I have so far. The original button was set up as a "Computer Setup" service costing $60 usd, small button, encrypted, no drop down or text menus. Original 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="G7LXUWQLSJPBY"> <input type="image" src="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/btn/btn_cart_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/scr/pixel.gif" width="1" height="1"> </form> What I have created so far. Still doesn't work. <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="G7LXUWQLSJPBY"> <input type="hidden" name="add" value="1"> <input type="hidden" name="cmd" value="discount_amount_cart"> <input type="hidden" name="item_name" value="New Customer Discount"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="discount_amount_cart" value="20"> <input type="image" src="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/btn/btn_cart_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/scr/pixel.gif" width="1" height="1"> </form> I am not sure where to post this but here goes. I am trying to find a way to use javascript (I no nothing about this) to pass to our PayPal shopping cart the right shipping and handling charge. I was told that javascript would be able to help? We are selling 3 things that all have a different price and different shipping charge. The shopping cart works if someone purchases just one item but if someone purchases multiple different items we are charging too much shipping and handling. What I would like to do is take the maximum charge of the items chosen and only charge that amount. One problem I may have is different sizes of the same item seem to take on it's own shipping and handling charge for each size. Here is an extract of my PayPal Shopping Cart html.... First Item For Sale: <input type="hidden" name="add" value="1"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="business" value="abc@123.com"> <input type="hidden" name="item_name" value="2008 Calendar"> <input type="hidden" name="amount" value="16.95"> <input type="hidden" name="shipping" value="10.00"> <input type="hidden" name="shipping2" value="2.00"> <input type="hidden" name="tax" value="1.02"><!-- this is 6% tax GST + no PST on $16.95 --> <input type="hidden" name="buyer_credit_promo_code" value=""> <input type="hidden" name="buyer_credit_product_category" value=""> <input type="hidden" name="buyer_credit_shipping_method" value=""> <input type="hidden" name="buyer_credit_user_address_change" value=""> <input type="hidden" name="no_shipping" value="0"> <input type="hidden" name="no_note" value="1"> <input type="hidden" name="currency_code" value="CAD"> <input type="hidden" name="lc" value="CA"> <input type="hidden" name="bn" value="PP-ShopCartBF"> Second Item For Sale: <input type="hidden" name="add" value="1"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="business" value="abc@123.com"> <input type="hidden" name="item_name" value="OPC Magazine - Issue # 2"> <input type="hidden" name="amount" value="9.99"> <input type="hidden" name="shipping" value="2.00"> <input type="hidden" name="shipping2" value="1.00"> <input type="hidden" name="tax" value="0.00"><!-- no taxes on magazines --> <input type="hidden" name="buyer_credit_promo_code" value=""> <input type="hidden" name="buyer_credit_product_category" value=""> <input type="hidden" name="buyer_credit_shipping_method" value=""> <input type="hidden" name="buyer_credit_user_address_change" value=""> <input type="hidden" name="no_shipping" value="0"> <input type="hidden" name="no_note" value="1"> <input type="hidden" name="currency_code" value="CAD"> <input type="hidden" name="lc" value="CA"> <input type="hidden" name="bn" value="PP-ShopCartBF"> Third Item For Sale - Contains 4 different sizes to choose from: <td><input type="hidden" name="on0" value="Size"> <strong>Size</strong></td> <td><select name="os0"> <option value="Medium">(M) Medium <option value="Large">(L) Large <option value="Extra Large">(XL) Extra Large <option value="Extra Extra Large">(XXL) Extra Extra Large</select> </td> </tr> <tr> <td><input type="hidden" name="on1" value="Colour"> <strong>Colour </strong></td> <td><select name="os1"> <option value="Navy Blue">Navy Blue</select> </td> </tr> </table> <p> <input type="image" src="https://www.paypal.com//en_US/i/btn/sc-but-03.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"> <input type="hidden" name="add" value="1"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="business" value="abc@123.com"> <input type="hidden" name="item_name" value="OPC Golf Shirt"> <input type="hidden" name="amount" value="19.99"> <input type="hidden" name="shipping" value="11.00"> <input type="hidden" name="shipping2" value="5.00"> <input type="hidden" name="tax" value="2.80"><!-- this is 6% tax GST + 8% PST on $19.99 --> <input type="hidden" name="buyer_credit_promo_code" value=""> <input type="hidden" name="buyer_credit_product_category" value=""> <input type="hidden" name="buyer_credit_shipping_method" value=""> <input type="hidden" name="buyer_credit_user_address_change" value=""> <input type="hidden" name="no_shipping" value="0"> <input type="hidden" name="return" value="http://www.outdoorphotographycanada.com/storethankyou.html"> <input type="hidden" name="no_note" value="1"> <input type="hidden" name="currency_code" value="CAD"> <input type="hidden" name="lc" value="CA"> <input type="hidden" name="bn" value="PP-ShopCartBF"> Thank you in advance for any assistance you can provide. Dave. I have a paypal shopping cart here. However the first add to shopping cart button under the text Sparky and the Magic Garden, does not work. I've isolated the problem to this: There is no form tag around this button where as in the other buttons the form tag is there. I spotted this by looking at it in firebug. However the strange thing is is that when I look at the code in the view source then the first button is surrounded by a form tag. as in all the other buttons. This site needs to go live this Monday so if anyone could offer some advice I would be extremely grateful. I'm building a website to sell online and I want my product page to work in the same way as this one: http://www.cougar-extreme.co.uk/comp...ries_ddr3.html I can see that they are using javascript there, but I want to ask if that is the best or only way to do that. Mainly, can anyone can point me in the direction of how to do it? I am using a flash intro for the site, so I can assume most people on the site viewing it properly will have flash installed. I have a pretty good grasp of HTML and CSS, but very little experience doing anything similar to this and I'd appreciate any help or advice given. Thanks! kadeshiseraph just wondering if anyone knows how to make - where to get a paypal widget, this is for a Clan so its a non profit thing, was hoping to have a per month total it costs, then a bar showing how much has been put in and a donate button i found one he http://bfm.enjin.com/ thanks in advance for your help Hey all Just wondering if it is all possible to change paypals 'buy now' box code. So that it does something I want before heading off to paypal. Like this Code: <form action="save.php" method="post"> <textarea name="content"></textarea> <br> <input type="submit" value="OK"> </form> Hey All! I didnt know which forum to post this into but i thought i would try here first!! Firstly, i am pretty new to website design, secondly i need to work out how twork with paypal on a site i have created! I have a site that sells online raffle tickets for several competiitions and i need these sales to be done online via paypal!! How do i go about doing this?! Does anyone know any good tutorial sites that will help? Any information will be really appreciated! Many thanks Matt As this is more than likely a v. dumb question... (I've possibly asked dumber before) Apologies but... Does anyone know if you can amend to "add to cart buttons" from paypal? Every time I amend to <form> code my cart goes on the fritz. All I really want to do is change it from the .gif to a hyperlink... thx in advance... hi, i have written this form however when i recieve emails from paypal reguarding the order, certain options and fields the user inputted are not appearing. I know they did not just leave them blank because I called them back and asked them. any ideas? hopefully you guys can help me as soon as possible because it sucks calling all these people back and trying to figure out what they want. thanks so much! here's the coded form: the hidden select is on top and appears when a user selects custom design... HTML Code: <a style="display:none" id="selectHidden"> <select name="on2" style="background-color:maroon; font:12px verdana; color:white;"> <option value="none">Select One</option> <option value="white">White</option> <option value="maroon">Maroon</option> <option value="black">Black</option> <option value="heather">Heather Grey</option> </select> </a> <form action="https://www.paypal.com/us/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="collegiateproductions@gmail.com"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="item_name" value="Dress"> <input type="hidden" name="amount" value="40.00"> <table> <tr> <td id="leftcell"><a href="http://www.collegedresses.com/frame.html" target="_blank">Frame:</a></td> <td id="rightcell"> <select name="on0" id="select"> <option value="none">Select One</option> <option value="aframe">A-Frame</option> <option value="strait">Strait Frame</option> </select> </td> </tr> <tr> <td id="leftcell"> <a href="http://www.collegedresses.com/custom.html" target="_blank">Custom Design:</a> </td> <td id="rightcell"> <select onchange="newOptions(this.id)" name="on1" id="on1" style="background-color:maroon; font:12px verdana; color:white;"> <option value="none">Select One</option> <option value="custom">Custom Design</option> <option value="supplied">You Supply Shirt</option> </select><br /> <a id="newSelect"></a> </td> </tr> <tr> <td id="leftcell"><a href="http://www.collegedresses.com/topdesign.html" target="_blank">Design of Top: </td> <td id="rightcell"> <select name="on3" id="select"> <option value="none">Select One</option> <option value="halter">Halter Top</option> <option value="tube">Tube Top</option> <option value="doublestrap">Double Strap</option> <option value="tshirt">T-shirt Top</option> </select> </td> </tr> <tr> <td id="leftcell">Bottom Color: </td> <td id="rightcell"> <select name="on4" id="select"> <option value="bottomwhite">White</option> <option value="bottommaroon">Maroon</option> <option value="bottomblack">Black</option> <option value="bottomheather">Heather Grey</option> </select> </td> </tr> </table> <br /> <strong>Options - All options are free of charge!</strong> <br /> <a href="http://www.collegedresses.com/options.html" target="_blank">Middle Strap:</a> <input type="checkbox" name="on5" value="Middle Strap"> <a href="http://www.collegedresses.com/options.html" target="_blank">Middle Band:</a> <input type="checkbox" name="on6" value="Middle Band"> <a href="http://www.collegedresses.com/options.html" target="_blank">T-shirt Pockets:</a> <input type="checkbox" name="on7" value="T-shirt Pockets">> <a href="http://www.collegedresses.com/options.html" target="_blank">Scrunchy Pockets:</a> <input type="checkbox" name="on8" value="Scrunchy Pockets"> <a href="http://www.collegedresses.com/options.html" target="_blank">Side Pockets:</a> <input type="checkbox" name="on9" value="Side Pockets"> <a href="http://www.collegedresses.com/options.html" target="_blank">Bottom Band:</a> <input type="checkbox" name="on10" value="Bottom Band"> <a href="http://www.collegedresses.com/options.html" target="_blank">Bottom Lace:</a> <input type="checkbox" name="on11" value="Bottom Lace"> <br /> <br /> <strong><a href="http://www.collegedresses.com/measurements.html" target="_blank">Measurements</a></strong> <br /> <table> <tr> <td id="leftcell">Bust:</td> <td id="rightcell"> <select name="on11" id="select"> <option value="none">Select One</option> <option value="bustxs">XS (28-30)</option> <option value="busts">S (31-33)</option> <option value="bustm">M (34-37)</option> <option value="bustl">L (38-40)</option> <option value="bustxl">XL (41-43)</option> </select> </select> </td> </tr> <tr> <td id="leftcell">Waist/Hip: </td> <td id="rightcell"> <select name="on12" id="select"> <option value="none">Select One</option> <option value="waistxs">XS (21-23/30-32)</option> <option value="waists">S (24-26/33-35)</option> <option value="waistm">M (27-30/36-39)</option> <option value="waistl">L (31-32/40-42)</option> <option value="waistxl">XL (33-36/43-46)</option> </select> </td> </tr> <tr> <td id="leftcell">Skirt Length: </td> <td id="rightcell"> <select name="on13" id="select"> <option value="none">Select One</option> <option value="skirtxs">XS (21)</option> <option value="skirts">S (22)</option> <option value="skirtm">M (23)</option> <option value="skirtl">L (24)</option> <option value="skirtxl">XL (25)</option> <option value="skirtother">Other (specify in Comments)</option> </select> </td> </tr> <tr> <td id="leftcell" style="vertical-align:top;">Comment Box: <br />(Please use comment <br />box to specify <br />custom design <br />or give extra <br />instructions.) </td> <td id="rightcell"> <input type="textbox" style="background-color:maroon; font:12px verdana; color:white; font-weight:bold; width:200px; height:200px;" /> </td> </tr> </table> <br /> <br /> <strong>Remember, alterations are FREE!</strong> <br /> <br /> <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="htts://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"> </form> I REALLY appreciate all the help guys. Hey guys.. im building a website. www.lucymason.com.au and on the site i have a button that links to a paypal page that lets the user buy her CD. The page was fine until i embeded the code paypal gave me for linking the button. after i done this my page formatting when crazy! well its fine in firefox but not in safari and explorer. If any one has any ideas, im really desperate! thanks! Hey, I have a paypal form that I want to pop up in a new window when the button link is clicked on... here's the beginning of my code: <div id="layer4" style="width:200px; height:40px; position:absolute; left:109px; top:275px; z-index:1;"> <p align="center"><form method="post" action="https://www.paypal.com/cgi-bin/webscr"> any ideas???????????? Morning everyone, hope you can help me! I made a website for a band a few months ago, 1st attempt at this sort of site. The problem i am having a few of the customers, have emailed the band saying the paypal buttons are not working on the merchandise page. So i checked this on my home PC that runs Windows XP, the buttons were all working fine. I was on my laptop which runs Vista and got an email saying the buttons wasn't working, so i checked again on the laptop and none of the buttons were working. Can anyone shed any light on this? Thankyou Link to the Website :- www.****neyrejects.net Very new to html but i've downloaded several Paypal buttons and put the code into my web page. My problem is i want the buttons to run along the page side by side horizontally with spaces between them but they are running top to bottom. I have tried different ways to try and solve the problem but none have worked. Can anyone tell me what i have to do? thanks hi guys, i need some help with my paypal form. I've added option fields and checkboxes but i need to add areas to insert measurements. (basically text boxes). I know how to do this with HTML but my question is: if i put these fields in, will paypal process them and then send me a copy of the orderform so i know what measurements to use? can i access the customers completed form once it is sent through paypal? or will i need to use a php code or something? (if i do does anyone know where i can find the code, maybe have you guys help me write it?) any help is MUCH appreciated, and i could use it asap. thanks a bunch. here's the order form: http://www.collegedresses.com/order.html Ideally I'd prefer to have this without php, but would it be possible to have some forms like; (each form is a select form, multiple option) Form 1 - Select Course Form 2 - Available Course Dates (this is linked through each course) Price: - Course Price Paypal Button - Pay Now So when they pay with paypal, the data from the two forms and price are in paypal also, I think I could setup the paypal button to have the price anyway, but its linking the two forms togethe that I am having issues with, any answers? Hi guys, I am new here and i'm dutch so sorry for my bad language I have a question and i hope u guys can help me with it. I have searched for a script that can show the money we have from donations in a little counter on a website. It can be html or php, i searched for ages for this script and i can't find anywere!! Thnx alot for the help! Greetz, Marlboro / Bouwe I want to create a simple one page html site where I can collect money from a person through paypal in exchange I would send them brand new factory sealed items I already got the PayPal buttons needed but how do i link the pictures of items to the buttons? The goal is for the person to send me money as a gift so PayPal does not charge me any help i would be greatful Hello Everyone - I'm a complete amateur, so please bear with me. I'm just trying to center a paypal button (with drop down menu) on my mom's webpage. Here's the code: <form 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="T3SA8HMSXQEFY"> <table> <tr><td><input type="hidden" name="on0" value="Quantity">Quantity</td></tr><tr><td><select name="os0"> <option value="5 Pack">5 Pack $14.00</option> <option value="10 Pack">10 Pack $25.00</option> <option value="Each">Each $4.00</option> </select> </td></tr> </table> <input type="hidden" name="currency_code" value="USD"> <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"> </form> Any suggestions are greatly appreciated. Thanks! |