New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
making product name consistent across the repo.... #6367
Comments
Can we assemble a list here of the known affected places? I'm going to look into the bigger picture of this this week, and having a bulleted list would be a little extra help to make sure I'm not missing an edge case. You mentioned:
|
i will certainly make an attempt! |
Centralizes all basic product-related querying and overriding. (Not including attributes or pricing.) Closes zencart#6367 The easiest override/notifier hook is now `NOTIFY_GET_PRODUCT_OBJECT_DETAILS`
this list is by no means exhaustive, but... modules that use
|
Centralizes all basic product-related querying and overriding. (Not including attributes or pricing.) Closes zencart#6367 The easiest override/notifier hook is now `NOTIFY_GET_PRODUCT_OBJECT_DETAILS`
Centralizes all basic product-related querying and overriding. (Not including attributes or pricing.) Closes zencart#6367 The easiest override/notifier hook is now `NOTIFY_GET_PRODUCT_OBJECT_DETAILS`
* Use `zen_get_products_name` on listings Fixes #6367
Centralizes all basic product-related querying and overriding. (Not including attributes or pricing.) Closes zencart#6367 The easiest override/notifier hook is now `NOTIFY_GET_PRODUCT_OBJECT_DETAILS`
Centralizes all basic product-related querying and overriding. (Not including attributes or pricing.) Closes zencart#6367 The easiest override/notifier hook is now `NOTIFY_GET_PRODUCT_OBJECT_DETAILS`
Centralizes all basic product-related querying and overriding. (Not including attributes or pricing.) Closes zencart#6367 The easiest override/notifier hook is now `NOTIFY_GET_PRODUCT_OBJECT_DETAILS`
Centralizes all basic product-related querying and overriding. (Not including attributes or pricing.) Closes zencart#6367 The easiest override/notifier hook is now `NOTIFY_GET_PRODUCT_OBJECT_DETAILS`
Centralizes all basic product-related querying and overriding. (Not including attributes or pricing.) Closes zencart#6367 The easiest override/notifier hook is now `NOTIFY_GET_PRODUCT_OBJECT_DETAILS`
Centralizes all basic product-related querying and overriding. (Not including attributes or pricing.) Closes zencart#6367 The easiest override/notifier hook is now `NOTIFY_GET_PRODUCT_OBJECT_DETAILS`
Centralizes all basic product-related querying and overriding. (Not including attributes or pricing.) Closes zencart#6367 The easiest override/notifier hook is now `NOTIFY_GET_PRODUCT_OBJECT_DETAILS`
Centralizes all basic product-related querying and overriding. (Not including attributes or pricing.) Closes zencart#6367 The easiest override/notifier hook is now `NOTIFY_GET_PRODUCT_OBJECT_DETAILS`
Centralizes all basic product-related querying and overriding. (Not including attributes or pricing.) Closes zencart#6367 The easiest override/notifier hook is now `NOTIFY_GET_PRODUCT_OBJECT_DETAILS`
Centralizes all basic product-related querying and overriding. (Not including attributes or pricing.) Closes zencart#6367 The easiest override/notifier hook is now `NOTIFY_GET_PRODUCT_OBJECT_DETAILS`
in looking at the code for v200, it seems that one can successfully override the
zen_get_products_name
function without touching any of the base code. this is a change that i applaud. (thank you @torvista. change was done in this commit 759b64d.)the override is done when the
zen_get_products_name
function calls thezen_get_product_details
function as seen here:zencart/includes/functions/functions_products.php
Lines 32 to 34 in c1b6aba
unfortunately, for the majority of times a customer is displayed a product, the
zen_get_products_name
function is not used.one such instance is on line 219 here:
zencart/includes/modules/product_listing.php
Lines 219 to 223 in c1b6aba
due to the multi-lingual aspect of ZC, one can very easily override the products description, as the method
zen_get_products_description
as seen on line 222 is consistently used whenever calling the products description.ideally if one were to want to change the construction of the product name as presented to the customer, one should be able to do it in 1 place; but and most importantly, do it WITHOUT changing any of the base zc code.
i see 2 potential solutions to this problem:
zen_get_products_name
function.products_id
, and then use thezen_get_product_details
to retrieve all necessary information about the product.i think the 2nd option affords more flexibility for more things. but i'm open on that... it seems the 1st option might be easier to implement.
does anyone have any thoughts? and or willingness to accept a PR if one were attempted?
The text was updated successfully, but these errors were encountered: