Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

cPath cID


ce7

Recommended Posts

hi there,

have CE1.0.5.0 version, noticed that when move the categories folder, the back button seems not working right.

here is the example:
target folder name: other fruits (categories.php?cPath=1&cID=14)
destination folder name: figs (categories.php?cPath=1&cID=12)
image.png.7e45cc40a0afefcc9526657aff66c638.png

when click on back, it will show (categories.php?cID=12)....
image.png.70f5413141b0c3ac82859d30e62f70c9.png

how can I change code to make it go to (categories.php?cPath=1&cID=12)

 

Your help is much appreciated.

 

original code from admin/categories.php

  if (isset($_GET['origin'])) {
      $pos_params = strpos($_GET['origin'], '?', 0);
      if ($pos_params != false) {
        $back_url = substr($_GET['origin'], 0, $pos_params);
        $back_url_params = substr($_GET['origin'], $pos_params + 1);
      } else {
        $back_url = $_GET['origin'];
        $back_url_params = '';
      }
    } else {
      $back_url = 'categories.php';
      $back_url_params = 'cPath=' . $cPath . '&pID=' . $pInfo->products_id;
    }
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...