IWD POS付款方式处理问题

时间:2019-06-25 17:32:06

标签: magento

我正在使用IWD POS。我唯一遇到的问题是我对支票/汇票有重复的付款方式。不会像支票/汇票在pos上那样处理付款。

支票/汇票将处理付款,然后要求我打印或发送电子邮件,无需确认付款为现金还是支票。但是我的checkmo副本不会像需要像信用卡一样处理它。看来我需要设置付款方式来处理付款,例如支票/汇票正在处理付款。

这是我在POS付款页面上的代码

<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category    design
 * @package     base_default
 * @copyright   Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
<?php
/**
 * One page checkout payment methods
 *
 * @see Mage_Checkout_Block_Onepage_Payment_Methods
 */
?>
<dl class="sp-methods" id="checkout-payment-method-load">
<?php
    $methods = $this->getMethods();
    $oneMethod = count($methods) <= 1;
?>
<?php
    foreach ($methods as $_method):
        $_code = $_method->getCode();
?>
    <dt>
        <div>
        <?php if(!$oneMethod): ?>
            <input id="p_method_<?php echo $_code ?>" value="<?php echo $_code ?>" type="radio" name="payment[method]" title="<?php echo $this->htmlEscape($_method->getTitle()) ?>" onclick="payment.switchMethod('<?php echo $_code ?>')"<?php if($this->getSelectedMethodCode()==$_code): ?> checked="checked"<?php endif; ?> class="radio" />
        <?php else: ?>
            <span class="no-display"><input id="p_method_<?php echo $_code ?>" value="<?php echo $_code ?>" type="radio" name="payment[method]" checked="checked" class="radio" /></span>
            <?php $oneMethod = $_code; ?>
        <?php endif; ?>
        <label for="p_method_<?php echo $_code ?>"><?php echo $this->getMethodTitle($_method) ?> <?php echo $this->getMethodLabelAfterHtml($_method) ?></label>
        </div>
    </dt>
    <?php if ($html = $this->getPaymentMethodFormHtml($_method)): ?>
    <dd>
        <div class="product-view-modal fade checkout-modal" id="pos-view-modal-<?php echo $_code?>" tabindex="-1" role="dialog" aria-labelledby="product-view-modal-label" aria-hidden="true">
        	<div class="product-view-modal-dialog modal-dialog">
        		<div class="product-view-modal-content">
        			<div class="product-view-modal-header">
        			    <h4><?php echo $this->__('BILLING')?><i></i><?php echo $this->getMethodTitle($_method) ?></h4>
                    	<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>                    	                    
                    </div>
                    <div class="product-view-modal-body">
        			<?php echo $html; ?>
                    </div>
                    <div class="pos-messages-modal-footer">
                        <a data-dismiss="modal" href="" class="pos-btn-silver left"><span><?php echo $this->__('Cancel')?></span></a>
                        <a href="" class="pos-btn-black right btn-save-payment"><span><?php echo $this->__('Apply')?></span></a>
                    </div>
        		</div>
        	</div>
        </div>        
    </dd>
    <?php else:?>
        <?php if ($_code=='banktransfer2'):?>
        <dd>
        <div class="product-view-modal fade checkout-modal" id="pos-view-modal-<?php echo $_code?>" tabindex="-1" role="dialog" aria-labelledby="product-view-modal-label" aria-hidden="true">
        	<div class="product-view-modal-dialog modal-dialog">
        		<div class="product-view-modal-content">
        			<div class="product-view-modal-header">
        			    <h4><?php echo $this->__('BILLING')?><i></i><?php echo $this->getMethodTitle($_method) ?></h4>
                    	<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>                    	                    
                    </div>
                    <div class="product-view-modal-body">
        			
        			<?php echo $this->getLayout()->createBlock('core/template')->setTemplate('pos/payment/form/cach.phtml')->toHtml();?>
                    </div>
                    <div class="pos-messages-modal-footer">
                        <a data-dismiss="modal" href="" class="pos-btn-silver left"><span><?php echo $this->__('Cancel')?></span></a>
                        <a href="" class="pos-btn-black right btn-save-payment"><span><?php echo $this->__('Apply')?></span></a>
                    </div>
        		</div>
        	</div>
        </div> 
        </dd>
        <?php endif;?>
        <?php if ($_code=='checkmo'):?>
        <dd>
        <div class="product-view-modal fade checkout-modal" id="pos-view-modal-<?php echo $_code?>" tabindex="-1" role="dialog" aria-labelledby="product-view-modal-label" aria-hidden="true">
        	<div class="product-view-modal-dialog modal-dialog">
        		<div class="product-view-modal-content">
        			<div class="product-view-modal-header">
        			    <h4><?php echo $this->__('BILLING')?><i></i><?php echo $this->getMethodTitle($_method) ?></h4>
                    	<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>                    	                    
                    </div>
                    <div class="product-view-modal-body">
        			
        			<?php echo $this->getLayout()->createBlock('core/template')->setTemplate('pos/payment/form/cach.phtml')->toHtml();?>
                    </div>
                    <div class="pos-messages-modal-footer">
                        <a data-dismiss="modal" href="" class="pos-btn-silver left"><span><?php echo $this->__('Cancel')?></span></a>
                        <a href="" class="pos-btn-black right btn-save-payment"><span><?php echo $this->__('Apply')?></span></a>
                    </div>
        		</div>
        	</div>
        </div> 
        </dd>
        <?php endif;?>
    <?php endif; ?>
<?php endforeach; ?>
</dl>
<?php echo $this->getChildChildHtml('additional'); ?>
<script type="text/javascript">
//<![CDATA[
<?php echo $this->getChildChildHtml('scripts'); ?>
//payment.init();
<?php if (is_string($oneMethod)): ?>
    payment.switchMethod('<?php echo $oneMethod ?>');
<?php endif; ?>
//]]>
</script>

我不知道为什么它将使用支票/汇票的副本。因此,为什么我需要另外一个流程来处理付款,而无需我手动登录和处理。

this is the GitHub I used to make my duplucates

我更改了代码以使用支票/汇票付款方式。

this is the pos i am using

如果有任何人可以让我知道如何更改付款方式处理最喜欢我的订单的方式。

谢谢

0 个答案:

没有答案