damo2576 Posted June 28, 2004 Posted June 28, 2004 I'm trying to figure out how to add the product name to the review box? So far no luck, anyone done this before? Thanks in advance! Damo
damo2576 Posted June 28, 2004 Author Posted June 28, 2004 Figured it out, for anyone thats interested comment out line 38 (approx) in reviews.php and add following below: $info_box_contents[] = array('text' => '<div align="center">' . $random_product['products_name'] . '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $random_product['products_id'] . '&reviews_id=' . $random_product['reviews_id']) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></div><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $random_product['products_id'] . '&reviews_id=' . $random_product['reviews_id']) . '">' . $review . ' ..</a><br><div align="center">' . tep_image(DIR_WS_IMAGES . 'stars_' . $random_product['reviews_rating'] . '.gif' , sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $random_product['reviews_rating'])) . '</div>');
Recommended Posts
Archived
This topic is now archived and is closed to further replies.