Originally posted by lesliekirk
View Post
As for choosing to use the shipping method code vs the name either should work.
I believe the "pickupdelivery" part of "pickupdelivery:pickup" is the module code so just use what the method code is.
I would imagine you should be able to just grab the method code from that module.
If for some reason you can't find it there you can try the following:
Using the same browser you're logged into Miva with open a another tab and go to the site in question. Add a product to the cart and then start checkout however you need to trigger the pickup/delivery shipping method to display as an option on OSEL (use local address on OCST?).
Once your'e on OSEL (for the site in question) stay on that page of checkout and go back to your Miva Tab.
Then in Miva go to the OSEL template and check the token list to grab the pickup/delivery method code.
And for the error:
You need to escape the single quotes in the 2 miva_array_filter expressions:
Code:
<mvt:assign name="l.settings:excluded_methods_count" value="miva_array_filter(l.settings:shippingmethods, 1, l.settings:method, 'l.settings:method:code EQ \'pickup\'', l.settings:excluded_methods)" /> <mvt:assign name="l.result" value="miva_array_filter(l.settings:shippingmethods, 1, l.settings:method, 'l.settings:method:code NE \'pickup\'', l.settings:shippingmethods)" />
Leave a comment: