• doggytech

    (@doggytech)


    Good evening, WordPress users,

    I’m struggling with editing the price field from number to text to add the possibility of adding “open for offer” etc…

    I spent already a lot of hours looking up on code without any results.

    As I can see in admin panel it’s build as acf (advanced custom fields) however when I’m going to plugin it does not show me any groups
    (<input type=”number” id=”acf-field_588f20535c12f” name=”acf[field_588f20535c12f]” step=”any”>)

    Theme is mixed with acf, redux

    card dealer/ cardealer child

    • This topic was modified 3 years ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You’d need to edit the ACF definition for the field and change it from numeric/currency to text to allow that. As this is custom stuff (i.e., not WP core), the best bet is to contact the developer who built the site. You could change from numeric to text, but someone has to dig through the possible side effects.

    Thread Starter doggytech

    (@doggytech)

    I found this bit of code which allows me to change for text, it allow me also to add text in vehicle page however its do not display when i add text

    $vehicle_acf_price_fieds = apply_filters(
    ‘cardealer_acf_vehicle_price_fieds’,
    array(
    array(
    ‘key’ => ‘field_588f1fd05c12e’,
    ‘label’ => esc_html__( ‘Regular price’, ‘cardealer-helper’ ),
    ‘name’ => ”,
    ‘type’ => ‘tab’,
    ‘instructions’ => ”,
    ‘required’ => 0,
    ‘conditional_logic’ => 0,
    ‘wrapper’ => array(
    ‘width’ => ”,
    ‘class’ => ‘acf_field_name-regular-price’,
    ‘id’ => ”,
    ),
    ‘placement’ => ‘left’,
    ‘endpoint’ => 0,
    ),
    array(
    ‘key’ => ‘field_588f20535c12f’,
    ‘label’ => esc_html__( ‘Regular price’, ‘cardealer-helper’ ),
    ‘name’ => ‘regular_price’,
    ‘type’ => ‘number’,
    ‘instructions’ => ”,
    ‘required’ => 0,
    ‘conditional_logic’ => 0,
    ‘wrapper’ => array(
    ‘width’ => ”,
    ‘class’ => ‘acf_field_name-regular_price’,
    ‘id’ => ”,
    ),
    ‘default_value’ => ”,
    ‘min’ => ”,
    ‘max’ => ”,
    ‘step’ => ”,
    ‘placeholder’ => ”,
    ‘prepend’ => ”,
    ‘append’ => ”,
    ),
    `

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You’d modify the field in the ACF section of the dashboard, not by editing JSON. But again, that’s trivial. It’s the side effects that might be the issue.

    If you want help with ACF, I recommend asking at https://www.ads-software.com/support/plugin/advanced-custom-fields/#new-post so the plugin’s developers and support community can help you with this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Edit price from number to text at cardealer’ is closed to new replies.