Seller store MOD enhancement

This is a discussion on Seller store MOD enhancement within the Feature Requests forums, part of the Help & Support category; Actually, when you run the " seller store " module, visitors have to go to " view all ads by ...


Go Back   68 Classifieds Forums > Help & Support > Feature Requests

 
LinkBack Thread Tools Display Modes
  #1  
Old 09-08-2008, 08:36 AM
Senior Member
 
Join Date: Apr 2008
Posts: 130
Rep Power: 6
Default Seller store MOD enhancement

Actually, when you run the "seller store" module, visitors have to go to "view all ads by seller" to discover that the ad is run by a "seller" and see the seller logo/header.

Otherwise, when viewing a listing, nothing distinguishes the announcement of a "seller" of another ad. It is a pitty that the "seller" ads are not identified when simply viewed by visitors !

As the module was introduced as "similar to Ebay stores" I thought it was. On eBay, when you view a seller Ad, the seller header is shown !

Is there a way to introduce the seller header in his own ads ? Something like "if {owner} is a {seller} then print {sellerstoreheader} in the viewlisting.tpl" or something like that ?

Reply With Quote
  #2  
Old 09-08-2008, 09:26 AM
Senior Member
 
Join Date: Jan 2007
Posts: 260
Rep Power: 14
Default

Seconded.

__________________
v4.09 Developer
MKClassifieds


"All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642)
Reply With Quote
  #3  
Old 09-08-2008, 10:05 AM
Moderator
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 2,132
Rep Power: 57
Default

I'm not totally sure I have the latest copy of the seller store module, however you could do something like this to get the values into the viewlisting page.

Open the module's mod_user.php and add this in:
PHP Code:
function seller_store_viewlisting_end($data)
{
    
$owner intval($data['owner']);
    
$_GET['owner'] = $owner;
    
seller_store_search_end();

Then you should be able to put the same code that is found in the showlistings templates into your viewlisting template and display it.

I haven't tested this, and I am referring to the v4 version of 68C.
__________________
Regards,

John


�By perseverance, study, and eternal desire, any man can become great.� George S. Patton
Reply With Quote
  #4  
Old 09-08-2008, 02:01 PM
Senior Member
 
Join Date: Apr 2008
Posts: 130
Rep Power: 6
Default

John,

Just added your new function below "function seller_store_search_end()" in mod_user.php and the following script portion in my viewlisting2.tpl

PHP 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 *} 
But nothing appears in viewing the ad.... Do I have to regenerate / reinstall the module in admin ???
__________________
v4.08 Developer
Reply With Quote
  #5  
Old 09-10-2008, 09:30 AM
Moderator
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 2,132
Rep Power: 57
Default

Sorry, you need to change $_GET to $_REQUEST. Here it is corrected:

PHP Code:
function seller_store_viewlisting_end($data)
{
    
$owner intval($data['owner']);
    
$_REQUEST['owner'] = $owner;
    
seller_store_search_end();

__________________
Regards,

John


�By perseverance, study, and eternal desire, any man can become great.� George S. Patton
Reply With Quote
  #6  
Old 09-12-2008, 10:26 AM
Member
 
Join Date: Mar 2008
Posts: 52
Rep Power: 5
Default

Hello,

In viewlisting it works? Can you also help me to get it work in showlistings ?

Jan Roel
Reply With Quote
  #7  
Old 09-13-2008, 11:10 AM
bowers01's Avatar
Senior Member
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 586
Rep Power: 14
Default

If you can get it in showlistings thats would be great.
__________________
Nick Bowers
68c v4.09 Developer
Reply With Quote
  #8  
Old 09-17-2008, 09:47 PM
Moderator
 
Join Date: Mar 2006
Posts: 3,729
Rep Power: 91
Default

here is another mod so that in addition to working as intended the seller store will appear on the same page as an ad.

Add thhe 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 *}
Then open /modules/seller_store/mod_user.php and below the current function and just above the php closing tag add this new function.

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']);
			}
	}
}
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Reply With Quote
  #9  
Old 09-17-2008, 11:33 PM
Fatih67's Avatar
Member
 
Join Date: Jun 2008
Location: TURKEY
Posts: 42
Rep Power: 3
Default

is this possible like that?
in viewlisting.php
Ads will displayed from the user under ads..
sorry for my bad English. So I want to show my ideo on a photo.



I did it wit paint

is this possible ?

Thank YOU....
__________________
� 2007 68 Classifieds - A division of 68 Designs, LLC - v4.0.3 Developer
Another 68C site ; ikinci el kamyonlar
Reply With Quote
  #10  
Old 09-18-2008, 07:08 AM
Moderator
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 2,132
Rep Power: 57
Default

that is a good idea.
__________________
Regards,

John


�By perseverance, study, and eternal desire, any man can become great.� George S. Patton
Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Module - Seller Store Eric Barnes v4 Modules / Modifications 48 11-18-2008 07:04 AM
Wanted: Seller Store Enhancements systemaddict v4 Modules / Modifications 0 06-02-2008 03:29 AM
Seller Store goose v4 Questions & Support 3 08-16-2007 12:08 AM
Is there any fix to this Seller Store for V4 RC3 ? Syafi v4 Questions & Support 0 06-14-2007 01:03 PM
More Seller Store related questions. ginggs v3.1 Questions & Support 6 04-13-2007 06:46 AM


All times are GMT -4. The time now is 10:33 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22