Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

No right bar when Product Details are shown

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-16-2012, 06:50 AM
 
ManuelaT ManuelaT is offline
 

Member
  
Join Date: Jun 2012
Posts: 12
 

Question No right bar when Product Details are shown

Hello everyone,

I hope this great community is able to help me.

I am trying to accomplish the following:

If the product details page is shown, then the right bar should be "turned off".
Otherwise the right bar should be included.

is there anyone, who can help me how to do that?

XCart 4.5.0

thanks a lot in advance!

Manuela
__________________
X-Cart Gold
Reply With Quote
  #2  
Old 10-16-2012, 07:27 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: No right bar when Product Details are shown

Smarty logic is...

Quote:
{if $main ne "product"}
{include file="customer/right_bar.tpl"}
{/if}
__________________
xcartmods.co.uk
Reply With Quote

The following user thanks PhilJ for this useful post:
ManuelaT (10-18-2012)
  #3  
Old 10-16-2012, 07:33 AM
 
ManuelaT ManuelaT is offline
 

Member
  
Join Date: Jun 2012
Posts: 12
 

Default Re: No right bar when Product Details are shown

Hello PhilJ,

thanks a lot for your answer.

I already tried:

{if $main ne 'product'}
<div id="right-bar">
{include file="customer/right_bar.tpl"}
</div>
{/if}

- when added this way I get no bar , but also no other content. Only a white "box" in the middle"..

Did I do anything wrong in those few lines?

Thanks a lot!

Best wishes

Manuela
__________________
X-Cart Gold
Reply With Quote
  #4  
Old 10-16-2012, 07:36 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: No right bar when Product Details are shown

It depends which skin you're using...
__________________
xcartmods.co.uk
Reply With Quote

The following user thanks PhilJ for this useful post:
ManuelaT (10-18-2012)
  #5  
Old 10-16-2012, 07:37 AM
 
ManuelaT ManuelaT is offline
 

Member
  
Join Date: Jun 2012
Posts: 12
 

Default Re: No right bar when Product Details are shown

My skin is a modified ideal_comfort
__________________
X-Cart Gold
Reply With Quote
  #6  
Old 10-16-2012, 07:44 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: No right bar when Product Details are shown

Attach your skin/ideal_comfort/customer/content.tpl file.

According to my files for that skin, there is no right_bar.tpl

You're going to have to update the CSS in altskin.css, or possibly put in some inline CSS to compensate, due to the way QT have coded the columns.
__________________
xcartmods.co.uk
Reply With Quote

The following user thanks PhilJ for this useful post:
ManuelaT (10-18-2012)
  #7  
Old 10-16-2012, 07:48 AM
 
ManuelaT ManuelaT is offline
 

Member
  
Join Date: Jun 2012
Posts: 12
 

Default Re: No right bar when Product Details are shown

that is correct - I manualy added one.
That's why I said "modified".

I works as long as I put both into the same if clause (the one for right bar).
Like this:

PHP Code:
{if ($main neq 'cart' or $cart_empty) and $main neq 'checkout'}
<
div id="left-bar">
  {include 
file="customer/left_bar.tpl"}
</
div>
<
div id="right-bar">
  {include 
file="customer/right_bar.tpl"}
</
div>
{/if} 

But it won't work the way, as shown on this content.tpl
Attached Files
File Type: tpl content.tpl (1.7 KB, 63 views)
__________________
X-Cart Gold
Reply With Quote
  #8  
Old 10-16-2012, 07:54 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: No right bar when Product Details are shown

You could try adding, before the closing {/if} in your newly added code...

Quote:
{literal}
<style type="text/css">
#center-main { margin: 0 -270px 0 0; }
</style>
{/literal}

Or something along those lines... Hard to judge without knowing the URL.
__________________
xcartmods.co.uk
Reply With Quote

The following user thanks PhilJ for this useful post:
ManuelaT (10-18-2012)
  #9  
Old 10-18-2012, 02:29 PM
 
JacksmithxD JacksmithxD is offline
 

X-Adept
  
Join Date: Oct 2010
Posts: 400
 

Default Re: No right bar when Product Details are shown

[Edit]
__________________
Xcart 4.5.2
Reply With Quote
  #10  
Old 10-18-2012, 11:06 PM
 
ManuelaT ManuelaT is offline
 

Member
  
Join Date: Jun 2012
Posts: 12
 

Default Re: No right bar when Product Details are shown

Worked like a charm!

Thanks for your help, PhilJ!

Best wishes

Manuela
__________________
X-Cart Gold
Reply With Quote

The following user thanks ManuelaT for this useful post:
PhilJ (10-19-2012)
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:58 AM.

   

 
X-Cart forums © 2001-2020