News:

Looking for documentation? Take a look on our wiki

Main Menu

Order need weight

Started by Studio 42, February 27, 2018, 23:49:18 PM

Previous topic - Next topic

Studio 42

Hi,
Currently weight is dynamic calculated from items.
This is not right, at the moment the order is created, the weight should not changes when you modify product weight after.
So to say, all main values should not be dynamic, eg shipment , attributes ... because this break when you change a product, disable or remove a customfield.
In the item, we should have a Text HTML attribut and attributes using params, if this have to be dynamical.
I think this should solve many problem and if some dynamic content need to be updated, it should only be update on request.
I know this break the current concept, but it's note really safe currently.

AH

Whilst your idea may sound very reasonable for some, for others having "fixed order point" date could prove to be unhelpful.

Agreed that things should not break - e.g. removing a customfield should not cause an order to fail to load (never tested this scenario though )

Unsure as to why you use the word "safe"?

Interested to see what other users think.


Regards
A

Joomla 4.4.5
php 8.1

Studio 42

safe because order should never fail and always render calculated values.
If for some reason you remove a product, the order cannot get the weight for calculation.
I use for eg an API, this get called manually by my customer and if for some reason it remove a product the result is bad.
I think that all essential values should be saved in database and dynamical loaded to override this value, if this values exist.
Not only weight but size can be a problem too and missing customfields values ...