News:

Support the VirtueMart project and become a member

Main Menu

Custom field without increase

Started by kernel, November 21, 2012, 14:40:05 PM

Previous topic - Next topic

kernel

Hi all!

I've been searching the forum but in spite of there is much information about custom fields, I have not seen anything about modifying its operation.

Let me explain with the following example:
- Custom fields operate as follows. The product A size 1 cost 10€, product A size 4 15€ and product A size 7 20€.

In the flypage, appear this:
Product A: 10€
Product A size 1-> 0€.
Product A size 4 -> +5€.
Product A size 7 -> +10€.
Cart: Product A size 4 15€

Would it be possible to eliminate the increased of custom field? Is possible to do this?:
Product A: 10€
Product A size 1 -> 10€.
Product A size 4 -> 15€.
Product A size 7 -> 20€
Cart: Product A size 4 15€

That is, it would be possible to have in the list price and the final price is not increased?

Thanks!

chetanmadaan

This is kind of possible with core hacking i would say.

what you would need to do is remove product size A from the custom fields list as it is default and then hack the plugin to show the actual amount instead of +5

so, if it should +5 and the product price if $10... there is an option it can show $15 there by hacking the core plugin.