Google

NukeCoder


View next topic
View previous topic
Post new topic   Reply to topic
Author Message
Flood




Joined: Apr 10, 2007
Posts: 16

PostPosted: Mon May 07, 2007 3:54 pm
Reply with quote

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
 
View user's profile Send private message
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Mon May 07, 2007 5:53 pm
Reply with quote

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.
 
View user's profile Send private message Visit poster's website
Flood




Joined: Apr 10, 2007
Posts: 16

PostPosted: Mon May 07, 2007 8:36 pm
Reply with quote

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.
 
View user's profile Send private message
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Mon May 07, 2007 9:48 pm
Reply with quote

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.
 
View user's profile Send private message Visit poster's website
Flood




Joined: Apr 10, 2007
Posts: 16

PostPosted: Mon May 07, 2007 10:41 pm
Reply with quote

Nice 1 m8, good to know your on top of things Wink

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?
 
View user's profile Send private message
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Tue May 08, 2007 1:01 pm
Reply with quote

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.
 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
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
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 5 Hours
Forums ©