Magento How To Add New Product

Magento How To Add New Product

Magento how to add new product Today we will discuss how to add new product. There are three way to add new products list in magento. First thing you can add new product block in phtml file, below is code. <?php echo $this->getLayout()->createBlock(‘catalog/product_widget_new’)->setProductsCount(‘4’)->setDisplayType(‘all_products’)->setTemplate(‘catalog/product/widget/new/content/new_grid.phtml ‘)->toHtml();?> You can add new products in cms page and cms block, bellow is code. {{widget type=’catalog/product_widget_new’ display_type=’all_products’ products_count=’4′ template=’catalog/product/widget/new/content/new_grid.phtml’}} you can also add neew products block in layout. For example- add new products block in home…

Read More Read More

Magento How To Check Is Home Page In phtml File

Magento How To Check Is Home Page In phtml File

Magento how to check is home page in phtml file. Today we will discuss how to check is home page  in phtml file. First Need to open  template file . <?php if(Mage::getSingleton(‘cms/page’)->getIdentifier() == ‘home’ && Mage::app()->getFrontController()->getRequest()->getRouteName() == ‘cms’) : ?> // your home page content is here. <?php endif; ?> thanks

Magento How to get dropdown attribute value in product page

Magento How to get dropdown attribute value in product page

Magento How to get dropdown attribute value in product page. Today we will discuss how to add drop-down attribute on product Page. First Need to open file in below directory or folder path. app/design/frontend/your_theme_name/default/template/catalog/product/view.phtml <?php echo $_product->getAttributeText(‘attribute_code_here’);?> Thanks

Magento 2 Add image in CSS background

Magento 2 Add image in CSS background

First we need to upload image in “app\design\frontend\vendor\theme\web\images” directory then write below code in css file. background: url(‘@{baseDir}images/icon_cart.png’); Then run below command in root directory. – php bin/magento cache:clean – php bin/magento setup:static-content:deploy Hope this article is helpful for you.

Magento 2 Get Customer Logged Session

Magento 2 Get Customer Logged Session

Today I have discussed you about Magento 2 Customer login session code. In magento theme development or module development, we need to get customer session on customer related extension. below is code that help you to get customer session in phtml file or block/controller file. <?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $customerSession = $objectManager->get(‘Magento\Customer\Model\Session’); ?> <?php if($customerSession->isLoggedIn()):?> <a href=”<?php echo $block->getUrl(‘customer/account’); ?>”><?php echo __(‘My Account’); ?></a> <?php else:?> <div> <a href=”<?php echo $block->getUrl(‘customer/account/login’); ?>”><?php echo __(‘Login’); ?></a> <span class=”pipe”>|</span> <a href=”<?php echo…

Read More Read More

Magento 2 Get Page URL in PHTML file (Template File)

Magento 2 Get Page URL in PHTML file (Template File)

This article help you to get base url in latest magento 2 version. <?php echo $block->getUrl(‘custom/index/index’); ?> <?php echo $block->getBaseUrl(); ?> Magento get Customer Account Url <?php echo $block->getUrl(‘customer/account’); ?> Magento get Customer Login URL <?php echo $block->getUrl(‘customer/account/login’); ?> Magento get Customer Register URL <?php echo $block->getUrl(‘customer/account/create’); ?> Hope this helps. Thanks.

Mobile App Vs. Mobile Website

Mobile App Vs. Mobile Website

Introduction If you are planning to presence your business or organization on mobile, fist you should analysys two things of mobile before develop. Mobile App which user can download from there desire store and website that run on browser. There are some factors which are target audience, features , type of website, cost (budget) and time frame. Difference between Mobile App and Mobile Website Mobile App: Mobile App is known as mobile application, which is download and install from device…

Read More Read More

What Features are require for Ecommerce Mobile App

What Features are require for Ecommerce Mobile App

Hello All, Today we have to discussed on features that require for good app. We have analysis that some features are really usable for a effective eCommerce app. The features are below. Push Notification:  Push notification is basic requirement of customers. It turns on customer. We can provide deals / promotion to customers. That cause customer may be purchase the product. It help to connect customer to seller or store owners. Rating Products: We have analysis that this is also…

Read More Read More