|
|
Thread Tools | Display Modes |
|
#1
|
|
|
pro lurker
|
Shipping Options with Paypal Cart
I am trying to pass the shipping options to the paypal cart, and I can't seem to get the java script correct. I am not a coder, just a cut and paste-r.
Here is my code, perhaps someone here has some insight: The gallery is here. Thanks in advance // ========================================*/ // == Paypal shopping functionality ==*/ // ========================================*/ function setPaypalForm(form) { urlToImage = webServer + "/gallery/" + AlbumID + "_" + AlbumKey + "/1/" + ImageID + "_" + ImageKey; i = form.photoselection.selectedIndex; sPhotoType = form.photoselection.options[i].text; sPhotoPrice = form.photoselection.options[i].value; j = form.os1.seletedIndex; if (j = 1) form.shipping.value = 0.00; else form.shipping.value = 5.00; urlToImage = sPhotoType + " - Filename: " + photoInfo[ImageID]['fileName']; form.item_name.value = urlToImage; form.amount.value = sPhotoPrice; } <script type="text/javascript"> function getContinueShoppingURL(form){ // -- Get the href of the currently displayed webpage -- form.shopping_url.value = window.location.href; } </script> <script> // ========================================*/ // == Paypal shopping functionality ==*/ // ========================================*/ function setPaypalForm(form) { urlToImage = webServer + "/gallery/" + AlbumID + "_" + AlbumKey + "/1/" + ImageID + "_" + ImageKey; i = form.photoselection.selectedIndex; sPhotoType = form.photoselection.options[i].text; sPhotoPrice = form.photoselection.options[i].value; j = form.os1.seletedIndex; if (j = 1) { form.shipping.value = 0.00; } else { form.shipping.value = 5.00; } sshipping = form.os1.options[i].value; urlToImage = sPhotoType + " - Filename: " + photoInfo[ImageID]['fileName']; form.item_name.value = urlToImage; form.amount.value = sPhotoPrice; } </script> |
|
|
|
| Tell The World! | |
| Tags | |
| paypal , shipping cost | |
| Similar Threads | Thread Starter | Forum | Replies | Last Post | ![]() |
| Suppress PAYPAL ADD to CART 'cept for this page | vdotmatrix | SmugMug Customization | 4 | Nov-02-2011 11:32 PM | |
| Paypal Suddenly not adding to cart | vdotmatrix | SmugMug Customization | 3 | May-10-2011 08:46 PM | |
| Getting image refs. into Paypal cart | RolyG | SmugMug Customization | 1 | Sep-09-2009 01:02 PM | |
| Different PayPal Options for Different Galleries | Giles | SmugMug Customization | 5 | Apr-08-2009 02:14 PM | |
| International Shipping - why so expensive? | Craig Ridley | SmugMug Pro Sales Support | 4 | Mar-13-2008 11:53 AM | |
| Thread Tools | |
| Display Modes | |
|
|