Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Thanks! Shipping Charges in Cart


Huffd

Recommended Posts

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

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

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

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

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

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

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

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...