Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 10/30/2018 in all areas

  1. 1 point
    i have 1.8.8 and it is working great. I presume something is wrong with your cronjobs, you should check that.
  2. 1 point
    Hola chicos, al crear un producto, no me genera su imagen correspondiente, y no se porque ya que ahce tiempo me permitia generarlos y ahora no. Os paso el ejemplo que utilizo, las lineas comentadas con porque lo he intentado de esa manera tambien y la api no me devuelve nada ni crea la imagen. public function addImage($producto_id,$ruta_imagen){ $image_path = __DIR__."/../../assets/img/productos/".$ruta_imagen; $url_shop = PS_SHOP_PATH."api/images/products/$producto_id"; echo "</br>"; echo "EXISTE: ".file_exists($image_path)."</br>"; echo "PRODUCTO_ID: ".$producto_id."</br>"; echo "RUTA IMAGEN: ".$image_path."</br>"; echo "RUTA LLAMADA: ".$url_shop."</br>"; echo "USER: ".PS_WS_AUTH_KEY."</br>"; echo "KEY: ".PS_WS_AUTH_KEY."</br>"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url_shop); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_USERPWD, PS_WS_AUTH_KEY.':'); //curl_setopt($ch, CURLOPT_POSTFIELDS, array('image' => new CurlFile($image_path))); curl_setopt($ch, CURLOPT_POSTFIELDS, array('image'=>"@".$image_path)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); //$result = curl_exec($ch); echo "<pre>CH: ";print_r($ch);echo "</pre>"; if(curl_exec($ch) == false){ echo "<br><br>Error : ".curl_error($ch)."<br>"; } else{ echo '<br><br> Image added'; } curl_close($ch); } y los echos que veis ahi arriba me devuelven lo siguiente. PRODUCTO_ID: 1414 RUTA IMAGEN: /var/www/xxxxx/xxxxx/xxxx/xxxxx/../../xxxx/xxxx/xxxx/xxxx/xx/xx/74376500.png EXISTE: 1 RUTA LLAMADA: http://xxxxxx.webprestashop.com/api/images/products/1414 USER: xxxxxxxxxxxxxxxxxx KEY: xxxxxxxxxxxxxxxxxx Muchas gracias a todos!
  3. 1 point
    Si tu ne fait rien, l'url, le jour de l'ajout de langue sera automatiquement redirigé avec /fr/ Autre solution, ajouter la langue en par exemple, ne pas ajouter le sélecteur de langue, IMPERATIVEMENT désactiver les langues/pays en fonction du navigateur ou de la geopip. Dès lors tu aura /fr/ et /en/ (ce dernier non connu) - évite de naviguer en /en/ avec chrome et analytics actif, sinon google l'indexera déjà (force la redirection en /fr/ (302!) par .htaccess dès que tu as contrôlé le fonctionnement
  4. 1 point
    Hello: This is what you need: $product = new Product((int)$prod['id_product'], false, $id_lang); $img = $product->getCover($product->id); $img_url = $link->getImageLink(isset($product->link_rewrite) ? $product->link_rewrite : $product->name, (int)$img['id_image'], $image_type); This just get the cover image but you can get all images in the same way. $image_type param give you the specified product image size. Regards
  5. 1 point
    Check if you have all the information that you need when you instantiate a Product object: $product = new Product($id); You can get URL calling: Context::getContext()->link->getProductLink($id);
  6. 1 point
    The issue is that you have directory named "login" in your server. Can you delete that directory? By default when you try to login Prestashop goes to yoursite.com/login and because you have directory named login it loads that directory. If you didn't have that it would load friendly url which would load correct page.
  7. 1 point
    There are no settings to turn it off. You will need to modify your design template. If you don't have development skills, I would say leave like this, it's not that big of a problem.
  8. 1 point
    Hi, Migrating your PrestaShop website from one server to another is not a difficult job if you know what you do. IT takes hardly 30 minutes if everything works fine and expected. Here is a guide you may find helpful: https://www.prestashop.com/en/blog/how-to-migrate-prestashop-to-a-new-server If you are not confident, I strongly recommend hiring an agency or freelancer to do this job. You can also get a friend with experience in web development. It's not a hard job and it doesn't take much time. If you couldn't find anyone, I would happy to help you free. You can check my profile to see my agency website. On the website you can send an enquiry with a reference of my name, Pavithra. Best wishes,
  9. 1 point
    Mit Bordmitteln geht das nicht! Dieses Manko bei Prestashop wird schon seit Jahren immer wieder kritisiert. Wenn du dich einigermaßen mit php und javascript auskennst, könntest du dir da eine eigene Lösung stricken (Gültigkeitsmatrix aufstellen, bei Klick auf ein Attribut die anderen Attribute mit der Gültigkeitsmatrix abgleichen, refresh der Anzeige etc). Ich habe sowas vor Jahren mal für einen 1.4er Shop programmiert - Zeitaufwand ca 35 Stunden. Alternativen: 1. Shopsystem wechseln - es gibt Systeme, die das von vorn herein richtig machen. 2. Mal bei den Templates suchen, es gibt/gab welche, da wurde die nicht anwählbare Kombination ausgegraut und war nicht klickbar. 3. Du prüfst ob eines der zahlreichen Attributs-Module, die sich dieser Problematik angenommen haben, für deine Zwecke in Frage kommt. (Such nach connected attibutes) Anfangen kannst du mal mit diesem hier (Klick unten bei den Produktoptionen auf eine Größe und schau was mit den Farbanzeigen passiert,): http://demo.presto-changeo.com/attributewizard/tshirts/1-faded-short-sleeve-tshirts.html Grüsse Whiley
  10. 1 point
    here it is: https://www.dropbox.com/s/uqxqj35hec9krys/pscleaner.zip
  11. 1 point
    Find line: public function indexAttribute($id_product = null) /* around 861 */ and add line as follows after first INNER JOIN INNER JOIN '._DB_PREFIX_.'stock_available sa ON (sa.id_product_attribute = pac.id_product_attribute AND sa.quantity > 0) so it ends up as this: Db::getInstance()->execute(' INSERT INTO `'._DB_PREFIX_.'layered_product_attribute` (`id_attribute`, `id_product`, `id_attribute_group`, `id_shop`) SELECT pac.id_attribute, pa.id_product, ag.id_attribute_group, product_attribute_shop.`id_shop` FROM '._DB_PREFIX_.'product_attribute pa'. Shop::addSqlAssociation('product_attribute', 'pa').' INNER JOIN '._DB_PREFIX_.'product_attribute_combination pac ON pac.id_product_attribute = pa.id_product_attribute INNER JOIN '._DB_PREFIX_.'stock_available sa ON (sa.id_product_attribute = pac.id_product_attribute AND sa.quantity > 0) INNER JOIN '._DB_PREFIX_.'attribute a ON (a.id_attribute = pac.id_attribute) INNER JOIN '._DB_PREFIX_.'attribute_group ag ON ag.id_attribute_group = a.id_attribute_group '.(is_null($id_product) ? '' : 'AND pa.id_product = '.(int)$id_product).' GROUP BY a.id_attribute, pa.id_product , product_attribute_shop.`id_shop`' ); It almost helped me, the last problem is categories and manufacture. First case: I have 5 items before further filtering. When I pick one size seperatly, everything is fine I got 2,3,1,4,5 items, if I pick two or more sizes at once (for few items available), even if it is available for same items only, manufactures and categories count to full 5 items. Second case: when I have attribute size for 3 items but 1 item isn't available. I pick a size it shows two items (count for size is also 2 items), but 3 manufactures appear.
  12. 1 point
    Vous souhaitez réellement que nous abordions le soucis de la syntaxe des phares de ce topic ou de vos autre posts ? J'ai utiliser le verbe se faire chier pour appuyer mon agacement quand à l'utilisation faite par certain de ce forum pour venir quémander des solution et ne rien apporter en retour. D'où l'utilisation de ce terme un peut fort et familier mais néanmoins français.
  13. 1 point
    You can do this from the back office of your PrestaShop. First go to Catalog tab>Attributes and Groups sub-tab, click on the button Add attributes group and add a new group called, for example, size. After that use the Add attribute button on the Attributes and Groups sub-tab page to add the desired attributes (e.g. small, medium, large) to the new group. Then edit the product and use the Combinations tab to create combinations with the different sizes. Hope this helps.
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More