Dolibarr: Feature Request: Add Width/Height on Product Card (available in database only currenlty)

Created on 26 Oct 2016  路  12Comments  路  Source: Dolibarr/dolibarr

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

  • Version: 4.0.1
  • Database: MySQL
  • URL(s): /product/card.php
Works for me / Can't reproduce

All 12 comments

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?

  • This is the product Create Form:
    create-product-form
  • I have checked the shared hosting server access/error logs and nothing is showing.
  • I have checked the dolibarr.log file and I noticed this section which showed the database fields never had any width or height fields in it but all the other fields:

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

  • Also noticed a 'duration' column in database but again nothing showing on the form. No information on it but I assume it is to set a time limit on a product?

@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.

6114

Was this page helpful?
0 / 5 - 0 ratings

Related issues

borsti67 picture borsti67  路  5Comments

TobiasSekan picture TobiasSekan  路  5Comments

Nicolas90000 picture Nicolas90000  路  3Comments

jsbrassard picture jsbrassard  路  4Comments

QuentinPetel picture QuentinPetel  路  5Comments