简体   繁体   English

定制德美购物车

[英]Customising virtuemart cart

I would like to customise the add to cart and actual checkout processes of the latest version virtuemart and Joomla 2.5. 我想自定义最新版本的evinessmart和Joomla 2.5的添加到购物车和实际结帐流程。

The first thing i want to do is to change it so that when a product is added to the cart, instead of the JS popup box i want it to redirect straight the the first stage of the checkout. 我要做的第一件事就是更改它,以便在将产品添加到购物车时,而不是JS弹出框时,我希望它直接重定向结帐的第一阶段。

Then i want to split the checkout into 4 pages starting with the user entering their details, then viewing the cart, payment and confirmation of the order. 然后,我想将结帐分为4页,从用户输入详细信息开始,然后查看购物车,付款和订单确认。

I'm not expecting step by step instructions, just pointing the right direction. 我不期望分步说明,只是指出正确的方向。

Thanks. 谢谢。

You Can work like this, 你可以这样工作

First of all you need to redirect the add to cart to another page.then go to admin configuration. 首先,您需要将添加到购物车重定向到另一个页面。然后转到管理员配置。

VM->configuration->checkout->Display modal popup upon 'Add to cart' uncheck this. VM->配置->签出->“添加到购物车”时显示模式弹出窗口,请取消选中此选项。

then you will get first page (step of cart) ie, default_pricelist.php for VM2 and above. 那么您将获得首页(购物车步骤),即VM2及更高版本的default_pricelist.php。 Next step you can achieve with cart controller cart.php. 下一步,您可以使用购物车控制器cart.php实现。

This step is involving selection of billing and shipping address you can find the files under view/users/ two functions in controller select BT and ST. 该步骤涉及选择帐单和送货地址,您可以在视图/用户/控制器中的两个功能下选择文件BT和ST。

Also here you can define new steps by creating layout under cart view and use the cart controller. 另外,您还可以在此处通过在购物车视图下创建布局并使用购物车控制器来定义新步骤。 The final step including the layout order_done.php 最后一步包括布局order_done.php

Best of luck. 祝你好运。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM