bigbird_3156 Posted February 19, 2014 Posted February 19, 2014 Hi, I'm playing around with the Advanced Address Management addon and trying to make it function so that in the 3 address groups (mailing, shipping & billing) that the country can only be selected once.... Ive got that working ... in that after the user has selected the country in the mailing section in the other two sections I have something like this... <?php $billing_country = $mailing_country; ?> however in the AAM addon, there is a button that copies all the info from one group to another.... so..... Once you have filled out all the info in the mailing group, the shipping group has a check box that says "shipping address same as mailing address" HOWEVER when I do that (after my above modification) the state drop down box in the shipping group disappears and if I untick the box the dropdown menu does not reappear (previously before changing the country setting this worked fine and the shipping dropdown box displayed the same state as the mailing address state.... My thought is that maybe this problem could be solved if I apply the country for each of the 3 groups at the same time ie when I select the country from the dropdown box in mailing.... if this is the case how would I do that ??? Would I slot the above code (x2) straight after the dropdown menu in mailing or do I have to change the actual dropdown code so it applies it to all 3 groups.... here is the code for the dropdown menu in question; <?php } if (ACCOUNT_STATE == 'true') { $parms = 'id="Mctry" onchange="ShowNewList(\'M\')"'; } else { $parms = ''; } if (isset($HTTP_POST_VARS['country'])) { $select = $HTTP_POST_VARS['country']; } else { $select = STORE_COUNTRY; } ?> <tr> <td class="fieldKey"><?php echo ENTRY_COUNTRY; ?></td> <td class="fieldValue"><?php echo tep_draw_pull_down_menu('country', $countries_array, $select, $parms) . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': '<span class="inputOptional">' . ENTRY_OPTIONAL . '</span>'); ?></td> </tr> the 3 variables that I want to have the same country value are "country", "shipping_country" and "billing_country" I hope this all makes sense.... I didn't want to dump the whole code here.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.