File tree Expand file tree Collapse file tree 6 files changed +35
-6
lines changed
view/frontend/templates/product
Review/view/frontend/templates Expand file tree Collapse file tree 6 files changed +35
-6
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,11 @@ class Category extends \Magento\Catalog\Model\AbstractModel implements
112
112
*/
113
113
protected $ _url ;
114
114
115
+ /**
116
+ * @var ResourceModel\Category
117
+ */
118
+ protected $ _resource ;
119
+
115
120
/**
116
121
* URL rewrite model
117
122
*
@@ -332,6 +337,16 @@ protected function getCustomAttributesCodes()
332
337
return $ this ->customAttributesCodes ;
333
338
}
334
339
340
+ /**
341
+ * @throws \Magento\Framework\Exception\LocalizedException
342
+ * @return \Magento\Catalog\Model\ResourceModel\Category
343
+ * @deprecated because resource models should be used directly
344
+ */
345
+ protected function _getResource ()
346
+ {
347
+ return parent ::_getResource ();
348
+ }
349
+
335
350
/**
336
351
* Get flat resource model flag
337
352
*
Original file line number Diff line number Diff line change @@ -118,6 +118,11 @@ class Product extends \Magento\Catalog\Model\AbstractModel implements
118
118
*/
119
119
protected $ _urlModel = null ;
120
120
121
+ /**
122
+ * @var ResourceModel\Product
123
+ */
124
+ protected $ _resource ;
125
+
121
126
/**
122
127
* @var string
123
128
*/
@@ -482,6 +487,18 @@ protected function _construct()
482
487
$ this ->_init (\Magento \Catalog \Model \ResourceModel \Product::class);
483
488
}
484
489
490
+ /**
491
+ * Get resource instance
492
+ *
493
+ * @throws \Magento\Framework\Exception\LocalizedException
494
+ * @return \Magento\Catalog\Model\ResourceModel\Product
495
+ * @deprecated because resource models should be used directly
496
+ */
497
+ protected function _getResource ()
498
+ {
499
+ return parent ::_getResource ();
500
+ }
501
+
485
502
/**
486
503
* Get a list of custom attribute codes that belongs to product attribute set. If attribute set not specified for
487
504
* product will return all attribute codes
Original file line number Diff line number Diff line change @@ -70,7 +70,8 @@ public function setItem(ItemInterface $item)
70
70
public function getValue ()
71
71
{
72
72
$ basePrice = parent ::getValue ();
73
- return $ this ->item
73
+
74
+ return ($ this ->item && $ basePrice !== false )
74
75
? $ basePrice + $ this ->configuredOptions ->getItemOptionsValue ($ basePrice , $ this ->item )
75
76
: $ basePrice ;
76
77
}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ $viewModel = $block->getData('viewModel');
11
11
"breadcrumbs": {
12
12
"categoryUrlSuffix": "<?= $ block ->escapeHtml ($ viewModel ->getCategoryUrlSuffix ()); ?> ",
13
13
"useCategoryPathInUrl": <?= (int )$ viewModel ->isCategoryUsedInProductUrl (); ?> ,
14
- "product": "<?= $ block ->escapeHtml ($ viewModel ->getProductName ()); ?> "
14
+ "product": "<?= $ block ->escapeHtml ($ block -> escapeJsQuote ( $ viewModel ->getProductName (), ' " ' )); ?> "
15
15
}
16
16
}'>
17
17
</div>
Original file line number Diff line number Diff line change 8
8
9
9
?>
10
10
<?php
11
- /* if(isset($GET['limit'])) {
12
- $limit = $GET['limit']
13
- }*/
14
11
header ("Location: {$ block ->getProduct ()->getProductUrl ()}#info-product_reviews " );
15
12
exit ;
16
13
?>
Original file line number Diff line number Diff line change 9
9
use Magento \Framework \App \Action \Action ;
10
10
use Magento \Framework \App \Action \Context ;
11
11
use Magento \Framework \App \ProductMetadataInterface ;
12
- use Magento \Framework \Exception \StateException ;
13
12
14
13
/**
15
14
* Magento Version controller
You can’t perform that action at this time.
0 commit comments