In Zen Cart versions 1.5.6 and 1.5.6a, when accessing the Multiple Categories Link Manager (admin/products_to_categories.php) there is an option on the "right" side to click on Details. When the option is selected, the resulting page includes the header, menu bar and footer of the admin pages; however, no content is otherwise provided.
This can be seen in a default install with demo product by accessing: admin/products_to_categories.php?products_filter=1¤t_category_id=4
And then clicking on the details button in the lower left side of the right panel. The link provided is: admin/product.php?cPath=4&pID=1&product_type=1
In ZC 1.5.5, the link pointed to: admin/categories.php?cPath=4&pID=1&product_type=1
When clicked would show the product in its category listing.
A normal ZC 1.5.6x admin link to this same product (to edit the product) is:
admin/product.php?action=new_product&cPath=4&pID=1&product_type=1
The ability to "preview" the product (other than going to the action of new_product_preview) has been removed based on the absence of catalog side display such as css, formatting, etc...
Not sure what the next best action is:
remove the button or
direct it to somewhere else (the new product preview, the catalog side, or if there is some thought of other "details" about a product to be seen such as sales/viewing history or something else).
To restore pre-ZC 1.5.6 direction, looks like would change (ZC 1.5.6a) line number 758 from:
Code:
'<a href="' . zen_href_link(FILENAME_PRODUCT, 'cPath=' . zen_get_parent_category_id($products_filter) . '&pID=' . $products_filter . '&product_type=' . zen_get_products_type($products_filter)) . '" class="btn btn-info" role="button">' . IMAGE_DETAILS . '</a> ' . |
To:
Code:
'<a href="' . zen_href_link(FILENAME_CATEGORY_PRODUCT_LISTING, 'cPath=' . zen_get_parent_category_id($products_filter) . '&pID=' . $products_filter) . '" class="btn btn-info" role="button">' . IMAGE_DETAILS . '</a> ' . |
This removes the additional product_type information that was sent; however, there does not appear to be any value in passing the product_type on the URI when viewing the category product listing so the above shows that removed parameter removed.
Bookmarks