Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Please help


murtim

Recommended Posts

Don't delete it because it often comes with a lot of trouble... outcode it instead.

 

I have done like this... in the column right php file... /* slash and star both before and after...

 

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 . 'best_sellers.php');

}

 

 

Good luck!

 

Regards

Jessica

Jessica Fuchs

Link to comment
Share on other sites

Don't delete it because it often comes with a lot of trouble... outcode it instead.

 

I have done like this... in the column right php file... /* slash and star both before and after...

 

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 . 'best_sellers.php');

}

Good luck!

 

Regards

Jessica

 

 

Yep, excellent advise Jessica, lots and lots of people delete code only to later panic when something doesn't work.

 

~ Jared

www.jaredritchey.com

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