Categories
CMS Magento Mastering Development

Magento 2.3.5 – Add link and page to My Account links while keeping left side links

I am trying to add two link to my account "link 1" "link 2". links that will load just a simple "testing" message. I got the link to display but if i click the link i get an oops error page. The following is an example: How to add a new page to the new […]

Categories
CMS Magento Mastering Development

Magento 2.3.5 – Add link and page to My Account links while keeping left side links

I am trying to add two link to my account "link 1" "link 2". links that will load just a simple "testing" message. I got the link to display but if i click the link i get an oops error page. The following is an example: How to add a new page to the new […]

Categories
CMS Magento Mastering Development

Magento 2.3.5 – Add link and page to My Account links while keeping left side links

I am trying to add two link to my account "link 1" "link 2". links that will load just a simple "testing" message. I got the link to display but if i click the link i get an oops error page. The following is an example: How to add a new page to the new […]

Categories
CMS Magento Mastering Development

Help Following guide

I’m trying to integrate Google Address to magento, following this guide But I dont understand a line in php code, here’s the block definition: namespace Webkul\Autofill\Block; use Magento\Framework\View\Element\Template\Context; class Autofillform extends \Magento\Framework\View\Element\Template { /** * @param Context $context, * @param array $data = [] */ public function __construct( Context $context, array $data = [] ) […]

Categories
CMS Magento Mastering Development

Magento 2.3 – Add attribute group name on compare products page

We want to implement the attribute group name on the compare product page and separate all attributes based on the attribute group. We use the following code to show the attribute group name on the specifications section on the product page. How can we implement this on the product compare page? CODE; <?php namespace AttributeGroup\Module\Block\Product; […]

Categories
CMS Magento Mastering Development

Magento 2.3 – Add attribute group name on compare products page

We want to implement the attribute group name on the compare product page. We use the following code to show the attribute group name on the specifications section on the product page. How can we implement this on the product compare page? CODE; <?php namespace AttributeGroup\Module\Block\Product; class Specification extends \Magento\Catalog\Block\Product\View { /** * @var \Magento\Eav\Model\ResourceModel\Entity\Attribute\Group\CollectionFactory […]

Categories
CMS Magento Mastering Development

Magento 2:An element with a “sellerpage” ID already exists

When i am making ajax call i am getting error ‘An element with a “sellerpage” ID already exists’. Here is my controller. namespace Vendor\Module\Controller\Sellers; class Index extends \Magento\Framework\App\Action\Action { protected $_pageFactory; protected $resultJsonFactory; protected $_coreRegistry; public function __construct( \Magento\Framework\App\Action\Context $context, \Magento\Framework\View\Result\PageFactory $pageFactory, \Magento\Framework\Registry $coreRegistry, \Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory ) { $this->_pageFactory = $pageFactory; $this->_coreRegistry = $coreRegistry; $this->resultJsonFactory […]

Categories
CMS Magento Mastering Development

Error when extending the Magento\Catalog\Block\Product\ListProduct::class

I tried to extend the Magento\Catalog\Block\Product\ListProduct::class like this : namespace Vendor\Module\Block\Product; class ListProduct extends \Magento\Catalog\Block\Product\ListProduct { public function __construct( \Magento\Catalog\Block\Product\Context $context, \Magento\Framework\Data\Helper\PostHelper $postDataHelper, \Magento\Catalog\Model\Layer\Resolver $layerResolver, \Magento\Catalog\Api\CategoryRepositoryInterface $categoryRepository, \Magento\Framework\Url\Helper\Data $urlHelper, array $data = [] ) { parent::__construct($context,$postDataHelper,$layerResolver,$categoryRepository,$urlHelper,$data); $this->setTemplate(‘Vendor_Module::product/list.phtml’); } protected function _beforeToHtml() { $collection = $this->_getProductCollection(); $collection->setVisibility(array( \Magento\Catalog\Model\Product\Visibility::VISIBILITY_NOT_VISIBLE , \Magento\Catalog\Model\Product\Visibility::VISIBILITY_IN_CATALOG , \Magento\Catalog\Model\Product\Visibility::VISIBILITY_IN_SEARCH , \Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH , )); […]

Categories
CMS Magento Mastering Development

Magento 2.3 order comment block not rendering properly

I am working on Marketplace extension they are not providing order comment block. that’s why I am going to customize this. Right now, Comment history block appearing properly. also, comment has been added to the order with notified mail. after submitting a comment, the block should be rendered with the latest comment but in my […]

Categories
CMS Development Magento

Magento2: Override block not working

So i am trying to override the module-customer -> Block -> Account -> AuthorizationLink.php What i did is: I made a folder Customer in: app -> code -> Theme -> Customer in the Customer Folder there is 2 more folders: etc and Block/Account in the etc folder there is xml called di di.xml: <?xml version=”1.0″?> […]