Huffd Posted March 28, 2003 Share Posted March 28, 2003 Thanks to Edwin Bekaert and Linda McGrath for their excellent contribution (re. Ship In Cart v1.3). I had posted previously that I considered this one of the most important things a website can have. It's more than I had hoped for! Thanks again! :D Link to comment Share on other sites More sharing options...
Ajeh Posted March 28, 2003 Share Posted March 28, 2003 Please yell if you find any bugs or forgotten conditions in there. I am hoping between the two of us, we covered all the possibilities. :D Link to comment Share on other sites More sharing options...
Guest Posted March 28, 2003 Share Posted March 28, 2003 Well.... I nedded it ,I've build it, Linda corrected it, we hope we've covered all possibillities and thus the OSC world is an extra contribution richer... one of the most important things a website can have What are the other important things? Link to comment Share on other sites More sharing options...
Ajeh Posted March 28, 2003 Share Posted March 28, 2003 I keep poking around with this and not found anything yet that is off. But I do not use all the shipping methods to test this fully. As it is a single file to load and one insert into the shopping_cart.php file, I am hoping more test this out and let us know if anything is running moofy for them. You really did a nice job on this ... :D I just tweaked a bit here and there to make it easier to manage. Link to comment Share on other sites More sharing options...
hatimad Posted March 28, 2003 Share Posted March 28, 2003 very nice contribution, just installed it and works very nice thank you Link to comment Share on other sites More sharing options...
chet Posted March 28, 2003 Share Posted March 28, 2003 There is a little language problem. When you move out the define lines and put them in a language file (for example dutch.php) I get an error on the lines define('SHIPPING_OPTIONS_LOGIN', 'Please <a href="' . tep_href_link(FILENAME_LOGIN, '', 'SSL') . '"><u>Log In</u></a>, to display your personal shipping costs.'); and define('SHIPPING_METHOD_TO_NOLOGIN', 'Ship to: <a href="' . tep_href_link(FILENAME_LOGIN, '', 'SSL') . '"><u>Log In</u></a>'); Fatal error: Call to undefined function: tep_href_link() in c:apachehtdocscatalogincludeslanguagesenglish.php on line 312 It look like the link option cannot be placed in a language file Link to comment Share on other sites More sharing options...
Ajeh Posted March 28, 2003 Share Posted March 28, 2003 I cannot reproduce this problem. I moved the definitions to all 3 language files and no errors. See if because you have them in both the shipping_estimator.php and the language files if they are somehow causing a problem. Link to comment Share on other sites More sharing options...
chet Posted March 29, 2003 Share Posted March 29, 2003 I found a solution :o In shipping_estimator.php replace // Could be placed in english.php // shopping cart quotes define('SHIPPING_OPTIONS', 'Estimated Shipping Options:'); define('SHIPPING_OPTIONS_LOGIN', 'Please <a href="' . tep_href_link(FILENAME_LOGIN, '', 'SSL') . '"><u>Log In</u></a>, to display your personal shipping costs.'); define('SHIPPING_METHOD_TEXT','Shipping Methods:'); define('SHIPPING_METHOD_RATES','Rates:'); define('SHIPPING_METHOD_TO','Ship to: '); define('SHIPPING_METHOD_TO_NOLOGIN', 'Ship to: <a href="' . tep_href_link(FILENAME_LOGIN, '', 'SSL') . '"><u>Log In</u></a>'); define('SHIPPING_METHOD_FREE_TEXT','Free Shipping'); define('SHIPPING_METHOD_ALL_DOWNLOADS','- Downloads'); to // Could be placed in ot_shipping.php // shopping cart quotes include(DIR_WS_LANGUAGES . $language . '/modules/order_total/ot_shipping.php'); then in your language ot_shipping.php put the define lines and everything works well with me Link to comment Share on other sites More sharing options...
mugitty Posted March 29, 2003 Share Posted March 29, 2003 Thanks to every one who contributed! I just installed this and it works just fine (1 slight mod for the undefined function mentioned in other areas due to my snapshot being from 12/13/02). Just as a suggestion: I have been to other sites which give you a shipping estimate simply by entering your zipcode without any login whatsoever being required. I realize this might not be able to be applied internationally, but it would be really neat if someone came up with something that would provide shipping costs as this mod does for just U.S. (and Canada, if do-able) simply by entering one's postal code. As it is now, you still have to create an account to get the estimate for your shipping destination. ... if you want to REALLY see something that doesn't set up right out of the box without some tweaking, try being a Foster Parent! Link to comment Share on other sites More sharing options...
Guest Posted March 29, 2003 Share Posted March 29, 2003 I'm working on defining country/zone/zip implementation .... Link to comment Share on other sites More sharing options...
Guest Posted March 29, 2003 Share Posted March 29, 2003 New update available ! Go read http://www.oscommerce.com/forums/viewtopic.php?p=138183 Link to comment Share on other sites More sharing options...
Ajeh Posted March 29, 2003 Share Posted March 29, 2003 This version with the drop down came out really nice. How hard would it be to make it read the Address when logged in, but still have the drop downs and recalculate in case the customer knows that he is shipping somewhere else? Yes I like to complicate things ... :D Link to comment Share on other sites More sharing options...
Guest Posted March 29, 2003 Share Posted March 29, 2003 What about showing all addresses from the address book in a droip down list when it is a logged in user? Or is it that what you asked for linda? Link to comment Share on other sites More sharing options...
Ajeh Posted March 29, 2003 Share Posted March 29, 2003 Well ... now that you mention it ... that is kind of handy ... :D Link to comment Share on other sites More sharing options...
hatimad Posted March 29, 2003 Share Posted March 29, 2003 Edwin, thanks for the update What about showing all addresses from the address book in a droip down list when it is a logged in user? sounds like a very good idea, i am looking forward to the udpate :) thank you :D [/img] Link to comment Share on other sites More sharing options...
Guest Posted March 29, 2003 Share Posted March 29, 2003 Well.... It seems that it's gonna rain tomorrow in belgium, so I'll probably implement this tomorrow. I also found out that I forgot to set the session when we take the store defaults... It doesn't matter, unless you want to prefill the customers country and zip into the create account. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.