Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Isolate & Modify product page Load and Layout for one product?!

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

Locked

Views: 1,076

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
14 Jun 2010, 11:10 PM
#1
rolotomasi avatar

rolotomasi

New Zenner

Join Date:
Jun 2010
Posts:
28
Plugin Contributions:
0

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

15 Jun 2010, 12:56 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

 * if ($current_page_base == 'index' and $cPath == '') {<br />
 *  $flag_disable_right = true;<br />
 * }<br />
15 Jun 2010, 1:05 AM
#3
rolotomasi avatar

rolotomasi

New Zenner

Join Date:
Jun 2010
Posts:
28
Plugin Contributions:
0

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

15 Jun 2010, 1:19 AM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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
if ($current_page_base == 'product_info' and $_GET['products_id'] == 'whatever') {
$flag_disable_right = true;
}

15 Jun 2010, 1:57 AM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

15 Jun 2010, 2:09 AM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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).

15 Jun 2010, 2:34 AM
#7
rolotomasi avatar

rolotomasi

New Zenner

Join Date:
Jun 2010
Posts:
28
Plugin Contributions:
0

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...

15 Jun 2010, 2:40 AM
#8
rolotomasi avatar

rolotomasi

New Zenner

Join Date:
Jun 2010
Posts:
28
Plugin Contributions:
0

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.