Jump to content


How To Add A Field To Billing Info?

add a field billing exchange

4 replies to this topic

#1 sherrigoodman

sherrigoodman

    Advanced Member

  • Members
  • Others: Toolkit
  • PipPipPip
  • 42 posts

Posted 14 July 2014 - 02:02 PM

I'm doing the simple product, for a donation. I've got the Billing address enabled, and am just using the Guest Checkout add-on too.

Can I add in a phone number field to the Billing address add-on?

What would be the best way to do that?

I'm wanting the phone so client can call people, aside from emailing them.

Sherri :-)

#2 Elise Alley

Elise Alley

    iThemes Support

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

Posted 14 July 2014 - 03:27 PM

Hi Sherri,

There isn't an option to add fields to the billing address at this time.  It is a feature request which you can vote for on the Exchange Roadmap, but I don't have a timeline for if/when it will be added.  

If you are using Gravity Forms, someone has built an add-on to integrate the two that might help you out:  https://wordpress.org/plugins/gravity-forms-checkout-info-add-on-for-ithemes-exchange/

Let us know if you have any additional questions.

Thanks,

Elise

#3 sherrigoodman

sherrigoodman

    Advanced Member

  • Members
  • Others: Toolkit
  • PipPipPip
  • 42 posts

Posted 14 July 2014 - 06:35 PM

Thanks Elise. I tried that plugin and in theory it's a good idea. It works up until you actually have to use it as a customer. I get up to the point where i click on the purchase button and expect to the see the form come up with all the billing form fields... and instead, the whole thing goes blank. The only thing remaining on the page is the first part that shows the amount options. The purchase button goes away too.

I have to refresh the page to get back the button and email request.
And, as soon as I deactivated the plugin, everything went back to how it was working before.

RATS.

So - can you tell me which PHP file is used for the billing form set up? For the fields? I can add in more fields there. It looks like other files I've browsed through pull from the billing php file - but I'm not sure which one.

It looks like the most likely file is the one in ithemes-exchange/api/theme/billing.php   -->not sure it's this because the phone is already listed there. I'm looking for the Guest version.

The other possible is ithemes-exchange/lib/templates/super-widget-billing-address/loops/fields.php

I looked through ithemes-exchange/core-addons/admin/guest-checkout/lib/templates - and I didn't really see anything that lists an array of form fields.


I need to add in 3 fields to the Billing form: home phone, occupation and employer (this is for a political campaign, making donations).

My fall-back is to ditch the shopping cart, and create everything I need using Gravity Forms and a Paypal button.

What file(s) in Exchange do you suggest I look at?

Sherri :-)

#4 Elise Alley

Elise Alley

    iThemes Support

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

Posted 15 July 2014 - 05:13 PM

Hi Sherri,

If you go into /lib/templates/super-widget-billing-address/elements/, you'll find the template files that make up the billing address form.  In lib/templates/super-widget-billing-address/loops/, you'll find fields.php where the array calling those fields is.  

That should get you started, but remember not to edit template files directly.  You can read more about how to do that here:  http://ithemes.com/codex/page/Exchange_FAQs:_How_Do_I_Edit_My_Template_Files

Let us know if you have any other questions.  

Thanks,

Elise

#5 sherrigoodman

sherrigoodman

    Advanced Member

  • Members
  • Others: Toolkit
  • PipPipPip
  • 42 posts

Posted 16 July 2014 - 06:58 AM

Hi Elise,

Thanks for confirming which files to use. It got me 2/3 of the way there. There's one more file in the api/themes folder: billing.php file needed to be updated as well. And I had to load it back into the parent plugin area because it wouldn't work in the theme/exchange folder where the other two files went.

It's working though! Woohoo!!

:-D



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: add a field, billing, exchange

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users