The vB Geek

Go Back   The vB Geek > vB Geek Products > GeekMart

GeekMart GMart is an integrated shopping cart system for vBulletin.

Advertisement
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 02-12-2006, 01:54 PM
guvner's Avatar
guvner guvner is offline
Junior Member
 
Join Date: Dec 2005
Posts: 15
Geek Article and Review System License Holder GeekMart License Holder Geek Gazette License Holder 
Default One works - the other doesn't

I've spent several hours trying to figure this out.

I'm using the latest Gmart in the Paypal sandbox and have set up 2 dummy products to purchase- (A & B).

To enable separate download permissions I'm using the Geeker system and have also created 2 specific usergroups for the purpose and allocated permission to download using the Geeker according to which product is purchased.

However, regardless of whether I buy the products together or separately, once the Paypal IPN has done it's stuff, product A always enables the correct usergroup and allows the download whilst product B never does - it just won't add the user to the assigned usergroup.

I've checked that the the usergoups are set up the same, made sure that both products are set up in Geekmart and Geeker exactly the same - but I can't get B to work the way A does.

Now I know that logically if A is working it "must" be something in the way B is set up that stops it - but for the life of me I can't find what the difference is.

Any ideas?

Thanks - Mike
Reply With Quote
  #2  
Old 02-12-2006, 04:12 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Hey Mike.

What happens if you swap usergroup and timings around? Does the same product work (thereby giving you the other usergroup) or does the one that doesnt work now suddenly start working?

Also, which module are you using on the item? License or membership?
Reply With Quote
  #3  
Old 02-12-2006, 09:07 PM
guvner's Avatar
guvner guvner is offline
Junior Member
 
Join Date: Dec 2005
Posts: 15
Geek Article and Review System License Holder GeekMart License Holder Geek Gazette License Holder 
Default

DOH! DOH! DOH!

You see - this is what happens when we create the problem whilst doing 10 things at once then work into the wee small hours to try and fix it when we should have just gone to bed!

Thanks TheGeek - since I'm in Sydney - I just awoke to your email and that's all it took (and a few hours sleep) to make me realise that - Yes! - I had made absolutely sure that both products were set up identically - right down to them both adding the same usergroup after IPN!

Thanks for being another pair of eyes - great product and working well.

Some advice if I may ask?

As I've said I've set up 2 usergroups and the "membership" option to handle these software purchases, however since I already have a general (free) downloads section (courtesy of vb.org), I need a way to enable purchasers to be able to come back during the 12 month licensed period and re-download the licensed software.

I'm thinking that a "Licensed Downloads" link in the navbar might do it - viewable only after IPN and access to the required usergroup has occurred. But I don't know how to code the conditional to make such a link appear only to licensees.

I know it will be along the lines of
Code:
<if condition="$show['member']"> <td class="navbarbgcolor"><a href="Licensed Download Link code">Licensed Downloads</a></td></if>
but I'm a bit stuck on using the the usergroup instead of 'member' - can you help please?

Thanks again - Mike
Reply With Quote
  #4  
Old 02-12-2006, 09:15 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Would is_member_of function sort it for you?
Reply With Quote
  #5  
Old 02-12-2006, 09:34 PM
guvner's Avatar
guvner guvner is offline
Junior Member
 
Join Date: Dec 2005
Posts: 15
Geek Article and Review System License Holder GeekMart License Holder Geek Gazette License Holder 
Default

Dunno really - what would the syntax be?

Gotta go and earn a crust now - back in a few hours
Reply With Quote
  #6  
Old 02-12-2006, 09:41 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

<if condition="is_member_of($bbuserinfo,10)">

If I remember right... You may want to double check.

Go earn some bread, Ill go catch some Z's
Reply With Quote
  #7  
Old 02-12-2006, 09:51 PM
guvner's Avatar
guvner guvner is offline
Junior Member
 
Join Date: Dec 2005
Posts: 15
Geek Article and Review System License Holder GeekMart License Holder Geek Gazette License Holder 
Default

Couldn't leave till I got it right - thanks for your help, this works just fine

Code:
<if condition="is_member_of($bbuserinfo,34,35)"> <td class="navbarbgcolor"><a href="http://www.xpmediacentre.com.au/community/">Test Link</a></td></if>
Ho Ho Ho it's off to work I go . . .

Mike
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Only works once? speedracer68 Geek Auto-Linker 2 05-12-2009 05:54 AM
Works sometimes Mr Chris Geek Auto-Linker 3 05-11-2009 06:59 PM
works ok in FF, but not in IE MOG Geek Auto-Linker 5 03-26-2008 11:57 AM
Works on 3.6.x? tanyeri24 Geek Auto-Linker 1 11-18-2006 07:44 AM
Works in FF, but not in IE mikem79 Geek Auto-Linker 9 03-03-2006 11:02 PM


All times are GMT. The time now is 03:15 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.