Results 1 to 8 of 8
  1. #1
    Join Date
    Jun 2010
    Posts
    28
    Plugin Contributions
    0

    Default Isolate & Modify product page Load and Layout for one product?!

    Hi all,

    Forums got me so far, but...

    The issue is that I have ONE product that I need to have load in WithOut the existing right set banner set items loading into the page. I want to keep all other product page load-ins "as-is." This product requires the combined width of my Center And Right content areas.

    Product Page As Is Now:

    http://www.soccer-uniforms.com/-p-233.html

    Question:
    Is there anywhere along my zencarts product template to insert php code that would toggle to an alternate layout php page (that has no right right side banner sets) based on the Category ID or Product Name or similar attribute??? Could it be done through a cloned and altered template php pages??? Can EZ Pages be of some assistance in this effort, if so, how??

    Open to other methods to cause this toggle effect to happen. Need a solution bad!

    Lay-o-the-land:
    The product I need to accomplish this for sits alone it is own Category folder. Due to the Layout settings having the "Skip 1-prod Categories" set to "True", a click of this products category button skips the Product Listing page.

    Version:
    Zen Cart 1.3.7.1
    Patch: 1::
    Database Patch Level: 1.3.8

    Thanks in advance

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Isolate & Modify product page Load and Layout for one product?!

    As you have a Template Monster template all bets are off...
    Search this forum for all their issues

    A copy of tpl_main_page.php and enter the cPath to the page and dupe but for left if needed
    Code:
     * if ($current_page_base == 'index' and $cPath == '') {<br />
     *  $flag_disable_right = true;<br />
     * }<br />

  3. #3
    Join Date
    Jun 2010
    Posts
    28
    Plugin Contributions
    0

    Default Re: Isolate & Modify product page Load and Layout for one product?!

    It's a new customers site...Template Monster, poor foolish foolish customer. lol

    will look around some more, the feedback is much appreciated, Cheers Cobra

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

    Default Re: Isolate & Modify product page Load and Layout for one product?!

    Since there is only one product you want this for, you would use Kobra's suggestion and modify it to
    PHP Code:
    if ($current_page_base == 'product_info' and $_GET['products_id'] == 'whatever') {
      
    $flag_disable_right true;


  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Isolate & Modify product page Load and Layout for one product?!

    Bouncing Off of gjh42,

    As there are many other products and OP ONLY want one to be altered would not the cPath be required???

    Such As:
    cPath=65&products_id=180

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

    Default Re: Isolate & Modify product page Load and Layout for one product?!

    If it's a product info page, $_GET['products_id'] will uniquely identify the page - no $cPath info is needed (unless the OP wants a different view when linked from one category or another).

  7. #7
    Join Date
    Jun 2010
    Posts
    28
    Plugin Contributions
    0

    Default Re: Isolate & Modify product page Load and Layout for one product?!

    Gents,

    Your amazing

    First time in the forums and a sticky one to boot! Outstanding, will send you jo!

    Not a pressing matter, but since your here...Flash:
    Anyone know if delivering flash generated code to zentcarts cart is doable? The flash file is embedded in the products description html and lives locally on the server. My product options in flash mirror my product attribute offering in product pages now, would love to use a flash sent package and bail zencarts product drop-down's & text fields.

    Thoughts, or is this forbidden...

  8. #8
    Join Date
    Jun 2010
    Posts
    28
    Plugin Contributions
    0

    Default Re: Isolate & Modify product page Load and Layout for one product?!

    BTW, the results

    http://www.soccer-uniforms.com/-p-233.html

    Easy to see why I'd like to integrate here. My purpose with flash would allow me to dynamically change attribute drop-down defaults as the user makes alternate selections within flash.

 

 

Similar Threads

  1. v150 layout for individual and all product page.
    By bluefish1960 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Mar 2012, 02:45 PM
  2. Layout for price, add cart and etc in Product Layout page
    By sgspeer in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Aug 2010, 09:43 PM
  3. Modify Product Listing page layout
    By missinglife in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 8 Oct 2009, 07:55 PM
  4. One Product & Information on one page
    By varnco in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 10 Mar 2009, 02:22 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