![]() |
Just noticing that you are using v 11, although the mod was put together for 13, it should still work. Are you planning on upgrading to 17 at all? 11 was full of bugs and 17 has improved this feature anyway, you don't need to fill it in - just leave it blank.
If you are going to do this, then you would save time trying to solve this. |
I am using 17...
Sorry. I thought I changed it in my profile before posting this question. I guess it didn't stick. I know you can leave the ship-to blank - but though this 'check box' mod would make it look better.... |
It's kind of redundant in 17, you don't want people to have more clicks - less is best, gets them to the end quicker and then you get paid! No point adding things just to make it look cool - you have to think of the overall goal.
It's up to you though, if you want to try and solve it we can. |
OK.. you've talked me out of it... I did use part of the mod to copy the name down though.
I'd still like to figure out how to have it ask for the county AFTER the state in the checkout though... It looks kinda funny asking for it before.... Anyone done this yet? Thanks |
I was able to switch around the State and County order, but am still working on how to get the county field to show only when there are counties configured for that state.
So here's what you have to do. Go into /main/register_billing_address.tpl and find this code: Code:
{if $default_fields.b_county.avail eq 'Y' and $config.General.use_counties eq "Y"} Move it so it's underneath the state block of code: Code:
{if $default_fields.b_state.avail eq 'Y'} Do the same thing for /main/register_shipping_address.tpl. |
Thanks, but that didn't work for me....
Is there anywhere else that we need to change the County/State order, to make this work? My site looks rather confusing to the customer on the checkout page. I WISH I could fix it... Any other ideas? BTW, your plan on making the County field only show up for states with county assigned sounds REAL good! Let me know if you get that working... Thanks Gordon |
I'm trying to remember what exactly I did to make that change. I believe that was it. Make sure you're moving the code to the correct spot because there's 2 "blocks" of code for the state. You should be moving the county code under this line:
Code:
{if ($reg_error ne "" and $userinfo.s_state eq "" and $default_fields.s_state.required eq 'Y') or $error eq "s_statecode"}<FONT class="Star"><<</FONT>{/if} Ah, just found this one. Check out /main/register_states.tpl. |
Re: register form in checkout mode - summary
Quote:
Hi, i think the way you solve this problem is a bit complicate. Why not just do this. 1. open include/register.php find Code:
if ($action == 'cart') { Code:
if (empty($b_firstname) && $default_fields['firstname']['avail'] == 'Y') { 2. open skin1/main/register_billing_address.tpl find Code:
{if $default_fields.title.avail eq 'Y'} replace with Code:
<INPUT type="hidden" name="b_title" value="{$name_titles[title]}"> done... |
Thanks for sharing this code ajj!
Has anybody tried this and are there any other issues? |
the code works up to the point where you hit the "Submit" button, at which point it give me errors about required fields....
any fix for this? |
All times are GMT -8. The time now is 01:14 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.