skip to Main Content

Get customer ID using Mage::getModel('customer/customer') – Magento

I not able to get the customersID am I calling it correctly with Mage::getModel $customer = Mage::getModel('customer/customer') ->setWebsiteId(2) ->load($this->getRequest()->getParam('customer')); $customer_id = $customer->getId(); $sku = 'BOX3151'; $sql = "SELECT sfoi.item_id FROM sales_flat_order_item sfoi INNER JOIN sales_flat_order sfo ON sfo.entity_id = sfoi.order_id…

VIEW QUESTION

How to extend galley.phtml in Magento2?

I want to add custom code in gallery.phtml in the PDP section on my custom module. I tried this=> called default the block in catalog_product_view.xml <referenceBlock name="product.info.media.image"> <action method="setTemplate"> <argument name="template" xsi:type="string">Ajith_Mymodule::product/view/gallery.phtml</argument> </action> </referenceBlock> loaded gallery.phtml with and without default…

VIEW QUESTION

Is possible HTML download Attribute can download multiple file without using javascript? – Magento

I have a problem to download multiple file without JavaScript. May I know is possible HTML download Attribute can download multiple file without using JavaScript? Below is my coding: <a href="https://cdn.sstatic.net/Img/teams/teams-illo-free-sidebar-promo.svg?v=47faa659a05e" download><button style="background-color:#ED1C24;color:white" >Article</button></a> For example, if I want to…

VIEW QUESTION
Back To Top
Search