• Resolved Anonymous User 15244498

    (@anonymized-15244498)


    Immediately after turning on the plug, placeholder cities and postcode disappear. With the plug turned off everything is ok and you can change their values. I tried:

    add_filter( 'woocommerce_checkout_fields', function( $address_fields ) {
    $address_fields['billing']['billing_city']['placeholder'] = 'np. City placeholder';
    $address_fields['billing']['billing_postcode']['placeholder'] = 'np. Postcode placeholder';
    return $address_fields;
    }, 9999 );

    but it does not work when the plugin is on.

    I’m using free plugin before buying. Any suggestion?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @gdynia,

    Our plugin does not modify the placeholders of the city and postcode fields.

    Actually there are no placeholders for this field in the standard WooCommerce setup: https://wpde.sk/po/00pyl5mr6y9q.png

    The problem might be with your theme. Please test the plugin again, but now using Storefront – official WooCommerce theme. It will help us identify a possible conflict with your theme.

    Please let me know if the issue stil occurs on Storefront.

    Thread Starter Anonymous User 15244498

    (@anonymized-15244498)

    Thank you for your answer.

    The error occurs when using storefront. In the current theme placeholder are set. After disabling / before installing the plugin everything was ok – placeholder were visible. When I turn on the plug – placeholder from these two fields disappear. I can’t set them in the plugin settings, because the input fields (plugin settings -> postcode / city -> placeholder) are not clickable.

    Thread Starter Anonymous User 15244498

    (@anonymized-15244498)

    After checking the field with an inspector – the information appears that the name of this field can not be edited.

    https://zapodaj.net/73d6dcbad5854.png.html

    There are no placeholders for Town / City or Postcode fields in WooCommerce.

    I have created a clean WooCommerce installation in the sandbox environment, here: http://foolish-ape.w6.poopy.life/shop/

    There are no placeholders: https://wpde.sk/po/56km1t6dbkye.png

    Sorry but your issue cannot be replicated in a clean WooCommerce installation so the big has not been confirmed

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

The topic ‘Placeholder – city & postcode’ is closed to new replies.