andyh2003 Posted May 11, 2012 Share Posted May 11, 2012 Hi, Can anyone help? Im creating a car parts site , which has makes/models of vehicles set up as categories and sub categories. I would like to be able to add PHP/HTML into the product description to pull info from an MySQL Table into the description, specific info to the category. I can create the SQL Statement, but need to know how to get the current page category ID and then how to include this into the description page? ive tried HTML tags, but they come out as text.... is what i want to do acheiveable? any help would be great! Link to comment Share on other sites More sharing options...
bellini13 Posted May 12, 2012 Share Posted May 12, 2012 you would have to alter the ProductController to perform the mysql query and place the contents into a smarty variable. then you would alter product template so that it would use the smarty variable. Link to comment Share on other sites More sharing options...
andyh2003 Posted May 14, 2012 Author Share Posted May 14, 2012 you would have to alter the ProductController to perform the mysql query and place the contents into a smarty variable. then you would alter product template so that it would use the smarty variable. HI Bellini, can you give me an indication how difficult this would be to do? Any suggested reading/examples of this ? Link to comment Share on other sites More sharing options...
bellini13 Posted May 17, 2012 Share Posted May 17, 2012 if you are familiar with php coding it should not be too difficult. have you made any other coding changes in prestashop before? Link to comment Share on other sites More sharing options...
SonnyBoyII Posted May 29, 2012 Share Posted May 29, 2012 try this: http://www.jellygnite.com.au/blog/index.php/archive/update-display-html-in-prestashop-category-description-v-1-4/ Link to comment Share on other sites More sharing options...
Dh42 Posted May 29, 2012 Share Posted May 29, 2012 As for the php, you would have to turn php on in the smarty compiler. By default it is off. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now