25 votes
Accepted

How to disable an event observer defined by default in Magento2

If we take a look at: vendor/magento/framework/Event/Invoker/InvokerDefault.php public function dispatch(array $configuration, Observer $observer) { /** Check whether event observer is ...
user avatar
11 votes
Accepted

Check if product got upsell product

You can try this. <?php $_product = $this->getProduct(); ?> <?php if (count($_product->getUpSellProductIds()) > 0) : ?> <!-- your list should come inside this condition--...
user avatar
11 votes
Accepted

Magento 2: Move up-sell product to product.info.details tab

1. Add below code to catalog_product_view.xml to remove old block <referenceBlock name="product.info.upsell" remove="true"/> 2. Add new upsell block to product.info.details <...
user avatar
  • 5,245
9 votes

How to disable an event observer defined by default in Magento2

Did some digging and seems its actually pretty easy to disable a certain event observer in Magento2. All we have to do, is create a custom module and add a events.xml file to the same area where the ...
user avatar
5 votes
Accepted

Is there a way to swap cross-sells and up-sells easily?

Up-sells and cross-sells relations are both kept in the same table: catalog_product_link. the only difference between the 2 relations it the link_type_id column. For up-sells the value is 4 and for ...
user avatar
  • 196k
4 votes
Accepted

Magento 2 UPSELL product list showing same price as of Product

Please try below solution.. /module-catalog/view/frontend/templates/product/view/form.phtml Look for below line in the above file var priceBoxes = $('[data-role=priceBox]'); To var priceBoxes = $(...
user avatar
3 votes

Bulk edit of up-sell / cross-sell product items

Maybe this free extension can help. It allows you to bulk import any kind of product relations (cross-sells, up-sells, related) via csv or manual input. Full description on how to use can be found ...
user avatar
  • 196k
3 votes
Accepted

Magento not calling static blocks

Under System > Permissions > Blocks you need to allow the following: ultimo/product_list_featured
user avatar
3 votes

Remove "Upsell" tab on product page

In your templates local.xml you can remove the block by adding the following snippet. This however only works if you use the Magento base or RWD theme <catalog_product_view> <reference ...
user avatar
  • 37.4k
3 votes
Accepted

Add to cart button in up-sell block

Replace $this->getAddToCartUrl($_item) with $this->getAddToCartUrl($_link). This should work unless you changed variable names in upsell.phtml
user avatar
3 votes

How to check if a product is already in the cart

See app\code\core\Mage\Checkout\Block\Cart\Crosssell.php: protected function _getCartProductIds() { $ids = $this->getData('_cart_product_ids'); if (is_null($ids)) { $ids = array(); ...
user avatar
  • 6,500
3 votes

How can I export products with cross or up-sells products?

I got them from database directly. It is the fastest and most reliable solution for me. You can find the sql query for upsells. upsell type id = 4 crosssell type id = 5 SELECT cpe.sku AS sku, ...
user avatar
  • 225
3 votes

Add to cart button for upsell product in product view page not showing up magento 2.1.9

find the items.phtml file in module catalog using template path hints ,here you can configure each products type (related,cross cell and up sell) inside switch case statements.select the product type ...
user avatar
  • 365
3 votes

Magento 2 - How to show related products in a thumbnail slider?

I assume that you are using a custom theme name Vendor_customtheme You can follow the below steps to implement OwlCarousel Slider for Related Product in the product detail page. Note: Below example ...
user avatar
2 votes

How to check if a product is already in the cart

You can use the method Mage_Sales_Model_Quote::getItemByProduct() which also checks for parent items and custom options, so in your case it returns true if and only if the product is added to the cart ...
user avatar
2 votes

Missing argument 2 for Mage_Catalog_Block_Product_List_Upsell::setItemLimit()

I found the problem by searching for all occurences of setItemLimit in the Magento .xml configuration files. I found the offending XML element in catalog.xml for my template. <block type="...
user avatar
  • 1,469
2 votes

Reversed up-sell

I can recommend you this extension. It says it works on versions up to 1.6, but it should work on 1.7 and later also. By default this extension adds a new product association called 'Accessories' but ...
user avatar
  • 196k
2 votes

implement automatic realated ,upsell, cross sell products

You can check in DB how this is related... catalog_product_linktable holds "link_type_id"(here you can check which id upsell or cross sell have), and then you just need to insert products to the ...
user avatar
2 votes
Accepted

Upsell product disappear after adding to Cart - CE 1.9.1

This is not a bug. It's a feature. You don't see as upsells or cross-sells the products that you already have in the cart. From the marketing poit of view it's a better approach. but if you insist in ...
user avatar
  • 196k
2 votes

Missing cross-selling and related products option in admin

Go to Catalog > Product and open any product. You can find "Related Products", "Up-Sells" and "Cross-Sells" options in left side tabs.
user avatar
2 votes

Magento2 Extending Magento\Catalog\Block\Product\AbstractProduct Class

Yes, you can't override classes having "Abstract" keyword in Magento. Alternatively, you can override the class \Magento\Catalog\Block\Product\View as it is the child class of \Magento\Catalog\Block\...
user avatar
  • 777
2 votes
Accepted

Magento 2: Change text Upsell in Magento2 Product Edit

The text "Up-Sell Products" is present inside the file vendor/magento/module-catalog/Ui/DataProvider/Product/Form/Modifier/Related.php line 341. If you open the file you will notice that the text is ...
user avatar
2 votes

How to find the product is going to be displayed under upsell list or not?

You can check if the product is upsell or not using following way: protected $_product; public function __construct( \Magento\Catalog\Model\Product $product ) { $this->_product = $product;...
user avatar
2 votes

Magento 2 : which tables is used for Related Products, Up-Sells, and Cross-Sells?

Currently there is no table which saves the data to check if a products was added through cross-sell or up-sell property. But for related products, the information is stored in product_options column ...
user avatar
1 vote

Missing cross-selling and related products option in admin

In Product Page Here you can see Related & Cross-sells Product in Magento.
user avatar
  • 1,246
1 vote

Magento2 Extending Magento\Catalog\Block\Product\AbstractProduct Class

You cannot overwrite abstract classes. Individual classes directly extend their respective parent classes using the extends keyword. Seeing as this is PHP native code and is therefore not handled by ...
user avatar
1 vote
Accepted

Advanced module for cross sell/accessoires

Based on your examples I would personally be inclined to evaluate Aheadworks Automatic Related Products - https://ecommerce.aheadworks.com/magento-extensions/automatic-related-products-2.html The ...
user avatar
1 vote

All upsells products are not showing on product view/details page

go your theme catalog.xml on line 205 change the limit <action method="setItemLimit"><type>upsell</type><limit>4</limit></action>
user avatar
  • 32.1k
1 vote
Accepted

Up-sell: adding a description to the product link

I have not done this or know of an extension that does it, but it certainly looks possible after some quick test. There is a table called catalog_product_link_attribute_varchar that doesn't seem to be ...
user avatar
  • 6,800
1 vote

Further questions about swapping cross-sells and up-sells

Barry,remove foreign key from table using SET foreign_key_checks = 0;then run marius update query. after that enable foreign key of table SET foreign_key_checks = 1; Make a clone of table ...
user avatar
  • 75.8k

Only top scored, non community-wiki answers of a minimum length are eligible