Jump to content


Photo
- - - - -

Include or Exclude Snippets


  • Please log in to reply
1 reply to this topic

#1 Daymon74

Daymon74

    Member

  • Customers
  • PipPip
  • 10 posts

Posted 27 July 2012 - 02:52 PM

I'm wondering how I might include, or exclude snipptes of HTML within the templating system. For example if the product belongs to CATEGORY A - show the snippet. If the product belongs to CATEGORY B - don't show the snippet.

The snippet in my case would be a PHP include. I already know how to include a php file within the template, I just need a way of including, or excluding that code based on the product's category.

#2 Daymon74

Daymon74

    Member

  • Customers
  • PipPip
  • 10 posts

Posted 28 July 2012 - 06:21 PM

Any takers?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users