Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.

Commit b5b2ed6

Browse files
committed
fix addition link and show out-of-stock product on html sitemap
1 parent fabce40 commit b5b2ed6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Block/Sitemap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function getProductCollection()
141141
->addTaxPercents()
142142
->setPageSize($limit)
143143
->addAttributeToSelect('*');
144-
if (!$this->_helper->getConfigValue('cataloginventory\options\show_out_of_stock')) {
144+
if (!$this->_helper->getConfigValue('cataloginventory/options/show_out_of_stock')) {
145145
$this->_stockFilter->addInStockFilterToCollection($collection);
146146
}
147147

Model/Sitemap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ public function _getProductCollection($storeId)
411411
*/
412412
public function convertUrl($url)
413413
{
414-
if (preg_match('@^http://@i', $url)) {
414+
if (preg_match('@^http://@i', $url) || preg_match('@^https://@i', $url)) {
415415
return $url;
416416
}
417417

0 commit comments

Comments
 (0)