OpenCart 2.0:如何从Chekout页面删除账单明细 [英] OpenCart 2.0: How To Remove Billing Details from Chekout Page

查看:122
本文介绍了OpenCart 2.0:如何从Chekout页面删除账单明细的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上,我想从OpenCart 2.0的结算"页中删除步骤2:帐单明细".我的网站只接受银行存款,货到付款和从商店提款作为付款方式,因此我将不需要第二步.我该怎么办?

Basically, I want to remove Step 2: Billing Details from the Checkout Page of OpenCart 2.0. My site will only be accepting bank deposits, cash on delivery, and pickup from store as methods of payment so I will not be needing Step 2. How do I go about this?

我看过很多方法,但是对于OpenCart 2.0却没有.该代码似乎与以前的版本相比已发生了很大变化,我迷茫了.

I've seen a lot of how-tos but not for OpenCart 2.0. The code seems to have changed quite a bit from the previous releases and I'm at a lost.

谢谢您的帮助!

推荐答案

我知道这已经很老了,但是我只是遇到了同样的问题,并且找到了不使用任何扩展名的解决方案.

I know this is quite old but i just got stuck with the same problem and found a solution without using any extension.

要在2.0.3.1上结帐时完全删除帐单邮寄地址,请执行以下操作:

To completely remove the billing address on checkout on the 2.0.3.1:

  • 在其他条件上注释或删除else HTML:if (!$logged && $account != 'guest')(32);

找到javascript代码:$(document).delegate('#button-payment-address', 'click', function() {(338),然后在委托方法中找到代码:if ($shipping_required)(373),复制javascript代码(393),它应该是ajax调用并删除刚刚找到的整个委托javascript代码

Find the javascript code: $(document).delegate('#button-payment-address', 'click', function() {(338) and find inside the delegate method the code: if ($shipping_required)(373), copy the javascript code(393), it should be an ajax call and delete the whole delegate javascript code that we just found

找到if (!$logged)(124)代码,并将else javascript代码替换为刚复制的ajax调用.

Find the if (!$logged)(124) code and replace the else javascript code with the ajax call you just copied.

这篇关于OpenCart 2.0:如何从Chekout页面删除账单明细的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆