Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Notification not working?


Floob

Recommended Posts

On my site the notification part isnt working right.

 

Make sure the code in the infobox is correct:

 

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

   $info_box_contents[] = array('align' => 'left',

                                'text'  => '<table border="0" cellspacing="0" cellpadding="2"><tr><td class="infoBoxContents"><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=notify_remove', 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'box_products_notifications_remove.gif', IMAGE_BUTTON_REMOVE_NOTIFICATIONS) . '</a></td><td class="infoBoxContents"><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=notify_remove', 'NONSSL') . '">' . sprintf(BOX_NOTIFICATIONS_NOTIFY_REMOVE, tep_get_products_name($HTTP_GET_VARS['products_id'])) .'</a></td></tr></table>');

 } else {

   $info_box_contents[] = array('align' => 'left',

                                'text'  => '<table border="0" cellspacing="0" cellpadding="2"><tr><td class="infoBoxContents"><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=notify', 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'box_products_notifications.gif', IMAGE_BUTTON_NOTIFICATIONS) . '</a></td><td class="infoBoxContents"><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=notify', 'NONSSL') . '">' . sprintf(BOX_NOTIFICATIONS_NOTIFY, tep_get_products_name($HTTP_GET_VARS['products_id'])) .'</a></td></tr></table>');

 }

 

Post back if it doesn't look like that somewhat. includes/boxes/product_notifications.php

Link to comment
Share on other sites

Which column is your notification box in and how old is your snapshot?

 

If in the left column, there was a fix for that. If in the right column, then it's something else :shock:

Link to comment
Share on other sites

My snapshot was from early July 2002.

The box is in the left column, but I may have moved it there - I cant remember - where is default?

Where is the fix for the left column?

 

burt: I will post my code when I get home in a minute.

 

Thanks a lot for your help!

Link to comment
Share on other sites

That is why it is broken. Somewhere between July and August it was fixed for when it was moved to the left column so the product name would show :D

 

Mind like a steel trap ...

Link to comment
Share on other sites

That is why it is broken. Somewhere between July and August it was fixed for when it was moved to the left column so the product name would show :D

 

Yep you can see the fix here

 

http://cvs.sourceforge.net/cgi-bin/viewcvs...f?r1=1.3&r2=1.4

 

Although the easier way is to download the latest snapshot and replace your copy of catalog/includes/boxes/product_notifications.php with the one from the latest snapshot.

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

---------------------------------------

Software is like sex: It's better when it's free. (Linus Torvalds)

Link to comment
Share on other sites

Cheers for the responses.

I replaced the file form the latest snapshot - it worked - but the font went massive.

 

So I'll look at the fix now - and hope it isnt too complicated.

 

Cheers,

 

Floob.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...