• Resolved dimitur98

    (@dimitur98)


    Възможно ли е полетата за град, област и адрес да се направят задължителни.

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

    (@winter2007d)

    They are no required in the UI, since that’s the way plugin could work without reloading the page / using Ajax. The values from the delivery options chosen for Speedy/Econt are copied behind the scenes to the standard WooCommerce fields (which are still present in the page, but hidden from people’s eyes until they choose the ‘to address’ delivery method).

    Still if you try to submit an order w/o setting the delivery address for the given shipping method – you will get an error from the WordPress. This is the validation to avoid people actually skipping these fields.

    Thread Starter dimitur98

    (@dimitur98)

    Yep I check you code and find that, so add some css to fix the visual problem. Thanks

    Plugin Author winter2007d

    (@winter2007d)

    Could you please share your findings so that others could also benefit from them?

    Thanks!

    Thread Starter dimitur98

    (@dimitur98)

    Yes, of course. This is the css code:


    econt_region_sel_field>label>span.optional,
    econt_city_sel_field>label>span.optional,
    econt_office_sel_field>label>span.optional{
    display:none;
    }

    econt_region_sel_field>label:after,
    econt_city_sel_field>label:after,
    econt_office_sel_field>label:after{
    content: ” *”;
    color: #ababab;
    }

    shipping_to_field>label{
    padding-right:10px;
    }

    Plugin Author winter2007d

    (@winter2007d)

    Thank you for the code provided. I have slightly changed it and put in the plugin’s css. So, for now the fields should be shown as required.

    Please update your version of plugin and let me know if everything is ok.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Задължителни полета’ is closed to new replies.