Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Condless

    (@condless)

    Hi marchajj,
    1. Disable the ‘State / Country Autofill’ and ‘Selling locations’ options.
    2. Enable the billing and shipping state fields in your checkout fields manager plugin.
    3. Go to WooCommerce Shipping Settings, add shipping zone, choose the cities in the ‘Zone regions’ Field, and add ‘Flat rate’ shipping method with the desired price for those cities.

    Thread Starter marchajj

    (@marchajj)

    and if I have free delivery for orders above 300SAR to all locations, can I do that with your plugin? I mean the rate to cities and locations should be applied only to orders below 300SAR, above 300SAR it’s always free everywhere.

    Plugin Author Condless

    (@condless)

    You can add ‘Free Shipping’ method (with restriction of minimum order amount) to all of the shipping zones, so it will be free regardless of the customer’s city.

    Thread Starter marchajj

    (@marchajj)

    I added the state drop-down in checkout as you informed me and the rate is wrong: https://prnt.sc/fJlcYCoHpgqZ and I added the rate that I want for the predefined list of cities I have here: https://prnt.sc/KH1DFjT1ksne but this rate is not showing on the checkout on the website frontend, why? is this a conflict between state and region?

    Thread Starter marchajj

    (@marchajj)

    AAAAAAA WAIT WAIT WAIT!!! now I understand something: https://prnt.sc/rVPmMcq_cEbb here in the ZONE REGIONS BULK select we should define something? i want for the predefined cities have the rate i already define but for far area and other cities another rate and i want free deliveries for orders above 300SAR how can i do that?

    Plugin Author Condless

    (@condless)

    1. Disable the ‘Selling locations’ option (Cities plugin settings)
    2. Drag the ‘Closed Cities’ Shipping zone in the Shipping Zones list to be above the ‘Everywhere’ shipping zone (WooCommerce Shipping settings).

    Thread Starter marchajj

    (@marchajj)

    dear team thank you for your follow-up and kind reply; kindly note now I followed your instructions and now it’s taking only far cities rate 75SAR which is wrong. it’s not taking the closed cities rate 30SAR as I did in the predefine, I think there is something wrong kindly double check my below screenshot backend and frontend, and let me know your feedback to fix and proceed:
    https://prnt.sc/h37tA4Ez3Z-p
    https://prnt.sc/O3c0OLArUjsx
    https://prnt.sc/aV6PG-Qzr6g6

    Plugin Author Condless

    (@condless)

    1. Try to fill all the checkout fields before checking the shipping rate.
    2. There is error in the script (try to remove it or temporarily replace your theme):
    document.getElementsByClassName("breadcrumbs")[0].style.display="inline";

    Thread Starter marchajj

    (@marchajj)

    TEAM, I need your help. I want to add just one city: “OTHERS” and put the rate that I want. it’s not working! this is the frontend checkout form: https://prnt.sc/ZyUweQH2r5PU but I cannot see the “other” city, I want to add it to drop down and if selected the rate should change, can someone please guide or help me in this? Thank you!

    Thread Starter marchajj

    (@marchajj)

    on another note, I need to ask about this field: https://prnt.sc/QAnmeESQ2n-w , I should copy/paste all regions from here: https://prnt.sc/_mTws9BdDVnO because I have many and I cannot select or export to excel, or do it in an automated way, should I insert manually one by one item by item to make it work 30SAR for closed cities and 75 for far areas?

    Plugin Author Condless

    (@condless)

    1. To add ‘OTHERS’ add this code into your child theme’s functions.php file:

    add_filter( 'csz_cities', 'csz_modify_cities_names' );
    function csz_modify_cities_names( $cities ) {
    	$country = 'SA';
    	$cities_names = [
    		'SAASZJ'	=> __( 'OTHERS' ),
    	];
    	foreach ( $cities_names as $key => $city ) {
    		if ( isset( $cities[ $country ][ $key ] ) ) {
    			$cities[ $country ][ $key ] = $city;
    		}
    	}
    	return $cities;
    }

    2. You can insert to this field multiple cities seperated by ;, For example:
    Abha;Abu Arish;Afif

    Thread Starter marchajj

    (@marchajj)

    FINALLY, IT WORKED!!!! OMG u made my day thank you so much! I can see inside and close cities for 30SAR and others for 75SAR and for UAE and others 360SAR, this is the setup I want finally: https://prnt.sc/FYiksHqAXU7S https://prnt.sc/aIZevKQiX55V and i will keep empty this one here: https://prnt.sc/_CuSoxYpY3C4

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘no cities found and rate in saudi arabia’ is closed to new replies.