Jump to content

Recommended Posts

I don`t think this part of the script is written in php but maybe someone can help me..

 

 

Hi

I need some help with getting this "product Brief display" part of a shop script to show the products in a horizontal side by side view, maybe 3 in a row across, instead of the basic display of vertical ( one product ) on top of each other. Also i`m trying to get the product information to be underneath the product picture instead of at the side.

 

The ad to cart bit of code can be taken off.

 

if anyoe can help me out on this i would really appreciate it..

 

 

 

 

{* product brief view (from a category or search) *}

 

{if $product_info ne NULL}

 

 

<p><table width=95% border=0 cellspacing=1 cellpadding=2>

<tr>

<td width=1% align=center valign=top>

 

{if $product_info[7]}<td><div style="margin:0px auto;BORDER: gainsboro 1px dotted;PADDING: 6px; TEXT-ALIGN: center">

<a href="index.php?productID={$product_info[11]}">

<img src="products_pictures/{$product_info[7]}" alt="{$product_info[1]|replace:'"':'"'}" border=0><br>

{$smarty.const.MORE_INFO_ON_PRODUCT}

</a>

{else}

{if $product_info[5]}

<a href="index.php?productID={$product_info[11]}">

<img src="products_pictures/{$product_info[5]}" alt="{$product_info[1]|replace:'"':'"'}" border=0>

{$smarty.const.MORE_INFO_ON_PRODUCT}

</a>

{/if}

{/if}

 

</td>

 

<td valign=top width=99%>

 

<table width=100% border=0 cellpadding=2>

 

<tr>

<td valign=top>

 

<table border=0 cellpadding=0 cellspacing=0>

<tr>

<td>

 

 

<a class=cat href="index.php?productID={$product_info[11]}">{$product_info[1]}</a><br>

 

 

{if $product_info[8] > 0} {* rating *}

 

{section name=i loop=5}{if $smarty.section.i.index<$product_info[3]}<img src="images/redstar_big.gif">{else}<img src="images/blackstar_big.gif">{/if}{/section}

 

 

{/if}

 

</td>

 

</td>

</tr>

</table>

 

</td>

<td align=right valign=top> {* add to cart *}

 

{if $smarty.const.CONF_SHOW_ADD2CART eq 1}

{if $product_info[6] > 0 && $product_info[4] > 0}

<a href="index.php?shopping_cart=yes&add2cart={$product_info[11]}"><img src="images/cart_navy.gif" border=0 alt="{$smarty.const.ADD_TO_CART_STRING}"></a>

{else} 

{/if}

{/if}

 

</td>

</tr>

 

<tr>

<td colspan=2>

 

{if $product_info[4] > 0}

{* show list price? *}

{if $product_info[10] > 0 && $product_info[10] > $product_info[4] && $product_info[4] > 0}

{$smarty.const.LIST_PRICE}: <font color=brown><strike>{$product_info[13]}</strike></font><br>

{/if}

 

<b>{$smarty.const.CURRENT_PRICE}: <font class="cat" color="red">{$product_info[12]}</font></b>

 

{* you save *}

{if $product_info[10] > 0 && $product_info[10] > $product_info[4] && $product_info[4] > 0}

<br>

{$smarty.const.YOU_SAVE}:

<font color=brown>{$product_info[14]} ({$product_info[15]}%)

</font><br>

{/if}

{/if}

 

</td>

</tr>

 

<tr>

<td colspan=2>

 

{$product_info[2]}

</td>

</tr>

 

</table>

 

 

</td>

 

</tr>

 

</table>

 

{/if}

   

 

Link to comment
https://forums.phpfreaks.com/topic/111322-help-with-a-shop-script/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.