VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Darkheart on February 27, 2014, 23:47:35 PM

Title: Missing Units field
Post by: Darkheart on February 27, 2014, 23:47:35 PM
After migrating from VM 1.1.9 to 2.0.26d I don't find where I can add product units. There is no such field anymore, but I can see the values in products table column "product_unit".
This is how it looks in "Product Dimensions and Weight" tab:
(http://ankh.lv/images/vm-nounits.jpg)

Is this some known bug?
Title: Re: Missing Units field
Post by: jenkinhill on February 28, 2014, 12:10:27 PM
Units are selectable and set on the Product Dimensions and Weight tab, or do you need something different?

[attachment cleanup by admin]
Title: Re: Missing Units field
Post by: Darkheart on February 28, 2014, 12:55:46 PM
I am not talking about weight or dimension units, I am talking about product units. It could be "piece" or "pair" for example. This is screenshot from VM 1.1.9 with product units field:
(http://ankh.lv/images/units_vm1.png)

And this is VM 2.0.4
(http://ankh.lv/images/units_vm2.png)

Please, move this back to bugs, cause the field is missing, but it is still in database (virtuemart_products table, column "product_piece")!
Title: Re: Missing Units field
Post by: Darkheart on June 01, 2014, 15:51:40 PM
So, what about status of this missing field? Will it come back someday or not?
Title: Re: Missing Units field
Post by: jenkinhill on June 01, 2014, 16:09:27 PM
It is Units in Box on the Product Dimensions and Weight tab of each product.

For display in product details use this:   $this->product->product_box
Title: Re: Missing Units field
Post by: Darkheart on June 04, 2014, 19:26:00 PM
No, it is not! Please see my last screenshot, Units in box is other field and it is numeric. I am not a VM noob, I know this is a bug, cause the old variable is missing in code but it's value still exists in database. It seems like VM team doesn't know VM good enough. :(
Title: Re: Missing Units field
Post by: AH on June 04, 2014, 20:16:57 PM
Why such a negative response?

If you have found a bug then report it. 

Check if the field is provided in the $product array

If it is, then it is not a bug, it is just not used in the templates.
Title: Re: Missing Units field
Post by: Darkheart on June 04, 2014, 22:25:26 PM
I have reported it with this topic, but someone moved this topic to this section and no one has moved it back since then. I don't want to create new topic just because someone moved this here.

The field is missing in VM administration. Please see my last screenshots. These are older VM versions and there you can see the field, but later it got lost (the first screenshot is from 2.0.26d).