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
  #11  
Old 02-15-2011, 10:38 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

I suppose you can use CSS to push the Product Details to the left to fill in the missing left bar.

You would have to show me what your doing, give us a link and I can test via Firebug.

There may be a better solution than using css to do this. But once again, I am not sure what the result is, so far.
__________________
4.4.2
www.sunraysales.com
HandsOnWebHosting
Reply With Quote
  #12  
Old 02-16-2011, 10:28 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 for your answer.

Here is the link you can check here also suggest me how to align product details to left and can see in full page along with the tabs.

Link here -- http://www.thefashiontree.com/product.php?productid=17525&cat=250&page=1
__________________
X-cart Platinum
4.6.1
Reboot template
Reply With Quote
  #13  
Old 02-17-2011, 05:12 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

Ok I found the what you need to do.

1) Download Firebug for Firefox - this way you can see what change you need to make on the fly (it won't save your change but simply show you what will happen).

2) Click on the Firebug icon (bottom left of Firefox), then click on the blue-square with arrow select the div id="center-main".

3) Change the margin to from 0 0 0 250px; to 0 0 0 0; This is located in altskin.css line 49.

4) I am not sure how this will affect other pages, it could mess things up, but try changing this in the css and then checking all pages to see if this worked. You may need an if statement to help with this.

Hope this helps.
__________________
4.4.2
www.sunraysales.com
HandsOnWebHosting
Reply With Quote
  #14  
Old 02-17-2011, 09:15 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

Hi Sunary Sales,

But changing the css from 0 0 0 250px; to 0 0 0 0; will distorts the whole page including home page also.After changing this the home page banner is aligned to left.

What is the exact solution ?? Also what will be the if statement you suggest me to us and in which file??

Waiting for your reply.
__________________
X-cart Platinum
4.6.1
Reboot template
Reply With Quote
  #15  
Old 02-18-2011, 11:04 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

Ok but did changing the css accordingly give you the result you were looking for on the product details page? I know it messed up the other pages.

I am not the best with "if statements" but I can give advice on the psuedo code for it.

{if $main eq "product"}
Change style for margin on the center-main to 0 0 0 0, this is where you may want to hard code style, inline with the <div>
{/if}

You would put this code around the creation of the center-main div.

Mind you I have not done something like this, it would be best for someone else to help out figure out the rest of the code.
__________________
4.4.2
www.sunraysales.com
HandsOnWebHosting
Reply With Quote
  #16  
Old 02-21-2011, 10:40 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

Hi Sunary Sales,

Thanks for your help.

Now,I hard coded the style of the center-main area in following code of the httpdocs/skin/2-columns/customer/content.tpl ,the product details page run currectly and it slided to the left side of the pannel, but the home page of the site not included the center-main area.

Here is my code highlighted in bold--

{*
$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="0 0 0 0px;">
{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 -->
{/if}
</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}

please help to do in such way that product details page slide to the left most position and the home page must intact in its position.
__________________
X-cart Platinum
4.6.1
Reboot template
Reply With Quote
  #17  
Old 02-22-2011, 04:49 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

Ok How about an Else statement.

Can you show me what the code was before you changed it, the first two lines in bold. I am thinking that you should try to move the {/if} right behind 0 0 0 0px;">

Or do something like:

{ if $main eq "product"}
<div id="center-main" style="0 0 0 0px;">
{else}
<div id="center-main" style="0 0 0 250px;">
{/if}
then all that code that states include this and that templates.

Google the Syntax on the the else statement, but that should do the trick
__________________
4.4.2
www.sunraysales.com
HandsOnWebHosting
Reply With Quote
  #18  
Old 02-22-2011, 02:53 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

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

I don't think style="0 0 0 250px" is going to do anything. Maybe you meant something more like:
Code:
style="margin:0 0 0 250px"
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #19  
Old 02-23-2011, 01:29 AM
 
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

Quote:
Originally Posted by Sunray Sales
Ok How about an Else statement.

Can you show me what the code was before you changed it, the first two lines in bold. I am thinking that you should try to move the {/if} right behind 0 0 0 0px;">

Or do something like:

{ if $main eq "product"}
<div id="center-main" style="0 0 0 0px;">
{else}
<div id="center-main" style="0 0 0 250px;">
{/if}
then all that code that states include this and that templates.

Google the Syntax on the the else statement, but that should do the trick


Hi Sunray Sales,

Again this code is not working ,<div id="center-main"> using two css file main.css and altskin.css, if hard coded the css of center-main inline like <div id="center-main" style="margin: 0 0 0 0px"> does not effect in product description page and home page also , please help

Quote:
Originally Posted by cherie
I don't think style="0 0 0 250px" is going to do anything. Maybe you meant something more like:
Code:
style="margin:0 0 0 250px"


Hi cherie,
can you help me to solve my problem??
__________________
X-cart Platinum
4.6.1
Reboot template
Reply With Quote
  #20  
Old 02-23-2011, 05:25 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

Ok how about aq css + if statement solution.

In your CSS file create a new style called center-main2.

The style for this will be a copy of center-main, except the margin will be 0 0 0 0px; instead.

Meaning the original one will be 0 0 0 250px;

Your if statement will be:

{if $main eq "product"}
<div id="center-main2">
{else}
<div id="center-main">
{/if}
Then the rest of the code...

Lets see if that works.
__________________
4.4.2
www.sunraysales.com
HandsOnWebHosting
Reply With Quote

The following user thanks Sunray Sales for this useful post:
xtech (02-23-2011)
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 08:06 AM.

   

 
X-Cart forums © 2001-2020