简体   繁体   English

Virtuemart-添加到购物车,无价格

[英]Virtuemart - add to cart, without prices

I'm trying to change some of the Virtuemart code, so I can show items and add them to cart, but without prices. 我正在尝试更改一些Virtuemart代码,因此我可以显示商品并将其添加到购物车中,但没有价格。 The whole checkout process should be the same, but the purchase order has to be sent without prices(more like a 'quote'). 整个结帐过程应该相同,但是必须不带价格发送采购订单(更像是“报价”)。

It is a requirement of a project I'm working on. 这是我正在从事的项目的要求。 I've already seen that the action of showing prices is directly attached to the 'add to cart' functionality, so If anyone can suggest some hint about how to separate these 2 functionalities it will be a great help. 我已经看到显示价格的行为直接附加到“添加到购物车”功能中,因此,如果有人可以提出一些建议,以提示如何将这两种功能分开,则将大有帮助。 Thanks 谢谢

为什么不删除在购物篮,结帐页面和订单电子邮件中显示价格的HTML / PHP?

Better yet, you can use CSS to hide the price fields so you don't have to touch any of the code or create new theme files. 更好的是,您可以使用CSS隐藏价格字段,因此您无需触摸任何代码或创建新的主题文件。 It should be as easy as adding this to your stylesheet - 就像将其添加到样式表一样简单-

span.productPrice{display:none;}

Worked.. you have to find the theme.css in components/com_virtuemart/themes/yourtheme 工作..您必须在components / com_virtuemart / themes / yourtheme中找到theme.css

I just added the !important in the end and it worked.. 我只是在最后添加了!important,它起作用了。

span.productPrice{display:none; span.productPrice {display:none; !important} !重要}

Of course that doesn't hide the price from the card.. but that is another thing to be solved 当然,这并不能掩盖卡中的价格。但这是需要解决的另一件事。

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

相关问题 Virtuemart 2 / Joomla 2.5.4浏览页面上的Virtuemart添加到购物车按钮 - Virtuemart Add To Cart button on browse page for Virtuemart 2/Joomla 2.5.4 Virtuemart 2-将产品图片添加到“添加到购物车”弹出窗口 - Virtuemart 2 - Add the product image to the “add to cart”-popup Virtuemart 添加到购物车、价格详情等未出现 - Virtuemart add to cart, price details etc not appearing “添加到购物车”按钮无法正常工作功能众筹2-Joomla 2.5 - “Add to cart” button not working virtuemart 2 - joomla 2.5 ConstanceMart添加到购物车中的其他组件按钮 - virtuemart add to cart button in other component 如何将带有价格的产品选项添加到CodeIgniter购物车 - How to Add product options with Prices to CodeIgniter Cart 当ps_cart-> add()返回false时,Virtuemart失败 - Virtuemart fails when ps_cart->add() returns false 加入购物车后,Virtuemart 2.6.6返回同一页面 - Virtuemart 2.6.6 Return to same page after add to cart Virtuemart 2-我怎样才能通过venuemart_product_id将商品添加到购物车会话中? - Virtuemart 2 - How i can add item into cart session with virtuemart_product_id? 禁用JOOMLA 1.7中的evinessmart组件的添加到购物车按钮上的弹出窗口 - Disable popup on add to cart button of virtuemart component in JOOMLA 1.7
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM