Forum Replies Created
- AuthorPosts
- salenishParticipant
Hi WC Lovers team,
please help fix distance rate shipping.1. If shipping to a different address checkbox is selected, delivery address geolocation should match that address, not geolocate to current user address.
2. If shipping to a different address checkbox is NOT selected, the delivery address should match that of the billing address (if the billing address is entered).
3. Only if neither billing nor shipping address is entered should the delivery address geolocate automatically based on the current user address).
4. delivery address field and Map should be moved below the shipping fields section, and not be before the shipping to a different address checkbox.
5. distance rate calculation should also take place on the /cart page.Please let me know if this is something you are working on. This is a cool feature you have added and needs a bit of tweaking in order to reach its potential.
Keep up the great work!
Kind regards, Aleks
salenishParticipantHI @djks74, i am using a special add-on Custom CSS and JS which helps me add jquery content. The code i provided here is far from perfect and although it works, it is only a prototype as it does not take into consideration some key things. I am not using it on my web site. I am waiting for a WCFM solution to the problem.
Kind regards, Aleks
salenishParticipantHi,
i have managed to populate the delivery location input field using the shipping/billing address.
I need a trigger/function to calculate shipping rate based on whichever first result comes back from the maps api call based on the entered address.
See code here:$(".woocommerce-input-wrapper :input").focusout(function(){ if($("#ship-to-different-address-checkbox").prop("checked") == true){ var billship="shipping"; } else { var billship="billing"; } var x=$("#"+billship+"_address_1").val()+ ", " + $("#"+billship+"_address_2").val() + ", " +$("#"+billship+"_city").val()+$("#"+billship+"_country").val(); $("#wcfmmp_user_location").val(x); $("#wcfmmp_user_location").prop("readonly", true); /* need here a trigger to force shipping rate calculation for the first detected result */ });
May 5, 2020 at 2:55 am in reply to: How to modify store vendor dashboard home page with custom content? #126741salenishParticipantThank you, works perfectly! 🙂
salenishParticipantHi, a couple of things I’ve noticed:
1. BIG ISSUE: If distance rate shipping is activated, it will block any other shipping method configured in woocommerce. Can we please not block other shipping methods configured in woocommerce?
Example: I have the postal service configured as a global shipping method in the woocommerce shipping settings and want to have distance rate shipping on store levels.
2. BIG ISSUE: I feel that the additional field for address geolocation should definitely be removed completely, and that geolocation is done based on the entered address in the regular woocommerce address fields. That would remove the chance that a customer can enter one delivery address but select another location on the map so that he can get a cheaper shipping price – this is a critical flaw.
3. SMALL ISSUE: The brackets () behind the store shipping name are always visible, even if the shipping method is turned off globally.
4. SMALL ISSUE: the map is fitting between the marketing opt-in checkbox and delivery to another address checkbox, which is inconsistent with the design of the checkout page. The map should be fitting directly under the postcode input box, and be visible only when the customer enters the address. Or please allow somehow for the admin to choose where to display the map (and if it should display the map at all).Just some of the ideas on how we can improve this new feature. Looking to contribute to this product with awesome potential! 🙂
Kind regards, Aleks
Attachments:
You must be logged in to view attached files.May 3, 2020 at 11:48 pm in reply to: How to modify store vendor dashboard home page with custom content? #126229salenishParticipantHi,
this doesn’t seem to be working. Can you please include a screenshot with a “Hello world” example of this tweak?Thank you for helping me with this.
AlekssalenishParticipantI want to report the same problem as L Stewart.
The /cart page doesn’t seem to include the calculation for delivery. Can you please fix this so that distance is calculated based on the entered country, city and postcode.
Distance rate shipping is not usable if it doesn’t calculate the distance on the /cart page as well.+ feature suggestion: if the customer enters the address in the checkout address fields, the map should try to find the address, not request the user to reenter the address above the map again.
++ feature suggestion: allow customers to pin the exact location on the map.If this is fixed, i’d switch to using this shipping method asap. Thank you for the new feature.
Aleks
- AuthorPosts