Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How Do I Remove Product Notification ?


fouldsc

Recommended Posts

Hi,

I'm sure it been asked before , but I can't find it.

How do i remove Product Notification ?

Do I have to hack the PHP - or is there something simple ?

 

If it PHP does anyone know all the files I need to alter ?

Link to comment
Share on other sites

I think it's column_right.php; checkout_confirmation.php and probably the page in accounts which deals with notifications - just remove the relevant code (or comment out), taking care not to upset the table structure. Terra

My code for combining PayPal IPN with ** QTPro 4.25 ** osC Affiliate ** CCGV(trad)

and how to solve the invoice already paid error

General info: Allow customer to delete order comment ** FTP Programs & Text Editors ** Amending order email **

Link to comment
Share on other sites

are these the files to modify if you want to remove the "notify me of product updates" part on the right hand side when viewing a product? Also would it be the same files when dealing with the "tell a friend" part aswell?

Link to comment
Share on other sites

I don't know about tell a friend , not looked into that as its

something we wish to keep.

 

However a break down of these files are :

 

column_right.php

-> Removes from the right hand side when viewing a product

 

account.php

-> When in My account , remove the option for viewing what product notifications

you have got

 

checkout_success.php

-> Removes the options for the buyer to add items they just purchased to the

product notification list.

Link to comment
Share on other sites

To just get rid of the notification "BOX", you just edit catalog/includes/column_right.php

 

find

 

include(DIR_WS_BOXES . 'product_notifications.php');

 

And put // two slashes in front of the line like this

 

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

 

It appears a couple of times within some "if" statements, you can do that to both occurences of that line.

 

To get rid of the whole "notification" system, yes...edit those other 2 files mentioned.

 

I don't think tell a friend shows up anywhere except column_right.php

Link to comment
Share on other sites

I don't know about tell a friend , not looked into that as its

something we wish to keep.

 

However a break down of these files are :

 

column_right.php

-> Removes from the right hand side when viewing a product

 

account.php

-> When in My account , remove the option for viewing what product notifications

you have got

 

checkout_success.php

-> Removes the options for the buyer to add items they just purchased to the

product notification list.

 

could you list the exact code you removed from the checkout success area in order to make this work, i dont wanna remove the wrong stuff.

 

I am thinking it is this part :

if ($global['global_product_notifications'] != '1') {

echo TEXT_NOTIFY_PRODUCTS . '<br><p class="productsNotifications">';

 

$products_displayed = array();

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

if (!in_array($products_array[$i]['id'], $products_displayed)) {

echo tep_draw_checkbox_field('notify[]', $products_array[$i]['id']) . ' ' . $products_array[$i]['text'] . '<br>';

$products_displayed[] = $products_array[$i]['id'];

Link to comment
Share on other sites

  • 1 month later...

not sure if youve figured that one out but for other people wondering the same thing ive done this and its worked (in the right hand column)

 

You will see ive only commented out two lines after each "else". Hope that helps someone :)

 

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');

}

Link to comment
Share on other sites

could you list the exact code you removed from the checkout success area in order to make this work, i dont wanna remove the wrong stuff.

 

I am thinking it is this part :

 

From about line 80

 

<!--

<?php

if ($global['global_product_notifications'] != '1') {

echo TEXT_NOTIFY_PRODUCTS . '<br><p class="productsNotifications">';

 

$products_displayed = array();

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

if (!in_array($products_array[$i]['id'], $products_displayed)) {

echo tep_draw_checkbox_field('notify[]', $products_array[$i]['id']) . ' ' . $products_array[$i]['text'] . '<br>';

$products_displayed[] = $products_array[$i]['id'];

}

}

 

echo '</p>';

} else {

echo TEXT_SEE_ORDERS . '<br><br>' . TEXT_CONTACT_STORE_OWNER;

}

?>

//-->

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...