Zen Cart Logo
Forums / General Questions / Shipping Estimator not showing when logged in

Shipping Estimator not showing when logged in

Locked

Views: 1,402

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
8 Oct 2009, 7:48 PM
#1
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Shipping Estimator not showing when logged in

I am having a problem and it appears that it is with the shipping estimator.... When logged in and viewing the shopping cart the shipping estimator table will not show... but will show when I am not logged in... also the bottom part of the site and the right column are not showing at the shopping cart page.

I have copied from a fresh 1.3.8a dir the /includes/modules/shipping_estimator.php over and the
/includes/templates/template_default/templates/tpl_modules_shipping_estimator.php over and it is still not working correctly.... the reason I think it is the shipping estimator is that when I change the shipping estimator to be a button... I see it whether I am logged in or not... and the template bottom and right column will then show... is there another file that I need to refresh?

This is what my source looks like at the end of the page when it is not showing...

function showStateField(theForm) {
theForm.state.disabled = false;
theForm.state.className = 'inputLabel visibleField';
theForm.state.setAttribute('className', 'visibleField');
document.getElementById("stateLabel").className = 'inputLabel visibleField';
document.getElementById("stateLabel").setAttribute('className', 'inputLabel visibleField');
document.getElementById("stBreak").className = 'clearBoth visibleField';
document.getElementById("stBreak").setAttribute('className', 'clearBoth visibleField');
}
//--></script><!-- shipping_estimator //-->

<script language="javascript" type="text/javascript"> function shipincart_submit(){ document.estimator.submit(); return false; } </script>

Thanks!


Mods I'm using....

cross_sell__just_another_cross_sell_mod_rev186.zip
module_manager_rev16zip.zip
ultimate_seo_urls_2-107.zip
ask_1.8
google_anal v1.2.2
encrypted_master_password_1.2
zen_googlecode v1.2.2
shopping_cart_freeshippingqualifier_sidebox_1.3

8 Oct 2009, 9:18 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Shipping Estimator not showing when logged in

shrimp-gumbo-mmmhhh:

... also the bottom part of the site and the right column are not showing at the shopping cart page.
Dealing with (partial) blank pages: https://www.zen-cart.com/tutorials/index.php?article=82

8 Oct 2009, 9:31 PM
#3
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Shipping Estimator not showing when logged in

Thanks for the hint:

[08-Oct-2009 17:28:25] PHP Fatal error: Cannot redeclare class order in /home/xxxxxxx/public_html/includes/classes/order.php on line 1018

8 Oct 2009, 9:39 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Shipping Estimator not showing when logged in

So, something you've done has another file on the server that also declares the order class. Probably a backup copy you made by renaming "order.php" to "order_old.php" or copying order.php into one of the various automatic-loading folders or something. Those are common mistakes people make when upgrading ... if you're going to rename files, be sure to NOT keep ".php" on the end of the filename. And instead of renaming, it's often best to make a reliable backup and depend on that instead of depending on renaming things.
Other common mistakes are drag-and-drop into wrong folders when installing addons or navigating around your PC and/or FTP program.

Search your site for "class order" and delete the files that are NOT located at /includes/classes/order.php or /admin/includes/classes/order.php.

9 Oct 2009, 2:16 AM
#5
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Shipping Estimator not showing when logged in

Thanks for the extra help....

one exists in /includes/classes/order.php and one in /admin/includes/classes/order.php.

Seems like one of the mods had an order.php file so I will look into that...

9 Oct 2009, 3:23 AM
#6
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Shipping Estimator not showing when logged in

I've looked through the mods and don't see anything having to do with orders :no:

I had made some cosmetic changes to the shipping estimator but have overwrote those files....

I just don't understand why this is only happening with the shipping estimator on the shopping cart page and only if you are logged in.

9 Oct 2009, 3:26 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Shipping Estimator not showing when logged in

What do you get when you search for "order.php" ?

What are the names of the files in this folder: /includes/modules/pages/shopping_cart/

9 Oct 2009, 3:49 AM
#8
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Shipping Estimator not showing when logged in

DrByte:

What do you get when you search for "order.php" ?

Searching 1018 files ... for: order.php

/home/mydotcom/public_html/ipn_main_handler.php
Line #202 : require(DIR_WS_CLASSES . 'order.php');

/home/mydotcom/public_html/admin/includes/classes/order.php
Line #6 : * @version $Id: order.php 5784 2007-02-14 04:00:58Z ajeh $

/home/mydotcom/public_html/admin/invoice.php
Line #29 : include(DIR_WS_CLASSES . 'order.php');

/home/mydotcom/public_html/admin/orders.php
Line #14 : include(DIR_WS_CLASSES . 'order.php');

/home/mydotcom/public_html/admin/packingslip.php
Line #32 : include(DIR_WS_CLASSES . 'order.php');

/home/mydotcom/public_html/admin/stats_customers_referrals.php
Line #30 : include(DIR_WS_CLASSES . 'order.php');

/home/mydotcom/public_html/includes/classes/order.php
Line #7 : * @version $Id: order.php 7129 2007-09-29 03:03:04Z drbyte $

/home/mydotcom/public_html/includes/filenames.php
Line #172 : define('FILENAME_LISTING_DISPLAY_ORDER', 'listing_display_order.php');

/home/mydotcom/public_html/includes/languages/english/modules/payment/moneyorder.php
Line #19 : // $Id: moneyorder.php 1969 2005-09-13 06:57:21Z drbyte $

/home/mydotcom/public_html/includes/modules/checkout_process.php
Line #40 : require(DIR_WS_CLASSES . 'order.php');

/home/mydotcom/public_html/includes/modules/listing_display_order.php
Line #8 : * @version $Id: listing_display_order.php 3012 2006-02-11 16:34:02Z wilt $

/home/mydotcom/public_html/includes/modules/pages/account_history_info/header_php.php
Line #59 : require(DIR_WS_CLASSES . 'order.php');

/home/mydotcom/public_html/includes/modules/pages/checkout_confirmation/header_php.php
Line #57 : require(DIR_WS_CLASSES . 'order.php');

/home/mydotcom/public_html/includes/modules/pages/checkout_payment/header_php.php
Line #83 : require(DIR_WS_CLASSES . 'order.php');

/home/mydotcom/public_html/includes/modules/pages/checkout_shipping/header_php.php
Line #70 : require(DIR_WS_CLASSES . 'order.php');

/home/mydotcom/public_html/includes/modules/pages/checkout_shipping_address/header_php.php
Line #33 : require(DIR_WS_CLASSES . 'order.php');

/home/mydotcom/public_html/includes/modules/pages/shopping_cart/header_php.php
Line #30 : require(DIR_WS_CLASSES . 'order.php');

/home/mydotcom/public_html/includes/modules/payment/moneyorder.php
Line #6 : * @version $Id: moneyorder.php 4960 2006-11-20 01:46:46Z drbyte $

/home/mydotcom/public_html/includes/modules/payment/paypalwpp.php
Line #1612 : require(DIR_WS_CLASSES . 'order.php');
Line #2641 : require_once(DIR_WS_CLASSES . 'order.php');

/home/mydotcom/public_html/includes/modules/shipping_estimator.php
Line #83 : require(DIR_WS_CLASSES . 'order.php');

/home/mydotcom/public_html/includes/templates/template_default/templates/tpl_featured_products_default.php
Line #19 : require($template->get_template_dir('/tpl_modules_listing_display_order.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_listing_display_order.php');

/home/mydotcom/public_html/includes/templates/template_default/templates/tpl_modules_listing_display_order.php
Line #8 : * @version $Id: tpl_modules_listing_display_order.php 3369 2006-04-03 23:09:13Z drbyte $

/home/mydotcom/public_html/includes/templates/template_default/templates/tpl_products_all_default.php
Line #16 : require($template->get_template_dir('/tpl_modules_listing_display_order.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_listing_display_order.php'); ?>

/home/mydotcom/public_html/includes/templates/template_default/templates/tpl_products_new_default.php
Line #19 : require($template->get_template_dir('/tpl_modules_listing_display_order.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_listing_display_order.php'); ?>

Match Lines found: 25

DrByte:

What are the names of the files in this folder: /includes/modules/pages/shopping_cart/

header_php.php
jscript_main.php

Answers above.... THANKS!

FYI... In a previous zen life I had issues with my multiple new shipping options that I created not working correctly because of some setting not allowing so many options .... was that fix put in 1.3.8a?... when I tried to turn on a order_total module for collecting insurance pieces of my site acted very strange and I had to turn off because of that... don't know if it might be related... right now only the shipping options are turned on about 9-12 new ones. And I have 3 "insurance" type order_total modules that are not turned on currently.

9 Oct 2009, 5:40 AM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Shipping Estimator not showing when logged in

shrimp-gumbo-mmmhhh:

/home/mydotcom/public_html/includes/modules/pages/shopping_cart/header_php.php
Line #30 : require(DIR_WS_CLASSES . 'order.php');

/home/mydotcom/public_html/includes/modules/shipping_estimator.php
Line #83 : require(DIR_WS_CLASSES . 'order.php');

In the case of the shopping_cart/header_php.php file, line 30 should be commented-out as part of the 2 lines above it and several lines following it, although I would have expected it to be line 31, not 30.

For modules/shipping_estimator.php, I would have expected line 84, not line 83. Regardless, that line belongs.

The other mentions of the file should have no bearing on operation of that particular page, unless you've got an addon or customization that's doing something unique.