This is a discussion on Feature listing step 3 combobox mod help within the v4 Modules / Modifications forums, part of the Help & Support category; I have created a featured package and it works, though after you select the package on step 2, you have ...
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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>
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
||||
|
||||
|
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 Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
|
#5
|
|||
|
|||
|
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> |
|
#6
|
||||
|
||||
|
No I mean your custom code from the step before step 3.
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
|
#7
|
|||
|
|||
|
<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> |
|
#8
|
||||
|
||||
|
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 v3.1.10 Developer IndianaPC.org - A community website Sandbox v4.0, 4.0.1, 4.0.4, 4.0.8, 4.1b3 Templates for sale | 68 Classifieds Customizations | My blog on 68 Web Hosting | Web Design & Development I am not a 68C employee, just a user and try to help out |
|
#9
|
||||
|
||||
|
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 Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
|
#10
|
|||
|
|||
|
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 |
![]() |
| Bookmarks |
| 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 | v4 Modules / Modifications | 14 | 07-07-2008 05:51 PM |
| Feature listing not active | newone | v3.1 Questions & Support | 6 | 08-12-2007 11:36 AM |
| Passing Listing ID to notification emails | abkeller | v3.1 Questions & Support | 6 | 08-07-2007 11:20 PM |
| Bold listing feature? | Mike-N-Tosh | v3.1 Questions & Support | 11 | 03-20-2007 10:36 AM |
| User: See's Membership listing package | garysr | v3.1 Questions & Support | 23 | 11-04-2006 02:08 PM |