Support » Plugin: Facturare WooCommerce » campuri la incarcare

  • Resolved givanel

    (@givanel)


    salut! cand se incarca pagina de checkout, apar optiunile, dar campurile respective nu sunt ascunse (ex. implicit PF, se vad absolut toate campurile — si cele de la PF si de la PJ). trebuie facuta o selectie manuala, pentru ca acestea sa ‘dispara’. practic nu face selectia default.

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

    (@giucu91)

    Salut,

    Imi poti da un link unde se intampla sa ma uit ?

    Multumesc,
    George.

    cred ca este o chestiune de CSS, totusi.
    .av-hide {display:none;} este suprascris de #woocommerce form #customer_details p {display:block;}

    cred ca se poate rezolva simplu in printr-un simplu !important.

    LE:
    totusi, in pagina de my-account, cand se editeaza adresa de facturare, sunt afisate toate campurile, indiferent de selectie.

    • This reply was modified 11 months, 1 week ago by givanel. Reason: later edit
    givanel

    (@givanel)

    banuiesc ca e din cauza ca js-ul se incarca doar in pagina de checkuout:

    	public function add_js_to_footer() {
    
    		//if ( function_exists( 'is_checkout' ) && is_checkout() ) {
    			echo '<script>!function(i){"use strict";i(document).ready(function(){i("#tip_facturare, #tip_facturare_field .input-radio").change(function(){"pers-jur"==i(this).val()?(i(".show_if_pers_jur").show(),i(".show_if_pers_fiz").hide()):(i(".show_if_pers_jur").hide(),i(".show_if_pers_fiz").show())})})}(jQuery);</script>';
    		//}
    	}

    si cred ca si cu

    public function override_field_html( $field, $key, $args ) {
    
    		$our_fields = array( 'cnp', 'iban', 'nume_banca', 'nr_reg_com', 'cui', 'billing_company', 'cnp' );
    
    		if ( in_array( $key, $our_fields ) ) {
    			
    			$optional_label = '<span class="optional">(' . esc_html__( 'optional', 'woocommerce' ) . ')</span>';
    			$required_label = '<abbr class="required" title="' . esc_attr__( 'required', 'woocommerce' ) . '">*</abbr>';
    
    			if ( 'yes' == $args['needed_req'] ) {
    				$field = str_replace( $optional_label, $required_label, $field );
    			}
    
    		}
    
    		return $field;
    
    	}

    e o problema, nu rescrie optional vs. required in my-account.

    • This reply was modified 11 months ago by givanel.
    Plugin Author George Ciobanu

    (@giucu91)

    Salut,

    Multumesc de informatie, o sa fac un update sa mearga si pe pagina de my account.

    Plugin Author George Ciobanu

    (@giucu91)

    Salut @givanel ,

    In update-ul 1.0.7 este rezolvata aceasta problema.

    O zi buna,
    George.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘campuri la incarcare’ is closed to new replies.