Support Forums

Old 03-25-2009, 02:13 PM   #1
Junior Member
 
Join Date: Mar 2009
Posts: 8
Rep Power: 0
jtnews is on a distinguished road
Default Change extra options defaults

We currently have set up four levels of ads, each with an additional benefit made up of the default extra options, making the price of those options $0. Is there a way to make the dropdown default to the free option rather than "No thanks"?
jtnews is offline   Reply With Quote
Old 03-25-2009, 02:23 PM   #2
Moderator
 
 
Join Date: Mar 2006
Posts: 4,103
Rep Power: 100
Lhotch is just really niceLhotch is just really nice
Default

what version of 68C are you running?

Designer or devloper?

What template are you using?

P.S. Putting those details in your forum signature will prevent people from asking you these qustions over and over.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 03-25-2009, 02:28 PM   #3
Junior Member
 
Join Date: Mar 2009
Posts: 8
Rep Power: 0
jtnews is on a distinguished road
Default

I'm using 4.1.1 designer.
jtnews is offline   Reply With Quote
Old 03-25-2009, 02:53 PM   #4
Moderator
 
 
Join Date: Mar 2006
Posts: 4,103
Rep Power: 100
Lhotch is just really niceLhotch is just really nice
Default

should be able to edit /checkout/step3.tpl ill have to look closer at it.


in /checkout/step3.tpl near the bottom you have the creation of the 3 option dropdowns. Example of the featured one looks like this....

Code:
<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>
change it to this and apply similar changes to other 2 options.

Code:
<select name="featured" id="featured">
<option value="N">{$smarty.const.LANG_NO_THANKS}</option>
 <option value="Y"{if $featured=="Y" || $featured==""} SELECTED{/if}>{$smarty.const.LANG_YES} (+{$cFeaturedPrice|format_money})</option>
</select>
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 03-25-2009, 05:16 PM   #5
Junior Member
 
Join Date: Mar 2009
Posts: 8
Rep Power: 0
jtnews is on a distinguished road
Default

This doesn't appear to be working - but I'm curious about the code. Unless there's something I'm missing, the listing doesn't become featured until we upgrade to featured. So to use that as a conditional will never prove true, right?
__________________
--------
4.1.1 Designer edition
jtnews is offline   Reply With Quote
Old 03-25-2009, 05:28 PM   #6
Moderator
 
 
Join Date: Mar 2006
Posts: 4,103
Rep Power: 100
Lhotch is just really niceLhotch is just really nice
Default

When you say "This doesn't appear to be working" do you mean it is not changing the option OR when the ad is placed the ad is not featured?

To be honest I am not even sure why the smarty evaluation is even there since the variable $featured doesnt appear to exist at checkout. It also looks like both the featured option AND the bold option check the same variable which would probably be a bug if they actually did anything.

When an ad is filled out for the first time the variable $featured doesnt exist therefor the option with a value of Y will never be set as the selected option.

When step3.tpl loads since there is no template variable defined the condition is met when you evaluate it to "" thereby making Yes the selected option by default.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Lhotch is offline   Reply With Quote
Old 03-25-2009, 07:59 PM   #7
Junior Member
 
Join Date: Mar 2009
Posts: 8
Rep Power: 0
jtnews is on a distinguished road
Default

What I mean when I say not working is that the default is still set to No Thanks. I removed the conditional text entirely, rearranged the order of the Yes and No to have the Yes show up first (and selected), which also pushes the upsell a little harder.
__________________
--------
4.1.1 Designer edition
jtnews is offline   Reply With Quote

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
External URL Extra Options hel68c v4 Questions & Support 2 02-24-2009 11:37 AM
More Extra Fields Options MADKing v3.1 Questions & Support 3 08-14-2007 12:19 PM
setting more options for extra field (drop down) jkg011 v3.1 Modules & Modifications 1 06-20-2007 12:27 PM
Membership Extra Options CB v3.1 Questions & Support 2 07-22-2006 02:16 PM
Extra Options in Featured Ad Package SkGold v3.0 Questions & Support 7 04-09-2006 05:56 PM


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


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