我无法将送货方式作为复选框。我收到了单选按钮。
实际上我需要为UPS,USPS第二航空和USPS第二天的航空方式添加我的单选按钮,但是我需要在复选框中添加其他方法,这样任何人都可以选择我的UPS方法+选择我的自定义额外的运输方法和它们加入到小计的最终价格中。所以任何人都可以帮我解决这个问题...
提前致谢。
答案 0 :(得分:0)
如果在“配置”部分中启用了其他送货方式,则应在结帐页面上显示这些方法。系统>配置>销售>送货方式。
添加有关向Magento添加自定义送货方式的自定义方法pls see this article
答案 1 :(得分:0)
感谢您的建议,实际上我们已经为此制作了自定义模块,但问题是在选择该方法后,价格属于该运输方式并未添加到购物车最终价格。那应该是什么错误。我的代码如下所示
<?php $mechtronicsAdditonal = Mage::getModel('mechtronicsShipment/carrier_additional'); ?>
<?php $additonalOptions = $mechtronicsAdditonal->getShippingRates() ?>
<?php if ($additonalOptions): ?>
<dt><?php echo $this->__('Additional Options') ?></dt>
<dd>
<ul class="mechtronicsCustom">
<?php foreach($additonalOptions as $_rate): ?>
<li>
<input name="shipping_additional_method[<?php echo $_rate->getCode() ?>]" type="checkbox" value="<?php echo $_rate->getCode() ?>" class="radio<?php if ($_rate->getTermsActive()): ?> terms-active <?php endif ?>"/>
<label for="s_method_<?php echo $_rate->getCode() ?>"><?php echo $_rate->getMethodTitle() ?></label>
</li>
<?php endforeach; ?>
</ul>
</dd>
<?php endif ?>
</dl>
<div id="shipping-terms" class="no-display">
<div class="title">
<?php echo $mechtronicsShipment->getTermsTitle() ?>
</div>
<div class="content">
<?php echo $mechtronicsShipment->getTermsContent() ?>
<div class="terms-check-content"><input type="checkbox" class="terms-check" /> By checking this box you understand and agree to the terms and conditions noted above.</div>
</div>
</div>