VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Biggreuda on November 27, 2011, 20:09:18 PM

Title: Solved: Possible to buy products without price - not good
Post by: Biggreuda on November 27, 2011, 20:09:18 PM
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? :)
Title: Re: Possible to buy products without price - not good
Post by: JtouchMobile.com on November 28, 2011, 04:21:20 AM
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 ;)
Title: Re: Possible to buy products without price - not good
Post by: Biggreuda on December 03, 2011, 19:32:55 PM
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] > ) {