VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: woop on April 18, 2013, 16:20:44 PM

Title: custom attribute input number and multiply it by value entered
Post by: woop on April 18, 2013, 16:20:44 PM
Hi guys!

I´m posting because I didn´t find any info after many hours of search in the forum and on Google.

I´m looking for a way to show as cart attribute and input type where the user types (not select!) a number and this gets as a cart attribute whith the value calculated as "number entered"+"value (cost) defined on the backoffice for this attribute"

To show the especific example let´s imagine a customer want to buy an Air Conditioning system and wants also the instalation, so he has to enter how many meters of iron tube the instaler has to bring to his house (so this is the number of meters the customer will buy) in order to be able to do the intalation of the purchased item.

Expert developers, please help me out to find an answer to this threath!

Thanks in advance for all your help :)
Title: Re: custom attribute input number and multiply it by value entered
Post by: John2400 on April 19, 2013, 00:23:38 AM
http://extensions.virtuemart.net/products/quantity-related-price-calculation-detail

or
http://extensions.virtuemart.net/products/custom-size-detail
Title: Re: custom attribute input number and multiply it by value entered
Post by: woop on April 19, 2013, 12:32:26 PM
Hy Jhonn, I´ve seen the plugins you showed me, but they do not do what I need due the work or just for sizes (textil industries) or creating discounts depending the cuanty purchased.

What I´m looking for is for a way to create custom cart variant fields for a product that:
I hope I could explain myself better now.

If someone has an idea, please let me know!! ;)

Quote from: John2400 on April 19, 2013, 00:23:38 AM
http://extensions.virtuemart.net/products/quantity-related-price-calculation-detail

or
http://extensions.virtuemart.net/products/custom-size-detail
Title: Re: custom attribute input number and multiply it by value entered
Post by: woop on April 23, 2013, 18:50:47 PM
Hi dudes!!!

So there was no reply or solution to my problem I´ve develop the VM2 custom plugin that give me the exact funtionallity I was looking for.

Attached in this post I give to whoever needs it the .zip with the plugin files. I´ve tested it with the VM2.0.20b but it should work with any version of VM2 :)
Just install the plugin via normal way of intalling plugins on Joomla and remember to activate it on the Joomla plugin manager.

The way that this works:

Now I´ll post this plugin on the developers board so if the Virtuemart Team considers to put it with the next VM2 version as a native funtuonallity everybody will be able to use this custom plugin function if needed :)

Best regards to all!!

[attachment cleanup by admin]