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

Product Detail Contents detail Only only header and footer no other things

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #21  
Old 02-23-2011, 08:37 PM
 
xtech xtech is offline
 

X-Adept
  
Join Date: Jun 2010
Posts: 605
 

Default Re: Product Detail Contents detail Only only header and footer no other things

Thanks
a lot

Sunray Sales

for your kind help to achieve the alignment problem, here is the final solution
in skin / 2-columns / customer / content.tpl this file , before that the left column of the product details page must be blocked this is to be done by the code in highlighted at the end of the code

before modifying please save a copy of content.tpl

{*
$Id: content.tpl,v 1.1 2010/05/21 08:31:51 joy Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
<div id="center">
{ if $main eq "product"}
<div id="center-main" style="margin:0 0 0 0px;">
{else}
<div id="center-main">
{/if}

{include file="customer/evaluation.tpl"}
<!-- central space -->
{if ($main eq 'cart' and not $cart_empty) or $main eq 'checkout'}
{include file="modules/`$checkout_module`/content.tpl"}
{else}
{if $main neq "catalog" or $current_category.category neq ""}
{include file="customer/bread_crumbs.tpl"}
{/if}
{if $main ne "cart" and $main ne "checkout" and $main ne "order_message"}
{if $gcheckout_enabled}
{include file="modules/Google_Checkout/gcheckout_top_button.tpl"}
{/if}
{if $amazon_enabled}
{include file="modules/Amazon_Checkout/amazon_top_button.tpl"}
{/if}
{/if}
{include file="customer/dialog_message.tpl"}
{if $active_modules.Special_Offers}
{include file="modules/Special_Offers/customer/new_offers_message.tpl"}
{/if}
{if $page_tabs ne ''}
{include file="customer/main/top_links.tpl" tabs=$page_tabs}
{/if}
{if $page_title}
<h1>{$page_title|escape}</h1>
{/if}
{include file="customer/home_main.tpl"}
{/if}
<!-- /central space -->
</div><!-- /center-main -->
</div><!-- /center -->
{if ($main neq 'cart' or $cart_empty) and $main neq 'checkout' and $main ne "product"}
<div id="left-bar">
{include file="customer/left_bar.tpl"}
</div>
{/if}

Thanks again
__________________
X-cart Platinum
4.6.1
Reboot template
Reply With Quote
  #22  
Old 02-24-2011, 05:10 AM
 
Sunray Sales Sunray Sales is offline
 

Senior Member
  
Join Date: Dec 2010
Posts: 194
 

Default Re: Product Detail Contents detail Only only header and footer no other things

Glad to help, and good job on the final solution!
__________________
4.4.2
www.sunraysales.com
HandsOnWebHosting
Reply With Quote
  #23  
Old 04-04-2011, 09:12 PM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: Product Detail Contents detail Only only header and footer no other things

Hello Sunray,

How to make home page in single? That is only header, footer, and central area in Artistic Tunes Business template..
__________________
4.6.1 Platinum


Reply With Quote
  #24  
Old 04-22-2011, 09:29 AM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: Product Detail Contents detail Only only header and footer no other things

Hi,
How to make home page single and the remaining category,manufactures page 2 column??
__________________
4.6.1 Platinum


Reply With Quote
  #25  
Old 04-23-2011, 05:14 AM
 
Sunray Sales Sunray Sales is offline
 

Senior Member
  
Join Date: Dec 2010
Posts: 194
 

Default Re: Product Detail Contents detail Only only header and footer no other things

Quote:
Originally Posted by Learner
Hi,
How to make home page single and the remaining category,manufactures page 2 column??

Hi, sorry for the delay in response.

I'm not 100% sure about how do modify your version of X-Cart. But for your healthshoppe website you will be using a similar code to xtech.

{ if $main eq "product"}

or
{ if $main eq "home"}

In which you will use this if statement to determine if the page is on the product page or home page and then make modifications to the center container and disable the left and right bar accordingly.



__________________
4.4.2
www.sunraysales.com
HandsOnWebHosting
Reply With Quote
  #26  
Old 04-24-2011, 09:35 AM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default Re: Product Detail Contents detail Only only header and footer no other things

Hi Sunary,
My site url is www.health-shoppe.com/FINAL. AND skin is artistictunes business in 4.4.2

I want to make home page only single column.

Here is my content.tpl file-

{*
$Id: content.tpl,v 1.1 2010/05/21 08:31:52 joy Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
<div id="center">
<div id="center-main">
{include file="customer/evaluation.tpl"}
<!-- central space -->
{if ($main eq 'cart' and not $cart_empty) or $main eq 'checkout'}
{include file="modules/`$checkout_module`/content.tpl"}
{else}
{if $main neq "catalog" or $current_category.category neq ""}
{include file="customer/bread_crumbs.tpl"}
{/if}
{if $main ne "cart" and $main ne "checkout" and $main ne "order_message"}
{if $gcheckout_enabled}
{include file="modules/Google_Checkout/gcheckout_top_button.tpl"}
{/if}
{if $amazon_enabled}
{include file="modules/Amazon_Checkout/amazon_top_button.tpl"}
{/if}
{/if}
{include file="customer/dialog_message.tpl"}
{if $active_modules.Special_Offers}
{include file="modules/Special_Offers/customer/new_offers_message.tpl"}
{/if}
{if $page_tabs ne ''}
{include file="customer/main/top_links.tpl" tabs=$page_tabs}
{/if}
{if $page_title}
<h1>{$page_title|escape}</h1>
{/if}
{include file="customer/home_main.tpl"}
{include file="customer/bottom_menu.tpl"}
{/if}
<!-- /central space -->
</div><!-- /center -->
</div><!-- /center-main -->


{if ($main neq 'cart' or $cart_empty) and $main neq 'checkout'}

<div id="right-bar">
{include file="customer/left_bar.tpl"}
</div>

{/if}

I have added your code but cannot get my home page to single.

Can you help to achieve my goal ??

Thanks.
__________________
4.6.1 Platinum


Reply With Quote
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 06:13 PM.

   

 
X-Cart forums © 2001-2020