Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [magento2.0.8]

Denotes questions about Magento 2 CE/EE version 2.0.8

0
votes
0answers
28 views

Magento\Framework\Exception\LocalizedException: Invalid block type: in /vendor/magento/framework/View/Layout/Generator/Block.php:263

I am unable to figure out why class is empty for invalid block type error in magento 2.0.8. I researched for invalid block type issue, but all were having some class defined in error, so they can ...
1
vote
1answer
537 views

Magento 2: Change per page option for customer, Order & product Admin Grid

As a default, Magento Admin has Paging option as 20, 30, 50,100,200 But I need to change it for Product, Customer & Order Grid. I override the below files: vendor/magento/module-customer/view/...
0
votes
2answers
3k views

How to add media gallery entries via REST API - Magento 2

I stored image in pub/media/catalog/product. How to add that images into media gallery entries. I have tried like http://myhost/rest/V1/products "media_gallery_entries"=> array( array( ...
0
votes
1answer
252 views

where should I get format of request body of REST api - Magento 2

I'm trying to create simple product using magento REST api. I have tried this link, it works but I need to know full options of create product like media gallery entries,product links,...etc. So I ...
0
votes
1answer
654 views

basic product repository save not work in cron - magento2

I tried the below code in custom controller and cron job method [just load and save] after that I felt some issues $product = $this->productRepository->getById(548); $this->productRepository-...
0
votes
2answers
911 views

update only related products programatically - magento 2

I follow this answer for update related products, It works but it will delete cross sell and upsell products of parent. is this default behavior or did I something wrong? //For testing load one ...
2
votes
1answer
422 views

Filter near by location product collection -magento2

I have thousands of property in my store. I'm trying to write automated related properties. Each property has latitude and longitude. When customer click anyone property, we need to suggest five top ...
6
votes
2answers
1k views

Main Image not updating when swatch is selected Magento 2.0.8

Having an issue on Magento 2.0.8 where I have a configurable product and simple products associated with it. The simple product have images and on the configurable product there are swatches shown ...
1
vote
0answers
1k views

bootstrap into luma extended theme - magento2

I created theme that extend luma. I have integrated bootstrap into magento using this link after that product detail page and page header alignment are not nice. Due to commonalities between these ...
1
vote
0answers
34 views

service contract save method flow - magento 2 [duplicate]

I can able to get custom table records from database using service contract but hard to understand the save flow. di.xml <preference for="Mobi\Service\Api\RcRepositoryInterface" type="Mobi\...
7
votes
2answers
5k views

customer session does not work except customer page - Magento 2

Block <?php namespace Vendor\Module\Block; class CustomerLink extends \Magento\Framework\View\Element\Template { protected $_customersession; public function __construct( \Magento\...
2
votes
1answer
2k views

render minicart in custom layout - Magento 2

I am working on header customization, I completely remove luma header and make a new one. I can render minicart in custom layout like <referenceContainer name="page.wrapper"> <block ...
1
vote
4answers
3k views

TypeError: element.prop is not a function - Magento 2

In product detail page I got below error in browser console at app/code/Magento/PageCache/view/frontend/web/js/page-cache.js TypeError: element.prop is not a function .prop('href', element....
4
votes
2answers
10k views

remove items from cart in controller - magento2

I need to remove all the items from cart, below method remove the items in chenckout/cart/index page but header minicart section still dispaly the items even after refresh page too. I have try this ...
1
vote
2answers
676 views

minicart-count background does not disappear, even no items in cart

Add items into cart Delete browser cache and cookies only [CTRL + SHIFT + DLETE] Load the page again, it shows no count but cart-count background does not disappear How to debug what is the root ...
7
votes
1answer
6k views

font awesome icon without cdn - magento 2.0.8

I am looking to integrate font awesome icon into magento2. I have downloaded font-awesome version 4.6.3. The tree structure of the font-awesome folder is shown below. I referred this link and got ...
1
vote
0answers
89 views

one widget different behaviour - magento 2

Widget-Block: app/code/Gworks/Recentviewed/Block/Widget/Recent.php <?php /** * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for license details. */ namespace Gworks\...