Jump to content

All Activity

This stream auto-updates

  1. Past hour
  2. Bonjour, Activez d’abord le mode débogage et réessayez en ajoutant une image/un produit pour vérifier les informations sur l’erreur.
  3. Ich habe das Modul installiert und dann ist einfach nichts gekommen bei der Backoffice Übersicht bei Artikel. Ich weiss nicht, wie man das anders als "nicht funktioniert" deklarieren kann. Ok, ich bin kein ITler und kann nicht in den Codes nachprüfen, woran es scheitert. Vielleicht könnte ich dann eine genauere Auskunft geben.
  4. Jeszcze sprawdź sobie tabelę ps_configuration, tab tez są url.
  5. Bonjour, Quelqu'un peut il m'aider ; impossible de créer mes nouveaux produits; systématique lorsque je veux ajouter une photo, j'ai l'affichage ERREUR DE SERVEUR INTERNE 500; Avez vous déjà rencontre ce genre de bug Merci par avance pour votre aide sylvie
  6. Czyli dokłanie takie coś jak pisałem wyżej, Ponowie pytanie czyli potem wystarczy zmienić w bazie tylko w 2 miejscach url tj: w _shop_url -> domain w _shop_url -> domain_ssl
  7. Nie zauważyłem screana Twojego bo z telefonu pisałem. To może zostaw kuriera pobraniowego tak jak masz, że od wagi będzie dobierał odpowiednią stawkę za transport. A po prostu w inny przewożnikach typu np. paczkomat tak jak Ci podałem wyżej, że od ceny całkowitej. I zamówienia od 0 do 300 masz jakaś tam stawkę transportu, a powyżej 300 masz 0
  8. i found a strange thing. why do the prestashop allow a customer leave both phone and mobile blank. where can i set it at least fill one , phone or mobile if no phone or mobile left , how could you ship your order?
  9. Hello, I found the solution myself, I will not use API but directly with database connection. The lower code for version 1.7.8.7 works correctly, which makes me very happy. I tested it on several products that were purchased in their last available sizes and had 0 quantity in the menu Monitoring -> "List of products with combinations but without available quantities for sale". With the code below, it is much faster to remove the 0 quantity. <?php $servername = "localhost"; // $username = ""; // $password = ""; // $dbname = ""; // $conn = new mysqli($servername, $username, $password, $dbname); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $sql = "SELECT id_product FROM ps17_product WHERE active = 1"; $result = $conn->query($sql); $active_products = array(); if ($result->num_rows > 0) { while ($row = $result->fetch_assoc()) { $active_products[] = $row["id_product"]; } } $zero_quantity_attributes = array(); foreach ($active_products as $product_id) { $sql = "SELECT pa.id_product_attribute FROM ps17_product_attribute pa JOIN ps17_stock_available sa ON pa.id_product_attribute = sa.id_product_attribute WHERE pa.id_product = $product_id AND sa.quantity = 0 AND pa.id_product_attribute NOT IN ( SELECT pa2.id_product_attribute FROM ps17_product_attribute pa2 JOIN ps17_stock_available sa2 ON pa2.id_product_attribute = sa2.id_product_attribute WHERE pa2.id_product = $product_id AND sa2.quantity > 0 )"; $result = $conn->query($sql); if ($result->num_rows > 0) { while ($row = $result->fetch_assoc()) { $zero_quantity_attributes[$product_id][] = $row["id_product_attribute"]; } } } $attribute_ids = array(); foreach ($zero_quantity_attributes as $product_id => $attributes) { foreach ($attributes as $attribute_id) { $sql = "SELECT id_attribute FROM ps17_product_attribute_combination WHERE id_product_attribute = $attribute_id"; $result = $conn->query($sql); if ($result->num_rows > 0) { while ($row = $result->fetch_assoc()) { $attribute_ids[$product_id][$attribute_id][] = $row["id_attribute"]; } } } } $attribute_names = array(); foreach ($attribute_ids as $product_id => $attributes) { foreach ($attributes as $attribute_id => $attribute_list) { foreach ($attribute_list as $attribute) { $sql = "SELECT name FROM ps17_attribute_lang WHERE id_attribute = $attribute AND id_lang = 1"; $result = $conn->query($sql); if ($result->num_rows > 0) { while ($row = $result->fetch_assoc()) { $attribute_names[$product_id][$attribute_id][] = $row["name"]; } } } } } if (count($attribute_names) > 0) { foreach ($attribute_names as $product_id => $attributes) { echo "<p>Product ID: $product_id</p>"; echo "<ul>"; foreach ($attributes as $attribute_id => $attribute_list) { foreach ($attribute_list as $attribute_name) { echo "<li>$attribute_name <form method='POST'><input type='hidden' name='product_id' value='$product_id'><input type='hidden' name='attribute_id' value='$attribute_id'><input type='submit' name='delete_attribute' value='DELETE'></form></li>"; } } echo "</ul>"; } } else { echo "No products with zero quantity found."; } if (isset($_POST['delete_attribute'])) { $product_id = $_POST['product_id']; $attribute_id = $_POST['attribute_id']; $sql_delete = "DELETE FROM ps17_product_attribute WHERE id_product = $product_id AND id_product_attribute = $attribute_id"; if ($conn->query($sql_delete) === TRUE) { echo "The attribute has been successfully deleted."; } else { echo "An error occurred when deleting the attribute: " . $conn->error; } } $conn->close(); ?> Best regards to all
  10. Thank you @Andrei H As you told, it worked great after changing the config file.
  11. Today
  12. @Mabcin Ok tylko jest kwestia tego, że ja muszę mieć zamówienie według wagi zdefiniowane nie według ceny całkowitej. Klient mi zamówi za 15 zł na wagę 1k i co wtedy ? dlatego chyba nie mogę ustawić takiej reguły jaką mi podałeś?? bo jak widać do każdej wagi mam przypisaną cenę w sensie z zakresu.
  13. J'ai testé en local et je penses que ça pourrait foirée, mais j'ai tester sans cette condition et même problème...
  14. Postaw nowy na sub domenie, później tylko przepnij domenę na hostingu na nowy folder i zmień w bazie danych url. Jeśli nie robisz migracji produktów etc, to wystarczy.
  15. Bonjour, je n'ai pas regardé plus, mais ce genre de test est foireux dans le sens où, qu'arrive-t-il si vous ajoutez une langue à la boutique ? Il est préférable de tester l'instance de l'objet chargé ou le pagename ou le phpself, enfin, quelque chose d'unique et stable.
  16. Takie ustawienie jak to które podaje niżej daje Ci, że masz płatną dostawę 15zł dla każdego zamówienia do 2tys zł. Powyżej tej kwoty jest darmowa dostawa. I musisz wtedy dal każdego przewoźnika zrobić taką regułę. A dla Pobrania które nie chce by było darmowe ustawiasz jak na drugim zdjęciu (od 0 do jakiejś dużej kwoty)
  17. Nie bardzo rozumiem co masz na myśli. Może źle opisałem sprawę. Ja nie chce postawić sklepu opartego o prestashop 8 na podstawie starej bazy ze sklepu 1.6. Tylko chce postawić nowy czysty sklep na 8 i potem tylko podmienić je w "całości"
  18. Can I do a rollback, for the database before the update? Will it solve the problem?
  19. This is one of the core tables that is missing, check you database!
  20. Hi - I want to override an image in a 3rd party module under v8.1.5. How do I do this?
  21. I don't know how to do that, I can't access to my back-office at all, is this screen shot help?
  22. Enable debug mode / depend on version clear cache in VAR folder.
  1. Load more activity
×
×
  • Create New...