Closed aljawaid closed 7 years ago
Are you sure your product is of type "product" and not "service" ?
Yes, the product is of type 'product' as we rarely use services.
I will send a screenshot later to show the form in edit mode and view mode. Like I said, the column is in the database but there is nothing on the form.
@eldy If you advise me what code to look for, I can check if it is my version of the card.php on 4.0.1?
2016-10-29 23:46:05 DEBUG 79.77.241.109 sql=SELECT rowid, ref, ref_ext, label, description, url, note, customcode, fk_country, price, price_ttc, price_min, price_min_ttc, price_base_type, cost_price, default_vat_code, tva_tx, recuperableonly as tva_npr, localtax1_tx, localtax2_tx, localtax1_type, localtax2_type, tosell, tobuy, fk_product_type, duration, seuil_stock_alerte, canvas, **weight, weight_units, length, length_units, surface, surface_units, volume, volume_units,** barcode, fk_barcode_type, finished, accountancy_code_buy, accountancy_code_sell, stock, pmp, datec, tms, import_key, entity, desiredstock, tobatch, fk_unit, fk_price_expression, price_autogen FROM llx_product WHERE rowid = 115
@eldy
I have looked through product/card.php for v4.0.0 and v4.0.1.
In comparison, from around line 1015 it shows the code for Weight/Length/Volume/Surface but not Height or Width.
I have also cross-checked this with the same file in the develop branch of v4.0.1 and found the same issue - no reference to the width or height.
Maybe I am looking in the wrong place. Not sure if this helps.
The same problem for 4.0.2 :(
Did you check HIDDEN OPTIONS ?
Hub to this thread.
Reply to this email directly, view it on GitHub https://github.com/Dolibarr/dolibarr/issues/5933#issuecomment-258135663, or mute the thread https://github.com/notifications/unsubscribe-auth/ADheN9SM4iuxICehc4U0sqfaL8MJ06vLks5q6dsagaJpZM4KhsCS .
@BebZ Hi, do you mean the 'hidden options' in the Dolibarr Setup>Other Setup?
I'm not sure what the hidden option would be to enable it? It is not listed here? https://wiki.dolibarr.org/index.php/Setup_Other
It's not a bug. Changelog was not clear, because width and height have only been added within database.
Ticket moved as feature requests
@grandoc Thank you for the explanation. Makes a lot more sense now. Hope the field to the table gets added soon to the product card.
Bug
v4.0 introduced Width/Height fields in Product Card (according to the change log). The database table shows the columns but the product card does not show the fields to add values or even display values.
Environment