Please note: This forum is now closed. All the support related enquiries should be reported on wordpress support forum for jigoshop plugin – thanks, Jigoshop Team

How to change checkout billing form??

Omegakenshin's Avatar

Omegakenshin

03 Nov, 2011 08:27 PM

I wonder how can I change the fields on the Checkout form,
I notice this function is called...

jigoshop_checkout_billing

But is there another way or a file where I can do this?

If you have a quick example could be of great help
Thanks

  1. 1 Posted by Matt on 03 Nov, 2011 08:28 PM

    Matt's Avatar

    You mean, the field names? Or do you want to remove fields entirely?

    Field names can be changed using our language files, .po and .mo . Might want to grab poEdit for that.

  2. 2 Posted by Omegakenshin on 03 Nov, 2011 08:39 PM

    Omegakenshin's Avatar

    Thanks for answer Matt,
    well not remove them entirely, mostly the "Postal Code"...

    Oh about the poEdit, I try finish the spanish translation but some of the strings (58) are obsolete and with a lot new (225), was there a big update and no one have updated this? Is there a way I can share my translation with the Jigoshop team and be accepted?

  3. 3 Posted by Omegakenshin on 03 Nov, 2011 08:45 PM

    Omegakenshin's Avatar

    Ok I updated the .po file with the .pot and there is new(78)/obsolete(26) I'll work with those.

    About removing the Postal Code field, is this posible??

  4. 4 Posted by Matt on 03 Nov, 2011 11:04 PM

    Matt's Avatar

    Yes, if you have a translation to share with us then by all means, please do! We'd gladly accept it :)

    Here's an example on how to make postal field optional.

  5. 5 Posted by Omegakenshin on 04 Nov, 2011 09:22 PM

    Omegakenshin's Avatar

    Thanks for your help Matt,
    Just in case someone else come to check out this post this is the path of the file

    \wp-content\plugins\jigoshop\classes\jigoshop_checkout.class.php

    In line 46
    Eg

    array( 'validate' => 'postcode', 'format' => 'postcode', 'name'=>'billing-postcode', 'label' => __('Postcode', 'jigoshop'), 'placeholder' => __('Postcode', 'jigoshop'), 'required' => true, 'class' => array('form-row-last') ),
    

    Change 'required' => true to => false

    Also here is my updated translation for spanish.

  6. 6 Posted by Matt on 04 Nov, 2011 09:28 PM

    Matt's Avatar

    Thanks for the update, I've added one of our developers to the thread so he can implement the translation later on =).

  7. Support Staff 7 Posted by Jeff on 05 Nov, 2011 11:44 AM

    Jeff's Avatar

    I've added them in, thanks a lot. :-)

  8. Matt closed this discussion on 05 Nov, 2011 06:05 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac