Module - Seller Store

Discussion in 'Modules / Plugins / Modifications' started by Eric Barnes, Aug 14, 2007.

  1. Eric Barnes Guest

    v4 Seller Store Module

    The seller store is a section that allows sellers to have their own store page that only shows their ads. They can insert a store logo, store name, and a description.

    Requirements

    Minimum version 4.0.0
    If you are running v3.1.x visit this thread.

    Instructions

    Download the zip file and upload it to your modules directory. Next visit administration -> manage modules -> regenerate.

    Manual Template Changes

    To install this mod add the following link some where in a template file:
    Code:
    <a href="modules.php?mod=seller_store">My Store</a>
    If you wish to only allow certain groups to have access you can do this:
    Code:
    {if $smarty.session.userlevel==6 || $smarty.session.userlevel==1}
    <a href="modules.php?mod=seller_store">My Store</a>
    {/if}
    The levels work as follows:
    1. Administrators
    2. Registered Users
    3. Users Awaiting Email Confirmation
    4. Banned Users
    5. Guests
    anything over 5 is ones you have added.

    Next open your showlisting or showlisting2 template file and add this at the top if it is not already there:

    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 *}
    


    Help & Support

    If you need any help just reply below and we will try and help.

    Change Log

    10-5-2007
    • Fixed bug with the call to the layout template file.
    • Fixed bug with the call to the forward template file.
    Downloads

    Attached Files:

  2. Nickb Customer

    Extra feature

    Would it be possible to add an extra bit to the seller store.

    It nice that sellers can have a small writeup, but it would be great if this could be extended to allow the seller store to include, say a couple of extra pages so they can have an about me page and maybe a terms and conditions. The pages should allow the seller to change font size and colour etc.

    When someone goes to the seller store then they are presented with the logo etc and then links to their pages, these pages should also hold the links.

    Just an idea. I think it will add alot to the store.
  3. Nickb Customer

    Store Logo

    Is there a way to limited the size of the seller store logo.
  4. Eric Barnes Guest

    Yes you can open the index.php file and find this section:
    PHP:

    $maxWidth
    =$rs['maxWidth'];
            
    $maxHeight=$rs['maxHeight'];
            
    $maxWidthThumb=$rs['maxWidthThumb'];
            
    $maxHeightThumb=$rs['maxHeightThumb'];
    Then change it to what you desire. For example:
    PHP:

    $maxWidth
    =400;
            
    $maxHeight='';
            
    $maxWidthThumb=150;
            
    $maxHeightThumb='';
    By leaving the height or width blank it will resize proportionally.
  5. Nickb Customer

    Thanks for the help
  6. Eric Barnes Guest

    This module has now been updated to work v4 RC9.
  7. outthere Customer

    where to put code?

    Where exactly would i put

    <a href="modules.php?mod=seller_store">My Store</a>

    and where will that show up so someone could setup their own store?

    P.S. Does anyone use this so I might see what it should look like on the site?

    Thanks
  8. Damon New Member

    Seller Store- Not Sure I Understand

    I installed the Store Mod yesterday and I have the "My Store" link and I am able to name the store and upload an image, but how does one actually implement a store?

    How is it suppose to work? How do you add items to the store? How do people find your store?

    I must be doing something wrong.

    Does someone have a link to a store that's working so I can see how it should operate?

    Here's the site I am working on-
    http://www.postitfurniture.com

    Regards,

    db
  9. Lhotch curmudgeon

    For visitors of your site, when they select "vire all ads by seller" the seller store will appear above the ads for that seller. The seller store is not really a store, its just a header, image and description about a seller. A way for a seller to pass along more detailed information about them that can be gained from just looking at the sellers profile.

    So, you dont add anything to the "store" its just info about the seller. The store mod in and of itself doesnt sell anything either.
  10. Damon New Member

    Oh ok, I get it. It is working then. Thanks for the quick reply.

    db
  11. antboy New Member

    "Next open your showlisting or showlisting2 template file ..."

    i am using v4 where does showlisting or showlisting2 template reside ???
  12. antboy New Member

    sorry see it now - i had been modding the purple template and didn't see all the other stuff in the default area
  13. canariasdata Customer

    I don't know why, but when I click the "my Store" link on my member navigation, the page with the form to enter the store data destrois my entire page layout and parts of the page are missing, other are totally out of place.

    How does this page "modules.php?mod=seller_store" affect the layout of the layout.tpl file? and where can I change what it is doing? Any Ideas?
  14. bowers01 Genius At Work

    Hi,
    I think this could work for what i want. Any help in making it do so would be great.
    After a user makes a search they get a list of items, i want a new field with a dealers picture or simply stating "Private seller" something like this http://everythingsfree.org/image//images/195613dealer.jpg
    I need a mod made so that when a user registers they can upload a image/logo and then it will appear in the search. The user also needs to be able to change the logo in their own control pannel.

    Cheers,
    Nick
    www.truckandmachinery.com.au
  15. suav New Member

    Ok.. so I got the seller store module installed correctly, but when I click on the link "My Store" it takes me back to the homepage only. It does not take me to a page where I can upload the logo or view my listings...

    Any help is appreciated..
  16. Lhotch curmudgeon

    Are you logged in? The my store link should ideally be added to a section of the navigation that only displays to logged in users.
  17. suav New Member

    Eric pointed me to the right direction. The module wasn't initialized and activated. Thanks for the response.
  18. systemaddict Customer

    List all items by individual store

    Is is possible with this module to list all items for a particular store?
  19. Lhotch curmudgeon

    This module does basically that. When you, as a site visitor, chose to "view all ads from a seller" it takes you to a page that shows all of that sellers items and has an image and test blurb about the seller.
  20. philoo Customer

    I have difficulties to use this feature to only a restricted usergroup...

    I created a ID=6 group and added the code

    {if $smarty.session.level==6 || $smarty.session.level==1}
    <a href="modules.php?mod=seller_store">My Store</a>
    {/if}


    on the layout.tpl

    ... but the "My Store" link never appeared, even as I am logged in as admin or as group #6 user ....

    Help !

    PS : If I add only the <a href="modules.php?mod=seller_store">My Store</a> code, of course it appears for everybody. It is only the "if" that does not run well...

Share This Page