Products: $hierdata empty on product detail page

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Guido
Forum Members
Forum Members
Posts: 221
Joined: Sat Aug 29, 2009 3:00 pm

Products: $hierdata empty on product detail page

Post by Guido »

Hi,

I use the products module and the products hierarchy action to create a productmenu sitewide. This always used to work fine, but since updating to the last version it will not work on product detail pages. In stead it will only show me products of a lower hierarchy than the product detail-viewed, if any.

I checked two things: the $hierdata array, which should contain all data for the hierarchy tree (and does on other pages). That's empty on product detail pages, or contains only the hierarchy tree starting from the current product.

I checked the module help, and it states clearly:
(optional) parent="" - Applicable only in the hierarchy action, this parameter specifies the integer hierarchy id of the starting location of the report. If this parameter is specified, then the $active_hierarchy smarty variable will be ignored. If neither is set, then the hierarchy view will start from the root.
The 'parent' parameter is not set in the module call and a print_r on the $hierdata at the top of the module template reveals the empty (or only partial) hierarchy data in $hierdata. The above text from the module 'help' leads me to think that it should contain the full hierarchy tree.

Does anyone know if this is the modern behaviour of the Products module and if there is a workaround?

Here's my system details:

----------------------------------------------

Cms Version: 1.11.12

Installed Modules:

FileManager: 1.4.5
MenuManager: 1.8.6
ModuleManager: 1.5.8
News: 2.14.4
Search: 1.7.11
CGExtensions: 1.45
CGSimpleSmarty: 1.7.4
Products: 2.22.1
CGBlog: 1.12.9
TinyMCE: 2.9.12
JQueryTools: 1.3.4
CGSmartImage: 1.17.2
AceEditor: 1.0
CGCalendar: 1.14.6


Config Information:

php_memory_limit: 64M
process_whole_template:
max_upload_size: 256000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale: nl_NL
default_encoding: utf-8
admin_encoding: utf-8
set_names: true


Php Information:

phpversion: 5.4.34
md5_function: Aan (Waar)
gd_version: 2
tempnam_function: Aan (Waar)
magic_quotes_runtime: Uit (Onwaar)
E_STRICT: 2048
E_DEPRECATED: 0
memory_limit: 64M
max_execution_time: 60
output_buffering: 4096
safe_mode: Uit (Onwaar)
file_uploads: Aan (Waar)
post_max_size: 256M
upload_max_filesize: 256M
session_save_path: Geen controle omdat 'open_basedir' actief is
session_use_cookies: Aan (Waar)
xml_function: Aan (Waar)
xmlreader_class: Aan (Waar)


Server Information:

Server Api: apache2handler
Server Db Type: MySQL (mysql)
Server Db Version: 5.6.21
Server Db Grants: Er is een "GRAND ALL" permissie gevonden, alles lijkt in orde.
Server Time Diff: Geen tijdverschil aangetroffen


----------------------------------------------
Guido
Forum Members
Forum Members
Posts: 221
Joined: Sat Aug 29, 2009 3:00 pm

Re: Products: $hierdata empty on product detail page

Post by Guido »

UPDATE:

After testing some more, I concluded that a lot of actions and parameters from the Products module simply don't work when you're on a product-summary page/view.

I think this is really a problem, because in my view the user interface should be so that you should always be able to switch between products with as little inbetween steps as possible. The lack of functionality here really binds you to creating a user-interface that imposes extra steps.
Guido
Forum Members
Forum Members
Posts: 221
Joined: Sat Aug 29, 2009 3:00 pm

Re: Products: $hierdata empty on product detail page

Post by Guido »

UPDATE 2:

OK, I solved my specific problem by hacking into the Products module:

EDIT:

Posting hacks is not allowed:
http://forum.cmsmadesimple.org/viewtopi ... 65#p238765

Please note that you're install will not be supported from now on for obvious reasons.

If you think you've found a bug please file a bug report here: http://dev.cmsmadesimple.org/bug/list/408
Last edited by velden on Thu Feb 05, 2015 1:49 pm, edited 1 time in total.
Reason: post hacks is not allowed
Post Reply

Return to “Modules/Add-Ons”