Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] Ship In Cart


Guest

Recommended Posts

Just installed on MS2, and I am getting the following when addint to my cart:

 

Fatal error: Call to undefined function: tep_output_warning() in /home/tractor/public_html/catalog/includes/modules/shipping_estimator.php on line 221

Any suggestions?

Link to comment
Share on other sites

HI ALL

 

I still don't understand... everybody says that there estimator works fine.. and that is fine if you are all happy with it...

it works...

 

BUT can someone explain how the POST CODE input field should work?

Link to comment
Share on other sites

I'm not very familiar with the contribution process, but a new set of install.txt files would go a long way to helping out the newbies (like me).

Basically, everything I needed was in the forum, I just had to figure out what parts I needed.

JimD

Link to comment
Share on other sites

Well, I would quite like to install this but all the files don't seem to be in the latest version and there are no instructions. And I don't really want to install an old, buggy version.

 

I have read through the thread (yes, all of it) but there seem to be lots of different bits of code for different versions and I don't know which to use.

 

I realise the author is probably busy, but will it all be pulled together in a latest version anytime soon? Pretty please?

 

I also have Linda's Free shipping for downloadable products and I believe there was a problem with that. Did that ever get fixed?

Link to comment
Share on other sites

Salvo, what problems are you having with the post code input field???

 

The problem is: when one is not logged in..

 

1 - post code, what is ment for post code?

one has to input the actual post code where he/she lives?

I tried that and it doesn't work...

 

2- I tried to inpunt the state/region

and that doesn't not work.

I tried to use it in all possible way and doesn't seam to work..

 

Now I have the state shipping contribution installed and when someone is logged in, let say

Country = USA

State = California

Cost = $10.00

The cost on the checkout for shipping for that customer is $ 10.00 Works perfectly OK!!

THE ESTIMATOR ESTIMATE CORRECT WHEN ONE IS LOGGED IN

 

But the estimator doesn't recognise the state even if the shopping cart is located in the state of California.

 

My suggestion is to estimate the shipping cost as follow:

 

Country (drop down menu) State/Region (drop down menu)

and you will see that the estimator will work 100%

Link to comment
Share on other sites

i just downloaded the latest release and found no installation instructions :|

 

also downloaded 3 versions back

1.72

1.7.1

1.7still didnt found any instructions

 

i downloaded the 1.6 there where instructions there but unfortunately there where instructions that are not compatible with my ms2 version :|

 

i read the whole thread through but couldnt find any hints and tips

 

any ideas ???

 

thank you

Link to comment
Share on other sites

I downloaded the latest version 1.7.2 This had 1 file in it, so I also downloaded the 1.7

 

I have osCommerce 2.2-CVS will this work with my cart? I have done what the instructions say, but nothing new shows in the cart. It still goes directly to the customer login page. Am I missing something I should do?

 

Thanks.

Link to comment
Share on other sites

follow the instructions by this guy and it works

 

:D

 

thx man

 

 

Ok I played round with it a little bit...  And this is what I done and I got it working... Put in your code to take away that error msg.  Then as said above do not put inside the <form>...</form>..  So I deleted the </table> just before the </form> and then under this :
<?php

 }

?>

   </form>

</td>

(remember I removed </table>)

 

I added this

   <tr>

     <td><br><?php require(DIR_WS_MODULES . 'shipping_estimator.php'); ?></td>

   </tr></table>

And it now works! lovely stuff!

Link to comment
Share on other sites

Any other thoughts? still doesn't work. I still couldn't get the estimator to show up after adding something to cart. I moved the </table> and </form> all over the place trying to get that code to work. Nothing helped. wonder if there's something in the actual shipping_estimator.php file that needs to be changed.

 

Any advice?

Link to comment
Share on other sites

believe man the only 2 thing i did where do the thing i mentioned in my previous post and also this change

 

which was also suggested by a member in a previous post

 

 

$ShipTxt.=$messageStack->add('header', CART_SHIPPING_OPTIONS_LOGIN, 'warning');

 

 

 

what error do u get?

Link to comment
Share on other sites

hmmm

 

 

i personally had the same problem as you do

 

but i did the above changes and it worked

 

im pasting my whole code so you can see and compare

 

 

                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

               <td align="right" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>

               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

             </tr>

    



           </table></td>

         </tr>

       </table></td>

     </tr>

<?php

 }

?>

</form></td>





<tr>

<td><br><?php require(DIR_WS_MODULES . 'shipping_estimator.php'); ?></td>

</tr></table>

 

its around line 248 in shopping cart.php

Link to comment
Share on other sites

guys pls one last help on this contributions

 

i dont have any taxes in my store

 

i only entered in the beggining a tax zone just to test it and then set it to 0

 

but in the shipping estimation i get this

 

Sub-Total: ?69,57

Flat Rate (Best Way): ?1,00

vat + vat: ?22,44

Total: ?93,01

 

 

any hints???

 

thx

i hope some one replies this time

Link to comment
Share on other sites

Hi,

 

This is a great contrib. I have it installed and working like a charm. I have just one question. How can I get it to ignore the shipping charge in the displayed grand total?

 

I'm offering free shipping for orders totaling $100.00 or more. If the sub-tolal is $98.00, for example and the shipping is $6.75, the grand total will be $104.75. Also, it will display a message, "Free shipping for orders over $100.00".

 

The big problem is that I'm also using the Enhanced Shopping Cart contrib. The shopping cart box will be displaying, All orders over $100.00 receive FREE shipping within United States.

[add $2.00].

 

I don't mind the Shipping Box displaying the grand total, I just don't want the shipping cost to be added to the sub-total for the Free Shipping consideration.

 

I hope I'm explaining this clearly.

 

Thanks in advance.

Link to comment
Share on other sites

  • 3 weeks later...

I am getting this error at bottom of shopping cart page. Any ideas? I am running on oscommerce version 2.2.

 

Fatal error: Cannot redeclare class httpclient in /home/clubwear/public_html/catalog/includes/classes/http_client.php on line 37

Link to comment
Share on other sites

Betty-Jo,

 

 

You have loaded the Old version AND the new version. Here is how to fix it:

 

 

go to /catalog/shopping_cart.php

 

 

find:

require("includes/application_top.php");

 

 

Remove under that line:

// shipping cost

require('includes/classes/http_client.php'); // shipping in basket

if ($cart->count_contents() > 0) {

if (!tep_session_is_registered('customer_id')) {

$sendto = STORE_COUNTRY;

}else{

$sendto = $customer_default_address_id;

}

require(DIR_WS_CLASSES . 'order.php');

$order = new order;

if (!tep_session_is_registered('customer_id')) {

$order->delivery['country']['id']=STORE_COUNTRY;

}

if($order->content_type !== 'virtual'){

$total_weight = $cart->show_weight();

$total_count = $cart->count_contents();

require(DIR_WS_CLASSES . 'shipping.php');

$shipping_modules = new shipping;

$quotes = $shipping_modules->quote();

}

}

// eo shipping cost

 

 

go to /catalog/shopping_cart.php

find:

<tr>

<td align="right" class="main">

<b><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $currencies->format($cart->show_total()); ?></b>

</td>

</tr>

 

 

 

Remove under these lines:

<!-- shipping cost -->

<tr>

<td class="main">

<?php

if(sizeof($quotes)){

$ShipTxt='<table ><tr><td colspan="2" class="main"><b>'.SHIPPING_OPTIONS.'</b></td></tr>';

if (!tep_session_is_registered('customer_id')) {

$ShipTxt.='<tr><td colspan="2" class="main">'.SHIPPING_OPTIONS_LOGIN.'</td></tr>';

}

for ($i=0, $n=sizeof($quotes); $i<$n; $i++) {

$ShipTxt.= '<tr>';

$ShipTxt.='<td class="main">'.$quotes[$i]['icon'].' </td>';

$ShipTxt.='<td class="main">'.$quotes[$i]['module'].' ';

for ($j=0, $n2=sizeof($quotes[$i]['methods']); $j<$n2; $j++) {

$ShipTxt.= $quotes[$i]['methods'][$j]['title'].'</td><td align="right" class="main">'.$currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax'])).'</td>';

}

$ShipTxt.= '</tr>';

}

$ShipTxt.= '</table>';

echo $ShipTxt;

}

?>

</td>

</tr>

<!-- eo shippiing cost -->

 

***** YOUR CODE MAY LOOK SLIGHTLY DIFFERENT BECAUSE OF UPDATES TO THIS MODULE.

 

 

go to /catalog/includes/lanuages/english/shopping_cart.php

at the end before the final ?>

 

 

Remove these 2 statements:

define('SHIPPING_OPTIONS', 'Shipping Options:');

define('SHIPPING_OPTIONS_LOGIN', '<i>Please log in ,to get your personal shipping costs.</i>');

 

 

I found that installing the Version 1.3 and then replacing the catalog/includes/modules/shipping_estimator.php file with the one from the latest version (1.7.2) works.

 

 

Give this a shot!

 

 

Mark

Link to comment
Share on other sites

I have MS1. I installed this contribution. Everything seems to work EXCEPT when I try to select another shippind mode. Upon pressing the select button, I am redirected to a page www.mydomain.com/_ . Does anyojne have any ideas?

 

 

Thanks!

 

 

Mark

Link to comment
Share on other sites

GEEEZ!! If you put an item in the shopping cart, and are not logged in, you get an error " Please Log In, to display your personal shipping costs." This seems to be working properly. After you Log In, you are sent to the default.php page? Why doesnt it bring you back to the page with all the shipping information? Is this contrib buggy or do I have something installed wrong?

 

 

Any help would be appreciated!

 

 

Mark

Link to comment
Share on other sites

  • 2 weeks later...
follow the instructions by this guy and it works

 

:D

 

thx man

 

 

Ok I played round with it a little bit... ?And this is what I done and I got it working... Put in your code to take away that error msg. ?Then as said above do not put inside the <form>...</form>.. ?So I deleted the </table> just before the </form> and then under this :
<?php

?}

?>

? ?</form>

</td>

(remember I removed </table>)

 

I added this

? ?<tr>

? ? ?<td><br><?php require(DIR_WS_MODULES . 'shipping_estimator.php'); ?></td>

? ?</tr></table>

And it now works! lovely stuff!

FYI..

I had to do the 2 changes and change line 103 and 106 in shipping_estimator.php from STORE_ORIGIN_ZIP to SHIPPING_ORIGIN_ZIP to get it to not say STORE_ORIGIN_ZIP in the Zip code field when no one was logged in.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...