Author Topic: (Solved) Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order  (Read 31562 times)

lipes

  • Full Member
  • ***
  • Posts: 720
Default Joomla + Virtuemart Template, no override.
Default Data instaled no change.

The price is allways the same....
Only change in Product Details area  :-[
but not in the Cart final price
VM V. online: J2.5.14 | VM 2.0.20a | SQL 5.1.70 | PHP 5.3.25

patrik60

  • Guest
I can confirm this issue. The price is only changing in deatils page but not in the cart.
J 2.5.4, VM 2.0.7d

lipes

  • Full Member
  • ***
  • Posts: 720
I dont understand yet why this is not working easily...
cant find solution... Tutorial or a Manual
i read many posts here in the forum... but no solution to get the product Custom Field Price in the Cart Check out...
VM V. online: J2.5.14 | VM 2.0.20a | SQL 5.1.70 | PHP 5.3.25

patrik60

  • Guest
It was working fine with VM 2.0.6

lipes

  • Full Member
  • ***
  • Posts: 720
work fine if we got only 1 Custom Field option ..
tested here too:  http://outros.net23.net/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=8&virtuemart_category_id=2

if you add a cart variant... like different Sizes (Custom Field)... the Cart will give you always the same price in the final checkout :S

I've removed the other default Custom Fields in the product "Circular Saw"
And now i just got the Size custom Field (Cart Variant) .. the problem persist when we add the value: "Default No aditional charge" or the "Size 40 51,70€"

We always get the price (to any option) with the cart Total: 237,37 €

argh.. this is a bug or not!? i dont know what i could do more in the configuration.. i need some support feed back to say something just like "yes it's a bug", "no it's a problem in your VM configuration", "yes, just try this hack..", "no solution yet for that".. etc...
 :'(
VM V. online: J2.5.14 | VM 2.0.20a | SQL 5.1.70 | PHP 5.3.25

milemaker

  • Beginner
  • *
  • Posts: 16
same problem after upgrade to VM 2.0.7

cart variant price works fine on product level in cart it is no longer reflected however.

basic example here: http://jaimelesmacarons.co.nz/online-shop

Joomla! 2.5.4 / VM 2.0.7.d


Chris D

  • Beginner
  • *
  • Posts: 3
Hi Guys,

I have a site running Virtuemart 2.0.7d with Cart Variant drop downs on a couple of products. We have now discovered that while the order goes through for these products and the attribute is added, the value of the custom field on the order is incorrect and is set to the default rather than what the customer selected. Below is what is been saved into the virtuemart_order_items table.

{"26":" <span class=\"costumTitle\">Please Select Size<\/span><span class=\"costumValue\" >16x231#10\/70 <\/span>"}

Regards,
Chris

lipes

  • Full Member
  • ***
  • Posts: 720
Humm... I've discover one thing that could be usefull to some Developer or Hero Member could help us...

1st option) In the Front End website (index.php) i've got the mod_virtuemart_product active and i dont have Custom Fields (below the products because i've deleted the code in helper.php)..  if I click in the "add to cart" button the product it's added with the correct value in the Cart and in the Checkout the price is Correct!

2nd option) In the Product Category List view I dont have products Custom Fields options displayed in the product too... so if i click in the "add to cart" button the product it's added correctly to the Cart with the correct  and normal price... and in the Checkout had also the price Correct!

3rd option) The Problem it's here.... in the Product Details View ...
I got the Custom Fields option displayed in this view ... and Costumers can choose 2 options:
1 - empty field value "0" for the product normal price;
2- Extra product warranty... that will increase the product price with "+10";

If Costumer select Extra warranty.. works correct!
BUT if Costumer click in "Add to cart" button with the first option selected -> Normal Price "0"...
The price it's always the 2nd: Product Price + Extra warranty +10 ... this is incorrect! should be only the product price for normal option....

UPDATE: discovered another thing about the problem:

In the administration area (in the product with that Custom Field) if we change the Order of the 'Custom Field Type' ...
The price will be different.. But the other options in Custom Field will not work.


So what could be done to solve this?
VM V. online: J2.5.14 | VM 2.0.20a | SQL 5.1.70 | PHP 5.3.25

lipes

  • Full Member
  • ***
  • Posts: 720
until the 2.0.6a
I've just did more previous instalations of VM2 versions (2.0.7 (a,b,c,d), 2.0.6 (a), 2.0.5 and 2.0.4) in my localhost just to Test the Custom Field in the Circular Saw product... with 'Cart Variant'
* the media image files types are working good JUST in the 2.0.4 VERSION.... but since 2.0.5 until nowdays (2.0.7D) they arent instaled correctly in the sample data because it miss the file type '.jpg' in the end of the filelll
 
Well.. for Custom Fields.... In the Version 2.0.4, 2.0.5, and 2.0.6 and 2.0.6a Custom Fields are working EXCELENT .....
See it (VM - Shopping cart ):
228,73 € 1 x Circular Saw Size : Normal
280,43 € 1 x Circular Saw Size : 60
254,58 € 1 x Circular Saw Size : 50
3 products Total : 763,73 €
Show Cart

Its strange because online (http://outros.net23.net/) i am with 2.0.6 and it's not working  :-\

For 2.0.7 File com_virtuemart.2.0.7_ext_aio.tar.gz is not possible install in my localhost .. gives me an error:  "There was an error uploading this file to the server. Unable to find install package"
So i cant see/test 2.0.7 and i've jumped to 2.0.7a

So here start the problems.... in the Shopping cart ...
320,57 € 1 x Circular Saw Size 150
320,57 € 1 x Circular Saw Size 50
Total : 641,14 €

we cant choose the Size... with a correct Value ....
VM V. online: J2.5.14 | VM 2.0.20a | SQL 5.1.70 | PHP 5.3.25

uschmi

  • Jr. Member
  • **
  • Posts: 108
until the 2.0.6a
I've just did more previous instalations of VM2 versions (2.0.7 (a,b,c,d), 2.0.6 (a), 2.0.5 and 2.0.4) in my localhost just to Test the Custom Field in the Circular Saw product... with 'Cart Variant'
* the media image files types are working good JUST in the 2.0.4 VERSION.... but since 2.0.5 until nowdays (2.0.7D) they arent instaled correctly in the sample data because it miss the file type '.jpg' in the end of the filelll
 
Well.. for Custom Fields.... In the Version 2.0.4, 2.0.5, and 2.0.6 and 2.0.6a Custom Fields are working EXCELENT .....
See it (VM - Shopping cart ):
228,73 € 1 x Circular Saw Size : Normal
280,43 € 1 x Circular Saw Size : 60
254,58 € 1 x Circular Saw Size : 50
3 products Total : 763,73 €
Show Cart

Its strange because online (http://outros.net23.net/) i am with 2.0.6 and it's not working  :-\

For 2.0.7 File com_virtuemart.2.0.7_ext_aio.tar.gz is not possible install in my localhost .. gives me an error:  "There was an error uploading this file to the server. Unable to find install package"
So i cant see/test 2.0.7 and i've jumped to 2.0.7a

So here start the problems.... in the Shopping cart ...
320,57 € 1 x Circular Saw Size 150
320,57 € 1 x Circular Saw Size 50
Total : 641,14 €

we cant choose the Size... with a correct Value ....

I can confirm that! Had the same problem with all 2.0.7 versions and switched back to 2.0.6a for that reason...

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9607
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3

For 2.0.7 File com_virtuemart.2.0.7_ext_aio.tar.gz is not possible install in my localhost .. gives me an error:  "There was an error uploading this file to the server. Unable to find install package"


As long you are not installing the correct aio, of course the extensions do not work. Please use the manual install, that means upload it to to the tmp directory and choose installation from local directory.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

lipes

  • Full Member
  • ***
  • Posts: 720
For 2.0.7 File com_virtuemart.2.0.7_ext_aio.tar.gz is not possible install in my localhost .. gives me an error:  "There was an error uploading this file to the server. Unable to find install package"
As long you are not installing the correct aio, of course the extensions do not work. Please use the manual install, that means upload it to to the tmp directory and choose installation from local directory.

Hi Milbo. But all other files were installed correctly from 2.0.0.. to 2.0.7 D.... except the file "com_virtuemart.2.0.7_ext_aio.tar.gz"  was the first instalation error in my localhost ...
Right now I think no matter back to "2.0.7" when I'm yet testing the version "2.0.7 D"... and possibly the version 2.0.8 will be there in  next days, correct?

I've also posted some things (but i dont know if some Developer read the post's) that i've checked that is not working on 2.0.7 D like:
- "Manufacturer Description text" below the Mf name ( http://forum.virtuemart.net/index.php?topic=102700.0 )
- Filtering the Category name in administration area ( http://forum.virtuemart.net/index.php?topic=103428.0 )
- Did one idea/request to have 1 msg when there is no products inserted in front end of the Category.. ( http://forum.virtuemart.net/index.php?topic=103421.0 )
- The Custom Fields are not working like the 2.0.6 * (i think this is important)
- 2 ideas/request on the Module VM Products, (1) about multiple category selection of the products in display * (important) and... (2) the other is the possibility to choose to display or not, the custom fields and quantity box in this module ( http://forum.virtuemart.net/index.php?topic=102445.0 )

PS: I like the ideia that you and more users talked in the road map post about to "set a standard country" this could be usefull to the costumers ( http://forum.virtuemart.net/index.php?topic=103378.msg343449#msg343449 )

Best Regards
VM V. online: J2.5.14 | VM 2.0.20a | SQL 5.1.70 | PHP 5.3.25

Chris D

  • Beginner
  • *
  • Posts: 3
Ended up finding the fault on line 802 in administrator/components/com_virtuemart/models/orders.php, changed this
Code: [Select]
foreach($variantmods as $variant=>$selected){to
Code: [Select]
foreach($variantmods as $selected=>$variant){

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9607
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Is this still valid for 2.0.7E?

Imho I changed it the opposite at the other cases, so... please recheck.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9607
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
As long you are not installing the AIO, you are tests are useless. it cant work. When you have problems to install tar.gz, just extract it locally, upload it in the temp of your server and use install from tmp directory
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/