Uploaded image for project: 'PrestaShop 1.7'
  1. PrestaShop 1.7
  2. BOOM-5556

webservice multishop id_shop=all not working

    Details

    • Type: Bug
    • Status: To Do
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.7.3.1
    • Fix Version/s: None
    • Component/s: None
    • Tests & Expected Results:
      N/A
    • Documentation Change:
      N/A

      Description

      Hi all, when I did product save in multishop scenario and used id_shop=all, the webservice did some strange redirrect. The problem is probably with other entities as well.

      I found, that when I edit /classes/shop/Shop.php and add lines on line 410

              } elseif($id_shop == 'all') {
                  self::$context_id_shop = 0;
                  self::$context_id_shop_group = 0;
                  self::$context = self::CONTEXT_ALL;
                  return new Shop(1);
      
      

      Can you please check, if this workaround is correct, or there is some other way?

      My code probably needs more error checking...

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jan-kratochvil Jan Kratochvíl
            • Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: