简体   繁体   English

Virtuemart:如何使链接“ Show Cart”动态化?

[英]Virtuemart: How to make link “Show Cart” dynamic?

I have link "Show cart" static now http://www.baytires.com/index.php?page=shop.cart 我现在有静态的“显示购物车”链接http://www.baytires.com/index.php?page=shop.cart

How can I make it dynamic, based on items added? 如何根据添加的项目将其动态化?

Without looking at the code specifically, there is already a conditional statement in there based on the number of products in the cart since it displays "Your Cart is currently empty." 在没有专门查看代码的情况下,由于购物车中显示的商品为“您的购物车当前为空”,因此已经存在基于购物车中产品数量的条件语句。 until you put something in it. 直到您在其中放东西。 Find that part in the code and copy the logic for use on the link. 在代码中找到该部分,然后复制逻辑以供链接使用。

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

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