Jump to content
ednique

[Contribution] Ship In Cart

Recommended Posts

I Have!

 

I have upgraded from Linda working version - I have just simply replayed the file!!

 

HELP!!

Share this post


Link to post
Share on other sites

Fantrastic!!

 

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.

Share this post


Link to post
Share on other sites

Sorry - Yes I have it working now!! - Is their any chance to make it go BEFORE the buttons?

 

Thanks,

Warren

Share this post


Link to post
Share on other sites

Warren.

 

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>

Share this post


Link to post
Share on other sites

I've tried, but you cannot have 2 forms inside each other...

 

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!

Share this post


Link to post
Share on other sites

Edwin, what do you think of prepopulating the login form iwth the selected values to eliminate redundancy?


-------------------------------------------------------------------------------------------------------------------------

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.

Share this post


Link to post
Share on other sites

OK - Thanks!

 

Il leave under the buttons!

Hoe can I make the box align to the right though?

 

Thanks,

Warren

Share this post


Link to post
Share on other sites

Chris,

 

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;

 }

Share this post


Link to post
Share on other sites

Warren.

 

find

<!-- shipping_estimator //-->

         <tr>

           <td>

             <table><tr><td>

Replace with

<!-- shipping_estimator //-->

         <tr>

           <td align="right">

             <table><tr><td>

Share this post


Link to post
Share on other sites
Chris,

 

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

Share this post


Link to post
Share on other sites

Hmmn, that doesn't pre-populate that create an account form.

 

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.

Share this post


Link to post
Share on other sites

You have the create account in the login screen...

 

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

Share this post


Link to post
Share on other sites

Bwhahaah!

 

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.

Share this post


Link to post
Share on other sites

Excellent contribution! Thank you to all involved :D.

 

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

Share this post


Link to post
Share on other sites

Thank you very much for great contribution!

but Free shipping does not work if you are not logged in. Could you tell me how to make it work?

 

Thanks again!! :lol:

Share this post


Link to post
Share on other sites

Which Free Shipping? The one for when the order is over a certain amount?

Share this post


Link to post
Share on other sites
Which Free Shipping? The one for when the order is over a certain amount?

 

Yes. I have set free shipping over certain amount and when I go shopping cart, it shows all the shipping options even when I have more than that amount. It shows "free shipping over ~" when I am logged in. Is this happening just to me??

 

Thank you very much!!!!!!!!

Share this post


Link to post
Share on other sites

Let me check ... that was something I tossed in there and thought it was working.

Share this post


Link to post
Share on other sites

Go figure ...

 

Works when logged in only.

 

Hmm ... is this a good thing or bad?

 

Well ... I would think it is because it does not know if you are international or local so it does not give the response back for the Free Shipping until logged in.

 

But I may have added that condition within being logged in.

 

Let me peek at it when I get some time and see what the scoop is.

Share this post


Link to post
Share on other sites

Thank you Linda!

 

I was just reading another topic you were posting.

You are so kind....

 

Let us know when you figure it out!

 

Thanks again! :lol: :lol:

Share this post


Link to post
Share on other sites

Will do ...

 

I could of coding something dumb in here when testing for the Free Shipping setting ... :roll:

Share this post


Link to post
Share on other sites
The one for when the order is over a certain amount?
:oops: :oops: :oops: :oops:

Really embarassed now! But where can I activate this? to test this? I've searched the admin, but don't seem to find this feature...

:oops: :oops: :oops: :oops:

Share this post


Link to post
Share on other sites

Edwin;

 

This is really a great added feature - Thank you and all who have contributed!

 

A couple of install notes:

 

I had installed the v1.4 and just did the upgrade to v1.5 on a mid-December 2002 snapshot.

 

1)The "Estimate Shipping" link that was in the InfoBox resulted in loading only part of the page - since the shipping shows in the shopping cart when viewed, I just removed that link, as it seems somewhat unnecessary. I imagine that I'll eventually put some notice somewhere to the effect that, If one wants to see estimated shipping costs, they just need to add the item to the shopping cart.

 

2)The pink hilite line that said "Login to view your personal shipping costs" I changed to "Please select Country and Postal (ZIP) Code to display Shipping Estimates" since the checkout button is immediately above the shipping box and that will take the customer to login anyway.

 

Again, many thanks for a great mod :wink:


... 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!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×