Ask your Question

PEOPLE YOU MIGHT KNOW

Sushant
Sushant

Self-Employed

Haryana,  India
Gimoka
Gimoka

Distributor Of Italian Coffee

London,  United Kingdom
Rahul
Rahul

#stock Market #Investor #Trader #Thinker #Entrepreneur

Delhi,  India
Jyoti
Jyoti

Computer operating

New Delhi,  India
Gursewak
Gursewak

Marketing Consultant

Ludhiana,  India

Write to us

Ask Question

Free Magento 2 Price Slider

Free Magento 2 Price Slider

Price Slider extension for magento2 allows the customer to filter the products by price range with the slider.
This extension based on the  attributes of 'price' type in the layered navigation.
With the help of this extension users can simply set their choice of range by sliding the bar 
according to their price range.It Improves user experience through filtering products and its easy to install 
and configure.

... Read More

Indexing through Command line Magento1.x

Reindexing in Magento1.X through Command line:

Sometimes we need to re-index Magento through command line to avoid the broken process from Magento Interface.

On our Magento root folder we have shell directory that contains indexing script

... Read More

Show error message when adding a product of price 0.

To restrict products having price zero from shopping we need to create a observer on
checkout_cart_product_add_after event such that on every add to cart it will check the
product price and then add to cart.

... Read More

Admin and Frontend icon fonts missing after installing Magento2.O

Admin and Frontend icon fonts missing after installing Magento2.O

Admin and Frontend icon fonts missing after installing Magento2.O

... Read More

How to delete a product in Magento2 Programatically

How to delete a product in Magento2 Programatically

 To delete a product from frontend 

1. On delete icon/link we need to pass the product ID which we need to delete.
2. We need to create a  controller class to execute the delete process and
  need to write the delete code under execute method of class.
 
 class Deleteproduct extends MagentoFrameworkAppActionAction
{   
    protected $_productRepositoryInterface;
    
public function __construct(
          MagentoFrameworkAppActionContext $context,
          MagentoCatalogModelProductRepository $productRepository,
          MagentoFrameworkRegistry $registry)
        
       {
        parent::__construct($context);
        $this->productRepository = $productRepository;
        $this->registry = $registry;
    
        }
 
     public function execute()
   
       {
    $productInfo = $this->getRequest()->getParams();
    $productID  = $productInfo['id'];
    $this->registry->register('isSecureArea', true);
    $product = $this->productRepository->getById($productID);
            $this->productRepository->delete($product);
    $this->messageManager->addSuccess(  __('Product has been deleted!') );
                      
        }
}
... Read More

List Your Business

Improve Your Business Visibility

Please rotate your device

We don't support landscape mode on your device. Please rotate to portrait mode for the best view of our site