News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

How to handle completely free products

Started by AlexJ, July 14, 2012, 21:18:24 PM

Previous topic - Next topic

AlexJ

Hi there!

I'm working on a site for the Swedish Brain Tumor Association. For simplicity I would love to have Virtuemart handle the ordering of free products like brochures and other info material that is completely free. We have products for sale as well so I do need a web shop solution...

So what i need is a Payment method that skips connecting to a payment service and just registers the order + sends the emails. I have searched the internet for a couple of hours without any luck, so before I'm starting to create a solution myself I hope there is one, or at least a hint, out there somewhere  ;)

Virtuemart 2.0.8c
Joomla! 2.5.6
Virtuemart 2.0.8e
Joomla! 2.5.6

Rune Rasmussen

The needed payment module is already there, it's just a matter of configuration.

Use 'VM - Payment, Standard'
Name it 'Free Products' or whatever you want.
Set a value for 'Max amount' to t.ex. 0.00001 in order to hide this "payment choice" if the cart contains products with a price.
Similar you can set a 'Min amount' on the other payment choices, in order to hide them if there is only free products in the cart.


Another solution if those are digital docs, is to add a download link directly in the product description. E.g. by using JCE or other extension supporting easy insert of downloads. Plus making a custom 'Product display page', without the 'Buy' button and other info you don't need to display on those "products".
Rune Rasmussen - https://www.syntaxerror.no/

Norwegian Translation Team

guayo

Quote from: rued on October 25, 2012, 11:07:44 AM
The needed payment module is already there, it's just a matter of configuration.

Use 'VM - Payment, Standard'
Name it 'Free Products' or whatever you want.
Set a value for 'Max amount' to t.ex. 0.00001 in order to hide this "payment choice" if the cart contains products with a price.
Similar you can set a 'Min amount' on the other payment choices, in order to hide them if there is only free products in the cart.


The method rued sugested sounds perfect. I did that but still, the add to cart button is not showing up beacuse the prie is set to 0. What should I do to get virtuemart to display the add to cart button and let users buy the product?

Thanks in advance! And, Rued, thanks for the tip!

Rune Rasmussen

If I remember correctly, there is a choice in configuration to display add to cart when the price is 0 - or more correctly an option to disable the call for price display. Look at the price settings in your stores config. And/Or if needed, make a new template for those products to force display of buy button...
Rune Rasmussen - https://www.syntaxerror.no/

Norwegian Translation Team

guayo

Thanks for the tip!
I made a new template for the free products category, and replaced the price for a free badge...
It works for me!