Jump to content

Devhub

Members
  • Posts

    2
  • Joined

  • Last visited

Contact Methods

Profile Information

  • Location
    Poland
  • First Name
    Łukasz
  • Last Name
    Zarzecki

Devhub's Achievements

Newbie

Newbie (1/14)

3

Reputation

  1. Witam. Na moim sklepie nie można zamawiać produktów, bo pojawia się napis: "Niestety, brak dostępnych przewoźników dla Twojego adresu dostawy.". Strefa jest ustawiona na Polskę u przewoźnika razem z kosztem. W strefie tej znajduje się Polska jako kraj. Kraj jest wybrany przez użytkownika. Nie wiem co mogę zrobić, żeby to się znowu pojawiło. Zarządzanie magazynem muszę mieć na sklepie, więc opcja z jego wyłączeniem odpada. Presta 1.7.1.2 Pozdrawiam
  2. I've encountered similiar problem. When you download archive from GIT or any other version control service be sure to change the names to the correct ones! Look at the main PHP file of the module and copy it (without the ".php"). For example, if module's main file name is superEffectiveBlog.php then you need to copy: "superEffectiveBlog". Then change name of the module's directory to "superEffectiveBlog" and zip it. The name of ZIP file is not relevant. Now you can upload the zip correctly.
  3. I think I found solution to this problem that works for me in Prestashop 1.7.1.1. In file "/src/PrestaShopBundle/Model/Product/AdminModelAdapter.php" you need to go to line around 308 with comment //map features and change code from this: //map features if (!empty($form_data['features'])) { foreach ($form_data['features'] as $dataFeature) { $idFeature = $dataFeature['feature']; //custom value is defined if ($dataFeature['custom_value'][$this->defaultLocale]) { foreach ($this->locales as $locale) { $form_data['feature_'.$idFeature.'_value'] = null; $form_data['custom_'.$idFeature.'_'.$locale['id_lang']] = $dataFeature['custom_value'][$locale['id_lang']]; } } elseif ($dataFeature['value']) { $form_data['feature_'.$idFeature.'_value'] = $dataFeature['value']; } } } to this: //map features if (!empty($form_data['features'])) { $n = 0; foreach ($form_data['features'] as $dataFeature) { $idFeature = $dataFeature['feature']; //custom value is defined if ($dataFeature['custom_value'][$this->defaultLocale]) { foreach ($this->locales as $locale) { $form_data['feature_'.$idFeature.'_value_'. $n] = null; $form_data['custom_'.$idFeature.'_'.$locale['id_lang']] = $dataFeature['custom_value'][$locale['id_lang']]; } } elseif ($dataFeature['value']) { $form_data['feature_'.$idFeature.'_value_'. $n] = $dataFeature['value']; } $n += 1; } } then in the database alter table primary key "ps_feature_product" ALTER TABLE ps_feature_product DROP PRIMARY KEY, ADD PRIMARY KEY (`id_feature`, `id_product`, `id_feature_value`); It's worth to notice that I used standard prefix. If you have changed your prefix then you should update it in this query. Give me some feedback. I'd like to know if it works for you.
×
×
  • Create New...