68 Classifieds Forums

Feature listing step 3 combobox mod help

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 ...


Go Back   68 Classifieds Forums > Help & Support > v4 Modules / Modifications

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 08-07-2008, 01:00 PM
Member
 
Join Date: Jul 2008
Posts: 77
Rep Power: 3
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

Reply With Quote
  #2  
Old 08-07-2008, 03:08 PM
Eric Barnes's Avatar
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,305
Rep Power: 99
Eric Barnes is a jewel in the rough
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
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
Reply With Quote
  #3  
Old 08-07-2008, 03:45 PM
Member
 
Join Date: Jul 2008
Posts: 77
Rep Power: 3
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
Reply With Quote
  #4  
Old 08-07-2008, 03:56 PM
Eric Barnes's Avatar
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,305
Rep Power: 99
Eric Barnes is a jewel in the rough
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
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
Reply With Quote
  #5  
Old 08-07-2008, 04:19 PM
Member
 
Join Date: Jul 2008
Posts: 77
Rep Power: 3
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>
Reply With Quote
  #6  
Old 08-07-2008, 04:29 PM
Eric Barnes's Avatar
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,305
Rep Power: 99
Eric Barnes is a jewel in the rough
Default

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
Reply With Quote
  #7  
Old 08-07-2008, 04:33 PM
Member
 
Join Date: Jul 2008
Posts: 77
Rep Power: 3
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>
Reply With Quote
  #8  
Old 08-07-2008, 06:41 PM
Mike-N-Tosh's Avatar
Moderator
 
Join Date: Jan 2007
Posts: 990
Rep Power: 30
Mike-N-Tosh is just really niceMike-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
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
Reply With Quote
  #9  
Old 08-07-2008, 06:47 PM
Eric Barnes's Avatar
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,305
Rep Power: 99
Eric Barnes is a jewel in the rough
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
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
Reply With Quote
  #10  
Old 08-07-2008, 07:17 PM
Member
 
Join Date: Jul 2008
Posts: 77
Rep Power: 3
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
Reply With Quote
Reply

Bookmarks

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
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -4. The time now is 03:31 PM.


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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22