Symon
|
Virtual Shop QuestionsThe but back price has to be the same as the purchases price, can this be changed, after all i dont want members buying something then months down the line selling it back 2nd hand for the same price.
Also the buying back process is a little mind confusing as to the untrained eye it looks like you have added another item to your basket insted of selling it.
And the buy back has no button its just a link.
www.facebookappchat.co.uk
|
admin (no pm's please)
|
Bug fixed with the buy back price.
I agree it is a little confusing, perhaps that can be handled better in the template.
But for reasons of keeping things simple we do want the process of buying and selling to be logically identical otherwise we would have to run a lot of different shopping cart code for buying and selling.
I guess we need to ask Nick for a button, I held off on doing this as I view this as a tricky area and did not want Nick to be functioning blind when looking at the issues of buttons.
Hopefully if you are developing a shop with buying and selling we can point Nick at a link soon and he will have a much clearer idea.
Equally the whole template is my typical bare bones functioning affair, something with all the macros and <IF> statements, but with sod all css classes and design to it. Hopefully we can take someones better effort and make it the default.
But we do not want to rush whilst the bug fixes are ongoing.
|
Symon
|
Ok been working on this and got nearley there just one small problem.
1.If I Go to www.facebookappchat.co.uk/beer.html
I can select the drink I want (top one is best as x profile field set.)
I then click buy which takes me to my mangerscart page giving me the option to checkout or go shopping for more.
If you click checkout it takes me to my normal shop
If you click view basket the items you have brought do show up and you can checkout and they do show on your profile.
However what i,m asking is what would be the link to skip the myff.shop and go straight to check out or view basket.
I have tried
| Code: | | <FORM ACTION="http://facebookappchat.co.uk/shop.html?component=shop&mode=viewcart" NAME="form" METHOD="GET" onsubmit="return ValidateCart(this)"> |
But again this will just take me straight to the shop with a link of
http://facebookappchat.co.uk/shop.html?x=25&y=10
Would love an answer on this as been working on it for some time now.
Also where is the .css to control the shop as the colours do not go well with my template.
www.facebookappchat.co.uk
|
admin (no pm's please)
|
I'm somewhat confused by using several pages for the shop the principle of the system is that you use the one page and the shopping cart cms_shop.tpl file adapts. This file knows what mode the shop is in.
<!-- IF SHOP_S_MODE == 4 -->
<!-- Order received -->
Thank you for your order
<!-- ENDIF -->
for example is for mode 4 when payment is complete.
|
Symon
|
So are you saying once i hit buy on my first page it should go straight too cms_shop.
|
admin (no pm's please)
|
| Symon wrote: | | So are you saying once i hit buy on my first page it should go straight too cms_shop. |
certainly all shop pages should be one page.
|
admin (no pm's please)
|
Also you seem to have been editing forms a bit:
<FORM NAME=order ACTION="managecart.html" onSubmit="AddToCart(this);">
seems to have come from the nopcart documentation? at any rate it is a bit wrong for us.
We need method="post" in there.
Also that definition is non standard html. There is a lot of that in nopcart and I am slowly trying to correct it.
<form name="order" method="post" action="{U_SHOP_ACTION}&mode=viewcart" onSubmit="AddToCart(this);">
is the correct line. Note that the action is designed to keep you on the same page. Possibly if you are embedding in a html page, this will break, but that is a bug that should be reported. e.g. {U_SHOP_ACTION} may be unreliable.
|
Symon
|
| admin (no pm's please) wrote: |
<form name="order" method="post" action="{U_SHOP_ACTION}&mode=viewcart" onSubmit="AddToCart(this);">
is the correct line. Note that the action is designed to keep you on the same page. Possibly if you are embedding in a html page, this will break, but that is a bug that should be reported. e.g. {U_SHOP_ACTION} may be unreliable. |
This leads to
http://facebookappchat.co.uk/&mode=viewcart
which is not found.
However i used
| Code: |
<FORM ACTION="http://facebookappchat.co.uk/shop.html?component=shop&mode=checkout" NAME="form" METHOD="post" onsubmit="return ValidateCart(this)"> |
Which does the trick and leads me straight to checkout, avoiding the view basket etc.
|
admin (no pm's please)
|
Ok, I will knock up a html page to see if I can get it to work without tweaking, as this is still a bug.
|
admin (no pm's please)
|
Seems to work okay in the html page for me.
It is an extra stage I know having the view basket sequence. Maybe I should make this optional?
|
admin (no pm's please)
|
Then again View Basket is where you can adjust the content of the order and so does have a logical role.
|
Symon
|
My question now is more and likey a silly one but what part of the .css do i adjust to stop having this page have the black background as you can see its hard to read the text, if it had no background colour it would fit nicely in the system.
This page looks badley wrong.
http://facebookappchat.co.uk/shop.html
|
Symon
|
Well i have the basic shop front sorted and links all seem to be ok just need the button links on final page to go to my shop rather than to myff shop.
And before anyone reports me or gets to excited its just a virtual shop.
www.facebookappchat.co.uk/appyshop.html
|
admin (no pm's please)
|
Looks good, it seems you have sorted the background.
In general with the shop there are few css definitions used in the template at the moment, something that probably should be improved.
|
Nick(NR)
|
Just curious Symon I take it your using it in web pages as: http://portalogy.myfastforum.org/index.php?component=shop
all works fine through the forum template, while logged in?
|
Symon
|
Not quite nick ,, i uploaded the files from the net and just integrated it to work with the myffshop.
I,m using files like beer.html etc
|
Symon
|
| admin (no pm's please) wrote: | Looks good, it seems you have sorted the background.
In general with the shop there are few css definitions used in the template at the moment, something that probably should be improved. |
Not quite here is the view i mean
this is on http://facebookappchat.co.uk/shop.html
Now checkout on http://facebookappchat.co.uk/shop.html?component=shop&mode=checkout
Looks like this and its like this that i want the first pic to look with out the blue/black ground
|
admin (no pm's please)
|
I see two issues.
| Code: | <form action="shop.html?component=shop&mode=pay" method="post" onsubmit="return CheckForm(this)"></form>
<script>
CheckoutCart();
</script>[b]</tbody></table>[/b] |
the bolded bit seems wrong it ends a table that should not be ended. This seems to be coming from the javascript have you altered the javascript?
I also note your form actions are sometimes shop.html and sometime appyshop.html which will cause issues.
|
Symon
|
| admin (no pm's please) wrote: | I see two issues.
| Code: | <form action="shop.html?component=shop&mode=pay" method="post" onsubmit="return CheckForm(this)"></form>
<script>
CheckoutCart();
</script>[b]</tbody></table>[/b] |
the bolded bit seems wrong it ends a table that should not be ended. This seems to be coming from the javascript have you altered the javascript?
I also note your form actions are sometimes shop.html and sometime appyshop.html which will cause issues. |
Stiill working on the forms i know viewcart is wrong.
no i dont think i edited the cms_shop at all ,, well i did in teh beginning but then copied a working one form spare template as far as i,m aware it has always had this issue.
|
admin (no pm's please)
|
the cms_shop.tpl is not the javascript!
I think the problem is that the browser is struggling with html errors.
I think cms_shop.tpl has them in spades and needs a lot of fixing. I am working on that now. What happens I think is that the browser does its best to deal with a table error and messes things up.
|
Symon
|
Found a bug.
When you sell something back to the shop for example
| Quote: | Product Id Product Name/Description Quantity Price
FGG1 Luxury Nights 1 £114.95/ea
SUBTOTAL £114.95
TAX £20.12
TOTAL £135.07 |
It adds the tax to it and you get the buy back price plus the tax back.
|
admin (no pm's please)
|
Is that actually wrong? surely with a buy back system we are only talking virtual shops where tax would not be enabled?
|
Symon
|
| admin (no pm's please) wrote: | | Is that actually wrong? surely with a buy back system we are only talking virtual shops where tax would not be enabled? |
I,m cool with it, shame all the spare change couldn't be directed to the forums bank
Ok i,m working on an inventory very basic at the moment so was wondering if you could make the macros for item description item cost item sell back ???
http://facebookappchat.co.uk/inventory.html
You see the img and how many you is there .
|
admin (no pm's please)
|
Isn't inventory something that should be part of cms_shop.tpl, but in a different "mode".
so you could have {MYFF.SHOP mode="inventory"} in a template and the inventory would show?
Something I'd need to put in (which is trivial) and which I cannot see how you are managing at the moment?
|
Symon
|
| admin (no pm's please) wrote: | Isn't inventory something that should be part of cms_shop.tpl, but in a different "mode".
so you could have {MYFF.SHOP mode="inventory"} in a template and the inventory would show?
Something I'd need to put in (which is trivial) and which I cannot see how you are managing at the moment? |
I,m not mangering apart from img and count
| Code: | <tr>
<td align="center" class="gen"><span class="gen"> {TheDogsBollocks_IMG} </span></td>
<td align="center" class="gen"><span class="gen">{TheDogsBollocks.DESCRPTION}</span></td>
<td align="center" class="gen"> {TheDogsBollocks} </td>
<td valign="middle" align="center" class="gen"> {TheDogsBollocks.BUYPRICE} </td>
<td valign="middle" align="center" class="gen"> {TheDogsBollocks.BUYBACKPRICE} </td>
</tr> |
|
admin (no pm's please)
|
I will try and put this in tomorrow, even with xmas getting in the way of things it is not hard to fit in, the only bother is whether this needs to be done a little outside of the current mode system so that any new modes can be added. e.g. inventory should not end up in a line:
<!-- IF SHOP_S_MODE == 7 -->
but we should pass it through as :
<!-- IF SHOP_S_MODE == "inventory" -->
allowing people to play more.
|
Symon
|
What ever you feel best i only did my own as there wasnt one, if one was to be added i,d use that one.
|
Symon
|
One other thing while we are flagging things up .
The option to give the item to another person is there in the settings but there is no visual way of doing this. ?
|
admin (no pm's please)
|
Not currently implemented. I'd welcome thoughts on mechanisms for doing this?
I'd guess it would be a link you could put in topics and profiles against the person being given to, and it would bring up a dialog which would I guess be once again a version of the shop component meaning a few more changes to the cms_shop.tpl template
|
Symon
|
IMHO
I think inventory is the best place to control this same as a buyback link, so next to an item maybe a drop box saying give to then you search username and they get a private message or email to say its done.
|
admin (no pm's please)
|
Kind of proves the point really
We have a difference of opinion on this.
Hence the logic in waiting a bit, and perhaps polling opinion when a few people have the portal in use.
|
Symon
|
| admin (no pm's please) wrote: | Kind of proves the point really
We have a difference of opinion on this.
Hence the logic in waiting a bit, and perhaps polling opinion when a few people have the portal in use. |
LOOK IN TOO MY EYES you know i,m right
|
|
|