Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Details button on Multiple Categories Link Manager goes to an empty page

    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&current_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>&nbsp;&nbsp;' .
    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>&nbsp;&nbsp;' .
    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.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #2
    Join Date
    Apr 2008
    Location
    Qld, Australia
    Posts
    257
    Plugin Contributions
    6

    Default Re: Details button on Multiple Categories Link Manager goes to an empty page

    Thanks for finding this one.

    I have traditionally used this link as a quick way to navigate to a product observed in the drop down list to edit typos etc

 

 

Similar Threads

  1. Multiple Categories Link Manager
    By waterbender in forum General Questions
    Replies: 6
    Last Post: 24 Dec 2013, 04:32 AM
  2. Blank Categories in Multiple Categories Link Manager
    By nfallat in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 15 Oct 2010, 05:22 AM
  3. Multiple Categories Link Manager Problem
    By teckhing79 in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 25 Sep 2009, 01:04 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR