Page 1 of 1

請問訂單中的credit_add要如何才能發生作用?

Posted: Sat May 16, 2015 10:04 am
by openshop

Code: Select all

          <tr>
            <td><?php echo $text_total; ?></td>
            <td><?php echo $total; ?>
              <?php if ($credit && $customer) { ?>
              <?php if (!$credit_total) { ?>
              <span id="credit"><b>[</b> <a id="credit-add"><?php echo $text_credit_add; ?></a> <b>]</b></span>
              <?php } else { ?>
              <span id="credit"><b>[</b> <a id="credit-remove"><?php echo $text_credit_remove; ?></a> <b>]</b></span>
              <?php } ?>
              <?php } ?></td>
          </tr>
admin/view/template/sale/order_info.tpl
這個功能是做什麼用的?

Re: 請問訂單中的credit_add要如何才能發生作用?

Posted: Mon May 18, 2015 12:15 pm
by raymondization
如果有一些客人帳戶內有CREDIT就會發生作用了

至於如何加CREDIT到客人的帳戶內,你可以看看這個教學:
http://www.inmotionhosting.com/support/ ... n-opencart

Re: 請問訂單中的credit_add要如何才能發生作用?

Posted: Mon May 18, 2015 2:46 pm
by openshop
我試過先加入CREDIT再購物
可是在訂單order_info中沒有顯示這些內容
這需要在什麼情況下才會出現?

Re: 請問訂單中的credit_add要如何才能發生作用?

Posted: Tue May 19, 2015 5:22 pm
by raymondization
不會的,如果是使用store credit購物,訂單中會有一項Store Credit 說明了用了多少Store Credit

Re: 請問訂單中的credit_add要如何才能發生作用?

Posted: Tue May 19, 2015 6:29 pm
by openshop
我是指Admin中的order info
並沒有看到你說的credit

Re: 請問訂單中的credit_add要如何才能發生作用?

Posted: Wed May 20, 2015 10:16 am
by raymondization
請看看這張圖片
credit.png

credit.png (45.82 KiB) Viewed 1762 times


Re: 請問訂單中的credit_add要如何才能發生作用?

Posted: Wed May 20, 2015 10:20 am
by openshop
沒看到credit啊?

Code: Select all

          <tr>
            <td><?php echo $text_total; ?></td>
            <td><?php echo $total; ?>
              <?php if ($credit && $customer) { ?>
              <?php if (!$credit_total) { ?>
              <span id="credit"><b>[</b> <a id="credit-add"><?php echo $text_credit_add; ?></a> <b>]</b></span>
              <?php } else { ?>
              <span id="credit"><b>[</b> <a id="credit-remove"><?php echo $text_credit_remove; ?></a> <b>]</b></span>
              <?php } ?>
              <?php } ?></td>
          </tr>