File tree 1 file changed +17
-2
lines changed
app/code/Magento/CatalogWidget/Block/Product
1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ public function getProductPriceHtml(
196
196
? $ arguments ['display_minimal_price ' ]
197
197
: true ;
198
198
199
- /** @var \Magento\Framework\Pricing\Render $priceRender */
199
+ /** @var \Magento\Framework\Pricing\Render $priceRender */
200
200
$ priceRender = $ this ->getLayout ()->getBlock ('product.price.render.default ' );
201
201
202
202
$ price = '' ;
@@ -338,7 +338,7 @@ public function getPagerHtml()
338
338
if (!$ this ->pager ) {
339
339
$ this ->pager = $ this ->getLayout ()->createBlock (
340
340
\Magento \Catalog \Block \Product \Widget \Html \Pager::class,
341
- ' widget.products.list.pager '
341
+ $ this -> getWidgetPagerBlockName ()
342
342
);
343
343
344
344
$ this ->pager ->setUseContainer (true )
@@ -398,4 +398,19 @@ private function getPriceCurrency()
398
398
}
399
399
return $ this ->priceCurrency ;
400
400
}
401
+
402
+ /**
403
+ * @return string
404
+ */
405
+ private function getWidgetPagerBlockName ()
406
+ {
407
+ $ pageName = $ this ->getData ('page_var_name ' );
408
+ $ pagerBlockName = 'widget.products.list.pager ' ;
409
+
410
+ if (!$ pageName ) {
411
+ return $ pagerBlockName ;
412
+ }
413
+
414
+ return $ pagerBlockName . '. ' . $ pageName ;
415
+ }
401
416
}
You can’t perform that action at this time.
0 commit comments