New Zenner
- Join Date:
- Mar 2011
- Posts:
- 51
- Plugin Contributions:
- 0
Tell-a-Friend Not Showing Value in new Product Type
using v1.3.9h...
I have created a new product type based on product_music largely by cloning the product_music database tables and associated files.
The new type product_photo appears mostly to be working (at least as far as the admin side is concerned), The new type is for providing additional fields related to the sale of stock photos.
The three entities replacing record_artist, record_company and music_genre are:
photographers
model_release
property_release
a 4th entity, a text field called image_sizes, is to be implemented when the other three are working perfectly.
I can set/edit/delete values for photographers/model_release/property_release in menu option "Extras" so those appear to be OK.
The problem is in Product Type Layout for the new product type. One value, "Show Product Tell a Friend Button" does not display 0 or 1; it is blank. However, the corresponding row in table zen_product_type_layout IS being written to when the "Tell a Friend" value is edited (True/False) via the dropdown.
I can see nothing wrong with the values against the new configuration key "SHOW_PRODUCT_PHOTO_INFO_TELL_A_FRIEND", the product_type_id is correct and the set_function value is obviously correct for the True/False dropdown to work.
I can't see any reason why this one option fails to display.
There is one error in the debug output produced when the layout page for the new type is accessed but I think that error is to do with something else (- to do with tax). I intend to post a separate question about that but just in case it IS related here is that output:
"[12-May-2011 11:30:01] PHP Warning: call_user_func(NULL
) [<a href='function.call-user-func'>function.call-user-func</a>]: First argument is expected to be a valid callback in /home/[path-to-admin-hidden]/includes/functions/general.php on line 1701
"
Any suggestions?
Thanks,
Ric