Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help- Immovable "New Products For June" Box


Rozza

Recommended Posts

Posted

Putting my first shop together and no matter what I try or where I search I can't find a way to get rid of the "New Products For June" panel on the first page of the site.

 

I have commented out the "include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS)" line in the catalog/index.php file as it states in the manual but it just won't go!

 

Any help would be appreciated.

 

Cheers

Posted

Try posting the code showing what you did and someone might be able to spot the probem otherwise I'll just whistle in the wind

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted
Try posting the code showing what you did and someone might be able to spot the probem otherwise I'll just whistle in the wind

 

Hi Geoffrey,

 

Going from the knowledgebase instructions: http://www.oscommerce.info/kb/osCommerce/C..._Area/Boxes/260

I commented out the line.

 

Here's the section of the catalog/index.php file with the edit in Red:

    }

// needed for the new products module shown below
   $new_products_category_id = $current_category_id;
?>

             </tr>
           </table></td>
         </tr>
         <tr>
           <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
         </tr>
         <tr>
           <td><?php [color="#FF0000"][b]//[/b][/color] include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
         </tr>
       </table></td>
     </tr>
   </table></td>
<?php
 } elseif ($category_depth == 'products' || isset($HTTP_GET_VARS['manufacturers_id'])) {
// create column list
   $define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL,
                        'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME,
                        'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER,
                        'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE,
                        'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY,
                        'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT,
                        'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE,
                        'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW);

 

Here is the site while I work on it: http://www.catalogue.rozzaweb.com/catalog/

 

I have I missed something?

Posted
Hi Geoffrey,

 

Going from the knowledgebase instructions: http://www.oscommerce.info/kb/osCommerce/C..._Area/Boxes/260

I commented out the line.

 

Here's the section of the catalog/index.php file with the edit in Red:

    }

// needed for the new products module shown below
   $new_products_category_id = $current_category_id;
?>

             </tr>
           </table></td>
         </tr>
         <tr>
           <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
         </tr>
         <tr>
           <td><?php [color="#FF0000"][b]//[/b][/color] include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
         </tr>
       </table></td>
     </tr>
   </table></td>
<?php
 } elseif ($category_depth == 'products' || isset($HTTP_GET_VARS['manufacturers_id'])) {
// create column list
   $define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL,
                        'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME,
                        'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER,
                        'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE,
                        'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY,
                        'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT,
                        'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE,
                        'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW);

 

 

I have I missed something?

 

Fixed it!

 

Trying things out I deleted the module new_products.php the resulting error referred to the exact line number in catalog/index.php (in this case line 317) where the command lived.

 

I commented out the correct line :blush: and hey presto!

Posted

I'll stop whistling now :-)

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Archived

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

×
×
  • Create New...