[Contribution] Ship In Cart
#81
Posted 27 March 2003, 23:46
Thus far, the rewards have greatly outweighed the imvestment.
NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.
If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.
#82
Posted 28 March 2003, 01:31
Quote
Be afraid ... be very afraid ... :shock:
Unless of course you are a glutton for punishment, then you are in for a good time ... 8)
#83
Posted 29 March 2003, 14:52
Go test it and report your findings!
* Now includes country and zip selection if user isn't logged in.
* formats the adres if user is logged in.
* checks if shipping module doesn't return an error
* highlights the cheapes shipping
The contribution of Hatim Daginawala is NOT included in this package.
The updates of Linda are included.
Language will be seperated once finished...
#84
Posted 29 March 2003, 15:20
On clicking Recalaculate...
Get a error - Debug Error - document.estimator is null or not an object!
Then get divereted to:
http://domain.com/catalog/_
#85
Posted 29 March 2003, 15:27
#86
Posted 29 March 2003, 15:32
I have upgraded from Linda working version - I have just simply replayed the file!!
HELP!!
#87
Posted 29 March 2003, 15:32
Works great!
www.wizardsandwars.com
The only other thing the I would suggest to enhanse this mod is to pre-populate the login fields with this country and zip value.
NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.
If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.
#88
Posted 29 March 2003, 15:35
Thanks,
Warren
#89
Posted 29 March 2003, 15:38
You have to alter the shopping_cart.php
Linda's version placed the shipping cost before the cart buttons.
They should come underneath:
find:
<?php
} else {
?>
<tr>
<td align="center" class="main"><?php echo TEXT_CART_EMPTY; ?></td>
</tr> add just above these lines put:<tr> <td><br><?php require(DIR_WS_MODULES . 'shipping_estimator.php'); ?></td> </tr>
#90
Posted 29 March 2003, 15:41
And I couldn't use the cart form because the application_top makes a relocation....
Anyway, don't make the user scroll down to be able to klick the checkout button... Maybe he won't find it!
#91
Posted 29 March 2003, 15:43
NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.
If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.
#92
Posted 29 March 2003, 15:49
Il leave under the buttons!
Hoe can I make the box align to the right though?
Thanks,
Warren
#93
Posted 29 March 2003, 15:52
That's not so difficult...
find:
$account['entry_country_id'] = STORE_COUNTRY;replace with:
if (tep_session_is_registered('cart_country_id')){
$account['entry_country_id'] = $cart_country_id;
$account['entry_postcode']=$cart_zip_code;
}else{
$account['entry_country_id'] = STORE_COUNTRY;
}
#94
Posted 29 March 2003, 15:55
find
<!-- shipping_estimator //--> <tr> <td> <table><tr><td>Replace with
<!-- shipping_estimator //--> <tr> <td align="right"> <table><tr><td>
#95
Posted 29 March 2003, 15:56
Quote
That's not so difficult...
find:
$account['entry_country_id'] = STORE_COUNTRY;replace with:
if (tep_session_is_registered('cart_country_id')){
$account['entry_country_id'] = $cart_country_id;
$account['entry_postcode']=$cart_zip_code;
}else{
$account['entry_country_id'] = STORE_COUNTRY;
}I mean in the /catalog/create_account.php
#96
Posted 29 March 2003, 16:03
Feel free to give it a try at www.wizardsandwars.com.
Very nice contribution, though. I love it!
NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.
If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.
#97
Posted 29 March 2003, 16:09
Can't you find the code inside the login page then?
To see it working
after adding someting to the basket
klick on checkout
in the url replace login.php with create_account.php leaving the oscsid in place
#98
Posted 29 March 2003, 16:14
Oh yeha. I forgot about that.
Duh.
NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.
If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.
#99
Posted 30 March 2003, 02:24
I center my shop and I think the fixed 750px width might be causing the "Zip" field to wrap down to the next line along with "Recalculate", while leaving the zip label above. I added a "nowrap" as follows that fixed it.
On line 125 in shipping_estimator.php, I changed:
$ShipTxt.='<tr><td colspan="3" class="main">' .to
$ShipTxt.='<tr><td colspan="3" class="main" nowrap>' .
It's a very minor issue but it made me happy :wink:. Thanks again for a great solution.
David
#100
Posted 30 March 2003, 05:51
but Free shipping does not work if you are not logged in. Could you tell me how to make it work?
Thanks again!!














