Jump to content

PHP & HTML in Product Description


Recommended Posts

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

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

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...