Jump to content


Welcome to the forum:

Welcome to the iThemes, PluginBuddy and WebDesign.com forum. We've created several tutorial video's to help you get you started with using the forum, please check them out!

Also take note of the forum guidelines.


Support hours:

Our moderators actively respond to forum support requests during normal business hours which are Monday-Friday, 8am - 5pm Central Standard Time, typically within one business day. Although some moderators choose to work during the weekends, we can not guarantee immediate attention to your requests. Thanks for understanding.

What is included with support:

Premium support includes theme/plugin issues such as: bugs encountered under normal operation, how to use basic features, basic WordPress help, and basic help with customization (meaning we point you to resources and will help in more depth as time allows). More information.

in progress

Shipping Address For Countries With No States



1 reply to this topic

#1 Guest_Lisa Baldwin_*

Guest_Lisa Baldwin_*
  • Guests

Posted 12 November 2013 - 11:18 AM

Is there a way to make the shipping address form's 'state' field optional?

It all works fine if the customer's country has states, but for the rest of us it doesn't seem possible to complete the form without bringing up an error. That's a whole lot of world to exclude!

Is there a setting I'm missing, or another way to get around this glitch?

#2 Elise Alley

Elise Alley

    iThemes Support

  • Administrators
  • Others: All Plugins, All Themes, Members, Moderators, Toolkit, Webdesign
  • 5,853 posts
  • LocationOklahoma City, OK

Posted 14 November 2013 - 05:39 PM

Hi Lisa,

The state field is there also to cover provinces, one or the other of which would be included in most countries.  This is certainly something you can remove, however, if you'd like to do so.  You'll want to download and unzip a copy of Exchange and then go into Exchange/lib/templates/super-widget-shipping-address/loops where you'll find the fields.php file.  

You don't want to make changes directly to that file as any subsequent updates to Exchange will overwrite your changes.  Instead, you'll copy that file into a directory you create in your theme.  The directory would be as follows:  wp-content/themes/YourTheme/exchange/super-widget-shipping-address/loops/

In your copy of fields.php, you'll see this at about line 19:

<?php $fields = array( 'first_name', 'last_name', 'address_1', 'address_2', 'city', 'country', 'state', 'zip', 'nonce' ); ?>

Simple remove the "'sate'," portion of the code, so it will look as follows:

<?php $fields = array( 'first_name', 'last_name', 'address_1', 'address_2', 'city', 'country', 'zip', 'nonce' ); ?>

This will remove that field from you shipping address form.

Let us know if you have any additional questions.

Thanks,

Elise



Reply to this Topic


ATTENTION
If this topic is marked RESOLVED or INFORMATION, or if you are NOT experiencing EXACTLY the same issue, please start a new topic to provide the details of your problem. If the solution provided doesn't work for you, you should start a new topic. If you feel this thread contains relevant information, you may include a link to it in your new topic. To ensure that we can process your support request efficiently, ALWAYS include a link to your site, and/or the page your request is related to. When posting your question or request on the forum, please be as concise and specific as possible. The shorter and more to the point you can make your request, the better.

For BackupBuddy related issues, be sure to include the status log from your most recent backup.

CLICK HERE to start a new topic in the Exchange ecommerce plugin forum.


  



Also tagged with one or more of these keywords: in progress

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users