• Resolved sideeq313

    (@sideeq313)


    H,
    I really like the functionality of plugin. I have one query, any option to add custom fields on store details >> location Tab. please let me know your suggestions.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    How to add custom fields is described here.

    Thread Starter sideeq313

    (@sideeq313)

    hi @tijimensmit,

    Thank you for your quick replay. It’s possible to set the custom fields under the location tab other than additional information tab.

    Please let me know, if any solutions available.

    Thanks

    Plugin Author Tijmen Smit

    (@tijmensmit)

    Replace the first line in the code ( $meta_fields[__( ‘Additional Information’, ‘wpsl’ )] = array…. ) with $meta_fields[__( ‘Location’, ‘wpsl’ )] = array…

    Thread Starter sideeq313

    (@sideeq313)

    Hi,
    How to show it on the front end. I mean how to show the newly created value in the store location front end.

    Thread Starter sideeq313

    (@sideeq313)

    I have checked below code, but its only showing this added code custom field under the location Tab.

    add_filter( ‘wpsl_meta_box_fields’, ‘custom_meta_box_fields’ );

    function custom_meta_box_fields( $meta_fields ) {

    $meta_fields[__( ‘Location’, ‘wpsl’ )] = array(
    ‘phone’ => array(
    ‘label’ => __( ‘Tel’, ‘wpsl’ )
    )

    );

    return $meta_fields;
    }

    I mean, the current fields like address, state, city , country and zip etc fields are not showing.

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

The topic ‘custom field on store details’ is closed to new replies.