Grant7 Posted October 13, 2006 Posted October 13, 2006 Is it possible to get the specials picture in the specials infobox to link to specials.php rather than the product page shown in the image? Thanks, Grant
digbydo Posted October 13, 2006 Posted October 13, 2006 Is it possible to get the specials picture in the specials infobox to link to specials.php rather than the product page shown in the image? Thanks, Grant Is this what you need? Test ? It's a quick change to the specials.php file one-click installation.. Dave's info
Grant7 Posted October 14, 2006 Author Posted October 14, 2006 Is this what you need?Test ? It's a quick change to the specials.php file Yeh man that's exactly what I need!! How do I do that? Thanks, Grant
digbydo Posted October 14, 2006 Posted October 14, 2006 Yeh man that's exactly what I need!!How do I do that? In includes/boxes/specials.php find the bit (around line 30) that says: $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product["products_id"]) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . $random_product['products_name'] . '</a><br><s>' . $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</s><br><span class="productSpecialPrice">' . $currencies->display_price($random_product['specials_new_products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</span>'); and change to: $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<a href="specials.php">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . $random_product['products_name'] . '</a><br><s>' . $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</s><br><span class="productSpecialPrice">' . $currencies->display_price($random_product['specials_new_products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</span>'); Cheers :thumbsup: one-click installation.. Dave's info
Grant7 Posted October 16, 2006 Author Posted October 16, 2006 In includes/boxes/specials.php find the bit (around line 30) that says: $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product["products_id"]) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . $random_product['products_name'] . '</a><br><s>' . $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</s><br><span class="productSpecialPrice">' . $currencies->display_price($random_product['specials_new_products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</span>'); and change to: $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<a href="specials.php">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . $random_product['products_name'] . '</a><br><s>' . $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</s><br><span class="productSpecialPrice">' . $currencies->display_price($random_product['specials_new_products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</span>'); Cheers :thumbsup: Thanks heaps digbydo!!!! :thumbsup: B)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.