advantagemart 3.0.10在结帐时禁用双重确认 [英] virtuemart 3.0.10 disable double confirmation on checkout

查看:65
本文介绍了advantagemart 3.0.10在结帐时禁用双重确认的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有解决方案。
在我的美洲在线网站上,我手动(使用代码编辑)进行一页结帐(和一步)。但是在版本3.0.10之后,我的解决方案不再起作用。

There is solution. In my sites on virtuemart I manually (with code editing) do one page checkout (and one step). But after version 3.0.10 my solution no longer work.

在版本3.0.10之前,我使用了以下方法:
文件底部的/tmpl/default.php提供隐藏的输入。
<输入类型='隐藏'name ='任务'value ='updatecart'/>
之后添加 < input type ='hidden'name ='task'value ='confirm'/>

但是在3.0.10版之后,我发现除了hacker ofmartmart核心以外,没有其他选择:
在购物车/文件底部的tmpl / default.php提供隐藏的输入。
Del <输入类型='隐藏'名称='任务'值='updatecart'/>
添加 < input type ='hidden'name ='task'value ='confirm'/>
在site / components / com_virtuemart / controllers / cart.php中
在方法display()中更改

But after version 3.0.10 I found no other option except hack of virtuemart core: In cart/tmpl/default.php in bottom of file present hidden inputs. Del <input type='hidden' name='task' value='updatecart'/> add <input type='hidden' name='task' value='confirm'/>. In site/components/com_virtuemart/controllers/cart.php in method display() change

if(($task == 'confirm' or isset($request['confirm'])) and !$cart->getInCheckOut()){
$cart->confirmDone();

if(($task == 'confirm' or isset($request['confirm'])) and !$cart->getInCheckOut()){
$cart->checkoutData(false);
$cart->confirmDone();






我的英语不好,但是希望这会有所帮助。


My English is bad, but hope this will helpful.

推荐答案

不再需要黑客。 VirtueMart 3.0.10没有双重确认。只需在VirtueMart配置中检查 OPC和 Ajax for OPC-选项卡 checkout。
如果您选择了运输和付款并选中了TOS按钮,则立即结帐按钮将切换为确认购买。
单击即可完成。

There is no need for hacks anymore. VirtueMart 3.0.10 doesn't have double confirmation. Just check "OPC" and "Ajax for OPC" in the VirtueMart configuration - tab "checkout". If you have chosen shipping and payment and checked the TOS button, the "Check Out Now" button switches to "Confirm Purchase". One click and it is done.

最佳做法是删除旧的替代项并使用原始的VirtueMart文件。将所有自定义更改应用于新的原始文件。

Best practise will be to delete your old overrides and use the original VirtueMart files. Apply any custom changes to the new original files.

这篇关于advantagemart 3.0.10在结帐时禁用双重确认的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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