tokyostyle
Forum Replies Created
-
Forum: Plugins
In reply to: [WooReer] 0 delivery cost & minimum order ammountNew version works like a charm, thank you very much!
Forum: Plugins
In reply to: [WooReer] 0 delivery cost & minimum order ammountBtw, do you have a Patreon page so I can offer you a small token of gratitude for your much appreciated work?
Forum: Plugins
In reply to: [WooReer] 0 delivery cost & minimum order ammountConfirmed same bug for minimum quantity.
Forum: Plugins
In reply to: [WooReer] 0 delivery cost & minimum order ammountSorting works now, great work!
However there’s a new problem for rules with minimum ammount (possible with quantity too, will check and edit the post):
If distance checks, but the minimum value does not check, the loop is stucked and doesn’t check the next rule that have same distance but no minimum value.
- This reply was modified 5 years, 11 months ago by tokyostyle.
Forum: Plugins
In reply to: [WooReer] Wooreer + Checkout Fields Editor = Invalid shipping methodWoohoo, it works!!!
Thank you so much!
Forum: Plugins
In reply to: [WooReer] Wooreer + Checkout Fields Editor = Invalid shipping methodAny news?
Thank you.
Forum: Plugins
In reply to: [WooReer] tiered rates. possible?Regular free shipping definitely can be done, and there’s a script that can be used to hide any other tax option if regular free shipping is available.
Also I tried to make a second wooreer that only have free options while the first one only payed options. However, both free and tax option show up in this case. But it’s better than nothing.
One more thing. If you know to programm a bit, you can see my other thread on this forum regarding 0 delivery cost with minimum order.
Forum: Plugins
In reply to: [WooReer] tiered rates. possible?Hi. As I am working on something similar right now, I can tell you it should be possible but there’s a bug that prevents it, as the free shipping based on minimum order is sorted after the priced order, so is disregarded at checkout.
Forum: Plugins
In reply to: [WooReer] Wooreer + Checkout Fields Editor = Invalid shipping methodOops. Edited, I didn’t realised it’s there. π
Thank you so much for your help!
Forum: Plugins
In reply to: [WooReer] Wooreer + Checkout Fields Editor = Invalid shipping methodbilling_state and billing_postcode are disabled using Checkout fields editor plugin.
I am not sure how this plugin is disabling those fields.
Here’s WooReer debbuging message (seems fine to me):
WCSDM_39 => API Response: {“distance”:6.9000000000000003552713678800500929355621337890625,”distance_text”:”6.9 km”,”duration”:784,”duration_text”:”13 min”,”api_request_data”:{“origins”:{“origin_address”:”\u0218oseaua Bucure\u0219ti Nord 14, Voluntari 077190, Romania”},”destinations”:”Strada Boiangiu Radu 8, Bucure\u0219ti, Bucure\u0219ti, 1, Rom\u00e2nia”,”language”:”ro_RO”,”key”:”XXX”,”mode”:”driving”,”avoid”:””,”units”:”metric”}}
WCSDM_39 => Table Rate Row match: {“max_distance”:”10″,”min_order_quantity”:”0″,”max_order_quantity”:”0″,”min_order_amount”:”0″,”max_order_amount”:”0″,”rate_class_0″:”0″,”min_cost”:”20″,”surcharge”:””,”total_cost_type”:”flat__highest”,”title”:””}
- This reply was modified 5 years, 11 months ago by tokyostyle.
Forum: Plugins
In reply to: [WooReer] 0 delivery cost & minimum order ammountI think I managed to find sort of a fix for this.
I edited class-wcsdm-shipping-method.php and put $sorted[‘min_order_amount’] on top and sorted DESC.
// sort by event_type desc and then title asc.
array_multisort(
$sorted[‘min_order_amount’],
SORT_DESC,
$sorted[‘max_distance’],
SORT_ASC,
$sorted[‘min_order_quantity’],
SORT_ASC,
$sorted[‘max_order_quantity’],
SORT_ASC,
$sorted[‘max_order_amount’],
SORT_ASC,
$filtered
);However, it doesn’t put the desired rule always on top, but with multiple refreshes sometimes it works, and when it works it stays there. :)))
(Smbd said that doing the same thing again and again and expecting different resoults is the definition of insanity. Well, I did it. I proved that insanity works. Muhahahaha!)
So yeah, my programming skills is limited, therefore I think it’s best that you come with a much more elegant solution. π
Thank you for your help.