Skip to main content
added 94 characters in body
Source Link
Hitesh Koshti
  • 1.4k
  • 4
  • 18
  • 36

This is an example for the Upsell Product List :

Create the file app/design/frontend/Vendor/default/Magento_Catalog/templates/product/list/items.phtml

Line No. 62 and 82 replace below code:


 $limit = $block->getItemLimit>getPositionLimit('upsell');
 
to
$limit = 3;

toand Line No. 82 replace below code:


  $limit = $block->getItemLimit('upsell'); 
to
$limit = 3;
 

This is an example for the Upsell Product List :

Create the file app/design/frontend/Vendor/default/Magento_Catalog/templates/product/list/items.phtml

Line No. 62 and 82 replace below code:


 $limit = $block->getItemLimit('upsell');
 

to


 $limit = 3;
 

This is an example for the Upsell Product List :

Create the file app/design/frontend/Vendor/default/Magento_Catalog/templates/product/list/items.phtml

Line No. 62 replace below code:

$limit = $block->getPositionLimit();
to
$limit = 3;

and Line No. 82 replace below code:

 $limit = $block->getItemLimit('upsell'); 
to
$limit = 3;
Source Link
Hitesh Koshti
  • 1.4k
  • 4
  • 18
  • 36

This is an example for the Upsell Product List :

Create the file app/design/frontend/Vendor/default/Magento_Catalog/templates/product/list/items.phtml

Line No. 62 and 82 replace below code:

$limit = $block->getItemLimit('upsell');

to

$limit = 3;