View Single Post
  #1  
Old 05-16-2010, 09:10 PM
 
ynotcreative ynotcreative is offline
 

Advanced Member
  
Join Date: Oct 2008
Posts: 65
 

Default conditional left column

I am in very quick need to make the product details page left column conditional. To be more specific, I want the left column to disappear on the details page. What I have done so far was to try to create a conditional based upon the url. When it did not work, I moved the if around to try to simplify the task for testing. I am still not able t achieve what I am after. Here is my code. Does anyone see anything obvious?

I have tried the following using both smarty and php, to no avail.
Seriously big kudos and karma points to anyone that can help!

{*
show the url for a baseline
*}
{$canonical_url}
{*
Test conditional remove on product details page
*}
{php}
if (substr ($canonical_url, "product.php?productid=") !== false ) {
"show sidebar"
}
{/php}
<div class="menu-dialog{if $additional_class} {$additional_class}{/if}">
<div class="title-bar valign-middle{if $link_href} link-title{/if}">
{strip}
{if $link_href}
<span class="title-link">
<a href="{$link_href}" class="title-link"><img src="{$ImagesDir}/spacer.gif" alt="" /></a>
</span>
{/if}
<img class="icon ajax-minicart-icon" src="{$ImagesDir}/spacer.gif" alt="" />
<h2>{$title}</h2>
{/strip}
</div>
<div class="content">
{$content}
</div>
</div>
__________________
X-Cart Pro 4.1.10, 4.3.1, 4.2.x, 4.3, 4.4.3, 4.5.5, Platinum 4.6
Add-on: X-Affiliate
Fashion Mosaic
Add-on: X-SpecialOffers
Add-on: X-GiftRegistry
Add-on: X-AOM (Advanced Order Management)
Add-on: X-FancyCategories
Add-on: Custom Multi-currency
Reply With Quote