Log in to check your private messages 
Username: Password:   
  howtodoit.myfastforum.org
  Walkthough guides for myfreeforum phpbb 2 forums
Index  FAQ  Search  Memberlist  Usergroups  Profile

Text
Text
Friends
MYFF Support Forum
HOWTODOIT (PHPbb3)
portalogy
CGArts
ANNOUNCEMENTS
Complete List of templates Available
Please Read First Before Editing your template
Permissions
Admin Index
Sticky Articles
Latest Posts
Friends

Start | Stop
Virtual Shop Mod
Jump to:  
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    howtodoit.myfastforum.org Forum Index » Add-on`s for your forum
Author Message
Symon
Guide Legend
Guide Legend



Joined: 11 Jun 2006
Posts: 911


Location: Berkshire,England
FLAGS
Add Comment
Show Comments
PostPosted: Sat Dec 22, 2007 3:42 pm  Reply with quote

This guide is for a virtual shop mod only.

To enable this shop to work you must have installed the Cash Mod Hack found HERE

Please remember to use the Editor account before making any template changes

Second you must have all ready a template you can edit.

If you have not done this please read HOWTODOIT

Ok all that done you now goto Your  admin panel ---  3. Styles --- Portal Settings

You will now see a screen that looks like this



If you do not  see the  portals named Shop , Actions , then Please go to the support forum and request admin adds them for you. (Please check properly first before requesting.)

You need to set up an xprofile for each of the items you wish to sell, for this example i will use an item called Football And Scarf .

1. Goto admin panel --- 2. Profile Fields ---

You now see a screen that looks something like this.



At the bottom enter FOOTBALL (Remember football is an example please enter the name of the item you are selling) and click on add custom profile field

You now see a screen like this.



Fill in the details to suit your needs. You can copy what i have in the picture this will work, or read the guide in the spoiler.

Spoiler:



Field name = FOOTBALL(Change this to the name of your item)
Displayed title = Bank (you can Change this to what you want)
Topic display position = Under Avatar (Change this to suit you, or if you want to add it in yourself then leave as none, and follow the tips at the bottom of this guide.)
Automatic Entry = Yes (leave as Yes)
Automatic Display = No (leave as No)
Required = No (leave as no)
Display at user registration
= No ( No point displaying this as it will not show till they have made a post.)
Visibility = All (leave as All)
Access = Admin (leave As Admin)
Type = Text (leave as text)
Default = Blank ( Do not put anything in this box)
Link = Leave as blank.
Maximum characters = 120 (Leave as it is )
Character width = 12 (leave as it is)
Display as image = Leave blank, or add an image, The image as well as title will be displayed where you have set it to above for example Under Avatar.
Style = width: 200px (leave as it is)



Now click Update.


Please note that you must repeat the steps above for each item you wish to have in your shop, remembering to call each item something different for example football, footaball2

Ok all that done you now goto Your  admin panel ---  3. Styles --- Portal Settings

You will now see a screen that looks like this



If you do not already see a portal named SHOP then Please Make a post on the support forum requesting Admin add it.(Please look very carefully before requesting this.)

Click on SHOP and you should see a screen like this.




Parameters for the component type

Spoiler:


Title   The name you wish to call your shop
 
Published   No Yes ( Turn to yes to show your shop to all members)
Show Title   No Yes Select whether to show the title of this component
Description   A virtual shop where you can spend virtual cash earnt on the forum (You can change this to suit your needs what you put here will be the title header of your shop, See screenshots below.)
Virtual   Virtual   (Please leave this as virtual for the benefit of this guide, A guide for a real shop will be coming soon.)
[color=red]Enable Tax  
No Yes (Up to you do you wish to charge tax for each order ?)[/color]
Tax Rate   Decide on how much tax to charge your customers ,  Tax rate 0 (.175) would be 17.5%
Enable Shipping   No Yes (It is best to leave this as no as this is only a virtual store so no need for customers address.)
Currency   CASH ( If you have followed the cash mod guide and called your xprofile CASH then please leave this as CASH , if you called your cash mod by another name then please enter that name insted of CASH)
Currency Symbol  £ or $ or C  (change to suit your country ).
Minimum Order    Here you put the figure of what yopu want the Minimum order value to be, Virtual shops would rarely use this so best to keep at 0.00)
Checkout Type   Virtual Shop (Please leave as Virtual Shop,,,, Live shops must contact support)
Payment id   (Leave blank as virtual shops do not need this.)
Currency Code   (Leave blank as virtual shops do not need this.)
Rows   Your choice  (Determines How many items are displayed on a row on your shop page.)
Columns   Your choice  (Determines How many columns you have on your shop page.)
Thumbnail Width   If you have entered a thumbnail image for an item (see guide below as we have not covered this bit yet) this controls the size of it)..
Thumbnail Height   If you have entered a thumbnail image for an item (see guide below as we have not covered this bit yet) this controls the size of it)..
Alert when item added   Yes,  No (When a member adds an item to their basket they will see a Popup  alerting them that that item has been added).
Order Email Subject   (As this is a virtual shop no emails are sent out so please leave this area blank.)
Refund Email Subject   (As this is a virtual shop no emails are sent out so please leave this area blank.)
Order Email prefix  (As this is a virtual shop no emails are sent out so please leave this area blank.)



Ok now if you keep scrolling down you now see an area that looks like this.



This is the area that controls each item that you wish to sell.

The important thing to note here is that what ever you call your item for example football then you must have set up an xprofile field with the EXACT name, as explained earlier in this guide.

Fill in the details to suit you the parameters are listed below in the spoiler.

Items Parameters

Spoiler:



XPROFILE 1   FOOTBALL  (FOOTBALL is an example only please change to the name of your item) ( This is a unique identifier for the item. It  must correspond to an XPROFILE field. So if you have called your item FOOTBALL then you must have an xprofile field called FOOTBALL)
Name 1 Gold Footaball (FOOTBALL is an example only please change to the name of your item)
Description 1   (This is the short Item Description, see screen shot below)
Long Description 1   Round gold football (This is  longer Item Description that can be displayed if you click on the item
Image 1   (Please enter your  Image link)
Thumbnail Image 1 (Please enter your Thumbnail Image link, this can be the same as above but will be displayed at the size you set it too earlier in the guide.)
Max Allowed 1 (How many of this item can someone own, do not leave this as 0)
Price 1 10.00 (10.00 is only an example you can change this to suit your needs.)(Enter the price of your item)
Buy Back Price 1   5.00 (5.00 is only an example) The Price the  shop will buy back this item at. You must have enabled "Allow Buy Back" below for this to work).
Postage Cost 1 (No point in a virtual shop but this would control the  Cost of delivery.)
Allow Buy Back 1 No Yes ( Select whether to allow the shop to buy back an item, this again is virtual the shop needs no funds to do this).
Information 1 1[color]   [color=white]Leave blank for virtual shops (Additional information on item, macro will be {shoprow.shopcolum.INFO1})
Information 1 1   Leave blank for virtual shops ( Additional information on item, macro will be {shoprow.shopcolum.INFO2})
Allow Give 1   No Yes  (Can a member give this as a gift to another member
, as of 22/12/07 this feature is not live as of yet.)


Now scroll all the way to the bottom of the page and click  "update portal parameters"




Note

You must follow the steps above for each item that you wish to sell remembering to set up an xprofile field as well with the exact name as each item.



Now you need to display your shop the best way to do this is to use the webpages.

1. Goto admin panel -- 6. Web Pages -- Edit Web Pages


Now click on Web Page in the top left hand corner

Enter the details if you are not sure what to put then please read

http://howtodoit.myfreeforum.org/...component=content&topicid=651

Or copy this screen shot



Now click on source

And enter


Code:
{MYFF.SHOP}



Save Page

Now set up one more webpage called INVERTORY

Again follow the guide above or just copy this screen shot.





If you want to add an inventory Link

Then follow the guide below and insert

Code:
<a href="/inventory.html">My Inventory</a>
 where you wish it to appear.


The guide below is for advanced users that wish to display the items else where.

Please not i am using
Code:
{FOOTBALL}
as an example only you must replace it with the name of your item.

Code:
{FOOTBALL}
is for text only

Code:
{FOOTBALL_IMG}
is for the image version.


Now you have several places This can appear I will list the main 3.

(A) In profile view

(B) In view topic





Goto  admin panel ---   3. Styles ---  Edit Templates/Logos -- the template you wish to edit (EG myff_howtodoit1)--- Submit


Now  look at the top in the area marked Choose Forum template/javascript/css File to Edit use the  drop down bar and find the correct file

For view (A)

profile_view_body.tpl

You should now see the code like this

Code:
 
    <tr>
                       <td valign="top" align="right" nowrap="nowrap"><span class="genmed">{L_INTERESTS}:</span></td>
                       <td> <b><span class="genmed">{INTERESTS}</span></b></td>
                     </tr>
     


So if you wanted it to appear after interests you would add

Code:
<tr>
        <td valign="top" align="right" nowrap="nowrap"><span class="gen">Bank:</span></td>
        <td> <b><span class="gen">{FOOTBALL}</span></b></td>
      </tr>


Just below it so it may look like this.

Code:
<tr>
                       <td valign="top" align="right" nowrap="nowrap"><span class="genmed">{L_INTERESTS}:</span></td>
                       <td> <b><span class="genmed">{INTERESTS}</span></b></td>
                     </tr>

<tr>
        <td valign="top" align="right" nowrap="nowrap"><span class="gen">Join Me On:</span></td>
        <td> <b><span class="gen">{FOOTBALL}</span></b></td>
      </tr>


Too add both count and image you would add


Code:
<tr>
        <td valign="top" align="right" nowrap="nowrap"><span class="gen">Join Me On:</span></td>
        <td> <b><span class="gen">{FOOTBALL} {FOOTBALL_IMG}</span></b></td>
      </tr>


For view (B)

Goto viewtopic_body.tpl

Now place where you wish it to be for my example if you wish it to be after location then find


Code:
{postrow.POSTER_FROM} <br />


And after place this code



Code:
{postrow.FOOTBALL} <br />


So it may look like this.

Code:
<td class="post_post_details" align="left">
                        {postrow.POSTER_JOINED}<br />
                        {postrow.POSTER_POSTS}<br />
                        {postrow.POSTER_FROM}<br />{postrow.FOOTBALL}<br />



To add both count and image you would add
Code:

{postrow.FOOTBALL} {postrow.FOOTBALL_IMG}



And Thats HOWTODOIT

Screen Shots

Shop












View user's profile Send private message Visit poster's website FACEBOOKSTEAM
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    howtodoit.myfastforum.org Forum Index » Add-on`s for your forum


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

HOWTODOIT was designed and built by Symon Field
Creator Of ☆ ☆ FunnyWorld
HOWTODOIT© Symon Field 2006,2007,2008

Powered by phpBB Group © 2001,2005.
 
Create your own free forum | Buy a domain to use with your forum