1 of 2
1
Classified form not honoring spent credits, detecting existing credits
Posted: 18 January 2010 06:03 AM   Ignore ]  
Newbie
Rank
Total Posts:  2
Joined  2009-09-29

I’m having a few issues tweaking the classified add on for a job listing site.  First one is that the classified SAEF continues to allow new job posts even after allowed credits have been spent.

Second is that I’m wondering if there is a way to conditionally direct a user to either the checkout page or the new entry page depending on if they have available credits to use.

Thanks for your help!
Seamus

Profile
 
Posted: 18 January 2010 07:10 AM   Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  1653
Joined  2007-11-23

Hi Seamus,

It might be the code you are using, could you post an example? Or a link?

Signature 

Mike

HCC Development

Profile
 
Posted: 18 January 2010 01:03 PM   Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  1
Joined  2009-04-14

For sure.  The site is in the final stages of development, I’m just trying to perfect the workflow from Unregistered > Purchased Credit > Posted Listing and Expired Credit > Purchased Credit > Posted Listing. Any guidance on best practices for this would be very much appreciated.

I’m using custom SQL queries right now to test for whether or not someone has available credits, but it’s buggy and will probably need some special PHP to get the math right.

http://www.goodjobdc.com/index.php

SAEF Code:

{exp:foxee_classifieds:post_form weblog="jobs"}
    
<div id="primary">
        <
h1>Create Your Job Listing</h1>
            <
fieldset>
            <
div class="box">
                <
div class="inside">
                    <
p><label>Position Title <span><strong id="position_count" style="display:none;"></strong10 words allowed</span></label> <input type="text" id="position" value="" name="title" class="input word_count" /></p>
                    <
p><label>Job Summary <span><strong id="summary_count" style="display:none;"></strong250 words allowed</span></label> <textarea id="summary" name="field_id_1" class="big word_count"></textarea></p>
                    <
p><label>Required Skills <span><strong id="skills_count" style="display:none;"></strong150 words allowed</span></label> <textarea id="skills"  name="field_id_4" class="word_count"></textarea></p>
                    <
p><label>How to Apply <span><strong id="apply_count" style="display:none;"></strong100 words allowed</span></label> <textarea id="apply"  name="field_id_6"  class="word_count" class="big"></textarea></p>
                    <
p><label class="terms"><input type="checkbox" /> I understand that my listing may be removed if it is for a position that violates our <a href="#">terms of service</a>. If removeda refund will be issued.)</label></p>
                </
div>
                <
div class="bottom"></div>
            </
div>
            </
fieldset>
        <
p><input type="submit" class="submit" value="continue to confirmation »" /></p>
    </
div>
    <
div id="secondary">
        <
h2>Organization Information</h2>
        <
div class="box">
            <
div class="inside">
                <
fieldset>{exp:user:stats}
                    
<p><label>Organization Name</label> <input type="text" value="{company}" name="field_id_7" class="input" /></p>
                    <
p><label>Website</label> <input type="text" value="{url}" name="field_id_11" class="input" /></p>
                    <
p><label>Email Contact</label> <input type="text" value="{email}" name="job_email" class="input" /></p>
                    <
p><label>Phone</label> <input type="text" value="{phone}" name="job_email" class="input" /></p>
                    <
p><label>Location <span>(citystatezip)</span></label> <input type="text" value="{city}, {state} {zip}" name="field_id_12" class="input" /></p>
                    <
p><label>Organization Description</label> <textarea name="field_id_13">{bio}</textarea></p>
                
{/exp:user:stats}</fieldset>
            </
div>
            <
div class="bottom"></div>
        </
div>
    </
div>
    <
input type="hidden" name="field_ft_1" value="none" />
    <
input type="hidden" name="field_ft_5" value="none" />
    <
input type="hidden" name="field_ft_4" value="none" />
    <
input type="hidden" name="field_ft_6" value="none" />
    <
input type="hidden" name="field_ft_7" value="none" />
    <
input type="hidden" name="field_ft_11" value="none" />
    <
input type="hidden" name="field_ft_12" value="none" />
    <
input type="hidden" name="field_ft_13" value="none" />
    
{if no_results}<h3>Please {exp:foxee:addtocart id="3" method="link" cart="checkout" block_foxybox="yes" label="purchase a credit"} before posting a job.</h3>{/if}
    {
/exp:foxee_classifieds:post_form} 

Thanks Michael!
Seamus

Signature 

————————————-
Gridwork Design  ·  Site design for small organizations ·  EE Pro Network

Profile
 
Posted: 21 January 2010 04:49 PM   Ignore ]   [ # 3 ]  
Newbie
Rank
Total Posts:  2
Joined  2009-09-29

Any chance you could help us out on this?

Profile
 
Posted: 21 January 2010 09:12 PM   Ignore ]   [ # 4 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  1653
Joined  2007-11-23

Hi, couple things

Im wondering if the User module inside of the SAEF is causing problems, also could you check your activity log and tell me if you are getting errors.

Also make sure that you are not testing as a admin, use a different browser and create a test user.

Signature 

Mike

HCC Development

Profile
 
Posted: 28 January 2010 06:09 PM   Ignore ]   [ # 5 ]  
Newbie
Rank
Total Posts:  30
Joined  2009-02-16

hi Seamus / Michael

Just wondering if this was sorted as I’m having a similar problem.

In my case users are being shown the SAEF even when their credits have expired.

Did you find a solution?

Profile
 
Posted: 28 January 2010 07:45 PM   Ignore ]   [ # 6 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  1653
Joined  2007-11-23

Hi Blue,

I never heard back from Seamus so I figured he got it sorted out. All of the code we posted work as specified so lets find out whats causing your issue on your install. Can you post your form code. Thanks

Signature 

Mike

HCC Development

Profile
 
Posted: 29 January 2010 02:15 AM   Ignore ]   [ # 7 ]  
Newbie
Rank
Total Posts:  30
Joined  2009-02-16

Hi
Here’s the code I’m using. Thanks.

{exp:foxee_classifieds:post_form weblog="awards2010-entries" entry_id="{segment_3}"}
{if no_results}
<h3>Please {exp:foxee:addtocart id="4209" method="link" cart="checkout" block_foxybox="yes" label="pay the entry fee" foxee_site="iaa"} before posting your application.</h3>
{/if}
<div id="wizard">
<
ul id="status">
    <
li class="active"><strong>1.</strong>Project Details</li>
    <
li class=""><strong>2.</strong>Project Texts</li>    
    <
li class=""><strong>3.</strong>Nominator Details</li>
</
ul>
<
div style="left: 0px;" class="items">
<!-- 
page1 -->
<
div class="page">
<
h2><strong>Step 1: </strongProject Details</h2>
<
div class="textfield">
    <
label for="title"  >Name of Project Nominated:</label>
    <
input id="title" name="title" title="" type="text" class="required"/>
</
div>
<
div class="textfield">
    <
label for="iaa2010_practice_name" >Name of Architect and/or Architectural Practice responsible:</label>
    <
input id="iaa2010_practice_name" name="iaa2010_practice_name" title="" type="text" class="required"/>
</
div>     
<
div class="textfield">
    <
label for="iaa2010_client_name" >Name of Client:</label>
    <
input id="iaa2010_client_name" name="iaa2010_client_name" title="" type="text" class="required"/>
</
div>
<
div class="dropdown">
  <
label for="iaa2010_award_cat" >Award Category*:</label>
    <
select id="iaa2010_award_cat" name="iaa2010_award_cat" class="required" style="width:375px;">
<
option selected="selected" value="Best Accessible Project" class="required">Best Accessible Project (Sponsored by OPW)</option>
<
option value="Best Conservation / Restoration Project">Best Conservation Restoration Project</option>
<
option value="Best Cultural Building">Best Cultural Building</option>
    </
select>
</
div>    
<
div class="textfield">
    <
label for="iaa2010_completion_date" >Date of Completion:</label>
    <
input id="iaa2010_completion_date" name="iaa2010_completion_date" title="" type="text" class="required"/>
</
div>
<
div class="textarea">
    <
label for="iaa2010_project_address" >Address of Project Nominated:</label>
    <
textarea id="iaa2010_project_address" name="iaa2010_project_address" title="" rows="6" class="required" cols=""></textarea>
</
div>
<
button type="button" class="next right">Proceed</button>    
</
div><!-- #page1 -->
<!-- page2 -->
<
div class="page">
<
h2><strong>Step 2: </strongProject Texts</h2>
    <
p><em>Please provide the following text details (200 words max):</em></p>
<
div class="textarea">
    <
label for="iaa2010_arch_comments" >Architects Comments (Max200 words):</label>
    <
textarea id="iaa2010_arch_comments" name="iaa2010_arch_comments" title="" rows="6" class="required" cols=""></textarea>
</
div>
<
div class="textarea">
    <
label for="iaa2010_client_comments" >Clients Comments (Max200 words):</label>
    <
textarea id="iaa2010_client_comments" name="iaa2010_client_comments" title="" rows="6" class="required" cols=""></textarea>
</
div>
<
div class="textarea">
    <
label for="iaa2010_accessibility" >Accessibility Statement (Required for Best Accessible Project Max 200 words):</label>
    <
textarea id="iaa2010_accessibility" name="iaa2010_accessibility" title="" rows="6" cols=""></textarea>
</
div>
<
button type="button" class="prev disabled" style="float: left;">&laquoBack</button>
<
button type="button" class="next right">Proceed</button>
</
div><!-- #page2 -->
<!-- page3 -->
<
div class="page">
<
h2><strong>Step 3: </strongNominator's Details</h2>
<div class="textfield">
    <label for="iaa2010_nominator_name" >Nominator'
s Name *:</label>
    <
input id="iaa2010_nominator_name" name="iaa2010_nominator_name" title="" type="text" class="required"/>
</
div>   
<
div class="textarea">
    <
label for="iaa2010_nominator_address" >Practice Name &ampAddress *:</label>
    <
textarea id="iaa2010_nominator_address" name="iaa2010_nominator_address" title="" rows="6" class="required" cols=""></textarea>
</
div>
<
div class="textfield">
    <
label for="iaa2010_nominator_phone" >Office Phone Number *:</label>
    <
input id="iaa2010_nominator_phone" name="iaa2010_nominator_phone" title="" type="text" class="required"/>
</
div>
<
div class="textfield">
    <
label for="iaa2010_nominator_mobile" >Mobile Phone Number *:</label>
    <
input id="iaa2010_nominator_mobile" name="iaa2010_nominator_mobile" title="" type="text" class="required"/>
</
div>
<
div class="textfield">
    <
label for="email" >Contact Email:</label>
    <
input id="email" name="email" title="" type="text" class="required"/>
</
div>
<
div class="textfield">
    <
label for="iaa2010_nominator_url" >Company Website:</label>
    <
input id="iaa2010_nominator_url" name="iaa2010_nominator_url" title="" type="text" class="required"/>
</
div>
<
button type="button" class="prev disabled" style="float: left;">&laquoBack</button>
<
button type="button" class="next right">Proceed</button>
</
div><!-- #page3 -->       
<input type="submit" value="submit" style="float:right;" />
</
div><!--items-->
</
div><!--wizard-->
{/exp:foxee_classifieds:post_form} 
Profile
 
Posted: 29 January 2010 06:54 PM   Ignore ]   [ # 8 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  1653
Joined  2007-11-23

Is there a link were I can see that page?

Signature 

Mike

HCC Development

Profile
 
Posted: 29 January 2010 08:04 PM   Ignore ]   [ # 9 ]  
Newbie
Rank
Total Posts:  30
Joined  2009-02-16

Hi

The link is http://www.irisharchitectureawards.ie/index.php/2010/entry_form/

Thanks

Profile
 
Posted: 29 January 2010 10:29 PM   Ignore ]   [ # 10 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  1653
Joined  2007-11-23

well I cant get to the form. can you PM me access to your control panel. thanks

Signature 

Mike

HCC Development

Profile
 
Posted: 30 January 2010 06:35 AM   Ignore ]   [ # 11 ]  
Newbie
Rank
Total Posts:  30
Joined  2009-02-16

Just did that, thanks

Profile
 
Posted: 31 January 2010 04:41 PM   Ignore ]   [ # 12 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  1653
Joined  2007-11-23

The only thing I can see is you should move the addtocart link outside of the form. everything else looks fine.

Signature 

Mike

HCC Development

Profile
 
Posted: 01 February 2010 07:49 AM   Ignore ]   [ # 13 ]  
Newbie
Rank
Total Posts:  30
Joined  2009-02-16

Hi

When I moved the Addtocart link outside the form I was then unable to view either the SAEF or the Addtocart link? None of the necessary code rendered in the template.

Profile
 
Posted: 01 February 2010 06:58 PM   Ignore ]   [ # 14 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  1653
Joined  2007-11-23

strange, i will take a look later tonight

Signature 

Mike

HCC Development

Profile
 
Posted: 02 February 2010 07:00 AM   Ignore ]   [ # 15 ]  
Newbie
Rank
Total Posts:  30
Joined  2009-02-16

Any ideas on this?

Thanks

Profile
 
   
1 of 2
1
 

Join our Mailing List