Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Add Event Rich Snippets to Product_Listings.php


Recommended Posts

What I am after is the following: I have Oscommerce installed for the site and what I need is Rich Snippets adding to the Product Listing table on the product_listing.php file.


I need to add EVENTS rich snippets so that they are shown when the google rich snippet testing tool is used.


The code below generates the name of the Event but if I put the tags <span itemprop="name"> surrounding the following code then nothing appears but if I echo then it is fine but obviously the information is displayed twice.






$lc_align = '';

?> <?

if (isset($HTTP_GET_VARS['manufacturers_id'])) {


$lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>';

} else {

$lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a> ';








any help or advice appreciated. Thanks

Link to comment
Share on other sites


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

  • Create New...