Uploaded image for project: 'Prestashop 1.5'
  1. Prestashop 1.5
  2. PSCFV-6493

Remove root and home category from the URL in categories for product_rule

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Security Level: All-users
    • Labels:
      None

      Description

      My "root" and "home" categories are not 1 and 2. (perhaps my shop is 1.4 upgraded)

      1.5.3.1 version
      Class link.php
      Line 137

      Now:
      if (!in_array($cat['id_category'], array(1, 2)))//remove root and home category from the URL

      Change:
      if (!in_array($cat['id_category'], array((int)Configuration::get('PS_HOME_CATEGORY'),(int)Configuration::get('PS_ROOT_CATEGORY'))))//remove root and home category from the URL

      Thanks

        Attachments

          Activity

            People

            • Assignee:
              rGaillard Rémi GAILLARD
              Reporter:
              ixotype Ixotype
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support