VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: laurentkreps on January 23, 2013, 18:49:30 PM

Title: Cart price show the price without customfields value
Post by: laurentkreps on January 23, 2013, 18:49:30 PM
Hello,

I'm sorry if this topic has been treated a lot of times, but I looked for a very long time, I tried everything suggested in this forum and nothing works for me.

I've a product, actually a kind of pie.

I tried 2 ways:

- I set a price for a 8 people pie and I added a custom field with "1 more slice, 2, 3,...". I set a price of 32 € for the basis product and a multiple of 4 euros for each item in the custom field list. When I try to buy this item, it only take the basis price, whatever item I select in the list. When I confirm my cart and try to order, I can see on the component cart (not the module) that the custom field value isn't part of the final price but is listed below "discount"...

- I set a price of 0 for my pie and a list of custom fields (8 people pie, 9, 10,...) with the corresponding price. In this scenario, I only get a "call for price button"...

Any help would be very appreciated...

I've the Virtuemart 2.0.18a component (Joomla 2.5.8)

Title: Re: Cart price show the price without customfields value
Post by: laurentkreps on January 24, 2013, 17:02:59 PM
Hello again,

I tried a lot of thing and I found something weird: when I buy my product and select and option of my custom field list, (I've checked the display of all the price format VAT, base price, ...) then under the total, the good price appears with a stroke and only the basis price is shown. I think that the value of the selected custom field option is considered as a to be added to the basis price and also as a discount ??

Many thanks for your help....
Title: Re: Cart price show the price without customfields value
Post by: PRO on January 24, 2013, 17:37:59 PM
what prices are enabled? in your price config?
Title: Re: Cart price show the price without customfields value
Post by: laurentkreps on January 24, 2013, 20:25:07 PM
All of them.... And in the virtuemart cart module it's the same problem...
Title: Re: Cart price show the price without customfields value
Post by: PRO on January 24, 2013, 22:26:38 PM
please post a url to the problem
Title: Re: Cart price show the price without customfields value
Post by: laurentkreps on January 25, 2013, 08:27:08 AM
Hello,

I'm afraid it's in french only at this stage:
http://www.stardustathome.be/index.php/produits-services/gouter-et-accessoires/gateau-au-chocolat-8-enfants-detail

The HT price is ok but as I said, the custom field acts as a discount...



[attachment cleanup by admin]
Title: Re: Cart price show the price without customfields value
Post by: PRO on January 25, 2013, 21:25:00 PM
what do you want to happen?

I think you might need to use "child products"

if you want the custom field to be   
=  instead of +
Title: Re: Cart price show the price without customfields value
Post by: laurentkreps on January 25, 2013, 23:09:57 PM
No, actually, the price without taxes is ok, but the final price is not; it is the basis price (the price without the custom fields)
Title: Re: Cart price show the price without customfields value
Post by: laurentkreps on January 26, 2013, 13:46:46 PM
Hello,

Actually, with parent / child custom fields, I got the same problem; the HT price of the product is good, but the Final salesprice is still equal to the baseprice (in fact, the final saleprice is always the same, whatever the child/parent or other type of custom fields is selected)

The "Baseprice with Tax, but without discounts" is correct, however but if I ask in the config to show only this one, it is not showed in the product details page, the cart show only the baseprice and the "resume order" page show the good price but with a stroke on it.

Worse, if I choose to show only the discount, it shows the exact value of the selected custom field...

So, I really think my problem is that my virtuemart take the custom field as a discount (in fact, I would like the field to work as a surcharge, or as a replacement price).

I really hope somebody will be able to understand my issue (at least, my exact problem considering my poor English...)

Many thanks
Title: Re: Cart price show the price without customfields value
Post by: PRO on January 26, 2013, 15:06:34 PM
what happens when you disable the template overrides?
Title: Re: Cart price show the price without customfields value
Post by: laurentkreps on January 27, 2013, 10:42:38 AM
It changes nothing, my template override is little less than a copy paste of some views in my template folder;

I only change 2 or 3 lines (only css stuffs)
Title: Re: Cart price show the price without customfields value
Post by: PRO on January 28, 2013, 17:02:31 PM
is it working now? I see changes on the page
Title: Re: Cart price show the price without customfields value
Post by: laurentkreps on January 28, 2013, 17:13:44 PM
Hello,

yes, I think so, but not the way I was trying; I use a plugin custom fields and this way it seems to work... I still think something isn't working properly the other way, but it works and it's all I can ask for.

Thank you very much for your help