jloyzaga Posted July 5, 2003 Posted July 5, 2003 Can I put some text on top of the image as well as underneath and how?
TB Posted July 5, 2003 Posted July 5, 2003 Yes. You need to edit your catalog/includes/modules/new_products.php file. Line 33 (new_products v1.34) reads as follows: 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br>' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id']))); You need to edit that line as follows. 'text' => '[Any text here will be above the image. Remember to finish with a <br>] If there's any specific you would like put above the image and are having difficulties, just post again to this thread and we'll assist where possible. HTH, Tony "The price of success is perseverance. The price of failure comes much cheaper."
jloyzaga Posted July 5, 2003 Author Posted July 5, 2003 what if I want to put the vendor_id as set up in the vendor contrib?
TB Posted July 5, 2003 Posted July 5, 2003 Sorry. I haven't had a look at the Vendor Contribution. If I get a chance to look at it I'll see how I can help, otherwise post some more details and see if one of the other members more familiar with that contribution can assist. Cheers, Tony "The price of success is perseverance. The price of failure comes much cheaper."
jloyzaga Posted July 5, 2003 Author Posted July 5, 2003 it just creates a new table called vendor and alters the products table to add the vendor_id. I want to display this vendor id from the products table on top of the box. What I am really wanting to do is to create a new table called Artists and also alter the products table to include the artists ID and name and I want to display the artists name on top of the box instead of the vendor but I was just trying the vendor id to see if it would work - does this make an sort of sense? 18:50 pm Sydney time Joe
joey Posted July 5, 2003 Posted July 5, 2003 Can you give me the code to display the product name on top too? That will act as my template?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.