Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing some info on product pages


Guest

Recommended Posts

Posted

I have a site, http://hondaacurasalvage.com/catalog, and when I input an item I get "This product was added to our catalog on ......" and just below that, "Item #: 29". How can I remove those two items from being listed on the products pages? In the admin section where I add products, there is no place indicating that this info is going to show up. Is there a setting somewhere or maybe I need to comment out some code in one of the php files?

 

Thanks,

Linque

Posted
I have a site, http://hondaacurasalvage.com/catalog, and when I input an item I get "This product was added to our catalog on ......" and just below that, "Item #: 29". How can I remove those two items from being listed on the products pages? In the admin section where I add products, there is no place indicating that this info is going to show up. Is there a setting somewhere or maybe I need to comment out some code in one of the php files?

 

Thanks,

Linque

 

in the product_info.php file find:

 

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

 

thats whats responsible for "This product was added to our catalog on blah blah blah."

comment it out or replace it with .....erm ? or something

 

the code for the item number should be close by.. underneath

Posted

Thank you very much...that fixed my problem.

Posted

Andy, I thought I had finally found the answer to the same issue - trying to get rid of the date the product was added to the catalog. I have looked at the product_info.php file until I need an entire bottle of Visine. The only line I find that is like the TEXT_DATE_ADDED is:

 

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

 

I have gone bonkers trying to find the suggested bit of code! Any help would be beyond appreciated. Well, off to the Visine bottle (this stuff could drive one to a different bottle)! and then to bed. Maybe I'll have fresh eyes in the morning. Thanks, Jennifer

Posted
Andy, I thought I had finally found the answer to the same issue - trying to get rid of the date the product was added to the catalog. I have looked at the product_info.php file until I need an entire bottle of Visine. The only line I find that is like the TEXT_DATE_ADDED is:

 

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

 

I have gone bonkers trying to find the suggested bit of code! Any help would be beyond appreciated. Well, off to the Visine bottle (this stuff could drive one to a different bottle)! and then to bed. Maybe I'll have fresh eyes in the morning. Thanks, Jennifer

 

In /catalog/product_info.php TEXT_DATE_ADDED is right below TEXT_DATE_AVAILABLE

 

<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>

 

-Miserlou

Posted
In /catalog/product_info.php TEXT_DATE_ADDED is right below TEXT_DATE_AVAILABLE

 

<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>

 

-Miserlou

 

thats correct around line erm...... 350 in my file anyhow

Posted

Rats! I just don't have that piece of code and have no idea what to do. Here's my code from the TEXT_DATE_AVAILABLE on down in product_info.php info. It's just not there! Any ideas? Thanks!

 

 

<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">

 

</td>

</tr>

<?php

}

?>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

<tr class="infoBoxContents">

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td>

<td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td>

<?php

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_also_purchased(3600);

} else {

include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);

}

}

?>

</td>

</tr>

</table></form></td>

<!-- body_text_eof //-->

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- right_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>

<!-- right_navigation_eof //-->

</table></td>

</tr>

</table>

<!-- body_eof //-->

 

<!-- footer //-->

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //-->

<br>

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Posted

Looks like the line you are looking for has already been remove. On a stock osCommerce page you should see

 

<?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

}

?>

 

but you have

 

<tr>

<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td>

</tr>

<?php

} else {

?>

 

Could the page just be cached so you see the line on the page even though the code has been removed? This can sometimes cause a problem with people thinking something hasn't changed.

Wendy James

 

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

Posted

Wendy, thanks. I feel like such an idiot, but how do I know if a page is cached? That could be the answer, however I didn't build the site and have had some help from great people here along the way, so I'm feeling rather clueless.

Posted

Easiest thing to do would be to open your browser, click on Tools, then internet options. Once the new window pops up click on delete files under Temporary Internet files. IE has this, not sure about other browsers but I know they all have this function somewhere.

 

Then close your browser. Reopen and go back to your site and see if you still see that line.

Wendy James

 

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

Posted

Oh, THAT cache - I think I did that a few days ago, but I'll try again. I thought you meant the "cache control" in osc which I have no idea about. Thanks, I'll try...

Posted

I looked at your site and I don't see any "date added" code anywhere.

Which page are you seeing it on?

Wendy James

 

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

Posted

I am such a klutz! The date added is only in the admin, not on the online catalog. I can't believe I didn't notice that. I spend most of my time in the admin.

 

Thanks for putting up with me! Problem solved (or never existed to begin with). Sorry for the false alarm. Still is weird though. I have no idea how it happened, but all is well now.

 

Have a great weekend!

Posted

No problem. I almost asked you if that was where you were seeing it on my last post. : )

Wendy James

 

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

  • 1 month later...
Posted

Hi, I'm trying to comment this section out. I've tried adding "//" which I understand are the comments and put directly in front of that statement but nothing happened. Can someone tell me exactly where to put them and how... Thanks I appreciate it...

Posted
Hi, I'm trying to comment this section out. I've tried adding "//" which I understand are the comments and put directly in front of that statement but nothing happened. Can someone tell me exactly where to put them and how... Thanks I appreciate it...

 

 

Okay after further research, I was unable to find out how to comment it out. Instead I deleted it, the instructions are posted here.... Make a note of this change for future problems...

 

http://www.oscommerce.com/forums/index.php?sho...mp;#entry785003

 

Terry

Archived

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

×
×
  • Create New...