Commit af4c4ce4 by dhn

shipping测试

parent 47ab1866
...@@ -11,20 +11,32 @@ ...@@ -11,20 +11,32 @@
$selectedCountryId = $block->getCountryId(); $selectedCountryId = $block->getCountryId();
$flatraPrice = $block->getFlatratePrice(); $flatraPrice = $block->getFlatratePrice();
?> ?>
<div id="block-shipping" class="block shipping"> <div id="block-shipping"
<div id="block-summary" style="display: none;"> class="block shipping"
<form method="post" id="shipping-zip-form"> data-mage-init='{"collapsible":{"openedState": "active", "saveState": true}}'
<fieldset class="fieldset estimate"> >
<div class="field" name="shippingAddress.country_id"> <div class="title" data-role="title">
<label class="label" for="shipping_country_id"> <strong id="block-shipping-heading" role="heading" aria-level="2">
<span><?= __('Country')?></span> <?= $block->getQuote()->isVirtual()
</label> ? $block->escapeHtml(__('Estimate Tax'))
<div class="control"> : $block->escapeHtml(__('Estimate Shipping and Tax'))
<?= $block->getCountryHtmlSelect(null, 'country_id', 'shipping_country_id')?> ?>
</div> </strong>
</div> </div>
</fieldset> <div id="block-summary"
</form> data-bind="scope:'block-summary'"
class="content"
data-role="content"
aria-labelledby="block-shipping-heading"
>
<!-- ko template: getTemplate() --><!-- /ko -->
<script type="text/x-magento-init">
{
"#block-summary": {
"Magento_Ui/js/core/app": <?= /* @noEscape */ $block->getJsLayout() ?>
}
}
</script>
<?php $serializedCheckoutConfig = /* @noEscape */ $block->getSerializedCheckoutConfig(); <?php $serializedCheckoutConfig = /* @noEscape */ $block->getSerializedCheckoutConfig();
$scriptString = <<<script $scriptString = <<<script
......
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