News:

Support the VirtueMart project and become a member

Main Menu

Solved: Possible to buy products without price - not good

Started by Biggreuda, November 27, 2011, 20:09:18 PM

Previous topic - Next topic

Biggreuda

Hi there,

in our old shop, we have some products without price.
Virtuemart doesn't show an "Add To Cart" button there and instead of the price label, there is just a link that says "Please ask for the price", that will open up the "Ask a question about the product" form.
Now, after we've imported all those products im vm 2, you can just buy these products for free -> and that is not our goal ;)

Any tipps, how to recreate the old way? :)

JtouchMobile.com

Hmm, not sure what the right way is but my solution is create a new details page (template) without "Add to cart" button and assign to the product you want by edit product's details ;)
Author of Jtouch - Mobile solution for Joomla & VirtueMart
http://www.jtouchmobile.com

Biggreuda

I'm not the one creating and updating the products and descriptions and the ones responsible for that wouldn't get that right ;)

I just altered the code on my flypage:
<?php // Add To Cart Button
if (!VmConfig::get('use_as_catalog',0) and $this->product->prices[salesPrice] > ) {