Skip to content

frontend

Auto Added by WPeMatico

Magento 2: Call custom admin controller from frontend

Is there a way to call custom admin controller (which prints a pdf file from sales order view page) from frontend download anchor link? <a href=”http://m7.local/index.php/admin/magemechanic_workorder/order/print/order_id/<?php echo $orderId ?>” download>Download</a>

Frontend JS get access to attributes?

Is it possible to get Magento attribute values on product page when writing custom java script code? I am working on a frontend script where i need access to the product sku to check some logic i am writing.