wheeloftime Posted January 7, 2006 Author Share Posted January 7, 2006 hi, i am experiencing some problem with the zipcode. After clicking process button zipcode change back to 3025, country is australia. Any idea? shipping cost stay same too. You have a link to take a look at ? Quote Link to comment Share on other sites More sharing options...
j4tan Posted January 8, 2006 Share Posted January 8, 2006 no problem wheeloftime. i put the require statement at the wrong line and it get refresh with the shoppingcart.php everytime button is click. silly me :) so a better way to show your calculator easily would be follow all the steps to put the calculator in the column_left.php, but put HTML smart tag $estimatebox in sts_template.html around line 33 like this: <table class="content" width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><p>$content</p><br>$estimatebox</td> </tr> </table> Quote Link to comment Share on other sites More sharing options...
j4tan Posted January 8, 2006 Share Posted January 8, 2006 does anyone realize it does not show shipping method for certain preset zone. take my store as an example: I have auspost module set up for Australian Zones, this one show up in the calculator nicely. but, i also have different table rate set up for all 8 major cities of Australia. i.e if a customer is registered in Sydney, shipping rate to sydney will show up in checkout_confirmation page, if registered in Tasmania, only table rate to Tasmania will appear, by the way i am sending products from Victoria. All this table rate does not show up. so i am wondering if we can take the Tax_classes (zones) into account as well. so when checking postage we have to do the following steps: (1) choose country (2) choose zones (3) zip code. Thanks... Quote Link to comment Share on other sites More sharing options...
wheeloftime Posted January 8, 2006 Author Share Posted January 8, 2006 no problem wheeloftime. i put the require statement at the wrong line and it get refresh with the shoppingcart.php everytime button is click. silly me :) so a better way to show your calculator easily would be follow all the steps to put the calculator in the column_left.php, but put HTML smart tag $estimatebox in sts_template.html around line 33 like this: <table class="content" width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><p>$content</p><br>$estimatebox</td> </tr> </table> okay, thanks for the follow up ! Quote Link to comment Share on other sites More sharing options...
wheeloftime Posted January 8, 2006 Author Share Posted January 8, 2006 does anyone realize it does not show shipping method for certain preset zone. take my store as an example: I have auspost module set up for Australian Zones, this one show up in the calculator nicely. but, i also have different table rate set up for all 8 major cities of Australia. i.e if a customer is registered in Sydney, shipping rate to sydney will show up in checkout_confirmation page, if registered in Tasmania, only table rate to Tasmania will appear, by the way i am sending products from Victoria. All this table rate does not show up. so i am wondering if we can take the Tax_classes (zones) into account as well. so when checking postage we have to do the following steps: (1) choose country (2) choose zones (3) zip code. Thanks... Which shows that how many shops there are, how many needs there is :lol: Well, it is not a bad idea and I might take it with me into a next release. I was already thinking to get back to one version and make the zip code part optional and admin configurable (for my shipping provider I don't need zip codes and also not zones) which could as well be extended with an optional zones field to be activated from the admin also. Quote Link to comment Share on other sites More sharing options...
omidhz Posted January 8, 2006 Share Posted January 8, 2006 Hello, I have installed STS on my store and now I'm trying to change the Estimate Shipping box width in my shopping cart. I have tried different ways but it is not working. I have created a new table in the shopping_cart.php and changed the width and then I have entered the php code for this contribution in it, but it is changing the width of the total box and in addition it is changing the width of my main table. I was wondering if anyone had this problem before and knows how to fix this. Here is a picture of my shopping cart after I install this contribution in my cart: Thanks Quote Regards, Link to comment Share on other sites More sharing options...
Guest Posted January 9, 2006 Share Posted January 9, 2006 I have this contribution installed and it seems to be working well on my site fastcomdirect[dot]com. However, when I put an item in the cart, and then try and remove it the updated cart button no longer works. Here is where I put the entry into the code. <?php } else { ?> <tr> <td class="stockWarning" align="center"><br><?php echo OUT_OF_STOCK_CANT_CHECKOUT; ?></td> </tr> <?php } } ?> <!-- BEGIN estimated shipping --> <tr> <td class="main"><br><?php include(DIR_WS_MODULES . FILENAME_ESTIMATED_SHIPPING); ?></td> </tr> <!-- END estimated shipping --> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main"><?php echo tep_image_submit('button_update_cart.gif', IMAGE_BUTTON_UPDATE_CART); ?></td> <?php $back = sizeof($navigation->path)-2; if (isset($navigation->path[$back])) { ?> <td class="main"><?php echo '<a href="' . tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']) . '">' . tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING) . '</a>'; ?></td> <?php } ?> <td align="right" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '</a>'; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> Quote Link to comment Share on other sites More sharing options...
wheeloftime Posted January 9, 2006 Author Share Posted January 9, 2006 I have this contribution installed and it seems to be working well on my site fastcomdirect[dot]com. However, when I put an item in the cart, and then try and remove it the updated cart button no longer works. Here is where I put the entry into the code. Hello, I can't be working correctly on that place because it put's a form inside a form which isn't possible. The only place where you can put it when you want to use it on the shopping cart page is after the closing </form> tag. That means changing the ending </table></form></td> to <!-- </table></form></td> --> </form> <tr> <td><br><?php include(DIR_WS_MODULES . FILENAME_ESTIMATED_SHIPPING); ?></td> </tr></table></td> regards, Howard Quote Link to comment Share on other sites More sharing options...
Guest Posted January 9, 2006 Share Posted January 9, 2006 Hello, I can't be working correctly on that place because it put's a form inside a form which isn't possible. The only place where you can put it when you want to use it on the shopping cart page is after the closing </form> tag. That means changing the ending </table></form></td> to <!-- </table></form></td> --> </form> <tr> <td><br><?php include(DIR_WS_MODULES . FILENAME_ESTIMATED_SHIPPING); ?></td> </tr></table></td> regards, Howard Howard, You are a genius! It worked perfectly. I should have thought about that, as I had it working and then moved it up on the page where it messed things up. Thanks Sooooooooooo? much. J Quote Link to comment Share on other sites More sharing options...
wheeloftime Posted January 9, 2006 Author Share Posted January 9, 2006 Howard, You are a genius! It worked perfectly. I should have thought about that, as I had it working and then moved it up on the page where it messed things up. Thanks Sooooooooooo? much. J Your welcome ;) And don't compare it too much with Ship in Cart, I designed this from another perspective and it was never really meant to put inside the shopping cart page. Howard Quote Link to comment Share on other sites More sharing options...
markm Posted January 28, 2006 Share Posted January 28, 2006 Hi, I thought I'd try this contribution to see if it would work with the Canada Post "Canada Post Shipping Module with dimensions" contribution, but it doesn't seem to. I get : "XML parsing error. If you prefer to use canadapost as your shipping method, please contact the Manotech Solutions Inc. via email" Any idea how much work it would take to modify to Support Canada Post? If theres a way to get the same pricing info I get from Canada Post on my Shipping page, that would be perfect. Great Contribution BTW :) Mark Quote Link to comment Share on other sites More sharing options...
markm Posted January 28, 2006 Share Posted January 28, 2006 I think I may need the Province as well for Canada post...my guess Quote Link to comment Share on other sites More sharing options...
wheeloftime Posted January 28, 2006 Author Share Posted January 28, 2006 I think I may need the Province as well for Canada post...my guess Mark, I just took a quick look to that Canadian post module but it doesn't really look to be related to province level information. Have you checked if you have your country of origin and zip code of origin filled in correctly (under admin->configuration->shipping/packaging) ? As the module is tied to products with dimensions I can't do a quick test for this but as said, looking at the code for the shipping module the problem seems to be with someting else. regards, Howard Quote Link to comment Share on other sites More sharing options...
markm Posted January 28, 2006 Share Posted January 28, 2006 Hi Howard, I double checked and the Country and Postal Code are both set in shipping/packaging and they're both set correctly. I'll look around the Canada Post shipping forums to see if I can find more info on what information is sent to the Canada Post server. My Canada Post shipping module is working ok on the shipping page...no XML parsing error...just get the error for estimates Mark Quote Link to comment Share on other sites More sharing options...
wheeloftime Posted January 28, 2006 Author Share Posted January 28, 2006 My Canada Post shipping module is working ok on the shipping page...no XML parsing error...just get the error for estimates Mark, When that's the case then indeed some needed information is not sent to the CA post server. I'll take a look at that module to see where what is missing when used with estimated shipping and hopefully can come up with an easy solution :D Howard Quote Link to comment Share on other sites More sharing options...
markm Posted January 28, 2006 Share Posted January 28, 2006 Thx Howard.... Your help is appreciated....I'm certainly not a php expert...more of a cut and paste guy B) Quote Link to comment Share on other sites More sharing options...
markm Posted February 12, 2006 Share Posted February 12, 2006 Hi Howard, Did you have a chance to look at the Canapa Post server to see if its poosible to use with the Estimated Shipping Costs? Mark Quote Link to comment Share on other sites More sharing options...
wheeloftime Posted February 17, 2006 Author Share Posted February 17, 2006 Hi Howard, Did you have a chance to look at the Canapa Post server to see if its poosible to use with the Estimated Shipping Costs? Mark Mark, Sorry for my late response ! I am still in your debt as I haven't looked at it yet and I can only ask for a little bit more patience. regards, Howard Quote Link to comment Share on other sites More sharing options...
potikyan Posted February 27, 2006 Share Posted February 27, 2006 (edited) Hi everyone, This is a wonderful contribution. I've been looking for something like this and finally found it. I have this working on my site with UPS within the US and it works fine. I do have one question though. I wanted this module to open in a popup from the product info page before the customer logs in or adds it to the shopping cart. However, when I place a link from the product info page, the module doesn't know what product to check shipping for. So I basically put the popup link in the shopping cart, so that whatever is added to the cart will be used to calculate shipping. This is perfectly fine and all I have to do is tell the customer to add the product to the cart to see shipping charges, but I would still like to be able to have the customer get the shipping info from the product info page, if possible. I'm not a programmer, but it's probably something very easy to do. Any ideas on how I can tell the module which product page the link is being clicked on so that it calls the weight info for that product? Any help would be appreciated. By the way, you can see this modified contrib working on www.westwoodprinters.com. Thanks, Gary Edited February 27, 2006 by potikyan Quote Link to comment Share on other sites More sharing options...
omidhz Posted February 28, 2006 Share Posted February 28, 2006 Hi everyone, This is a wonderful contribution. I've been looking for something like this and finally found it. I have this working on my site with UPS within the US and it works fine. By the way, you can see this modified contrib working on www.westwoodprinters.com. Thanks, Gary Hi Gary, I just checked your site. It looks great. Would you please post here (or pm me) how you modified the contribution to work on a pop up window? Thanks Quote Regards, Link to comment Share on other sites More sharing options...
potikyan Posted February 28, 2006 Share Posted February 28, 2006 Hi Gary, I just checked your site. It looks great. Would you please post here (or pm me) how you modified the contribution to work on a pop up window? Thanks Hi. Thanks for the comments. Here's what I had to do to get it to work in a popup from the shopping cart. Please keep in mind that my store is heavily modified cosmetically, so some of the code will be different from what you see in unaltered oscommerce stores. If enough people are interested or the original author requests, I can upload better instructions/modifications in the contribution page. 1. Add the following code to catalog/shopping_cart.php just before the </head> <script language="javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow',' toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizab le=no,copyhistory=no,width=500,height=310,screenX=150,screenY=250') } //--></script> notice the code for the width and height of the popup window above, which can be changed to your liking. 2. Add the following code to catalog/shopping_cart.php where you want the link to appear for the popup. The most logical place for me was to place it below the product listing, but above the update/checkout buttons. Again, my code may be different due to cosmetic differences, so you might have to do some testing before the link is placed in the desired spot. FIND new productListingBox($info_box_contents); ?> </TD> </TR> ADD BELOW <!-- BEGIN estimated shipping --> <tr><td align=right cellpadding="2" height=2 colspan="2" class="smallText"><?php echo '<a href="javascript:popupWindow(\'' . tep_href_link(FILENAME_POPUP_SHIPPING) . '\')">' . '<img src="images/icons/shipcost.gif" border="0">?' . TEXT_SHIPPING_COST . '</a>'; ?></td></tr> <!-- END estimated shipping --> You will need the shipcost.gif for this, but you can put any graphics (or not) and/or change the name of the file... This takes care of the shopping cart. 3. Creat a new file catalog/popup_shipping.php with the following code <?php /* $Id: popup_tracker.php,v 1.0 200/05/18 12:18:40 $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ESTIMATED_SHIPPING); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <title><?php echo TITLE; ?> : <?php echo HEADING_TITLE; ?></title> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body onLoad="resize();" class="infoBoxHeading"> <table width="100%" height="275"><tr><td align="center" valign="top"> <table width="93%" border="0" align="center" cellpadding="0" cellspacing="0"> <!-- BEGIN estimated shipping --> <tr> <td><br><?php include(DIR_WS_MODULES . FILENAME_ESTIMATED_SHIPPING); ?></td> </tr> <!-- END estimated shipping --> <tr><td> <p class="smallText" align="right"><img src="includes/languages/english/images/buttons/button_closewindow.gif" alt="close">?<?php echo '<a href="javascript:window.close()">' . TEXT_CLOSE_WINDOW . '</a>'; ?></p> </td></tr> </table> <br> </table> </body> </html> Once again, sizes of tables etc can be changed here. Just lookin the above code to find the table width and height. 4. Add the following code to catalog/includes/filenames.php define('FILENAME_POPUP_SHIPPING', 'popup_shipping.php'); All of the above is in addition to doing steps 1-5 in the original contribution installation instructions. Basically skip step 6 and do the above. Good luck. Let me know if you need help. Gary Quote Link to comment Share on other sites More sharing options...
omidhz Posted February 28, 2006 Share Posted February 28, 2006 All of the above is in addition to doing steps 1-5 in the original contribution installation instructions. Basically skip step 6 and do the above. Good luck. Let me know if you need help. Gary Hello, Thank you so much for the information. I have modified the codes exactly as directed, but the popup page is not opening when I click on the link. When I enter the url directly in the browser the popup page is working fine. I think there should me a bug in the javascript section of the shipping_cart.php page. Could you please double check the code, or may be there is something else. Thanks again for your support and quick reply. Quote Regards, Link to comment Share on other sites More sharing options...
potikyan Posted February 28, 2006 Share Posted February 28, 2006 (edited) Hello, Thank you so much for the information. I have modified the codes exactly as directed, but the popup page is not opening when I click on the link. When I enter the url directly in the browser the popup page is working fine. I think there should me a bug in the javascript section of the shipping_cart.php page. Could you please double check the code, or may be there is something else. Thanks again for your support and quick reply. hmmm, it's possible that the javascript code in the shopping cart above the </head> didn't paste correctly. From the looks of it in my previous post, there seem to be line breaks in the code where there shouldn't be any, so let's hope it works this time. Click on the link below to copy the code in a text file. When you open it with notepad or equivalent, turn off wordwrap and make sure the part of the code that starting with window.open(url...... and ending with ........screenX=150,screenY=250') is on a single line. Copy the code above the </head> in your shopping cart and see if it works. click here to download the javascript code and place in your catalog/shopping_cart.php or just go throught the script you already have and make sure there are not line breaks between the mentioned code. OK, here's one more step I overlooked in my last post. 5. Place the following code above the ?> in catalog/includes/languages/english/shopping_cart.php define('TEXT_SHIPPING_COST', 'Calculate Shipping Cost??'); Oh, and the other thing that I neglected in my previous post, but from the sounds of it you already did it, is to copy the provided file from the contrib found at catalog/includes/modules/estimated_shipping_index.php and rename it estimated_shipping.php. This step is at the end of step 6B in the original instructions, so I guess you don't completely skip this step. Sorry for the mess. :) Hope this helps. Gary Edited February 28, 2006 by potikyan Quote Link to comment Share on other sites More sharing options...
redrum Posted February 28, 2006 Share Posted February 28, 2006 What was causing the lost of items in cart, in the previous versions? Could there be any conflicts to put this in the shopping_cart.php, so its better to with Garry's approach and use a popup in shopping_cart.php? // Fredrik Quote Link to comment Share on other sites More sharing options...
potikyan Posted March 1, 2006 Share Posted March 1, 2006 What was causing the lost of items in cart, in the previous versions? Could there be any conflicts to put this in the shopping_cart.php, so its better to with Garry's approach and use a popup in shopping_cart.php? // Fredrik Fredrik, I'm not sure that using my way will resolve the problem you mentioned (I personally haven't had that problem) because it still calls the same code as those placed in non-popup versions. On a different note, does anybody know whether it's possible to get the estimated shipping costs without adding the product to the shopping cart? I'd like to place this popup in the product info page. Currently, the product has to be added to the shopping cart for the shipping estimator to know which product the shipping is being estimated for. Thanks, Gary Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.