Prestashop Core Application V1.5
  1. Prestashop Core Application V1.5
  2. PSCFV-6493

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

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Resolution: Fixed
    • 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

        Activity

        Hide
        Rémi GAILLARD added a comment -

        Hi Ixotype,

        Thank you for your bug report.
        This is now fixed on our development version, see https://github.com/PrestaShop/PrestaShop/commit/9c5f416f5e130e69ffcf93169ef35f904a587291

        Best Regards,

        Show
        Rémi GAILLARD added a comment - Hi Ixotype, Thank you for your bug report. This is now fixed on our development version, see https://github.com/PrestaShop/PrestaShop/commit/9c5f416f5e130e69ffcf93169ef35f904a587291 Best Regards,

          People

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

            Dates

            • Created:
              Updated:
              Resolved: