• Resolved Siamwp

    (@programmerloso)


    View post on imgur.com

    Woocommerce BACS Account details it’s a javascript dynamic fields. a fields name inside each row it’s array I don’t know how to translate. It possible to translate ?

    Thank.

    • This topic was modified 7 years, 3 months ago by Siamwp.
Viewing 8 replies - 1 through 8 (of 8 total)
  • If plugin data is saving to options table, You can add config for this option.

    Thread Starter Siamwp

    (@programmerloso)

    Can you show some example code ?

    This is my wpm-config.json file. It doesn’t work. bacs_account_name is multidimensional array.

    {
        "admin_pages": [
     	"woocommerce_page_wc-settings"
         ],
         "options": {
     	"bacs_account_name": {
     	   "0": {}
     	}
        }
    }

    Can You show me the dump of this settings array?

    Thread Starter Siamwp

    (@programmerloso)

    Sure. But I don’t understand do you want. Array in wpm-config.json or input array in BASC settings ?

    I’m sorry. Thankyou

    • This reply was modified 7 years, 3 months ago by Siamwp.

    Input array in BASC settings.

    Thread Starter Siamwp

    (@programmerloso)

    The input array in BASC settings like this code below.

    bacs_account_name[0]
    bacs_account_number[0]
    bacs_bank_name[0]
    
    bacs_account_name[1]
    bacs_account_number[1]
    bacs_bank_name[1]
    
    bacs_account_name[2]
    bacs_account_number[2]
    bacs_bank_name[2]

    It’s two dimensional array

    This is not dump.
    Add this code to wpm-config in options section:

    
    "woocommerce_bacs_accounts": {
      "wpm_each": {
        "account_name": {},
        "bank_name": {}
      }
    }
    
    Thread Starter Siamwp

    (@programmerloso)

    That’s great!. It works perfectly.
    @valexar you awesome. Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Possible to translate Woocommerce BACS Account details ?’ is closed to new replies.