X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Product Detail Contents detail Only only header and footer no other things (https://forum.x-cart.com/showthread.php?t=57485)

xtech 02-23-2011 08:37 PM

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

Sunray Sales 02-24-2011 05:10 AM

Re: Product Detail Contents detail Only only header and footer no other things
 
Glad to help, and good job on the final solution!

Learner 04-04-2011 09:12 PM

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

Learner 04-22-2011 09:29 AM

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

Sunray Sales 04-23-2011 05:14 AM

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.




Learner 04-24-2011 09:35 AM

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.


All times are GMT -8. The time now is 02:22 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.