Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Content Region on Product/Detail pages
Author « Topic »  

midvalleydrifter001
Ecommerce Template Expert

USA
936 Posts

Posted - 01/03/2020 :  11:25:02  
Hi,

How do I add a Content Region to just ONE product/product detail page?

Or is that even possible?

Patrick

dbdave
ECT Moderator

USA
10468 Posts

Posted - 01/03/2020 :  11:38:04  
Hi Patrick, this was something new that was recently added
https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=110784

quote:
Content Regions on Product Detail Pages
There are now two ways to add content regions to the product detail pages.

The first is to add a content region specifying the content region id. If you create your content region that you want to display, and that content region has a content region id of 32 then you would add the following to the detailpagelayout parameter...
contentregion32

The second is if you want a different content region based on the category. For that you just add this to the detailpagelayout parameter...
catcontentregion
Now, for the content you have to create a new content region for your category and the give it the Region Name of "catcontentregion" plus the category id. So for instance if the category you want to create content for has a category id of 12 then the Region Name you give your content region will be
catcontentregion12

midvalleydrifter001
Ecommerce Template Expert

USA
936 Posts

Posted - 01/03/2020 :  13:37:25  
I've tried this but it puts it on ALL pages.

I'm trying to apply it to just ONE specific page.

dbdave
ECT Moderator

USA
10468 Posts

Posted - 01/03/2020 :  14:43:04  
I see what you mean.
If no one has any idea how to do that, I'm sure you can just use an if/then statement that fires only when that product ID is shown.
Perhaps someone has another idea how to do that.

David

ITZAP
Ecommerce Template Guru

Australia
1018 Posts

Posted - 01/03/2020 :  16:24:28  
You would create and upload a "Has Static URL" page for that one particular proddetail page. Then you can manually add the code to import a Content Region wherever you like.

Gary

midvalleydrifter001
Ecommerce Template Expert

USA
936 Posts

Posted - 01/03/2020 :  16:44:13  
Hi Gary,

I'm actually trying to create a content region on an EXISTING page.

Hope all is well with you.

Patrick

dbdave
ECT Moderator

USA
10468 Posts

Posted - 01/03/2020 :  21:54:24  
Hi Patrick, based on my trick here https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=100929 you might try

<?php
if($_GET["prod"] === "the_prod_id") $detailpagelayout='your,options,here,contentregion5';
?>

where the_prod_id is the product id of the item you want the content region to show on.
Try placing that as the last thing before the include line on the proddetail.php page.
<?php include "vsadmin/inc/incproddetail.php" ?>

Let me know if you have problems...

David

midvalleydrifter001
Ecommerce Template Expert

USA
936 Posts

Posted - 01/04/2020 :  13:08:17  
I got it to work. Thanks

Had to add a div class and some CSS.

Thanks so much. You ROCK!!

Patrick

Edited by - midvalleydrifter001 on 01/04/2020 14:29:40

dbdave
ECT Moderator

USA
10468 Posts

Posted - 01/04/2020 :  16:24:43  
Thank for letting me know Patrick, I'm glad I could help.

David
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000