| Author |
Message |
Flood

Joined: Apr 10, 2007
Posts: 16
|
Posted:
Mon May 07, 2007 3:54 pm |
|
Hi, err installed shop, seems ok i dl'd no problem on my end. However, despite setting anonymous downloads (for free DL) to 'yes' the item still requests thata user be registered b4 downloading it. I made the chnage using edit after the item was live so will I ned to delete and activate a nrew item or should the edit be working?
Shop is at;
http://www.noizeviolation.com/modules.php?name=Digital_Shop |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Mon May 07, 2007 5:53 pm |
|
You shouldn't need to create a new item for it to work. However, use phpmyadmin to look at the items table and make sure "item_freedl_anon" is set to 1. If it is not set to 1 there was either a problem when it updated or an error in the code. |
| |
|
|
 |
Flood

Joined: Apr 10, 2007
Posts: 16
|
Posted:
Mon May 07, 2007 8:36 pm |
|
Well looked at the mentioned table, changed 0 to 1, no difference. Deleted and re-added item to shop, same problem still.
Pissing me off no end since I had a load of visitors during the day and half didn't bother downloading due to having to register. |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Mon May 07, 2007 9:48 pm |
|
I apologize for the problems and you can follow these steps to fix it until I can put a patch together.
I was able to repeat your problem exactly here on this site.
I checked the db and item_freedl_anon was set to 0. I changed item_freedl_anon to 1, saved the changes, and I was able to download the file as anonymous.
You can logout and go here http://nukecoder.com/shop_item-4.html to see check if you'd like.
This is an error in the item add/update process and I will release a patch to fix this bug asap. |
| |
|
|
 |
Flood

Joined: Apr 10, 2007
Posts: 16
|
Posted:
Mon May 07, 2007 10:41 pm |
|
Nice 1 m8, good to know your on top of things
However even once I've changed the value to 1 I'm still gettin
'You must login to download this file!'
Is it possible I've changed something elsewhere in the options? |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Tue May 08, 2007 1:01 pm |
|
Ok, I found the problem is actually in a template file and the fix is quite simple... So here it is:
Open templates/$your_template/shop/admin/item-edit.tpl
Towards the bottom of that file, find:
| Code: |
<label><input type="radio" name="f_freedl_anon" value="0"{if $item_freedl_anon == 0} checked{/if} />No</label>
<label><input type="radio" name="f_freedl_anon" value="1"{if $item_freedl_anon == 1} checked{/if} />Yes</label><br /> |
And Change to
| Code: |
<label><input type="radio" name="f_item_freedl_anon" value="0"{if $item_freedl_anon == 0} checked{/if} />No</label>
<label><input type="radio" name="f_item_freedl_anon" value="1"{if $item_freedl_anon == 1} checked{/if} />Yes</label><br /> |
As you can see, all we do is change both instances of f_freedl_anon to f_item_freedl_anon. |
| |
|
|
 |
|
|