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

Layout of Product Description

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-18-2008, 03:21 PM
  ScrapProfessor's Avatar 
ScrapProfessor ScrapProfessor is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 90
 

Arrow Layout of Product Description

Hi guys! It's me again. LOL

I have one question that I need answered. On the Product Details page I would like the Product Description and Details to all appear just below the Product Image. What do I need to change/modify to make this happen?

Thank you for your support!
__________________
Joli Kirk,
"Life is not measured by the number of breaths we take, but by the number of moments that take our breath away"

X-Cart PRO 4.3.1 | Linux | PHP 5 | MySQL 5


AlteredCart.com - Download Expander; Product Page Downloads
BCSEngineering.com - On Sale Products; Newest Added Products
Reply With Quote
  #2  
Old 03-19-2008, 03:17 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Layout of Product Description

Quote:
Originally Posted by ScrapProfessor
Hi guys! It's me again. LOL

I have one question that I need answered. On the Product Details page I would like the Product Description and Details to all appear just below the Product Image. What do I need to change/modify to make this happen?

Thank you for your support!

Pages product structure shown in the figure:


Click image for larger version

Name:	struct.JPG
Views:	279
Size:	37.3 KB
ID:	841

You need to change the file "skin1\customer\main\product.tpl".

Part of the code, which is responsible for the left side of the withdrawal - an image product (in the picture is left square turquoise color):

PHP Code:
<table width="100%">
<
tr>
    <
td class="PImgBox" rowspan="2">
{* 
START IMAGES *}
{if 
$active_modules.Detailed_Product_Images ne "" && $config.Detailed_Product_Images.det_image_popup eq 'Y' && $images ne '' && $js_enabled eq 'Y'}
{include 
file="modules/Detailed_Product_Images/popup_image.tpl"}
{elseif 
$product.force_image_type eq 'W' && $product.variantid}
{include 
file="product_thumbnail.tpl" productid=$product.variantid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" type="W"}&nbsp;
{else}
{include 
file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" type="P"}&nbsp;
{/if}
{if 
$active_modules.Magnifier ne "" && $config.Magnifier.magnifier_image_popup eq 'Y' && $zoomer_images ne '' && $js_enabled eq 'Y'}
{include 
file="modules/Magnifier/popup_magnifier.tpl"}
{/if}
{* /
START IMAGES *}
    </
td


Part of the code, which is responsible for the withdrawal right side (in the picture is right square turquoise color).

PHP Code:
{* /START IMAGES *}
    </
td>
    <
td valign="top" width="100%">

<
table width="100%" cellspacing="0" cellpadding="0">
<
tr>
    <
td>{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{/if}</td>


.......................
.......................
<
br /><br />
</
td>
</
tr></table>
</
td>
</
tr>
</
table>
<
input type="hidden" name="productid" value="{$product.productid}/>
<
input type="hidden" name="cat" value="{$smarty.get.cat|escape:"html"}/>
<
input type="hidden" name="page" value="{$smarty.get.page|escape:"html"}/>
</
form>
{/
capture}
{include 
file="dialog.tpl" title=$product.producttitle content=$smarty.capture.dialog extra='width="100%"'}
{/if} 
Reply With Quote
  #3  
Old 03-19-2008, 05:23 AM
 
toolexperts toolexperts is offline
 

eXpert
  
Join Date: Feb 2008
Location: Knoxville, TN
Posts: 290
 

Default Re: Layout of Product Description

would you replace the code with this or remove this coding?
__________________
Tool Experts
X-Cart DB Version: 5.4.1.49
Windows
Reply With Quote
  #4  
Old 03-19-2008, 06:53 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Layout of Product Description

Quote:
Originally Posted by toolexperts
would you replace the code with this or remove this coding?

You have to change the code for your needs.
I showed where yuor need to change the code.

for example:

If we replace
PHP Code:
<table width="100%">
<
tr>
    <
td class="PImgBox" rowspan="2">
{* 
START IMAGES *}
{if 
$active_modules.Detailed_Product_Images ne "" && $config.Detailed_Product_Images.det_image_popup eq 'Y' && $images ne '' && $js_enabled eq 'Y'}
{include 
file="modules/Detailed_Product_Images/popup_image.tpl"}
{elseif 
$product.force_image_type eq 'W' && $product.variantid}
{include 
file="product_thumbnail.tpl" productid=$product.variantid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" type="W"}&nbsp;
{else}
{include 
file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" type="P"}&nbsp;
{/if}
{if 
$active_modules.Magnifier ne "" && $config.Magnifier.magnifier_image_popup eq 'Y' && $zoomer_images ne '' && $js_enabled eq 'Y'}
{include 
file="modules/Magnifier/popup_magnifier.tpl"}
{/if}
{* /
START IMAGES *}
    </
td>
    <
td valign="top" width="100%">

<
table width="100%" cellspacing="0" cellpadding="0">
<
tr>
    <
td>{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{/if}</td>
{if 
$product.taxed_price gt 0 and $product.list_price gt 0}
    <
td align="right" valign="top" width="60" id="save_percent_box"{if $product.taxed_price >= $product.list_pricestyle="display: none;"{/if}>

<
table width="60" cellspacing="1" cellpadding="2">
<
tr>
    <
td class="SaveMoneyLabel">
<
br />
{
math equation="100-(price/lprice)*100" price=$product.taxed_price lprice=$product.list_price format="%3.0f" assign=discount}
&
nbsp;<span id="save_percent">{ $discount }</span>%
    </
td>
</
tr>
</
table>

    </
td>
{/if} 

on this code:
PHP Code:
<table width="100%">
<
tr>
    <
td class="PImgBox" rowspan="2">

    </
td>
    <
td valign="top" width="100%">
<
table width="100%" cellspacing="0" cellpadding="0">
<
tr>
    <
td>
{* 
START IMAGES *}
{if 
$active_modules.Detailed_Product_Images ne "" && $config.Detailed_Product_Images.det_image_popup eq 'Y' && $images ne '' && $js_enabled eq 'Y'}
{include 
file="modules/Detailed_Product_Images/popup_image.tpl"}
{elseif 
$product.force_image_type eq 'W' && $product.variantid}
{include 
file="product_thumbnail.tpl" productid=$product.variantid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" type="W"}&nbsp;
{else}
{include 
file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" type="P"}&nbsp;
{/if}
{if 
$active_modules.Magnifier ne "" && $config.Magnifier.magnifier_image_popup eq 'Y' && $zoomer_images ne '' && $js_enabled eq 'Y'}
{include 
file="modules/Magnifier/popup_magnifier.tpl"}
{/if}
{* /
START IMAGES *}


    </
td>
    <
td>{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{/if}</td>
{if 
$product.taxed_price gt 0 and $product.list_price gt 0}
    <
td align="right" valign="top" width="60" id="save_percent_box"{if $product.taxed_price >= $product.list_pricestyle="display: none;"{/if}>

<
table width="60" cellspacing="1" cellpadding="2">
<
tr>
    <
td class="SaveMoneyLabel">
<
br />
{
math equation="100-(price/lprice)*100" price=$product.taxed_price lprice=$product.list_price format="%3.0f" assign=discount}
&
nbsp;<span id="save_percent">{ $discount }</span>%
    </
td>
</
tr>
</
table>

    </
td>
{/if} 


It was like this:
Click image for larger version

Name:	22222222.JPG
Views:	250
Size:	41.1 KB
ID:	846

We will get next result:
Click image for larger version

Name:	1111111.JPG
Views:	276
Size:	42.1 KB
ID:	845


I just moved the code responsible for the withdrawal of the picture and added a column to the table.
Reply With Quote
  #5  
Old 03-19-2008, 08:01 AM
  ScrapProfessor's Avatar 
ScrapProfessor ScrapProfessor is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 90
 

Default Re: Layout of Product Description

Perfect! Thank you so much!
__________________
Joli Kirk,
"Life is not measured by the number of breaths we take, but by the number of moments that take our breath away"

X-Cart PRO 4.3.1 | Linux | PHP 5 | MySQL 5


AlteredCart.com - Download Expander; Product Page Downloads
BCSEngineering.com - On Sale Products; Newest Added Products
Reply With Quote
  #6  
Old 03-24-2008, 05:27 AM
 
toolexperts toolexperts is offline
 

eXpert
  
Join Date: Feb 2008
Location: Knoxville, TN
Posts: 290
 

Default Re: Layout of Product Description

yurij,

I'd like to put the add to cart and add to wishlist at the top the move everything else up. Finally, I'd like to have the description run under that and run full length of page, i have tried modifying to do so yet when i made the table all text stayed to the right instead of centering
__________________
Tool Experts
X-Cart DB Version: 5.4.1.49
Windows
Reply With Quote
  #7  
Old 04-16-2008, 08:20 AM
  ScrapProfessor's Avatar 
ScrapProfessor ScrapProfessor is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 90
 

Question Re: Layout of Product Description

I'm going to bump this because I also would like my product description text BELOW the product images.

Thank you!
__________________
Joli Kirk,
"Life is not measured by the number of breaths we take, but by the number of moments that take our breath away"

X-Cart PRO 4.3.1 | Linux | PHP 5 | MySQL 5


AlteredCart.com - Download Expander; Product Page Downloads
BCSEngineering.com - On Sale Products; Newest Added Products
Reply With Quote
  #8  
Old 04-16-2008, 09:56 AM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Layout of Product Description

Hi Joli,

Maybe this might help. Get your skin1/customer/main/product.tpl (make sure you make a backup of it too) and locate the line that displays your text similar to below and {* comment it out *} (including each TD tag)...

<TD>{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{ /if}</TD>

And underneath that line of code there's another TD that displays your savings label, add a colspan="2" to it like so...

<td colspan="2" align="right" valign="top" width="60" id="save_percent_box"...

Then copy your description text that was commented out between the TD tags (which may look like something like below)...

{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{ /if}

Then locate the closing </TD> of <td class="PImgBox" rowspan="2"> which should be a few lines above from where we commented out the description text.

And above the closing </td> add a <br /> tag and paste below it the line we copied with the description text (so it should look something like)...

<br />
{if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{ /if}

The resulting image TD with the newly added description text should look something like...
Code:
<td class="PImgBox" rowspan="2"> {if $active_modules.Detailed_Product_Images ne "" && $config.Detailed_Product_Images.det_image_popup eq 'Y' && $images ne '' && $js_enabled eq 'Y'} bla bla bla image stuff... {/if} <br /> {if $product.fulldescr ne ""}{$product.fulldescr}{else}{$product.descr}{/if} </td>

Tell us how you got on...
Hope this helps.
__________________
Doms
kube v4.1.9
Reply With Quote
  #9  
Old 04-17-2008, 12:35 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Layout of Product Description

Quote:
Originally Posted by toolexperts
yurij,

I'd like to put the add to cart and add to wishlist at the top the move everything else up. Finally, I'd like to have the description run under that and run full length of page, i have tried modifying to do so yet when i made the table all text stayed to the right instead of centering

By the button "Add to cart" refers additional field - number of the product.


Where should we move this field?

PS. If you put a picture - as it should be, it would be easier to help.
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 11:20 AM.

   

 
X-Cart forums © 2001-2020