SophieCat Posted January 12, 2005 Posted January 12, 2005 Hi, I searched for hours looking for help with this but couldn't find an answer. I would like to know where and how to remove "This product was added to our catalog on Date" from the item description. Thank you
Guest Posted January 12, 2005 Posted January 12, 2005 In product_info.php find this code around line 186: <?php } if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) { ?> <tr> <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td> </tr> <?php } else { ?> <tr> <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td> </tr> <?php } ?> Change it to this: <?php } if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) { ?> <tr> <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td> </tr> <?php } ?>
SophieCat Posted January 12, 2005 Author Posted January 12, 2005 In product_info.php find this code around line 186: <?php ? ?} ? ?if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) { ?> ? ? ?<tr> ? ? ? ?<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td> ? ? ?</tr> <?php ? ?} else { ?> ? ? ?<tr> ? ? ? ?<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td> ? ? ?</tr> <?php ? ?} ?> Change it to this: <?php ? ?} ? ?if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) { ?> ? ? ?<tr> ? ? ? ?<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td> ? ? ?</tr> <?php ? ?} ?> <{POST_SNAPBACK}>
SophieCat Posted January 12, 2005 Author Posted January 12, 2005 <{POST_SNAPBACK}> Thank you for your quick response. I have one ridiculous question that I need to ask before I make this change. I know that before editing a file you should always back it up 1st. Does backing up a file mean that I should use the backup feature that osc provides or should I be saving the file onto my hard drive or something. I know this question sounds really stupid but I just don't understand how to back up a file.
Guest Posted January 12, 2005 Posted January 12, 2005 Wow...you are green, aren't you? :) OK..first, you should have a local copy of your site on your harddrive. I usually make two copies of the site locally. Once will be my "working copy" and the other is zipped to save room. Now, to make changes duplicate the file from *filename*.php to *filename*.php.bak or *filename*.php.old (doesn't matter...just make a duplicate). Then edit the original *filename*.php and upload to the server. If something goes wrong delete *filename*.php and then rename *filename*.php.bak to *filename*.php and upload the restored copy. If all goes wrong unzip the archive and upload the never changed or duplicated file...it should still be fresh. Also, DO NOT use the filemanager to make changes to source code!!! Bobby
SophieCat Posted January 12, 2005 Author Posted January 12, 2005 Thank you for all your help Bobby, appreciate it. And, Yes, I am very green! Darlene
Guest Posted January 12, 2005 Posted January 12, 2005 No problem...and if you run into any more trouble just post back. If I'm around I try my best to answer questions but if not there are plenty of capable people that will reply. Bobby
ozcsys Posted January 12, 2005 Posted January 12, 2005 Thank you for your quick response. I have one ridiculous question that I need to ask before I make this change. I know that before editing a file you should always back it up 1st. Does backing up a file mean that I should use the backup feature that osc provides or should I be saving the file onto my hard drive or something. I know this question sounds really stupid but I just don't understand how to back up a file. <{POST_SNAPBACK}> Just to make sure you are clear the backup in the osC admin does not backup any files, it backs up your database info. Bobby already explained the files quite well but anytime you make changes ( add products etc) you should backup the database. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
chinakris Posted January 16, 2005 Posted January 16, 2005 In product_info.php find this code around line 186: <?php ? ?} ? ?if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) { ?> ? ? ?<tr> ? ? ? ?<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td> ? ? ?</tr> <?php ? ?} else { ?> ? ? ?<tr> ? ? ? ?<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td> ? ? ?</tr> <?php ? ?} ?> Change it to this: <?php ? ?} ? ?if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) { ?> ? ? ?<tr> ? ? ? ?<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td> ? ? ?</tr> <?php ? ?} ?> <{POST_SNAPBACK}> Hi I have the same problem as Sohpiecat. Was pleased the see the answer to my problem, but very confused when I went to my product_info.php......its only got about 20 odd lines in it. Where's line 186? The file I opened is in includes/languages/english. Should I be looking somewhere else?
ozcsys Posted January 16, 2005 Posted January 16, 2005 HiI have the same problem as Sohpiecat. Was pleased the see the answer to my problem, but very confused when I went to my product_info.php......its only got about 20 odd lines in it. Where's line 186? The file I opened is in includes/languages/english. Should I be looking somewhere else? <{POST_SNAPBACK}> You are looking for the product_info.php file in your root directory. That is the one where you see your admin folder. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
chinakris Posted January 16, 2005 Posted January 16, 2005 You are looking for the product_info.php file in your root directory. That is the one where you see your admin folder. <{POST_SNAPBACK}> I looked in www/product_info as well as a couple of other folders. Same product_info file. Could it be called something else? :blink:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.