Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

[Contribution] Ship In Cart


615 replies to this topic

#81 wizardsandwars

  • Community Member
  • 4,476 posts
  • Real Name:Chris Bradley

Posted 27 March 2003, 23:46

I faced that very same delima, however, I coped the DB, and called it new_catalog, and installed the new software in a subdirectory off of the main site. That way I was able to work on it a little at a time. It took me about 3 or 4 weeks working on it part time.

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 Ajeh

  • Community Member
  • 6,327 posts
  • Real Name:Linda McGrath
  • Location:Ohio

Posted 28 March 2003, 01:31

Quote

maybe i need to get with the times and upgrade *shudder*

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 ednique

  • Community Member
  • 111 posts
  • Real Name:Edwin Bekaert
  • Location:Belgium

Posted 29 March 2003, 14:52

version 1.5 now posted !

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 Waza04

  • Banned
  • 680 posts
  • Real Name:Warren Ashcroft
  • Gender:Male

Posted 29 March 2003, 15:20

Dont Work!!

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 ednique

  • Community Member
  • 111 posts
  • Real Name:Edwin Bekaert
  • Location:Belgium

Posted 29 March 2003, 15:27

You have to place it UNDER the buttons...

#86 Waza04

  • Banned
  • 680 posts
  • Real Name:Warren Ashcroft
  • Gender:Male

Posted 29 March 2003, 15:32

I Have!

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

HELP!!

#87 wizardsandwars

  • Community Member
  • 4,476 posts
  • Real Name:Chris Bradley

Posted 29 March 2003, 15:32

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.

#88 Waza04

  • Banned
  • 680 posts
  • Real Name:Warren Ashcroft
  • Gender:Male

Posted 29 March 2003, 15:35

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

Thanks,
Warren

#89 ednique

  • Community Member
  • 111 posts
  • Real Name:Edwin Bekaert
  • Location:Belgium

Posted 29 March 2003, 15:38

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>


#90 ednique

  • Community Member
  • 111 posts
  • Real Name:Edwin Bekaert
  • Location:Belgium

Posted 29 March 2003, 15:41

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!

#91 wizardsandwars

  • Community Member
  • 4,476 posts
  • Real Name:Chris Bradley

Posted 29 March 2003, 15:43

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.

#92 Waza04

  • Banned
  • 680 posts
  • Real Name:Warren Ashcroft
  • Gender:Male

Posted 29 March 2003, 15:49

OK - Thanks!

Il leave under the buttons!
Hoe can I make the box align to the right though?

Thanks,
Warren

#93 ednique

  • Community Member
  • 111 posts
  • Real Name:Edwin Bekaert
  • Location:Belgium

Posted 29 March 2003, 15:52

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;

  }


#94 ednique

  • Community Member
  • 111 posts
  • Real Name:Edwin Bekaert
  • Location:Belgium

Posted 29 March 2003, 15:55

Warren.

find
<!-- shipping_estimator //-->

          <tr>

            <td>

              <table><tr><td>
Replace with
<!-- shipping_estimator //-->

          <tr>

            <td align="right">

              <table><tr><td>


#95 ednique

  • Community Member
  • 111 posts
  • Real Name:Edwin Bekaert
  • Location:Belgium

Posted 29 March 2003, 15:56

Quote

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

#96 wizardsandwars

  • Community Member
  • 4,476 posts
  • Real Name:Chris Bradley

Posted 29 March 2003, 16:03

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.

#97 ednique

  • Community Member
  • 111 posts
  • Real Name:Edwin Bekaert
  • Location:Belgium

Posted 29 March 2003, 16:09

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

#98 wizardsandwars

  • Community Member
  • 4,476 posts
  • Real Name:Chris Bradley

Posted 29 March 2003, 16:14

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.

#99 DavidR

  • Community Member
  • 197 posts
  • Real Name:David

Posted 30 March 2003, 02:24

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

#100 casper

  • Community Member
  • 33 posts
  • Real Name:nexus
  • Location:CA

Posted 30 March 2003, 05:51

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: