I'm able to use this city dropdown plugin successfully.
Now I'm trying to call shipping vendor API in my custom shipping module.
Can anyone help me how I can print / echo / debug the destination in Vendor\Module\Model\Carrier\CustomCarrier
-> collectRates(RateRequest $request)
method / any JS class when user select their region / city ?
I've tried showing the RateRequest
properties following this answer with :
echo $request->getDestRegionCode();
or$request->getDestCity();
- debugging to browser console
- Logging the variable to debug.log / system
$this->debugData($request->getDestRegionCode());
but still not visible , and the application mode has been set to developer as well previously.
Any help is appreciated. Thank you in advance.
Edit : I'm trying to get the destination value when the user select region / city. So the shipping price will change dynamically.