|
|
#1 |
|
Coder
Join Date: Mar 2006
Posts: 4,546
Rep Power: 110 ![]() ![]() |
tested with 4.0.7
Add the following smarty to the viewlisting.tpl template Code:
{* user store display *}
{if $storeImage<>""}
<div align="center">
<img src="photos/{$storeImage|escape:"url"}" alt="{$storeTitle}" />
</div>
<br />
{else}
<h3>{$storeTitle}</h3>
{/if}
<table width="80%" align="center">
<tr>
<td>{$storeDescription}</td>
</tr>
</table>
{* end user store display *}
Code:
function seller_store_view_listing()
{
global $db, $class_tpl;
$myVar = $class_tpl->get_template_vars('owner');
if (isset($myVar) && $myVar<>"")
{
$owner=(int)$myVar;
$storeSQL = "SELECT sID,sUserID,sTitle,sDescription,sImage FROM ".PREFIX."store WHERE sUserID = '".$owner."'";
$storeResult=$db->query($storeSQL);
$rows=$storeResult->size();
if($rows>0)
{
$rs = $storeResult->fetch();
$class_tpl->assign('storeID', $rs['sID']);
$class_tpl->assign('storeTitle', $rs['sTitle']);
$class_tpl->assign('storeDescription', $rs['sDescription']);
$class_tpl->assign('storeImage', $rs['sImage']);
}
}
}
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Module - Seller Store | Eric Barnes | Modules / Plugins / Modifications | 63 | Yesterday 10:25 AM |
| Seller store MOD enhancement | philoo | Feature Requests | 15 | 10-28-2008 04:27 AM |
| How Do I Display A Seller Store | antboy | v3.1 Questions & Support | 4 | 04-23-2008 08:35 AM |
| Modification: Seller Store | Eric Barnes | v3.1 Modules & Modifications | 41 | 12-20-2007 01:48 PM |
| More Seller Store related questions. | ginggs | v3.1 Questions & Support | 6 | 04-13-2007 05:46 AM |