Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2007
    Posts
    25
    Plugin Contributions
    0

    Default Changing layout to a single product?

    I am wanting to know how I might go about modifying the product_info layout of a single product. Does the override system have a way of respecting the products_id?

    Specifically I have a number of attributes set for a product, and about half way through the list of selectable attributes I need to insert a bunch of custom code. It's only for a specific product, the rest don't need it.

    Thanks!

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Changing layout to a single product?

    Probably the simplest way of dealing with this product is to enclose your custom code in a conditional statement so it is only executed for that product.
    In the file where the attributes list is built, add something like
    PHP Code:
    if ($products_id == ###) {
     
    custom code


 

 

Similar Threads

  1. Changing product layout
    By ptrego in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 26 Jun 2009, 06:55 PM
  2. Single page and single product shopping cart.
    By adamgh in forum General Questions
    Replies: 2
    Last Post: 21 Mar 2009, 10:31 PM
  3. Single product view page. How to change the layout?
    By alex2310 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 5 Mar 2007, 04:17 PM
  4. single product with many price-changing options
    By quick77 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 31 Jan 2007, 09:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg