Page 1 of 1

shopmadesimple probleemje

Posted: Fri Jun 01, 2012 4:48 pm
by evinx
beste mensen ik heb een klein vraagje/probleempje

als ik op mijn ipad kijk ziet het er top uit een plaatje van het product met de tekst er naast maar als ik dan met firefox kijk dan staat de tekst er schuin onder

wat kan dit zijn ?

Code: Select all


{* List of category data *}
<div ID="catlistheader">{$categoryname}</div><br>
<table ID="catinfo">
   <tr>
      {if $image!='*none'}<td ID="catimagethumb"><br>
         {image src=$image }</td></tr>
      {/if}
      <tr><br><br><td class="catdescription">{$description}</td>
   </tr>
</table>
<br>
<div class="productlist">
<div ID="productcount">{$lable_product_count}</div>
<br>{foreach from=$products item=entry}
<span class="img">{if $prodimage!='*none'}</span>
<table>
   
      <tr class="{$entry->rowclass}" onmouseover="this.className='{$entry->rowclass}hover';" onmouseout="this.className='{$entry->rowclass}';">
         <td rowspan="5" class="img">
 {image src=$entry->prodimage alt=$entry->proddesc}
            {* or use the following. The image is then a link to the detail page
         {$entry->prodimage}</td>
         *}
{/if}
  <td width="422" class="productname">{$entry->prodname}</td>

         {* Use the following {$entry->prodnamenolink} if you only want to show the name of product (no link):
         
         *}
    <tr>
<td class="productdesc">{$entry->proddesc|truncate}</td></tr>
<tr><td class="productprice">{$entry->price}</td></tr>
<tr>         <td>{$entry->addproductimage}</td></tr>
         {* use <td>{$entry->addproduct}</td> if you want an image as the add to cart link *}
         
            
         <br>
      </tr>
   
</table>{/foreach}
{if $pagecount > 1}
   {$firstpage} {$prevpage} {$pagetext}: {$pagenumber} {$oftext}: {$pagecount} {$nextpage} {$lastpage}
{/if}
<div ID="productpricesin">{$currency}</div>
</div>
http://bktbv.evinx.nl/index.php?mact=Sh ... eturnid=93
hier de link van de locatie van vraag/probleemje

er staan 2 items in
hoop dat iemand mij kan helpen

kan iemand mijn mischien dan helpen om categorieen per 3 op een rij inplaats van alles onder elkaar


*edit had verkeerde code

Re: shopmadesimple probleemje

Posted: Tue Jun 05, 2012 4:32 am
by Duketown
evnix (en anderen),

Voor je eerste punt heb ik helaas geen oplossing.
Om producten, binnen een categorie, in kolommen te tonen gebruik ik:

Code: Select all

<div ID="catlistheader">{$categoryname}</div>
{if $image!='*none'}
	<div ID="catimagethumb">{image src=$image alt=$description}</div>
{/if}
<div class="catdescription">{$description}</div>
<div class="productlist">
<div ID="productcount">{$lable_product_count}</div>
{* $numCols is the number of columns *}
{assign var="numCols" value="4"}
<table class="prodtable">
    <tr>
    {assign var="col" value="0"}
    {section name=element loop=$products}
        {if $col == $numCols}
            </tr><tr>{assign var="col" value="0"}
        {/if}
        <td class="prodbox">
	{if $prodimage!='*none'}<div class="catlistimg">
	{image src=$products[element]->prodimage alt=$products[element]->proddesc}</div>{/if}
<div class="prodname">{$products[element]->prodname}</div>
&euro;&nbsp;{$products[element]->price}&nbsp;<div class="product2cart">{$products[element]->addproductimage}</div></td> 
        {assign var="col" value="`$col+1`"}
    {/section}
    {assign var="remainder" value="`$numCols-$col`"}
    {section name=emptyElement loop=$remainder}
        <td>&nbsp;</td>
    {/section}
    </tr>
</table>
</div>
Hoop dat dit helpt,

Duketown