Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove Date this Product Added and Mfg.


Guest

Recommended Posts

Posted

I want to remove date product added and the manufacturer from list product.

 

I have found three different instuctions to remove the code from the following files.

includes/languages/english/product_info.php also catalog/product_info.php and from modules new product info.

 

I have had no success with any of these directions except error messages. Could someone please take the time to direct me to the right file, with explicit instructions.

 

Thank You

Jim

Posted
I want to remove date product added and the manufacturer from list product.

 

I have found three different instuctions to remove the code from the following files.

includes/languages/english/product_info.php also catalog/product_info.php and from modules new product info.

 

I have had no success with any of these directions except error messages. Could someone please take the time to direct me to the right file, with explicit instructions.

 

Thank You

Jim

 

The simplest answer to the above question follows

 

english/products_new.php

 

define('NAVBAR_TITLE', 'New Products');

define('HEADING_TITLE', 'New Products');

define('TEXT_DATE_ADDED', 'Date Added');

define('TEXT_MANUFACTURER', 'Manufacturer:');

define('TEXT_PRICE', 'Price:');

 

Simply remove the text between the ditto marks ' ' this leaves the program structure but removes the text, This is the case for all of the text we want to remove while customizing. The biggest problem is finding the proper file. The text can be changed to what you want but leave the ditto marks alone. The first catalog or files to check when on this search are YOUR language files, I don't know where my head was at when I asked this question, gettin' to damn cold up here in Canada.

Jim

Posted

Removing that portion of code in the language file will leave you with the line still showing up on the pages, just none of the defined words in it.

 

For the product listing page, where all of your products are listed you can shut these fields off by going to your admin area, clicking on configuration then product listing and turning them off there.

 

To stop the "this product was added on" from the product description page open catalog/product_info.php and look for

 

<?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?>

 

and remove it.

 

To stop the date added and manufacturer name from appearing on the "new products" page open catalog/products_new.php and remove

 

<br>' . TEXT_DATE_ADDED . ' ' . tep_date_long($products_new['products_date_added']) . '<br>' . TEXT_MANUFACTURER . ' ' . $products_new['manufacturers_name'] . '

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Posted
Removing that portion of code in the language file will leave you with the line still showing up on the pages, just none of the defined words in it.

 

For the product listing page, where all of your products are listed you can shut these fields off by going to your admin area, clicking on configuration then product listing and turning them off there.

 

To stop the "this product was added on" from the product description page open catalog/product_info.php and look for

 

<?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?>

 

and remove it.

 

To stop the date added and manufacturer name from appearing on the "new products" page open catalog/products_new.php and remove

 

<br>' . TEXT_DATE_ADDED . ' ' . tep_date_long($products_new['products_date_added']) . '<br>' . TEXT_MANUFACTURER . ' ' . $products_new['manufacturers_name'] . '

 

Thanks Wendy for your help:

 

Actually the line doesn't show, however I believe there is an extra space where the line should be guess I should of mentioned that. I do want the products listed. Your method is much more professional. Thankfully when an incomplete answer is offered by us newbys or a more accurate answer is available, those with lots of experience take an interest.

Thanks again

Jim

  • 4 weeks later...
Posted

So I actually just went to my templates/fallback/content/product_new.tpl.php went in and removed the following

 

<br>' . TEXT_DATE_ADDED . ' ' . tep_date_long($products_new['products_date_added']) . '<br>' . TEXT_MANUFACTURER . ' ' . $products_new['manufacturers_name'] . '<br>

 

and that took out the date added, then in my admin panel removed all manufactures listed and then went into the catalog/includes/language/english/product_new.php file and changed the text to

 

define('TEXT_DATE_ADDED', 'Date Added:');

define('TEXT_MANUFACTURER', '');

define('TEXT_PRICE', 'Price:');

 

just took out the word Manufacturers between the quotes and left the quotes there.

 

Skyler

  • 2 weeks later...
Posted
To stop the "this product was added on" from the product description page open catalog/product_info.php and look for

 

<?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?>

 

and remove it.

 

Thanks Wendy... that was a help to me as well :thumbsup:

zomething fishy?

  • 4 months later...
Posted
<snip>

To stop the "this product was added on" from the product description page open catalog/product_info.php and look for

 

<?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?>

 

and remove it.

 

 

Thanks Wendy! Appreciate everyone here on the boards.

Rick

Posted

For the product listing page, where all of your products are listed you can shut these fields off by going to your admin area, clicking on configuration then product listing and turning them off there.

 

To stop the "this product was added on" from the product description page open catalog/product_info.php and look for

 

<?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?>

 

and remove it.

 

Hi Wendy,

My "Product Listing" looks like this:

Display Product Image 1

Display Product Manufaturer Name 0

Display Product Model 0

Display Product Name 2

Display Product Price 3

Display Product Quantity 0

Display Product Weight 0

Display Buy Now column 4

Display Category/Manufacturer Filter (0=disable; 1=enable) 1

Location of Prev/Next Navigation Bar (1-top, 2-bottom, 3-both) 2

Display Product Image- Please make any necessary changes

Display Product Image- Do you want to display the Product Image?

For the product listing page, where all of your products are listed you can shut these fields off by going to your admin area, clicking on configuration then product listing and turning them off there.

Which one should be turned off and how?

thanks.

OH Boy!!! Not again!!!!!!!!!!!!!!!!!!!!!!

  • 3 years later...

Archived

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

×
×
  • Create New...