Commit 15b760b0 by 王东红

fix cart

parent 068faaf6
...@@ -43,15 +43,20 @@ $canApplyMsrp = $helper->isShowBeforeOrderConfirm($product) && $helper->isMinima ...@@ -43,15 +43,20 @@ $canApplyMsrp = $helper->isShowBeforeOrderConfirm($product) && $helper->isMinima
</strong> </strong>
<?php if ($_options = $block->getOptionList()) :?> <?php if ($_options = $block->getOptionList()) :?>
<dl class="item-options"> <dl class="item-options">
<?php foreach ($_options as $_option) :?> <?php
$_options_length = count($_options);
foreach ($_options as $k=>$_option) :
$new_k = $k +1;
?>
<?php $_formatedOptionValue = $block->getFormatedOptionValue($_option) ?> <?php $_formatedOptionValue = $block->getFormatedOptionValue($_option) ?>
<dt><?= $block->escapeHtml($_option['label']) ?></dt> <!-- <dt>--><?//= $block->escapeHtml($_option['label']) ?><!--</dt>-->
<dd> <dd>
<?php if (isset($_formatedOptionValue['full_view'])) :?> <?php if (isset($_formatedOptionValue['full_view'])) :?>
<?= $block->escapeHtml($_formatedOptionValue['full_view']) ?> <?= $block->escapeHtml($_formatedOptionValue['full_view']) ?>
<?php else :?> <?php else :?>
<?= $block->escapeHtml($_formatedOptionValue['value'], ['span', 'a']) ?> <?= $block->escapeHtml($_formatedOptionValue['value'], ['span', 'a']) ?>
<?php endif; ?> <?php endif; ?>
<?php if($new_k != $_options_length) :?>, <?php endif;?>
</dd> </dd>
<?php endforeach; ?> <?php endforeach; ?>
</dl> </dl>
......
...@@ -72,3 +72,13 @@ button, .action.primary{ ...@@ -72,3 +72,13 @@ button, .action.primary{
.box-tocart .fieldset{ .box-tocart .fieldset{
gap: 0; gap: 0;
} }
//cat
#shopping-cart-table dl.item-options{
display: flex;
}
#shopping-cart-table dl.item-options dd{
color: rgb(153, 153, 153);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment