简体   繁体   中英

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. 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. 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

I just added the !important in the end and it worked..

span.productPrice{display:none; !important}

Of course that doesn't hide the price from the card.. but that is another thing to be solved

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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