VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: plastique on May 09, 2012, 16:23:01 PM

Title: Custom fields - Final Price
Post by: plastique on May 09, 2012, 16:23:01 PM
Hello,

I'm struggling with custom fields the last two days.
I've create a Custom Field, Integer with Cart Attribute.

I have two options. 3kg - 15,00€ and 15kg - 70,00€.

What i need is, when the user select an option ex. 3kg - 15,00€, this price (15,00€) be the FINAL, not added to the original value.

Is this possible ? I've attach a screenshot.

Thanks in advance,
Manolis

[attachment cleanup by admin]
Title: Re: Custom fields - Final Price
Post by: plastique on May 16, 2012, 13:30:58 PM
No one ?

Is that possible ?
You know its kind difficult for my client to make calculations on every product, so just the final price would be great!

Thanks
Title: Re: Custom fields - Final Price
Post by: PRO on May 16, 2012, 13:37:36 PM
plastique

its not possible with standard custom fields,

It could be done with a plugin though.

I dont know of anyone who has developed on yet, but I know it can be done.

Title: Re: Custom fields - Final Price
Post by: plastique on May 16, 2012, 13:43:17 PM
Hey BanquetTables.pro,

You think is not possible with some "hack" not to add the value but to take it as the final price ?

Thank you
Title: Re: Custom fields - Final Price
Post by: PRO on May 16, 2012, 17:26:44 PM
Quote from: plastique on May 16, 2012, 13:43:17 PM
Hey BanquetTables.pro,

You think is not possible with some "hack" not to add the value but to take it as the final price ?

Thank you

no reason to hack, it can be done with a plugin, thats what they are for.

Title: Re: Custom fields - Final Price
Post by: tcuttrissweb on May 18, 2012, 18:31:18 PM
Totally NON-STUPID question, why the hell would I want to use a plugin for something that is so obviously a must in any store software? PEOPLE NEED OPTIONS. I am beyond frustrated with Virtuemart and the lack of ACTUAL help I can find on it.

Example: your Custom Fields Explained post. D'ya think it would be helpful if you ACTUALLY EXPAINED THEM not just tell us what we already know by looking in the frigging component?

All I want to be able to do is like this other guy, have different price points for different versions of a product and have the base price equal the selection the customer chooses.  Why this functionality would NOT be included is out of this world. It's so dumb and annoying that the common store functions are just not present in this software. STARTING TO SERIOUSLY HATE IT and rethink my entire store requirements and what software to use that ACTUALLY OFFERS the functionality required. >:(
Title: Re: Custom fields - Final Price
Post by: PRO on May 18, 2012, 19:24:39 PM
Quote from: tcuttrissweb on May 18, 2012, 18:31:18 PM
Totally NON-STUPID question, why the hell would I want to use a plugin for something that is so obviously a must in any store software? PEOPLE NEED OPTIONS. I am beyond frustrated with Virtuemart and the lack of ACTUAL help I can find on it.

Example: your Custom Fields Explained post. D'ya think it would be helpful if you ACTUALLY EXPAINED THEM not just tell us what we already know by looking in the frigging component?

All I want to be able to do is like this other guy, have different price points for different versions of a product and have the base price equal the selection the customer chooses.  Why this functionality would NOT be included is out of this world. It's so dumb and annoying that the common store functions are just not present in this software. STARTING TO SERIOUSLY HATE IT and rethink my entire store requirements and what software to use that ACTUALLY OFFERS the functionality required. >:(


If you want the "equal" functionality, you will have to either find someone who has developed a custom field plugin for it, or wait on someone to.
or, I think child products can do this.


Maybe if you know some coding you can modify my custom field plugin to use "equals"
http://www.kaizenmediaworks.com/virtuemart-2-0-custom-field-dropbox-plugin




Title: Re: Custom fields - Final Price
Post by: plastique on May 18, 2012, 19:45:14 PM
I agree with tcuttrissweb, i am ready to launch the e-shop and this thing holds me back 3 weeks now.
It's something i think that should be the default.

But in anyway (tcuttrissweb)  there's no need to be upset and talk like that.

Quote from: BanquetTables.pro on May 18, 2012, 19:24:39 PM
or, I think child products can do this.

Can you please provide some help with this ? Because i can't get either child products to work.

Thank you.
Title: Re: Custom fields - Final Price
Post by: PRO on May 18, 2012, 21:12:11 PM
Quote from: plastique on May 18, 2012, 19:45:14 PM
I agree with tcuttrissweb, i am ready to launch the e-shop and this thing holds me back 3 weeks now.
It's something i think that should be the default.

But in anyway (tcuttrissweb)  there's no need to be upset and talk like that.

Quote from: BanquetTables.pro on May 18, 2012, 19:24:39 PM
or, I think child products can do this.

Can you please provide some help with this ? Because i can't get either child products to work.

Thank you.

i do not use child products,

try this

http://forum.virtuemart.net/index.php?topic=100480.0
Title: Re: Custom fields - Final Price
Post by: Milbo on May 20, 2012, 16:22:49 PM
LoL, sorry, I dont get your problem.

Guys, the first thing you should do is to install the sample data. Then take a look on the product with id=1, we call it "Hand Shovel". There is exactly what you want since months.

Before screaming around, blaming and accusing people who debt you nothing is just ridicolous.  I say RTFM! Read the FAQ, look at the sample!
Title: Re: Custom fields - Final Price
Post by: baroen on May 20, 2012, 18:53:22 PM
You are totally right Milbo. One should allways, before shouting, RTFM!
But... on behalve of all of us posting questions on these board(s). It is not very easy to find a good answer to some basic questions. And for the sake of the manual: where is it? Where can we find the complete VM2 bible. I don't mind paying on Amazon, but it just isn't there. At least I haven't found it, not a good one at least.

I am no IT/web newby, but some VM functions are just not clear.
I understand fully that VM is free, and we can't expect the same support we get from a commercial company. But again, for that matter. I would be glad to pay, if that would mean a better support system, amongst other things.

I have migrated to VM2 recently. A lot of people adviced me to look for other solutions, since they feel VM is getting behind on Redshop for instance.

To wrap it up: VM is the current marketleader, let's make sure it stays that way!
Title: Re: Custom fields - Final Price
Post by: andyrain on May 20, 2012, 18:56:28 PM
Regarding RTFM RTFM i would love TO RTFM if there is one ????????????.

Time is money. Going through forums is NOT commercially viable only as a last resort. 

I would love to DONATE. I get paid on results and this goes for the chain supplier, developer and customer.

I've created a online store for my wife partner. I am finding it hard work. But as this is for internal use I can just afford to
play around trying to get it to work.

I have now got two more stores to create. These involve the customer paying money for my services and this also goes for
the supplier of the goods I supply ( virtuemart ) but with the lack of RTFM and Magento has lost, lots, lotssss of RTFM books, videos
and the rest. So I really don't want to move away from Joomla and that's why I wanted to use Virtuemart. But on a commercial footing
I will have to move away. ? why is there a German book but not in English I believe the world speaks English. Even a poor Google
translation would help. We do work with a other German software house and have the same problem with communication and manuals.

So on the WISH list PLEASE can you produce a developer book as a matter of urgency. Or is the problem V2 has not been ratified as a finished
product. If so can you inform your loyal followers and don't push them away to some other product and the loss of revenue to yourselves and
your developers.
Title: Re: Custom fields - Final Price
Post by: plastique on May 21, 2012, 10:36:02 AM
LoL, ok.

WTFM ?
Title: Re: Custom fields - Final Price
Post by: lipes on May 28, 2012, 16:47:33 PM
is there a manual or tutorial link of VM2 Custom Fields ?

I've done 7 or 8... VM2 instalations and i never cant get Custom Fields working ... i think this is not so easy to do...
or maybe i am missing something in the configuration.

1) I dont have template override.
2) I am using the Default VM2 Sample Data.
3) In the Circular Saw if i Change the Size (Custom Field) the Final Price changes (automatic) in the Product Details view.... works great! -> but..........
But then we click in "Add to Cart" ...
we could see that in the Cart checkout the "Circular Saw" got allways the same default price...
not what we want....price + custom field
test demo: http://outros.net23.net/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=8&virtuemart_category_id=2

how to solve this?
Title: Re: Custom fields - Final Price
Post by: mowgs on May 29, 2012, 13:22:51 PM
Quote from: Milbo on May 20, 2012, 16:22:49 PM
LoL, sorry, I dont get your problem.

Guys, the first thing you should do is to install the sample data. Then take a look on the product with id=1, we call it "Hand Shovel". There is exactly what you want since months.

Before screaming around, blaming and accusing people who debt you nothing is just ridicolous.  I say RTFM! Read the FAQ, look at the sample!

While I also understand that VM is a free piece of software, I agree with andyrain completely.

I would also like to add that I think that the above reply to some questions by your user base is completely inappropriate.  The above statement epitomises the way that the VM team appear to be handling various issues with VM2 - by denying that there is a problem, then blaming the users for not understanding, followed by trying to fob us off with readiung a manual, which is based on features that do not work as written, or not at all.

Any product, whether free or not is only as good as its support.  In any transaction, whether money changes hands or not, the customer is always right.

If a large number of your users (customers) are unable to get features that they consider to be essential working, then it is VM that have it wrong, not us. 

If you bought a TV and it only recieved half the channels, you wouldnt expect the TV shop to skip past all the missing channels, tell you that all the channels are there, and that you obviously dont know much about TVs!

The amount of help and support from other users on this forum is exceptional - even though there is still a huge amount of trial and error being banded about by people in an attempt to make a shoddy system work.

I started working on several customer sites in VM based on good experiences I'd had with earlier versions, and needing to change my servers setup in order to use Magento.  I was unaware of the setbacks that would arise by my choice and wish I'd bitten the bullet and gone with Magento.  Even tiny wordpress based ecommerce themes have the common sense features working properly.

Im too far in to change now, but I cant comfortably suggest that any clients use the VM2 extension until it is working properly.

Sorry for the rant, but the tone of that last comment just completely rattled me.
Title: Re: Custom fields - Final Price
Post by: bitstomper on May 29, 2012, 23:24:29 PM
You can have a look at how I managed to create custom calculations. Results get passed to the cart. In my case I had to write complex calculation for calculating pricing for curtains depending on a few factors including user input for width and height.
The solution is here: https://forum.virtuemart.net/index.php?topic=103218.msg342817#msg342817 (https://forum.virtuemart.net/index.php?topic=103218.msg342817#msg342817)

It is worth checking out for some of you as you will understand structure of VM and how it deals with prices better.
Took me several days of digging.

Wish some developer would finally write a nice developers manual with this sort of stuff!!
Anyhow, hopefully this will help some people avoid a few headaches.

Title: Re: Custom fields - Final Price
Post by: dorriGa on August 04, 2012, 08:51:20 AM
I was testing and found a little solution.

the code change is the file adminstrator/componente/com_virtuemart/models/customfields.php

line 841 aprox, for no FREE word, and show the corrent price in custom field

$free = JText::_ ('COM_VIRTUEMART_CART_PRICE_FREE');

chenge to   
$free = round($product->product_price,2) . "$" ;   


and for show final price, change every line like that:


$price = strip_tags ($currency->priceDisplay ($calculator->calculateCustomPriceWithTax ($productCustom->custom_price)))  ;

change to:

$price = strip_tags ($currency->priceDisplay ($calculator->calculateCustomPriceWithTax ($productCustom->custom_price))) + round($product->product_price,2) . "$" ;

(https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/418330_10150827827788078_941386021_n.jpg)


Problems.. with two extra field, its a mistakle with the diferents values in another list. between custom field list and the anoter, dont change on the fliy the values.

Not work with two or more extra fields.... help any idea?



saludos!!

sorry my english, spanish its my first lenguage.
Title: Re: Custom fields - Final Price
Post by: Tommi on November 15, 2012, 18:07:00 PM
Hi,
I have a problem. I need show final price in dropdown.
Please, see the attachment.
Can you help me?

A have a latest VM version.

[attachment cleanup by admin]
Title: Re: Custom fields - Final Price
Post by: dorriGa on December 01, 2012, 01:41:51 AM
I use this custom fields for the full prices, but this only work for a single list, multiple lists prices get errors.
make a backup of customfields.php and upload this one attach
/administrator/components/com_virtuemart/models/

[attachment cleanup by admin]
Title: Re: Custom fields - Final Price
Post by: cerhio on March 20, 2014, 00:58:16 AM
Quote from: Milbo on May 20, 2012, 16:22:49 PM
LoL, sorry, I dont get your problem.

Guys, the first thing you should do is to install the sample data. Then take a look on the product with id=1, we call it "Hand Shovel". There is exactly what you want since months.

Before screaming around, blaming and accusing people who debt you nothing is just ridicolous.  I say RTFM! Read the FAQ, look at the sample!

In Hand Shovel there are few products. I have to create many child items with own descriptions. In my case about 50. Thats a long story. I need one description and photo, for exampe HDD Seagate...
and list of options 100mb 200 mb 300 mb etc. 

And I need to set final price without +- calculations
100mb = 5usd
200mb = 7 usd

etc.

How can I manage this?