GraphiXtreme
|
"Sell back to shop" issuehttp://swapitshopboards.com/food....component=shopf&buybackmode=1
The "sell back to shop" feature of the shop portal is broken, or at least has some dodgy code in there.
The template file for that specific page is cms_shopf.tpl (the "f" comes from the fact that my shop has different 'categories'), the content of which has not been changed other than me adding a and the words "Cost:" and "Credits".
It works fine until I try to sell an item back to the shop, at which point I get some bizarre HTML popping up which I think is causing the problem and messing with my template:
Can you shed any light on this problem, and help me fix it?
|
admin (no pm's please)
|
You must give the (myfree/myfast/myfine)forum.org link to your forum. A link should be given to the problem if at all possible. Do this whether you think it is important or not.
How many times to we need to ask for the correct link when posting a problem?
I have tested buy back on the default shop and template and it works.
|
GraphiXtreme
|
My apologies, I assumed that the link provided would be suitable.
http://swapitshopboards.myfreefor...component=shopf&buybackmode=1
|
admin (no pm's please)
|
The shop template contains a html error (maybe more than one) which I have fixed now in the base template.
| Code: |
<!-- IF SHOP_BUYBACKMODE == 1 -->
<tr><td>
You are selling back to the shop.
</td></tr>
<!-- ENDIF -->
|
should be:
| Code: |
<!-- IF SHOP_BUYBACKMODE == 1 -->
You are selling back to the shop
<br />
<!-- ENDIF -->
|
the code also skips items that allow no buy back or that the person does not own. This will lead to blank rows which may not be a good idea.
I wonder if anyone else has ever really used the buy back system, as these are quite basic issues that may need addressing.
|
GraphiXtreme
|
Thanks admin
|
|
|