-
Notifications
You must be signed in to change notification settings - Fork 8
Use zen_get_products_name and account for empty model number in add-product dropdown. #243
Description
i am not sure how long i have railed against stuff like this in various plugins:
edit_orders/YOUR_ADMIN/includes/modules/edit_orders/eo_add_prdct_action_display.php
Lines 109 to 115 in 769b2cc
| foreach ($result as $product) { | |
| $ProductOptions .= | |
| '<option value="' . $product['products_id'] . '">' . | |
| $product['products_name'] . | |
| ' [' . $product['products_model'] . '] ' . ($product['products_status'] == 0 ? ' (OOS)' : '') . | |
| '</option>' . PHP_EOL; | |
| } |
what is the purpose of having zen_get_products_name if we do not use it?
at some point, this PR will hopefully get merged, and we will now have something that better approaches a true product object.
does one really have to manually do all of this construction of what product name should be?
every time i see model included in some manually manipulated product name on anything to do with ZC, i truly feel people have just succumbed to whatever torvista wants.
some of my clients do not use product model, so every line item now has [] in it for no good reason.
can we at least embrace something that ZC provides us?
and please, i do not want to get into a discussion of database hits. with caching and websites being hosted on SSDs; these discussions are tiresome and so 2007....