Support Forums

Feature listing step 3 combobox mod help

This is a discussion on Feature listing step 3 combobox mod help within the Modules / Plugins / Modifications forums, part of the Developer Forums category; I have created a featured package and it works, though after you select the package on step 2, you have ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 08-07-2008, 01:00 PM   #1
Member
 
Join Date: Jul 2008
Posts: 76
Rep Power: 12
centinel3 is on a distinguished road
Default Feature listing step 3 combobox mod help

I have created a featured package and it works, though after you select the package on step 2, you have to reselect it in step 3 for $0.00. Have I configured this wrong, or is this how it normally works? I have contacted 68 class. and they said that you may be able to write an IF/Then statement to make the featured box in step three auto selected, though don't know much about writint that type of code. Any help or ideas on how to modify this feature?

sent email to 68:
Is there a way to have it automatically selected then if someone buys the 'featured' package? I foresee that some customers will overlook selecting the featured: $0.00 from the combobox if they already selected it from step 2.


I'm running v.4.0.6 with the search friendly mod.

Thank you for your help.
chris
centinel3 is offline   Reply With Quote
Old 08-07-2008, 03:08 PM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,493
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Hi Chris,

Here is the code from step3.tpl:
Code:
<option value="Y"{if $featured=="Y"} SELECTED{/if}>{$smarty.const.LANG_YES} (+{$cFeaturedPrice|format_money})</option>
So depending on what information you send is what determines the if statement. Can you post any code that would help?
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 08-07-2008, 03:45 PM   #3
Member
 
Join Date: Jul 2008
Posts: 76
Rep Power: 12
centinel3 is on a distinguished road
Default help to code

I opened up the step3.tpl file and found the line of code you posted. My question is hot to make this featured combobox autoselect if the client opts to pay for a featured ad on step2. I have been going through some dry runs and have found that (as a client) if I select the featured ad in step 2 and not from the combobox on step three then the ad will post as a regular ad, though still charge the client for a featured ad. Any help would be greatly appreciated. I love this script. Very functional. I just need a few tweaks and I'm going to launch my website.

chris
centinel3 is offline   Reply With Quote
Old 08-07-2008, 03:56 PM   #4
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,493
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Chris,

Really you would need to post some of your code to see what variables you are sending. For instance if they select featured on the prevous step you could use something like:
{if $smarty.post.featured == 'Y'} selected{/if}

But it depends on the variables you are using.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 08-07-2008, 04:19 PM   #5
Member
 
Join Date: Jul 2008
Posts: 76
Rep Power: 12
centinel3 is on a distinguished road
Default here is what I'm looking at.

Sorry about not including the code I'm looking at. Here it is:

<td><label for="featured">{$smarty.const.LANG_ADD_FEATURED}{$ smarty.const.LANG_COLON}</label></td>
<td>
<select name="featured" id="featured">
<option value="N">{$smarty.const.LANG_NO_THANKS}</option>
<option value="Y"{if $featured=="Y"} SELECTED{/if}>{$smarty.const.LANG_YES} (+{$cFeaturedPrice|format_money})</option>
</select>
</td>
centinel3 is offline   Reply With Quote
Old 08-07-2008, 04:29 PM   #6
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,493
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

No I mean your custom code from the step before step 3.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 08-07-2008, 04:33 PM   #7
Member
 
Join Date: Jul 2008
Posts: 76
Rep Power: 12
centinel3 is on a distinguished road
Default sorry about that. this is it then.

<td align="center">
<form method="post" action="usercheckout.php" name="purchase{$smarty.foreach.count.index}" id="purchase{$smarty.foreach.count.index}">
<strong>{$results[numloop].pTitle}</strong><br />
{$results[numloop].pDescription|nl2br}<br />
{if $results[numloop].pListPrice>0}
<strong>{$smarty.const.LANG_LIST_PRICE}:</strong><strike>{$results[numloop].pListPrice|format_money}</strike><br />
{/if}
<strong>{$smarty.const.LANG_PRICE}:</strong>{$results[numloop].pPrice|format_money}<br />
<input type="hidden" name="step" value="3" />
<input name="productid" type="hidden" id="productid" value="{$results[numloop].pID}" />
<input name="category" type="hidden" id="category" value="{$category}" />
<input type="hidden" name="listingid" value="{$listingid}" />
<p class="submit"><input type="submit" name="Submit" value="{$smarty.const.LANG_SELECT_THIS_PACKAGE}" /></p>
</form>
{if not ($smarty.section.numloop.rownum mod 2)}
{if not $smarty.section.numloop.last}
</tr><tr>
centinel3 is offline   Reply With Quote
Old 08-07-2008, 06:41 PM   #8
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,072
Rep Power: 62
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

I'm thinking that everyone is misunderstanding including the original poster.

Unless I'm misunderstanding, Are you saying that you created a listing package that is called "featured"? Now you are wondering why if the client has already selected your "featured" listing package why they have to select featured again in step 3?

If that is the case then it is a misunderstanding of how the listing packages are created. The "featured" is an option for any listing package that you create. You can charge extra for it or not. When creating the package, you have the option of offering the package to allow it to be featured. Selecting the option during the creation process does NOT make the listing package automatically a "featured" listing.

-Mike
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 08-07-2008, 06:47 PM   #9
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,493
Rep Power: 132
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Yes I have to agree with Mike. After reading the title I thought redid step2 and added in some type of custom coding.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 08-07-2008, 07:17 PM   #10
Member
 
Join Date: Jul 2008
Posts: 76
Rep Power: 12
centinel3 is on a distinguished road
Default I understand

This was a bit confusing, though I seem to understand the concept of it. Now, the question I'm still left with is this: If you set up your 2 packages, one free, the other a featured, is there a way that when the user selects the featured package that this triggers the featured combobox to already be selected, or engaged and not shown at all (except for the extra features still offered for a fee)?

chris
centinel3 is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
MODIFICATION: Receive a copy of the email sent from visitors to listing owners. cwp Modules / Plugins / Modifications 15 07-25-2009 08:02 AM


All times are GMT -4. The time now is 08:10 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0