Rodland Posted March 20, 2003 Share Posted March 20, 2003 I would like to add different links and text at different places in the product info pages. If I try to customise product_info.php, by adding a link to a colour chart for instance, all of the product info pages display this colour chart, which I don't want because some of the products do not have colours associated with them and others have different colours completely. How can I do this effectively. Is there an easy way of creating additional fields in the category/product admin pages? For instance description 2, discription 3 (which can be placed in different parts of the product_info.php page). What do I have to do in phpMyAdmin? Also, I may want to duplicate the product image in product_info.php and use this as a basis for importing colour shades, which I also import from the categories/products pages of the admin pages. Does anyone know how to do this? (for instance at the bottom of the product info page there are 5 images of colour shades, which only show if imported from the product pages in admin, in the same way as the product image does). CMR Link to comment Share on other sites More sharing options...
Rodland Posted March 21, 2003 Author Share Posted March 21, 2003 Nobody know how to create custom product info form fields ??? Please! Link to comment Share on other sites More sharing options...
burt Posted March 21, 2003 Share Posted March 21, 2003 It's not too easy, but basically what you need to do is amend admin/categories.php to add in extra form fields for your extra stuff (and then insert some extra bits of sql to add to the database... You can do this by looking at the file and copying/pasting blocks of code. Once you have it writing to the database, then you can amend your product_info page to show the new information. It's definately do-able as I have done it, take a look at; http://www.findanaudi.com/product_info.php...?products_id=43 And you can see that the extra details (year, mileage etc) are all extra inputs in the admin/categories.php file. I'm pretty sure that someone actually set out the exact steps to do this in a post in the Forums - might be worth you doing a search. Link to comment Share on other sites More sharing options...
Rodland Posted March 21, 2003 Author Share Posted March 21, 2003 Thanks Believe me I've been trying to search this. If you find it yourself I would really appreciate it if you could be so king to post it to me. CMR Link to comment Share on other sites More sharing options...
Guest Posted March 21, 2003 Share Posted March 21, 2003 Make an image of the color chart. Call it in html from the description! A lot less coding and will only show up on the items you add it to in the descriptions. There is another thread on this in the forums if you do a search. hth, Tony 8) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.