Author Topic: Solved: Possible to buy products without price - not good  (Read 2307 times)

Biggreuda

  • Beginner
  • *
  • Posts: 36
Solved: Possible to buy products without price - not good
« 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? :)

JtouchMobile.com

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 96
  • Mobile Solutions for VirtueMart 2
    • JtouchMobile.com
Re: Possible to buy products without price - not good
« Reply #1 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 ;)
Author of Jtouch - Mobile solution for Joomla & VirtueMart
http://www.jtouchmobile.com

Biggreuda

  • Beginner
  • *
  • Posts: 36
Re: Possible to buy products without price - not good
« Reply #2 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:
Code: [Select]
<?php // Add To Cart Button
if (!VmConfig::get('use_as_catalog',0) and $this->product->prices[salesPrice] > ) {