VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Development & Testing => Topic started by: lipes on May 25, 2012, 14:46:16 PM

Title: (Solved) Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: lipes on May 25, 2012, 14:46:16 PM
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
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: patrik60 on May 27, 2012, 13:28:43 PM
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
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: lipes on May 28, 2012, 16:39:11 PM
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...
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: patrik60 on May 29, 2012, 18:28:11 PM
It was working fine with VM 2.0.6
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: lipes on May 29, 2012, 18:43:44 PM
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...
:'(
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: milemaker on June 01, 2012, 03:47:20 AM
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

Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: Chris D on June 01, 2012, 08:39:24 AM
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
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: lipes on June 01, 2012, 17:22:25 PM
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?
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: lipes on June 02, 2012, 15:57:09 PM
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 ....
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: uschmi on June 03, 2012, 23:36:54 PM
Quote from: lipes on June 02, 2012, 15:57:09 PM
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...
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: Milbo on June 05, 2012, 10:48:09 AM
Quote from: lipes on June 02, 2012, 15:57:09 PM

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.
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: lipes on June 05, 2012, 14:11:45 PM
Quote from: Milbo on June 05, 2012, 10:48:09 AM
Quote from: lipes on June 02, 2012, 15:57:09 PM
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
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: Chris D on June 11, 2012, 09:30:39 AM
Ended up finding the fault on line 802 in administrator/components/com_virtuemart/models/orders.php, changed this
foreach($variantmods as $variant=>$selected){
to
foreach($variantmods as $selected=>$variant){
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: Milbo on June 11, 2012, 13:56:20 PM
Is this still valid for 2.0.7E?

Imho I changed it the opposite at the other cases, so... please recheck.
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: Milbo on June 11, 2012, 14:01:28 PM
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
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: lipes on June 11, 2012, 14:10:50 PM
 o_O  But i always install the AIO file..
it's the 2nd needed file in the instalation like the instructions tell :-|
you could confirm in the website that it's instaled  :-/

(http://img13.imageshack.us/img13/1586/aio207e.gif)
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: uschmi on June 11, 2012, 14:56:17 PM
Not working for me too! Tested with all versions of 2.0.7a-e...
Double checked, that AIO is correctly installed, but it doesn´t work.
It works fine with 2.0.6.
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: Chris D on June 12, 2012, 02:49:51 AM
Updated to 2.0.7e and same result.
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: Milbo on June 12, 2012, 14:24:14 PM
Thank you.

There is also another error, which has the same root. There are several places in the code, which must work the same direction and it seems there was a mix before. The orders store selectedCustomfield:value, the plugins stored selectedCustomfield:selectedCustomfield,  from my point it would be logical to have custom:selectedCustomfield:value. But I didnt write that part. Anyway we must atm use what is there. For the version 2.2 we may redesign this part of the core. We use now everywhere selectedCustomfield:value or for plugins selectedCustomfield:custom. Should be backward compatible, but better for writing new plugins.

When you wanna help me in this area further, I added tags to the code "TODO productCartId" for easier finding the different places and understanding of the complex. Maybe I missed another occurence in the code, which is important. thanks for your help

Max
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: Georgios Kolomvos on June 13, 2012, 14:51:30 PM
Quote from: Chris D on June 11, 2012, 09:30:39 AM
Ended up finding the fault on line 802 in administrator/components/com_virtuemart/models/orders.php, changed this
foreach($variantmods as $variant=>$selected){
to
foreach($variantmods as $selected=>$variant){

Your correction worked fine for me (VM 2.0.7.e).
Thank you very much.
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: Milbo on June 13, 2012, 16:16:54 PM
gkolomvos, this is not all, pleasee check the svn and search for TODO productCartId. Version F is coming soon. :-)
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: Georgios Kolomvos on June 13, 2012, 17:55:58 PM
Quote from: Milbo on June 13, 2012, 16:16:54 PM
gkolomvos, this is not all, pleasee check the svn and search for TODO productCartId. Version F is coming soon. :-)
Milbo thank you for your suggestion,
I see from the SVN that you have added the //TODO productCartId code at
administrator/components/com_virtuemart/helpers/calculationh.php (line 1311)
administrator/components/com_virtuemart/models/orders.php (line 818)
components/com_virtuemart/helpers/cart.php (line 418)

Our VM2 site is still in development and since it looks like there is no problem with the current version and configuration, i will just wait for version 2.0.7.f
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: Milbo on June 15, 2012, 20:47:24 PM
That is exactly what I would like to have tested before.
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: lipes on June 16, 2012, 16:37:07 PM
Solved: custom fields are working Good in 2.0.7 F :)
approved!

with no price and with price.. when add to the cart as well and in the checkout cart area!
100% working fine.

Admin / Moderator: could remove the solved topics.
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: patrik60 on June 16, 2012, 17:27:57 PM
No, it's not really solved. Price is now ok. But there are now problems with the names of the custom fields: e.g.

red, no additional amount
yellow, +10 €

When choosing yellow, red will be put in the cart with the additional amount of 10 €
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: lipes on June 16, 2012, 17:38:04 PM
patbe absolute correct! you're right i didnt check with names value only the with +/- price values.

it's not done yet. But before 2.0.7 E the text value was working and the price wasnt.. lol :)
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: Milbo on June 18, 2012, 16:28:56 PM
Please try the attached model

or use the latest svn, should work now, question is, if it still works with the orders.


[attachment cleanup by admin]
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: lipes on June 18, 2012, 20:34:42 PM
Yep Milbo. It's solved!
I've download and instaled the file right now in ' \administrator\components\com_virtuemart\models' folder
and it's working 100%
Title: Re: (Solved) Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: Milbo on June 18, 2012, 22:41:18 PM
I think that was too early
Please try the svn, I did some changes again,  and I am not sure about it,...
Title: Re: (Solved) Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: lipes on June 18, 2012, 23:51:45 PM
i dont know how to work with the svn ( https://dev.virtuemart.net/svn/virtuemart/trunk/virtuemart/ )
we can download the files directly from the browser window ?! or we need to use the tools like SmartSVN or TortoiseSVN ?!

this rules: http://virtuemart.net/documentation/Developer_Manual/SVN_Access.html  are valid for VM 2 ?
Title: Re: (Solved) Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: John2400 on June 19, 2012, 12:00:04 PM
Hi every one,

Is this what you are talking about ?

In my cart variants for a simple product - when I change the variant and then add to cart as seen in my image - the variant is not added.

only the first variant is added to the cart .

* And if someone replies - could you be exact in what solution - I cannot use the SVN as I am not familiar with this.

Version 2.0.7 F

Changing these lines? in 2.0.7 F  back makes no difference: for me.
            //foreach($variantmods as $variant=>$selected){
            foreach($variantmods as $selected=>$variant){
            

[attachment cleanup by admin]
Title: Re: (Solved) Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: lipes on June 19, 2012, 23:20:21 PM
did you download and change the file with the new file that milbo attached ?
for me it's working now :|
using Joomla 2.5.5 and the last "test version" VM2
Title: Re: (Solved) Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: John2400 on June 19, 2012, 23:26:34 PM
I see the txt file but what exactly do I do with it.

* could you write exactly what you did - over write the file ( what file)? exactly where.
Title: Re: (Solved) Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: Milbo on June 20, 2012, 00:00:48 AM
Just try the new version http://dev.virtuemart.net/attachments/download/437/com_virtuemart.2.0.7.g_extract_first.zip
Title: Re: (Solved) Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: John2400 on June 20, 2012, 00:12:36 AM
mmm,

updated version g image attached
I think it explains itself - The variant is not adding to the cart.

I have no hacks in my codes - straight upload and test.

[attachment cleanup by admin]
Title: Re: (Solved) Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: Zer0g on June 20, 2012, 12:13:22 PM
Hi,

i've got the same problem like John2400

Joomla 2.5.6 Virtuemart 2.0.7G on php 5.2.17

EDIT: I've updated my customfields.php with Milbos version posted early in this thread and now everything seems to be working correctly
Title: Re: (Solved) Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: John2400 on June 21, 2012, 14:17:20 PM
Thanks ,

I have updated with the text - custom field and it works.
Title: Re: (Solved) Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: lipes on June 21, 2012, 16:13:06 PM
yep.. like i said the CF is 100% full working in 2.0.7.f with the Milbo customfield.txt (php)

i havent updated yet to point G version because i am searching also for a solution to display "children category" .. isnt working in all my instalations when anyone add products...

I was thinking that .G version was done about CF.... and we dont need to add/update the .txt file again..
But please anyone tell Milbo that is working with the file!
He's getting "Crazy" :P   PS: But i am much more crazy... @ many time ago.. with the children category.. ::) 
https://github.com/VirtueMart/virtuemart/commit/66b1ec30d7021506e2437942f76c62aa100d059f
...
Quote from: lipes on June 18, 2012, 20:34:42 PMit's working 100%
let's move on :)
Title: Re: (Solved) Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: John2400 on June 21, 2012, 23:05:11 PM
lipes,

Hi I updated to G and it was not fixed for me in that version.

then I copied the text file provided in this post and replaced all the files in G custom field with it and then it worked.

* so for me "G" on it's own did not fix it.
Title: Re: (Solved) Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: lipes on June 21, 2012, 23:26:05 PM
maybe its solved in the H ?
http://dev.virtuemart.net/attachments/download/440/com_virtuemart.2.0.7.h_extract_first.zip
Title: Re: (Solved) Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: John2400 on June 22, 2012, 05:51:16 AM
No sorry I have a problem,  version H

Yes the variant is now in the cart:

* the Variant does not go to the email of  the seller or buyer -

* and I need this confirmed But the emails to the buyer and seller are exactly the same? two emails but with two different email addresses. The one that is missing is the vendors (it is an exact copy of the buyers)
* I'm sure the vendors email said something like - dear (my website ) you have an order etc . - I've checked them twice and the  Hello ( someone is exactly the same name to the seller and vendor) -please some one check that for me .

* extra -  now the problem with the emails is that the software is sending the email to the vendors -email and thinks he is a buyer -  thus now not only do I get two emails but I also get an order in the 'order form' BE that I cannot delete- the orders do not contain a name of a buyer or his details and get stuck in the data Base.

* Now if I get - into my MYSQL -  I have orders in there that I cannot delete ( from with in VM2 orders) -as they are not connected to any buyer.    I will need a little help in making sure that I do not delete the wrong thing in the data base.

I have a site that has 2.0.6 and the email are completely different - (I know there has been a small change) in headers etc but..  I updated my 2.0.6 - to 2.0.7 h and the issue or no variants and the , emails being the same are there. ( this site has the original products and settings of VM productions site)


The Cart
I think it hangs because it is looking for the variant and the email configuration.   

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
When I get to the cart : and confirm the order - If and only if it has a variant in the order.
Then the  page freezes and does not redirect to confirm the order goes through It says :
http://mywebsite.com.au/index.php/cart/confirm   

It does not show the image below if there is a variant in the product /attached ( if it is a product with no variants it does show it)

[attachment cleanup by admin]
Title: Re: (Solved) Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: Zer0g on June 22, 2012, 07:37:19 AM
Hmm, your post made me think about this one more time... I never completed an order with attributes.

So i've tried it. And there it is... just after hitting the confirm order button:
white page with an error: Fatal error: Call to undefined method VirtueMartModelCustomfields::getProductCustomField() in /administrator/components/com_virtuemart/models/orders.php on line 805

btw: i am still on 2.0.7G

EDIT: Just upgraded to 2.0.7 H
I can confirm the problem with custom fields of John2400 - no notification in the email, just "Couldnt find customfield" is displayed

Title: Re: (Solved) Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: Zer0g on June 25, 2012, 13:04:06 PM
Any news on this issue? I need to know...
Otherwise i have to downgrade to 2.0.6a

Maybe this helps... Debug messages from cart, order confirmed:

vmdebug vmTime: loadConfig db no: 0.0087659358978271
vmdebug Start used Ram 6M
vmdebug $_prod,$productCustom
vmdebug CustomsFieldOrderDisplay, $item->productCustom empty? 18
vmdebug customFieldDisplay, $productCustom is EMPTY
vmdebug CustomsFieldOrderDisplay, $item->productCustom empty? 18
vmdebug customFieldDisplay, $productCustom is EMPTY
vmdebug vmTime: VirtuemartControllerCart Finished task confirm: 1.2433528900146
vmdebug End used Ram 22.5M
vmdebug Peak memory peak 22.5M
Title: Re: (Solved) Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: John2400 on June 25, 2012, 13:11:39 PM
As you can see,

For me the issue got bigger as one issue affects another-

* I presume the team really want to put out a good clean update that fixes quite a few issues - and then. Then again one small fix might solve quite a few issues.

* I do wonder that at the same time Joomla updated twice and that could cause a few problems.  I other places in the world it is only just Monday morning so we will wait. For me it is Monday Night. late.

just wait - If the issue of variants is solved then - I think my own site could run and survive - the Invoices would be Ok, and the rest I could do in the background of the site.
Title: Re: (Solved) Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: srseale on June 25, 2012, 21:34:26 PM
First time posting to the Forum.

Joomla 2.5.6
VM 2.0.7g
PHP 5.3.14

I have been following this thread very closely as it has a direct impact on my site.  I will only have a couple of products but there are many variations possible with them (23 custom fields and counting).  I think I have developed a reasonable understanding of Custom Fields and how they are to be used.  I've had them working and doing as predicted but have hit all of the same snags that have been reported in this thread.  John2400 has identified some problems and there appear to be others as well.  This reply is simply to add more detail.  I hope it proves useful...

After upgrading to 2.0.7g and applying Milo's new customfields.php file, all appeared to be working (btw, that file lays out the custom fields very nicely, much better than they were before; thank you Milo).  Now, however, there are more problems with Customfields.  I can't add any new customfields to a product.  I can't edit any existing customfields in a product.  I can create custom fields and change them but I can't use them.  The "Couldn't find customfield" error occurs in both the e-mail and the Order.

I am developing a better understanding of VM but I am still a Beginner.  I await further developments (which I am certain are underway).  No reply necessary.  I am just trying to add clarity to the breadth of the problem.

Thank you and keep up the excellent work.

Title: Re: (Solved) Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: srseale on June 26, 2012, 04:28:29 AM
A further update to my previous post...

Joomla 2.5.6
VM 2.0.7f
PHP 5.3.14

Re-installed VM 2.0.7f with Milo's new customfields.php file.  There is a dramatic improvement in the results.

The Cart contains all of the customfields and results (there is a problem which I will describe below).
The Confirmation e-mail contains all of the customfields and results.
The Order contains all of the customfields and results.

The formatting is greatly improved with each customfield and result on a separate line (again, thank you Milo).

It is again possible to add or alter customfields on products.

In fact, if it wasn't for 1 problem, it would be quite complete, I believe.

The "remaining" problem has to do with custom input fields (the custom input plugin).  I have 4 of these fields.  Anything entered in the first field is replicated in the others.  If I enter data in the other fields, they all become a seemingly random collection of data and customfield titles.  This is consistent in the Cart, Confirmation e-mail and Order.  Its a mess.  I will try to get an image of it for you tomorrow.  It may be related to the Custom Input field thread which I will investigate further tomorrow.

I hope this information proves helpful to the others out there.  If you are not using the custom input plugin, you may be able to make use of Milo's customfields file and 2.0.7f to get you going.

Best to all.
Title: Re: (Solved) Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: John2400 on June 26, 2012, 13:32:33 PM
Confirming that I cannot alter the variants - I cannot add a new Variant to any product. version H

* my test site is the complete version of VM2 with test products only. -

thanks
Title: Re: (Solved) Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: John2400 on June 26, 2012, 23:12:17 PM
Update :  Version I
Yes the variant is now in the cart:  ( solved)

* I can add a variant to a product again( solved)
* the Variant does not go to the email of  the seller or buyer - (solved)

But the emails to the buyer and seller are exactly the same? two emails but with two different email addresses. The one that is missing is the vendors (it is an exact copy of the buyers)
* I'm sure the vendors email said something like - dear (my website ) you have an order etc . - I've checked them twice and the  Hello ( someone is exactly the same name to the seller and vendor) -please some one check that for me . (  solved)

The Cart ( solved)
I think it hangs because it is looking for the variant and the email configuration.   

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
When I get to the cart : and confirm the order -If it has a variant in the order.
Then the  page freezes and does not redirect to confirm the order goes through It says :
http://mywebsite.com.au/index.php/cart/confirm   

When I hit - enter after a few minutes I am returned to the large cart with the cart still showing all products - Although the order email does come through. ( cart does not clear) ( Solved)

I solved the redirection by turning off disabled the SEO - in VM .

My settings in Joomla are image one - my setting is VM are image two . So by disabling it it worked.  Why ? I have no idea as I have several sites - all with the same settings and they have no issue.  I hope that helps some one.


[attachment cleanup by admin]
Title: Re: (Solved) Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: lipes on June 26, 2012, 23:34:50 PM
cant install the I version .... of the "aio" file..
says: "There was an error uploading this file to the server."

even using the Installation from tmp Directory ...
says: "Please enter a package directory"
and doesnt work ... :/


i've instaled the 7zip and then uncompressed the file to a directory
to compress again to .tar and then again to .GZip ...

I dont have SMTP, POp3 configuration in my localhost to test that emails relations between the VM / costumer / vendor / etc ...
Your question it's important! :)
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: Zer0g on June 27, 2012, 12:15:48 PM
I agree with John2400...
Custom fields work normally now.

Thank you
Title: Re: Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: John2400 on July 02, 2012, 00:56:33 AM
All Solved for me in update 2.0.8a
Title: Re: (Solved) Custom Fields (Cart Variant) checkout, Incorrect Custom Value in Order
Post by: florenz on August 05, 2012, 06:04:07 AM
Not solved for me. Version 2.0.8.e. I can not remove a product with attributes. I can only remove it by updating quantity to 0.