X

Important Notice:

It has come to our attention that some individuals, who are not affiliated with eGlobe IT Solutions, have been reaching out to job seekers falsely claiming to represent our company. These scammers are offering Work from Home Part-Time job opportunities under the guise of eGlobe IT Solutions and we have already reported to the concerned authorities under law. If you have been contacted by someone claiming to be from eGlobe IT Solutions via WhatsApp/Instagram/Facebook/SMS and you suspect that it might be a scam, we urge you to exercise caution. Do not share any personal information or make any financial transactions. Instead, pleasefollow these steps:

1. Contact Us:

If you have doubts or concerns, please reach out to our HR department directly at hr@eglobeits.com to confirm the authenticity of the communication.

2. Do Not Share Personal or Financial Information:

Under no circumstances should you share sensitive personal or financial information with anyone claiming to be from eGlobe IT Solutions without proper verification.

3. Report the Scam:

If you believe you have been targeted by a scam, please report it to your local law enforcement authorities and forward any suspicious emails or messages to us at hr@eglobeits.com so that we can take appropriate action.

Your safety and security are of paramount importance to us, and we take these matters very seriously. eGlobe IT Solutions is committed to maintaining the highest ethical standards in our recruitment processes.

A step-by-step guide to adding featured products in Magento

Posted on: 17 Feb 2020 by Admin

The homepage of your website plays a vital role in your business. Online Shoppers will understand your homepage first before they choose to shop, so your business is to create the homepage engaging to the customer.
If not, they will leave your site instantly. One of the best ways to attract users by inserting your primary or trending products on the home page. So there is a huge chance of getting more buyers.

Lets learn how to add products in Magento of your websites homepage

Create a Featured Attribute in Magento Backend first Create an attribute featured with yes/no property from Catalog Input Type for Store Owner drop-down, then include it in attribute set and assign one product as Featured “yes” from Catalog->Manage Products.

Create a Custom Module

Create custom module and block file “app/code/local/FeaturedProduct/Catalog/Block/Product/Featured.php” with following code in it.

class FeaturedProduct_Catalog_Block_Product_Featured extends Mage_Catalog_Block_Product_List
{
   protected $_productCollection;
    public function fetchProducts()
    {
       $this->productCollection =Mage::getModel('catalog/product')->getCollection()
        ->addAttributeToSelect('*')
        ->addFieldToFilter('featured_products', array('eq' => '1'));
      return $this->productCollection;
    }
}

Create a configuration file in app/code/local/FeaturedProduct/Catalog/etc/config.xml
You have to specify a configuration file to tell magento about which XML is going to declare the block need to display featured products in homepage and which is located in app/code/local/FeaturedProduct/Catalog/etc/config.xml as:

FeaturedProduct_Catalog_Block
featuredproduct.xml
Create featuredproducts.xml in location app/design/frontend/mytheme/default/layout/featuredproduct.xml as follows:
Finally, create a view file to display featured products in a Grid layout as :
Create view file “app/design/frontend/mytheme/default/template/catalog/product/featured.phtml” with following code in it :
fetchProducts();
    $_helper = $this->helper('catalog/output');
?>

count()): ?>__('There are no products in the featured product list!!') ?>
count() ?> getColumnCount(); ?>

productAttribute($_product, $_product->getName(), ‘name’) ?>

getRatingSummary()): ?> getReviewsSummaryHtml($_product, ‘short’) ?> getPriceHtml($_product, true) ?> isSaleable()): ?> 

__(‘Out of stock’) ?>

That’s it.
Prefer to choose Installer Script for creating featured attribute mentioned in the beginning.
I hope you understood on How to add featured product in home page in Magento.
Try it