• Resolved Anticosti

    (@anticosti)


    @rabbii
    Sorry to post this one again but you marked it as Resolved too quickly without really understanding what I meant. If you need more clarifiactions plaese let me know.

    So, again:
    ——————————————
    When user is visiting he’s “My Account” page,
    there’s a section that needs a bit of ajustements/improvements:
    /?section=billing_address

    01. Address Line 2 *
    Shows as required. Should not.

    02. State
    Should be named “State/Province”
    In Canada we don’t have any State. We have Provinces

    03. Zip Code
    Should be named “Postcode / ZIP”

    04. Country
    Country defaults to “Afghanistan”
    We should have the option in the backend to choose a Country by default

    05. Oh! Why not add a field for Company name? Just like in WooCommerce…?

    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello @anticosti,

    01 & 04. To do that you need to customize the address field template of this plugin.

    02 & 03. You can change that text by using a translation plugin like Loco Translate. Just keep the same language but change the default language. Here is the guideline for translating with Loco Translate plugin.

    05. We just keep it standard. To add more,you have to customize it by yourself.

    Let me know if I can help you by providing more information.

    Thanks

    Thread Starter Anticosti

    (@anticosti)

    Oh! Please check these two screenshots instead of always replying with canned messages.
    01. Screenshot 01
    02. Screenshot 02

    Thank you.
    Kind Regards,

    Hello @anticosti,

    Please make sure that the language source file (.pot) is updated inside Loco Translate plugin. I have checked your screenshot, those strings translatable and you should see them in the list.

    If the issue still exists on your site, then I request you to create support ticket here by providing your temporary site details. I will be happy to help you.

    Thanks

    Thread Starter Anticosti

    (@anticosti)

    C’mon! This is NOT the way to work.

    Hello @anticosti,

    Ok, here is the solution for you. You can override the billing address templates inside the theme. Please follow the guidelines given here.

    1) Create a directory named “wpuf” inside the activated theme.
    2) Create a new file inside wpuf directory, the file have to be billing-address.php
    3. Now, paste the following code in that file.
    https://gist.github.com/mahbubme/0503e4d230506ec5d87ee3df2e1de053

    Edit what you want in that file, the output will show on frontend billing address page. I have modified something according to your requirement, check if it works for you.

    Thanks

    Thread Starter Anticosti

    (@anticosti)

    Thank you @rabbii for your reply and code.
    Now I can takeover and edit “billing-address.php
    But… Still, I have one last problem with it:
    I think you have to add these language strings into your .pot file so I can translate these strings into “Loco Translate“:
    wp-content/plugins/wp-user-frontend/languages/wpuf.pot

    Thank you again.

    Thread Starter Anticosti

    (@anticosti)

    Support told me that they will add the missing strings to the .pot file. So… Marking this thread ss Solved. Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Section Billing Address (again)’ is closed to new replies.