VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: pmielcza on September 03, 2015, 10:43:36 AM

Title: Changing the price of the product promotion while an additional parameter change
Post by: pmielcza on September 03, 2015, 10:43:36 AM
Sorry for the incorrect English
I have a product:
http://www.mebel-partner.pl/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=514
VirtueMart 2 + Joomla 2.5

the product has certain qualities ... among others The height where the change this trait to change the prices.


The problem is that the standard is such that as the product is in promotion (price overwritten) is the final price (which is channeled to the basket) does not include the additional price resulting from the specific characteristics: ie I am a product whose price promotion (overwritten) is 219,00 - choose change the amount of 20.00 - a price index remains at 219.00. Changes only the price crossed (the base).

In what file and how it is passed on the price of the card product to the cart. How could influence it.
Title: Re: Changing the price of the product promotion while an additional parameter change
Post by: GJC Web Design on September 03, 2015, 10:50:06 AM
the price over ride (in the product management) is an over ride.. it over rides everything .. it is the final price ignoring all other discounts

If you want to have a discount that interacts with custom fields etc you need to make your discount as a tax and calc rule
Title: Re: Changing the price of the product promotion while an additional parameter change
Post by: pmielcza on September 03, 2015, 18:02:24 PM

This is not correct in our trade.
I'm interested in where information is recorded about the price and the product after you click add to cart. What script is responsible for that?
There could improve what price should be put in the basket.
Title: Re: Changing the price of the product promotion while an additional parameter change
Post by: GJC Web Design on September 04, 2015, 00:37:38 AM
feel free.. admin->helpers/calculationh.php is the monster your after
Title: Re: Changing the price of the product promotion while an additional parameter change
Post by: pmielcza on September 04, 2015, 13:41:42 PM
Here are the functions responsible for showing the price
I'm interested in where-how when you click add to cart stored information about the selected product and its price.
That is a function of the basket.
Title: Re: Changing the price of the product promotion while an additional parameter change
Post by: GJC Web Design on September 04, 2015, 13:50:35 PM
this is responsible for all pricing -- it is called by the cart helper
Title: Re: Changing the price of the product promotion while an additional parameter change
Post by: Milbo on September 06, 2015, 10:58:21 AM
Quote from: pmielcza on September 03, 2015, 18:02:24 PM

This is not correct in our trade.
I'm interested in where information is recorded about the price and the product after you click add to cart. What script is responsible for that?
There could improve what price should be put in the basket.

Why do you want to invent the wheel again. All of this is already there. The prices in the cart are created by the product, else a shopper could spoof the form and set his own price for a product. Therefore the prices are taken from the product. If you want to modify the prices, use customfields. You can also write your own plugin and add it as customfield, then you can do whatever you want.
Title: Re: Changing the price of the product promotion while an additional parameter change
Post by: pmielcza on September 08, 2015, 11:57:45 AM
Hi Milbo,
Prices can not only come from the product because the price varies depending on which option the user chooses. Still I have not found a function and where he is responsible for transferring money from card product (the à variant) to the basket.