Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Display problem ?!


antiz

Recommended Posts

Hello Guys and merry Christmas,

 

In fact I was just wondering if someone could help me with this problem.

 

ONLY the first time you get on my online shop index page -->

 

http://alexisdenervaux.free.fr/catalog/

 

you should get a display issue with the "Promotions" infobox as weel as the "Meilleures Ventes".

 

Thus as soon as you do a refresh or move on to another page of the online shop you won't get this issue anymore.

 

If this can help here are my column_left.php and column_right.php coding :

 

Colum_left.php

 

<?php

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_categories_box();

} else {

include(DIR_WS_BOXES . 'categories.php');

}

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_manufacturers_box();

} else {

//include(DIR_WS_BOXES . 'manufacturers.php');

}

 

//require(DIR_WS_BOXES . 'whats_new.php');

require(DIR_WS_BOXES . 'search.php');

require(DIR_WS_BOXES . 'information.php');

 

include(DIR_WS_BOXES . 'cc.php');

 

?>

 

 

 

column_right.php

 

 

<?php

 

require(DIR_WS_BOXES . 'shopping_cart.php');

 

require(DIR_WS_BOXES . 'loginbox.php');

 

if (isset($HTTP_GET_VARS['products_id'])) //include(DIR_WS_BOXES . 'manufacturer_info.php');

 

if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php');

 

if (isset($HTTP_GET_VARS['products_id'])) {

if (tep_session_is_registered('customer_id')) {

$check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'");

$check = tep_db_fetch_array($check_query);

if ($check['count'] > 0) {

include(DIR_WS_BOXES . 'best_sellers.php');

} else {

//include(DIR_WS_BOXES . 'product_notifications.php');

}

} else {

//include(DIR_WS_BOXES . 'product_notifications.php');

}

} else {

include(DIR_WS_BOXES . 'specials.php');

include(DIR_WS_BOXES . 'best_sellers.php');

}

 

if (isset($HTTP_GET_VARS['products_id'])) {

if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');

}

 

//require(DIR_WS_BOXES . 'reviews.php');

 

if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

//include(DIR_WS_BOXES . 'languages.php');

//include(DIR_WS_BOXES . 'currencies.php');

}

 

?>

 

 

 

 

Thanks a lot for you help in advance

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...