Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

move product notification, notify


zeberrun

Recommended Posts

hi,

i want to add notifications to product_info.php with a line, but after i have carried the code, number 1 comes together.

 

<?php

if (tep_session_is_registered('customer_id')) {

$check_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and customers_id = '" . (int)$customer_id . "'");

$check = tep_db_fetch_array($check_query);

$notification_exists = (($check['count'] > 0) ? true : false);

} else {

$notification_exists = false;

}

 

$info_box_contents = array();

if ($notification_exists == true) {

$info_box_contents[] = array(

'text' => '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=notify_remove', $request_type) . '"><font color="ffffff" size="2"><b>Product Notification</b></font></a>');

} else {

$info_box_contents[] = array(

'text' => '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=notify', $request_type) . '"><font color="ffffff" size="2"><b>No Notification</b></font></a>');

}

new infoBoxHeading($info_box_contents);

?>

 

THE RESULT

 

Product Notification 1

 

how can i remove this 1 form code

rgds

Link to comment
Share on other sites

hi,

i want to add notifications to product_info.php with a line, but after i have carried the code, number 1 comes together.

 

<?php

if (tep_session_is_registered('customer_id')) {

$check_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and customers_id = '" . (int)$customer_id . "'");

$check = tep_db_fetch_array($check_query);

$notification_exists = (($check['count'] > 0) ? true : false);

} else {

$notification_exists = false;

}

 

$info_box_contents = array();

if ($notification_exists == true) {

$info_box_contents[] = array(

'text' => '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=notify_remove', $request_type) . '"><font color="ffffff" size="2"><b>No Notification</b></font></a>');

} else {

$info_box_contents[] = array(

'text' => '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=notify', $request_type) . '"><font color="ffffff" size="2"><b>Product Notification</b></font></a>');

}

new infoBoxHeading($info_box_contents);

?>

 

THE RESULT

 

Product Notification 1

 

how can i remove this 1 form code

rgds

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...