File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
base/templates/product/price
frontend/templates/product
ConfigurableProduct/Block/Product/View/Type Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ $priceLabel = ($block->getPriceLabel() !== null)
17
17
: '' ;
18
18
?>
19
19
<p class="price-as-configured">
20
- <?php if ($ configuredPrice ->getValue () !== 0 ): ?>
20
+ <?php if ($ configuredPrice ->getAmount ()-> getValue () !== null ): ?>
21
21
<?php /* @noEscape */
22
22
echo $ block ->renderAmount ($ configuredPrice ->getAmount (), [
23
23
'display_label ' => $ priceLabel ,
Original file line number Diff line number Diff line change @@ -78,8 +78,8 @@ $_helper = $this->helper('Magento\Catalog\Helper\Output');
78
78
<div class="actions-primary"<?php echo strpos ($ pos , $ viewMode . '-primary ' ) ? $ position : '' ; ?> >
79
79
<?php if ($ _product ->isSaleable ()): ?>
80
80
<?php $ postParams = $ block ->getAddToCartPostParams ($ _product ); ?>
81
- <form data-role="tocart-form" data-product-sku="<?php /* @escapeNotVerified */ echo $ _product ->getSku () ?> "
82
- action="<?php /* @escapeNotVerified */ echo $ postParams ['action ' ]; ?> " method="post">
81
+ <form data-role="tocart-form" data-product-sku="<?php echo $ block -> escapeHtml ( $ _product ->getSku ()); ?> "
82
+ action="<?php echo $ block -> escapeHtml ( $ postParams ['action ' ]) ; ?> " method="post">
83
83
<input type="hidden" name="product" value="<?php /* @escapeNotVerified */ echo $ postParams ['data ' ]['product ' ]; ?> ">
84
84
<input type="hidden" name="<?php /* @escapeNotVerified */ echo Action::PARAM_NAME_URL_ENCODED ; ?> " value="<?php /* @escapeNotVerified */ echo $ postParams ['data ' ][Action::PARAM_NAME_URL_ENCODED ]; ?> ">
85
85
<?php echo $ block ->getBlockHtml ('formkey ' )?>
Original file line number Diff line number Diff line change 16
16
<?php $ _product = $ block ->getProduct (); ?>
17
17
18
18
<div class="product-add-form">
19
- <form data-product-sku="<?php /* @escapeNotVerified */ echo $ _product ->getSku () ?> "
20
- action="<?php /* @escapeNotVerified */ echo $ block ->getSubmitUrl ($ _product ) ?> " method="post"
19
+ <form data-product-sku="<?php echo $ block -> escapeHtml ( $ _product ->getSku () ) ?> "
20
+ action="<?php echo $ block ->escapeHtml ( $ block -> getSubmitUrl ($ _product) ) ?> " method="post"
21
21
id="product_addtocart_form"<?php if ($ _product ->getOptions ()): ?> enctype="multipart/form-data"<?php endif ; ?> >
22
22
<input type="hidden" name="product" value="<?php /* @escapeNotVerified */ echo $ _product ->getId () ?> " />
23
23
<input type="hidden" name="selected_configurable_option" value="" />
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ public function getJsonConfig()
236
236
*
237
237
* @return array
238
238
*/
239
- protected function getOptionImages ()
239
+ private function getOptionImages ()
240
240
{
241
241
$ images = [];
242
242
foreach ($ this ->getAllowProducts () as $ product ) {
You can’t perform that action at this time.
0 commit comments