Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Oct 2012
    Location
    St. Catharines, ON Canada
    Posts
    30
    Plugin Contributions
    0

    Default Re: Cant delete or move products in 1.55f

    I read the thread referred to but Iím afraid thatís likely to cause a whole bunch of other issues by me not knowing what to replace it with. I think for now Iíll keep my iPad handy if I need to use those buttons as that doesnít seem to have any issues using the Google browser.
    Thanks

  2. #12
    Join Date
    Jul 2012
    Posts
    12,624
    Plugin Contributions
    16

    Default Re: Cant delete or move products in 1.55f

    Quote Originally Posted by rensing View Post
    I read the thread referred to but I’m afraid that’s likely to cause a whole bunch of other issues by me not knowing what to replace it with. I think for now I’ll keep my iPad handy if I need to use those buttons as that doesn’t seem to have any issues using the Google browser.
    Thanks
    In a way it's because the onclick event is there that the problem is occurring, so there is no "replacing" to be done, it is removal of the onclick event or modifying the two areas. So for those others that perhaps have followed along and would like to make the icons functional based on the guidance that has thus far been provided/determined, then editing a file will make the buttons available. The first area is at or around line 133 of YOUR_ADMIN/includes/modules/category_product_listing.php. Changing the following from:
    Code:
          if (isset($cInfo) && is_object($cInfo) && ($categories->fields['categories_id'] == $cInfo->categories_id) ) {
            echo '              <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\''  . zen_href_link(FILENAME_CATEGORIES, zen_get_path($categories->fields['categories_id'])) . '\'">' . "\n";
          } else {
            echo '              <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . zen_href_link(FILENAME_CATEGORIES, zen_get_path($categories->fields['categories_id'])) . '\'">' . "\n";
          }
    to
    Code:
          if (isset($cInfo) && is_object($cInfo) && ($categories->fields['categories_id'] == $cInfo->categories_id) ) {
            echo '              <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">' . "\n";
          } else {
            echo '              <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">' . "\n";
          }
    second found at or around line 327 of the same file changing from:
    Code:
          if (isset($pInfo) && is_object($pInfo) && ($products->fields['products_id'] == $pInfo->products_id) ) {
            echo '              <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . zen_href_link($type_handler , 'page=' . $_GET['page'] . '&product_type=' . $products->fields['products_type'] . '&cPath=' . $cPath . '&pID=' . $products->fields['products_id'] . '&action=new_product' . (isset($_GET['search']) ? '&search=' . $_GET['search'] : '')) . '\'">' . "\n";
          } else {
            echo '              <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . zen_href_link($type_handler , 'page=' . $_GET['page'] . '&product_type=' . $products->fields['products_type'] . '&cPath=' . $cPath . '&pID=' . $products->fields['products_id'] . '&action=new_product' . (isset($_GET['search']) ? '&search=' . $_GET['search'] : '')) . '\'">' . "\n";
          }
    to:
    Code:
          if (isset($pInfo) && is_object($pInfo) && ($products->fields['products_id'] == $pInfo->products_id) ) {
            echo '              <tr class="dataTableRow" onmouseover="rowOverEffect(this)">' . "\n";
          } else {
            echo '              <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">' . "\n";
          }
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...
    Upgraded to Zen Cart V1.5.3 from V1.5.1 from V1.5.0 from V1.3.9h

  3. #13
    Join Date
    Jul 2012
    Posts
    12,624
    Plugin Contributions
    16

    Default Re: Cant delete or move products in 1.55f

    Or more robustly where the functionality would be expected to remain, but the onClick action would be moved from the table's tr to its child td where appropriate. Ie. less "lazy" of assignment within the ZC code and more specifically applied. This is presented as a commit at:

    https://github.com/mc12345678/zc-v1-...0d71fe7ecdec17
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...
    Upgraded to Zen Cart V1.5.3 from V1.5.1 from V1.5.0 from V1.3.9h

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Multiple Products (Copy, Move, Delete)
    By wmorris in forum All Other Contributions/Addons
    Replies: 147
    Last Post: 4 Sep 2017, 12:43 AM
  2. Request a new mod or contribution....Multiple Products(Copy, Move, Delete)
    By wmorris in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 5 Dec 2010, 06:03 AM
  3. Multiple Products (Copy, Move, Delete)
    By wmorris in forum General Questions
    Replies: 0
    Last Post: 29 Nov 2009, 10:41 PM
  4. move or delete ultiple products
    By 100asa in forum General Questions
    Replies: 1
    Last Post: 5 Oct 2007, 04:01 PM
  5. Cant delete products
    By gg66 in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 12 Mar 2007, 01:54 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