View Single Post
  #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