Forum Replies Created

Viewing 15 replies - 1 through 15 (of 127 total)
  • Thread Starter alortiz3

    (@alortiz3)

    alortiz3

    Got it! Thank you.

    Thread Starter alortiz3

    (@alortiz3)

    alortiz3

    Yes, repositioning the bar does not help. I would like to add it to the menu.

    Thread Starter alortiz3

    (@alortiz3)

    alortiz3

    I’ve tried the “Show in Menu” option and it does not work. Not sure how to use shortcodes in the menu area, any assistance will be appreciated.

    Thread Starter alortiz3

    (@alortiz3)

    alortiz3

    Thank you for your response. Let me know where I can upload the images and provide you with a link to the site that it is not public.

    Thread Starter alortiz3

    (@alortiz3)

    alortiz3

    Thank you for the advice, I was adviced to seek assistance here because what I am looking for requires custom scripting, which is not provided as part of my elementor support.

    Thread Starter alortiz3

    (@alortiz3)

    alortiz3

    That is not the problem. The header and menu have been designed and at one point it was visible. It is no longer visible on the mobile version. It is visible on the desktop version and the tablet version.

    Thread Starter alortiz3

    (@alortiz3)

    alortiz3

    Thank you for your reply. I am a bit confused as to how to use the meta. In this case the meta is “role” and the content is: “um_central-america-wd” to I replace “client_meta” in the code with “role” or “um_central-amercia-wd”?

    Thread Starter alortiz3

    (@alortiz3)

    alortiz3

    This is what I’m using, not sure if it might be of any help to you:

    /* Get country this state field is representing */
    $for_country = isset( $args['country'] ) ? $args['country'] : WC()->checkout->get_value( 'billing_state' === $key ? 'billing_country' : 'shipping_country' );
    $states      = WC()->countries->get_states( $for_country );
    $data_label = ! empty( $args['label'] ) ? 'data-label="' . esc_attr( $args['label'] ) . '"' : '';
    $field .= '<select name="billing_state" id="billing_state" class="form_state state_select ' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" ' . implode( ' ', $custom_attributes ) . ' data-placeholder="' . esc_attr( $args['placeholder'] ? $args['placeholder'] : esc_html__( 'Select an option&hellip;', 'woocommerce' ) ) . '"  data-input-classes="' . esc_attr( implode( ' ', $args['input_class'] ) ) . '" ' . $data_label . '>
    <option value="">' . esc_html__( 'Select an option&hellip;', 'woocommerce' ) . '</option>';
    $states='{"CA":{"AB":"Alberta","BC":"British Columbia","MB":"Manitoba","NB":"New Brunswick","NL":"Newfoundland and Labrador","NT":"Northwest Territories","NS":"Nova Scotia","NU":"Nunavut","ON":"Ontario","PE":"Prince Edward Island","QC":"Quebec","SK":"Saskatchewan","YT":"Yukon Territory"},"MX":{"DF":"Ciudad de Mu00e9xico","JA":"Jalisco","NL":"Nuevo Leu00f3n","AG":"Aguascalientes","BC":"Baja California","BS":"Baja California Sur","CM":"Campeche","CS":"Chiapas","CH":"Chihuahua","CO":"Coahuila","CL":"Colima","DG":"Durango","GT":"Guanajuato","GR":"Guerrero","HG":"Hidalgo","MX":"Estado de Mu00e9xico","MI":"Michoacu00e1n","MO":"Morelos","NA":"Nayarit","OA":"Oaxaca","PU":"Puebla","QT":"Queru00e9taro","QR":"Quintana Roo","SL":"San Luis Potosu00ed","SI":"Sinaloa","SO":"Sonora","TB":"Tabasco","TM":"Tamaulipas","TL":"Tlaxcala","VE":"Veracruz","YU":"Yucatu00e1n","ZA":"Zacatecas"},"US":{"AL":"Alabama","AK":"Alaska","AZ":"Arizona","AR":"Arkansas","CA":"California","CO":"Colorado","CT":"Connecticut","DE":"Delaware","DC":"District Of Columbia","FL":"Florida","GA":"Georgia","HI":"Hawaii","ID":"Idaho","IL":"Illinois","IN":"Indiana","IA":"Iowa","KS":"Kansas","KY":"Kentucky","LA":"Louisiana","ME":"Maine","MD":"Maryland","MA":"Massachusetts","MI":"Michigan","MN":"Minnesota","MS":"Mississippi","MO":"Missouri","MT":"Montana","NE":"Nebraska","NV":"Nevada","NH":"New Hampshire","NJ":"New Jersey","NM":"New Mexico","NY":"New York","NC":"North Carolina","ND":"North Dakota","OH":"Ohio","OK":"Oklahoma","OR":"Oregon","PA":"Pennsylvania","RI":"Rhode Island","SC":"South Carolina","SD":"South Dakota","TN":"Tennessee","TX":"Texas","UT":"Utah","VT":"Vermont","VA":"Virginia","WA":"Washington","WV":"West Virginia","WI":"Wisconsin","WY":"Wyoming","AA":"Armed Forces (AA)","AE":"Armed Forces (AE)","AP":"Armed Forces (AP)"}}';
    	$states=json_decode($states);
    	
    					foreach ( $states as $ckey => $cvalues ) {
    		
    					foreach ( $cvalues as $skey => $value ) {
    					$field .= '<option class="listt state_'.$ckey.'" value="' . esc_attr( $skey ) . '" ' . selected( $value, $skey, false ) . '>' . esc_html( $value ) . '</option>';
    					}
    					}
    
    					$field .= '</select>';
    
    	$field .= "<script type='text/javascript'>  jQuery(function($){
       jQuery(document.body).on('change', 'select[name=billing_country]', function(){
       		jQuery('.listt').removeClass('state_listt');
            console.log('Country changed: '+jQuery(this).val());
    		var statecss= 'state_'+jQuery(this).val();
             console.log('Country changed: '+statecss);
             jQuery('.'+statecss).addClass('state_listt');
          
            // Here run your function or code
        });
    });
    </script>";
    }
    			echo $field;
    }
    
    Thread Starter alortiz3

    (@alortiz3)

    alortiz3

    Both the code and the plugin worked amazingly well. The only thing that is missing is that it does not show a drop down for both the Country and the State. The fields do show up but not the drop down content. Any chance you can activate that?

    Thread Starter alortiz3

    (@alortiz3)

    alortiz3

    The field names the basic WooCommerce Billing and Shipping fields. (billing_name, billing_address, etc.).

    Thread Starter alortiz3

    (@alortiz3)

    alortiz3

    THANK-YOUUUUU!

    Thread Starter alortiz3

    (@alortiz3)

    alortiz3

    Thank you for your prompt response. We do have Ultimate Membership plugin installed and the fields do not show up in the list of fields. I can see the fields in my Report Generator so the fields are available. It would be great if you can extend the functionality of your plugin, for this task. I’m sure there a lots of people looking for that functionality. For now I had to code the function to get it to work, hopefully in the near future you can add that functionality.

    Forum: Plugins
    In reply to: [WooCommerce] Order Tag
    Thread Starter alortiz3

    (@alortiz3)

    alortiz3

    Fixed the issue by selecting a custom field not created by My Works Multi Warehouse plugin.

    Thread Starter alortiz3

    (@alortiz3)

    alortiz3

    Thank you for your reply. I was able to solve this issue. It is interesting to notice that the field suggested by this plugin does not work, so I had to use “order_location” instead of “_order_item_wh”. The field “_order_item_wh” works fine for a Rest API but does not work for ShipStation. I believe the issue is “item location vs order location”. If I’m not mistaken ShipStation uses “order location” rather than item location. In any case, it works now and seems to be working very well.

    Thread Starter alortiz3

    (@alortiz3)

    alortiz3

    Thank you for your reply. The issue has been solved by allowing all connections.

Viewing 15 replies - 1 through 15 (of 127 total)