Uploaded image for project: 'Prestashop 1.6'
  1. Prestashop 1.6
  2. PSCSX-9245

FO products-list.tpl not allowing for attributes being store specific when calculating totals available

    Details

      Description

      Hi there,

      I've found a bug with the 'products-list.tpl' when working out what stock notification message to display.

      When the default is not available, 'Product available with different options' shows when checking against 'quantity_all_versions'.

      'quantity_all_versions' is including all the attributes of the product, including the attributes that have been assigned to display only to other stores.

      To replicate:

      • create a multistore
      • create a product with two options via combinations
      • set one of the combinations only to display on one of the shops (shop A)
      • set the stock available of the combination that will only display on shop A to be anything > 0
      • set the other attribute/combination to have stock <= 0
      • go to the FO of shop B
      • Search for the product in a template that renders using 'products-list.tpl'
      • see that it it not displaying the 'Out of stock' notification
      • go in to the item and see it is highlighted as being out of stock and the dropdown only has a single item available for selection (this should not render at all)

      If you need any more information, please let me know and I wil do what I can to get it for you.

      Cheers
      Liam

        Attachments

        1. screencast cprodct attribute conf safe.mov
          4.32 MB
          Teapot Creative
        2. screencast safe.mov
          18.01 MB
          Teapot Creative

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              teapotcreative Teapot Creative
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: