I want to display smalll utility like shipping calculator
on product view page.
we know native magento provides this section at Cart Page.
How I can implement it on product view page ?
I have a small form which content fields like Country Dropdown & Zip Code.
When someone click on Calculate
then shipping quote should be display using Ajax.
I stuck here pretty. Please help me.
I have created controller
& calculateAction()
method. What code I can write into that calculateaction()
function ?
Best Answer
Please add below code in .phtml file under your shipping calculator form for ajax call.
Now you need to create a controller action to handle the ajax request. Please refer below code snippet for that.