Search the Community
Showing results for tags 'image'.
-
Is your PrestaShop website slow? If so, you're not alone. A slow website can frustrate visitors and lead to lost sales. In fact, studies show that a 1-second delay in page load time can lead to a 7% decrease in conversions. But don't worry, there's a solution. The "Super Speed" module is designed to supercharge your PrestaShop website's performance, making it faster and more efficient. Our "Super Speed" module offers several advantages: it can enhance page load times by up to 50%, improve SEO rankings by making your website faster, and ultimately lead to increased conversions, resulting in higher sales and profits. If you're looking to accelerate your PrestaShop website and drive better results, the "Super Speed" module is the ideal solution for you. Super Speed module is now available on the PrestaShop Addons Marketplace. Download now: https://addons.prestashop.com/en/website-performance/44977-super-speed-incredibly-fast-webp-cache-seo.html Compatibility: PrestaShop 8, PrestaShop 1.7, and PrestaShop 1.6 Demo: Front office | Back office HOW SUPER SPEED MODULE CAN IMPROVE YOUR PRESTASHOP WEBSITE'S PERFORMANCE? Our "Super Speed" module enhances website speed through several strategies: By storing static content in cache files, including HTML, CSS, and images, the module avoids regenerating content for each user. This retrieval from the cache speeds up content display, benefiting the page load time. The module eliminates redundancy by cleaning the database and compressing CSS, JS, and HTML files. This reduces SQL query times, enabling quicker data retrieval and processing, ultimately boosting website speed. Our speed optimization tool for PrestaShop optimizes images and compresses files, reducing their size. Smaller files take less time to download, resulting in faster file loading and overall site speed improvement. Introduction Video: With over 8815+ downloads and a track record of satisfied customers, it's clear that this module delivers exceptional results. But don't just take our word for it; here's what a few of our customers have to say: Olajide A: "The module improved load time from 55 secs to 4.2 secs. and it gives us unlimited image optimizations with Lazy loads. I highly recommend this module to anyone looking to improve web load time." Martin K: "I have found this module to be very beneficial. It has significantly sped up my website, creating a marked improvement in the user experience for customers interacting with the site. This has made browsing and shopping so much smoother for my customers. The process of converting images to WebP format was also straightforward and without issues. This has resulted in a noticeably better performance. Therefore, I can confidently recommend this module for those looking to optimize their website." Soon Kheng L: "We are very happy with your prompt after-sales service. There was a minor issue, and PrestaHero fixed it on the same day! The Super Speed module is so great. Our website's loading time and speed have improved significantly. It is so easy to install and configure, with a single click on the 'Auto configuration' button. We are happy with this product and have purchased two other modules from PrestaHero. Thanks, PrestaHero!" With results like these and a growing community of satisfied users, Super Speed is the module you can trust to take your website's performance to the next level. Download Super Speed now and start speeding up your site! Have questions or need assistance? Feel free to leave a comment or contact directly to our technical support on Addons Marketplace.
-
- database optimization
- compress image
- (and 14 more)
-
Hi All, Greetings of the day. The module helps to add image on all website pages a preloader, also known, as a loading page, or preloading screen it’s the loading animation or static image that shows on the website while the page is loading in the background. Implement a preloader to make the product or app look more professional, reinforce the branding and product positioning, make the waiting time pass more quickly, and ultimately stop users from leaving the page before it’s ready to use. A good preloader should be visually pleasing and show progress visually through simple animations or good images. A preloader can be seen while waiting for a website or application to load Preloaders are important interface elements that let visitors know that the website hasn't crashed, it's just processing data Preloaders not only look fantastic, but they also play a critical part in the functionality of your website. While lengthy loading times are inconvenient, they do not have to be a deal-breaker. By deploying preloaders where required, you may reduce the loss of revenue caused by poor connections Preloading is a relatively new resource hint that can help web developers and SEO professionals set priorities for certain resources. This can improve the user experience by enhancing page speed. Page speed not only impacts the user experience, improving user signals on the site, but it is also an SEO factor Features : - A preloader gives your product a more professional look - A preloader reinforces branding - A preloader animation can decrease the bounce rate - Use your preloader to inspire and motivate your users - SEO-friendly. - Support all browsers: Firefox, Chrome, IE, Safari, etc. - Lightweight. (Smaller file size which loads faster.) - Increase sales, conversion rates, and product promotions. - Maintain existing customers & Attract new customers. - Lower marketing expenses, exposure to potential customers, and reach targeted audiences. - Compatible with PrestaShop 1.6.x,1.7.x,8.x.x - Multiple browsers compatibility(IE, Firefox, Opera, Safari, Chrome, and Edge). - Mobile, Tablet, and all devices compatible. - Module works without doing any change in existing files on PrestaShop store versions. - 24*7 Support - Good Documentation Installation : Step 1: Upload the module zip file from the back-office Module & Services menu tab. Module Manager area using the upload button. After the successful installation module menu, the link will appear in the left menu or top menu in the back-office area. Step 2: Install the module using the install button. Step 3: Visit the module management page from the back-office "More" area (section) in the left menu in the back-office. Step 4: The module installation process is very easy, how module configuration works can be seen in the demo instance. Step 5: Please visit our demo instance for module configuration and usage demo. Step 6: Get the preloader image or gif image or animation image URL to add from the module back-office. Step 7 : Please watch our demo video on our YouTube Channel for module configuration and usage demo. - Module works without making any change in the existing PrestaShop file so that existing customization and theme change do not affect. - We provide free technical and feature support in installation, and configuration, as well as access to updates available for this product. - Free support on installation, configuration, and customization as per store requirements, for example, new hook addition to your store Other : Please leave your valuable feedback after using the module. This will help to increase self-confidence, improve service, and enhance the module as per requirements to make it better for different online stores. Request: Please share your website URL after using the module to help others to see how the module works on your website. Download Module and Documentation readme_en.pdf Demo URL => https://www.presta-addons-modules.com/en/ Pay any amount as per your choice to get the multi-languages,multi-shops, and multi-shop-groups feature in the free addon Demo VIDEO sfkpreloader.zip
-
Hola a tod@s Estoy buscando e intentando adaptar un script para importar productos desde un csv automáticamente, en un Prestashop He visto una para Prestashop 1.6: Script Importacion Automatica Prestashop 1.6 Me gustaría poder adaptarlo para Prestashop 1.7 y dejarlo aquí para compartirlo He adaptado parte del código, pero en Prestashop 1.7 ha cambiado las funcionalidades: <?php // definimos la cabecera y el juego de caracteres header("Content-Type: text/html;charset=utf-8"); // colocamos el directorio de adminxxxxx en la variable cogiendo el directorio donde está este script con getcwd define('_PS_ADMIN_DIR_', getcwd()); // incluimos los parametros que se definieron en la instalación include(_PS_ADMIN_DIR_.'../../config/config.inc.php'); // incluimos las funciones php de Prestashop que vamos a usar // Que esta dentro de la carpeta del admin donde entrtamos al panel include(_PS_ADMIN_DIR_.'/functions.php'); // incluimos el script php que hace las importaciones de CSV de Prestashop include_once '../../controllers/admin/AdminImportController.php'; // Duda si la funcionalidad para importar productos en PS 1.7 esta en: //include_once '../../controllers/admin/AdminProductsController.php'; // loadProductsPost() -> loadProduct() ? function loadProduct() { $_POST = array ( 'tab' => 'AdminImport', 'skip' => '1', 'csv' => 'productos.csv', 'forceIDs' => '0', 'match_ref' => '1', 'convert' => '', 'entity' => '1', 'separator' => ';', 'multiple_value_separator' => ',', 'iso_lang' => 'es', 'import' => 'Importar datos CSV', 'type_value' => array ( 1 => "ID", 2 => "Activo (0/1)", 3 => "Nombre *", 4 => "Categorías (x,y,z...)", 5 => "Precio impuestos excluidos", 6 => "ID regla de impuestos", 7 => "Precio de coste", 8 => "En oferta (0/1)", 9 => "Valor del descuento", 10 => "Porcentaje de descuento", 11 => "Descuento desde (aaaa-mm-dd)", 12 => "Descuento hasta (aaaa-mm-dd)", 13 => "Referencia nº", 14 => "N° de referencia proveedor", 15 => "Proveedor", 16 => "Marca", 17 => "EAN13", 18 => "UPC", 19 => "Ecotasa", 20 => "Anchura", 21 => "Altura", 22 => "Profundidad", 23 => "Peso", 24 => "Cantidad", 25 => "Cantidad mínima", 26 => "Visible en", 27 => "Coste adicional del envío", 28 => "Unidad para el precio unitario", 29 => "Precio unitario", 30 => "Resumen", // Short Description 31 => "Descripción", // Long Description 32 => "Etiquetas (x,y,z...)", 33 => "Meta título", 34 => "Meta keywords", 35 => "Meta descripción", 36 => "URL reescrita", 37 => "Etiqueta cuando se encuentra en stock", 38 => "Etiqueta para cuando se permiten pedidos en espera", 39 => "Disponible para pedidos (0 = No, 1 = Yes)", 40 => "Fecha de disponibilidad del producto", 41 => "Fecha de creación del producto", 42 => "Mostrar Precio (0 = No, 1 = Yes)", 43 => "URL's de las imágenes (x,y,z...)", // Url de la imagen 44 => "Textos alternativos de imagen (x,y,z...)", 45 => "Elimine las imágenes existentes (0 = No, 1 = Yes)", 46 => "Característica (Nombre:Valor:Posición:Personalizado)", // Feature( Name:Value:Position ) 47 => "Solo disponible por Internet (0 = No, 1 = Yes)", 48 => "Estado", 49 => "Personalizable (0 = No, 1 = Yes)", 50 => "Se pueden subir archivos (0 = No, 1 = Yes)", 51 => "Campos de texto (0 = No, 1 = Yes)", 52 => "Fuera de stock", // Out of stock 53 => "ID / Nombre de la tienda", 54 => "Administración Avanzada de Stock ", 55 => "Dependiendo del stock", 56 => "Almacén", ), ); } $import = New AdminImportController(); loadProduct(); ¿Alguno ha podido adaptar un script similar? o ¿sabéis que funciones tengo que usar para enviar el csv? Muchas gracias!
-
Witam, zmieniałam szablon sklepu i chciałam aby zdjęcia wyświetlały się w formacie 3:4 a nie 1:1. Wszystko ustawiłam i nowe produkty wyświetlają się prawidłowo Ale stare produkty (zdjęcia są w tym samym formacie) wyglądają tak: Robiłam ponowne generowanie miniatur (wyczyściłam cache) ale nic to nie zmienia. Dodam że gdy wyświetlam powiększone zdjęcia w panelu administracyjnym (katalog->produkt->*zdjęcie*->powiększ)to wyświetlają się bez białych pasków.
-
Return Error to Customer with Low Quality Image Upload
TilliumsTeam posted a topic in General topics
Good Afternoon, Does anyone know of a module that will display an error about image quality when a customer uploads an image to the website? We create tiles that can use customers pictures however I would like some message to be displayed to the customer about the low quality image. Something like: "The image selected is less than 72dpi. This may affect the quality of the final product. Please us another image if available." Customers don't always have a better image to use and I do not want to prohibit them sending it but I do want to warn them before they purchase. -
free [FREE] Best Zoom Magnifier Effect - BAZoom Magnifier
tdsoft posted a topic in Free Modules & Themes
Allow customer magnify product images when hover on desktop or tap on mobile phone on every pages. Perfect Work On Mobile, Tablet and any Browser Merchant Benefit Improve conversions on your Prestashop Store Zoom product images with a nice effect on your store Making a product display clean, crystal, nice Main Features Zoom Product Images on Product Detail, Quickview (Optional) Zoom Product Images on multiple pages as: Category, Search, Special, Best Seller, New Products page., Best Seller Block, New Products Block, Popular Block Fully responsive image zoomer, Work for Mobile, Tablet and smaller devices Separate Zoom Effect on Mobile or Desktop Include 5 effects on Desktop: Lens, Lens Square, Box Zoom Left, Box Zoom Right, Sniper Zoom; 3 effects on Mobile/Tablet: Lens, Lens Square, Sniper Zoom Multiple types of zoom Multiple languages, multiple store Simple Setting, Easy Use: Just Install, enable/disable options from Backoffice for using, without writing a single line of code. Separate settings for mobile devices Improved responsive design to naturally fit your page better than ever. Faster loading and image rendering give the best performance yet. Full customize for your styles, your prestashop store Some Screenshot for Preview Frontend Some Screenshot for Preview Backoffice Customer Benefit Magnify images to judge the fabric, material quality, make and manufacture of the product. Zoom Magnifier Effect help customer aware of what they are about to receive. Download: Free Download Link: Download If you have any questions, we are ready to work for help you Change log Released version 1.0.11 - fix zoomfixs.js for choose combination, for multiple themes Released version 1.0.12 - fix zoomfixs.js for open modal when click, change document.ready to window.load Released version 1.0.13 - compatible to Prestashop 1.7.7+- 208 replies
-
- 4
-
-
-
- prestashop free modules
- prestashop module
-
(and 5 more)
Tagged with:
-
Bonjour je viens d'installer PrestaShop 8 en local pour faire la mise à jour de mes modules qui fonctionnent parfaitement sur PrestaShop 1.7 Mais je constate que le logo du module a cette ne s'affiche pas Après l'étape ci-dessus, mon module propose un page de paiement personnalisé, même à ce niveau, les image ne s'affichent pas. j'ai utilisé ce bout de code pour gérer les images : $logo_path = _PS_MODULE_DIR_ . $this->name . '/views/img/allmobilepay.png'; $dsitspaymentmobiles->setLogo(Media::getMediaPath($logo_path)); sa marche bien dans la 1.7 mais pas dans la 8 NB: tout le module fonctionne déjà bien dans PrestaShop 8 à part ce problème. Comment faire svp?
-
Bonjour à tous, Étant novice je ne sais pas trop où poster cela car ce n'est pas une question, mais une solution Je cherchais un moyen de rajouter les images dans la barre de recherche de Prestashop, pour avoir l'image ainsi que le nom du produit avec la recherche Ajax en marche. Il se trouve que j'ai parcouru des centaines (bon j'éxagère un peu) de pages de forum (espagnol, anglais, francais, polska...) et rien ne marchait. J'ai trouvé une solution qui fonctionne et je voulais la partager avec vous au cas où certains chercheraient également! Pour cela il faut modifier deux fichier : la classe Search.php ainsi que blocksearch.js 1/ Dans le fichier /classes/Search.php A la ligne 286 (approximativement) il faut remplacer : if ($ajax) { $sql = 'SELECT DISTINCT p.id_product, pl.name pname, cl.name cname, cl.link_rewrite crewrite, pl.link_rewrite prewrite '.$score.' FROM '._DB_PREFIX_.'product p INNER JOIN `'._DB_PREFIX_.'product_lang` pl ON ( p.`id_product` = pl.`id_product` AND pl.`id_lang` = '.(int)$id_lang.Shop::addSqlRestrictionOnLang('pl').' ) '.Shop::addSqlAssociation('product', 'p').' INNER JOIN `'._DB_PREFIX_.'category_lang` cl ON ( product_shop.`id_category_default` = cl.`id_category` AND cl.`id_lang` = '.(int)$id_lang.Shop::addSqlRestrictionOnLang('cl').' ) WHERE p.`id_product` '.$product_pool.' ORDER BY position DESC LIMIT 10'; return $db->executeS($sql, true, false); } par cela : if ($ajax) { $sql = 'SELECT DISTINCT p.id_product, pl.name pname, cl.name cname, cl.link_rewrite crewrite, pl.link_rewrite prewrite '.$score.', pi.id_image pimg FROM '._DB_PREFIX_.'product p INNER JOIN `'._DB_PREFIX_.'product_lang` pl ON ( p.`id_product` = pl.`id_product` AND pl.`id_lang` = '.(int)$id_lang.Shop::addSqlRestrictionOnLang('pl').' ) '.Shop::addSqlAssociation('product', 'p').' INNER JOIN `'._DB_PREFIX_.'category_lang` cl ON ( product_shop.`id_category_default` = cl.`id_category` AND cl.`id_lang` = '.(int)$id_lang.Shop::addSqlRestrictionOnLang('cl').' ) INNER JOIN `'._DB_PREFIX_.'image` pi ON ( p.`id_product` = pi.`id_product` AND position = 1 ) WHERE p.`id_product` '.$product_pool.' ORDER BY position DESC LIMIT 10'; return $db->executeS($sql, true, false); } // Explication : dans la requête SQL on rajoute un paramêtre pour rechercher l'image. On prend l'id du produit, et grâce à celui-ci on cherche l'image correspondante dans la table ps_image on prend seulement l'image a la position 1. Le tout encapsulé dans une variable pimg <!-- Petit tip : Vous pouvez créer un override de la classe Search.php --> 2/ Dans le fichier /themes/monTheme/modules/blocksearch/blocksearch.js Il vous faut rajouter l'image dans le data en ajax à la ligne 51 Remplacer : parse: function(data) { var mytab = []; for (var i = 0; i < data.length; i++) mytab[mytab.length] = { data: data[i], value: data[i].cname + ' > ' + data[i].pname }; return mytab; }, par cela : parse: function(data) { var mytab = new Array(); for (var i = 0; i < data.length; i++){ mytab[mytab.length] = { data: data[i], value: '<img src="http://monpresta.com/img/p/' + data[i].pimg + '-small_default.jpg" /> ' + data[i].pname}; } return mytab; }, //Explication : Une fois que nous avons l'id de notre image dans la variable pimg il nous faut l'insérer dans le parse qui renvoie les données. N'oubliez pas que les images sont contenus dans le dossier racine /img/p/ et comme nous voulons une petite image je lui ai ajouté la caractéristique -small_default.jpg pour ne pas que le chargement soit trop long! <!-- Petit truc, j'ai rajouté des {} au for, mais vous n'êtes carrément pas obligés! --> Si vous avez des questions ou des remarques n'hésitez pas. Simon
-
Hello guys! I saw a lot of information about that, but I can't got the solution. I would like to put DIFFERENT and CUSTOM icons for my Category's on Vertical Menu, like the image below. Is it possible? Thank you!
-
Hi,, anyone can help me with sql query? I have a query for export products with combination,, but I only get 1 images for 1 combination item. example if I have 1 products with 2 combination and 3 images in each combination,, this query only give me 2 images url. how can I get all images url? *sorry for my english, hope someone can help me,, thanks.. SELECT p.active 'Active', m.name 'Manufacturer', p.id_product 'Product number', p.reference 'Reference', pl.name 'Product name', GROUP_CONCAT(DISTINCT(al.name) SEPARATOR ", ") AS 'Combination', s.quantity 'Quantity', p.price 'Price w/o VAT', pa.price 'Combination price', p.wholesale_price 'Wholesale price', GROUP_CONCAT(DISTINCT(cl.name) SEPARATOR ",") AS 'Product groups', p.weight 'Weight', p.id_tax_rules_group 'TAX group', pa.reference 'Combination reference', pl.description_short 'Short description', pl.description 'Long description', pl.meta_title 'Meta Title', pl.meta_keywords 'Meta Keywords', pl.meta_description 'Meta Description', pl.link_rewrite 'Link', pl.available_now 'In stock text', pl.available_later 'Coming text', p.available_for_order 'Orderable text', p.date_add 'Added', p.show_price 'Show price', p.online_only 'Only online', CONCAT("http://", su.domain, su.physical_uri , IF(pai.id_image IS NOT NULL,pai.id_image,im.id_image), "/", REPLACE(REPLACE(REPLACE(pl.name," ","_"),"\"",""),"#",""), ".jpg") as "Image URL" FROM ps_product p LEFT JOIN ps_product_lang pl ON (p.id_product = pl.id_product and pl.id_lang=2) LEFT JOIN ps_manufacturer m ON (p.id_manufacturer = m.id_manufacturer) LEFT JOIN ps_category_product cp ON (p.id_product = cp.id_product) LEFT JOIN ps_category c ON (cp.id_category = c.id_category) LEFT JOIN ps_category_lang cl ON (cp.id_category = cl.id_category and cl.id_lang=2) LEFT JOIN ps_product_attribute pa ON (p.id_product = pa.id_product) LEFT JOIN ps_stock_available s ON (p.id_product = s.id_product and (pa.id_product_attribute=s.id_product_attribute or pa.id_product_attribute is null)) LEFT JOIN ps_product_tag pt ON (p.id_product = pt.id_product) LEFT JOIN ps_product_attribute_combination pac ON (pac.id_product_attribute = pa.id_product_attribute) LEFT JOIN ps_attribute_lang al ON (al.id_attribute = pac.id_attribute and al.id_lang=2) LEFT JOIN ps_shop sh ON p.id_shop_default = sh.id_shop LEFT JOIN ps_shop_url su ON su.id_shop = sh.id_shop AND su.main = 1 LEFT JOIN ps_image im ON (p.id_product = im.id_product AND im.cover = 1) LEFT JOIN ps_product_attribute_image pai ON (pai.id_product_attribute = s.id_product_attribute) GROUP BY p.id_product,pac.id_product_attribute order by p.id_product
-
Performance Pro - All in One Performance Pro includes image optimization (WebP), page-cache, cleaning tools, lazy loading, page optimization, HTML optimization, analytics, and more! READ MORE / PURCHASE HERE: https://addons.prestashop.com/en/website-performance/86977-performance-pro-all-in-one.html What this module does for you Performance Pro is the most advanced PrestaShop performance module on the market. The module will improve the performance of your website. Studies show that having a faster site increase the conversion rate considerably. There are numerous benefits to speed optimization, such as: Increased search engine ranking Reduced bounce rate Increased conversations Increased sales User satisfaction Higher order amounts What your customers will like Nobody likes to wait. It makes us feel like we're not a company's top priority. Consumers have even less patience when shopping online. Every second it takes your website to load, your chance of losing a customer increases. Studies show that your visitors associate the responsiveness of your site with your brand's responsiveness overall. A slow site, in other words, suggests slow customer service, slow product innovation, and slow everything else. Here are what you get with Performance Pro: Cleaning Clear smarty and SF cache Clear image cache Clear HTTP cache Clear media (CSS/JS) cache Clear XML cache Reset query cache Flush query cache Clear OP cache Delete log files from the filesystem Truncate log tables the from database Truncate e-mail logs the from database Clean up old useless data Repair tables Optimize and defrag tables Change database engine to InnoDb Delete search statistics Delete page-not-found statistics Delete connections statistics Delete unused images Delete broken images Delete empty image folders Remove temporary images Delete abandoned carts Delete expired cart rules Delete expired specific prices Resource loading Preload font links Preconnect to required origins Prefetch on hover Cache Page Cache Browser cache Lazy loading Lazy load images Lazy load iframes Lazy load videos Lazy load footer Page optimization Use passive event listeners Gzip/DEFLATE HTTP/2 push CSS Origin Agent Cluster Add noopener HTML Optimization Minify HTML Optimize attributes Defer Javascript Async image decoding Add missing image size Image Optimization Convert JPG images to WebP Convert PNG images to WebP Lossless compression of SVG images System Analytics Module Analytics Server Analytics Database Analytics Profiler READ MORE / PURCHASE HERE: https://addons.prestashop.com/en/website-performance/86977-performance-pro-all-in-one.html
- 9 replies
-
- performance
- image
-
(and 10 more)
Tagged with:
-
Hello, I've the following difficulty: I'm using the API to send products. When I use the PUT request - to update data - the images in my website disappear. They are in the admin (backend). I've to manually save the product for them to show. This is my xml: <prestashop xmlns:xlink="http://www.w3.org/1999/xlink"> <product> <id><![CDATA[74]]></id> <id_manufacturer>0</id_manufacturer> <id_supplier>0</id_supplier> <id_category_default><![CDATA[42]]></id_category_default> <id_shop_default>1</id_shop_default> <type>simple</type> <state>1</state> <reference>CLMOSAICO/2.5</reference> <minimal_quantity><![CDATA[1]]></minimal_quantity> <low_stock_threshold><![CDATA[0]]></low_stock_threshold> <price><![CDATA[107]]></price> <active>1</active> <available_for_order>1</available_for_order> <show_price>1</show_price> <visibility>both</visibility> <meta_description> <language id="1" xlink:href="https://algolinho.slz.pt/api/languages/1"></language> </meta_description> <meta_keywords> <language id="1" xlink:href="https://algolinho.slz.pt/api/languages/1"></language> </meta_keywords> <meta_title> <language id="1"></language> </meta_title> <name> <language id="1"> <![CDATA[Test Mosaico]]> </language> </name> <description> <language id="1"> <![CDATA[TEST TEXT]]> </language> </description> <description_short> <language id="1"> <![CDATA[Test 250X270]]> </language> </description_short> <associations> <categories nodeType="category" api="categories"> <category> <id>2</id> </category> <category> <id>42</id> </category> <category > <id>49</id> </category> </categories> <images><image xlink:href='https://mywebsite.pt/api/images/products/74/14'><id><![CDATA[14]]></id></image><image xlink:href='https://mywebsite.pt/api/images/products/74/15'><id><![CDATA[15]]></id></image></images> <product_option_values nodeType="product_option_value" api="product_option_values"> <product_option_value><id>54</id></product_option_value> <product_option_value><id>16</id></product_option_value> <product_option_value><id>25</id></product_option_value> </product_option_values> </associations> </product> </prestashop> I attach some images for a better understanding
-
When I try to make an axios post request to upload a product image using the endpoint '/api/images/products/id', I get a 400 error: Please set an "image" parameter with image data for value. Here's the snippet of the code i have. const form = new FormData() const image = await axios.get(image_url, {responseType: 'stream'}) const fileName = 'image.png' form.append('image', image.data, fileName) const headers = {...form.getHeaders(), Authorization: 'Basic ${key}'} const imageData = await axios.post(`https://presta-fair.net/api/images/products/${id}`, form, {headers}) Any help would be greatly appreciated. Thanks!
-
Bonjour à tous, je suis face à un problème et je ne trouve aucune réponse à celui-ci. Lors de l'import d'une image dans l'édition de produit, des images de différentes tailles sont créées. Ma problématique est la suivante, je souhaite afficher sur ma page produit l'image initialement importée et non pas une des images qui a été créer automatiquement par Prestashop. Cela fait quelques semaines que je cherche une solution et je ne sais pas si cela est possible sur Prestshop. La version de mon Prestashop est la suivante si ça peu aider 😇 Version de PrestaShop : 1.7.5.2
-
Hello, I have a problem importing my products. Every time I try to import a .CSV I get an "Error copying image" message, but the products are imported. If I activate the Debugg mode, I just don't care about the products and I get the error: Symfony Exception: file_get_contents_curl failed to download https://upload.wikimedia.org/wikipedia/commons/8/8b/Prestashop-logo-vector.png : (error code 28) Connection timed out after 5001 milliseconds. I use php 7.4, and I also just updated to the latest version 1.7.8.7 in case it was an error from the previous one, but without success. Thank you very much for the help!
-
Hello. I'm new in the community and to the platform, but I've been experiencing one particular issue that I just couldn't solve. I've tried everything, but it just won't import unless the each combination's image number is less or equal to one. Not to mention that even when that's only one image it doesn't always import anyway (seems kinda random when I, whether or not, can import without an issue). Here's an example of what's been going on: Imagine a product A, which has 3 colors, red, blue and yellow. In this product, I want (in each combinaton) 2 images, one being the product A respective combination color image, and the other being an image with all variants of the product A. Here's an example of what I've been doing. Product ID || Atribute || Value || Image URLs 1 || Color || Red || http://mydomain.com/images/1-red,http://mydomain.com/images/1-set 1 || Color || Blue || http://mydomain.com/images/1-blue,http://mydomain.com/images/1-set 1 || Color ||Yellow|| http://mydomain.com/images/1-yellow,http://mydomain.com/images/1-set For some reason, everytime I try to import something like this, it just won't import. (Except maybe, a really big maybe, one or two lines, the first and second ones) I already tried to open chrome's console to see whatever is going on but everytime it keeps on coming the same PHP error: No file was uploaded (even when one or two lines were imported, which doesn't make any sense whatsoever). Attached my CSV files for testing. Hope someone can help me. Thanks. combinações_spot.csv produtos_spot.csv
- 4 replies
-
- import
- combination
-
(and 3 more)
Tagged with:
-
Bonjour, Voici le soucis que je n'arrive pas à régler à propos de la mauvaise indexation des images produits due à la réécriture des URLs. J'ai une boutique sur Prestashop 1.7.5.2 et j'ai remarqué une fluctuation d'indexation des images produits par Google Images. En fait, le problème vient du fait qu'une même image peux avoir une infinité d'URLs différentes, exemple : boutique.fr/550-thickbox_default/nom-du-produit-1.jpg (celle que je souhaite) boutique.fr/550-thickbox_default/texte-aleatoire.jpg boutique.fr/550-thickbox_default/nom-du-produit-853.jpg etc.... Ainsi, pour afficher mon image, Prestashop n'utilise pas la deuxième partie de l'URL qui peut donc être totalement différente du produit en question, le système n'a besoin que de la première partie à savoir : "550-thickbox_default". D'où mon problème, comment faire pour que toutes les URLs possibles aient une redirection vers "boutique.fr/550-thickbox_default/nom-du-produit-1.jpg" ? En cherchant, je vois beaucoup d'autres boutiques sous Prestashop avoir le même soucis de réécriture d'URL d'image mais, pour autant, pas de réponses ou de solutions proposées. Si quelqu'un peut m'aider, peut-être ai-je raté/changé une configuration ou une modification du .htaccess ou encore de la classe Link ? Cordialement.
-
Je ne peux pas inserer des images au produit et danc la page home aprés la migration du site d'un serveur à un autre Un code d'erreur s'affiche merci d'avance !
-
How can I get the cover image of the product? From PHP file, not tpl file. I saw a post regarding getting the image in tpl file.
-
I have a question on what is the correct size of images to upload to the store, especially in relation to "Generate high resolution images" option. I read many posts about image sizes, but no one specifically mention this one. So, when uploading images, ideally the should be of size as it is defined in Design -> Image settings. If not precisely that dimension, at least the aspect ratio should be the same. PrestaShop will then anyway create several versions of the image for thumbnails etc. If "Generate high resolution images" is enabled, PrestaShop will generate one more set of images with double the resolution for retina displays. So if the image size defined in Image settings for product_default is 466x620px, should I upload images of size 466x620px or 932x1240px? I do understand that PrestaShop will handle almost any image with any size, but we are talking here about image sizes so that we achieve the best photo sharpness and no size distortion. Thanks in advance, for any experience on this.
-
Bonjour, Version 1.7.8.5 / Thème Alysum J'ai récemment téléchargé un module pour ajouter des champs dans le BO des produits sur le site "Friends of Presta". Ce module est très intéressant car il utilise la syntaxe moderne pour le développement des modules. Cependant, j'aimerais qu'à la place d'ajouter un champ TEXT dans le BO produit, il m'ajoute un champ FILE. J'ai donc tenté quelques modifications et mon champ FILE est bien affiché. Le problème est qu'il faut que je sauvegarde cette image et je n'ai aucune idée de comment faire. J'essaie de voir si, comme le champ TEXT, la valeur du champ (String) s'enregistre en BDD, non. J'essaie de getValue() mon input à l'appel du hook "actionProductSave", il est vide. Je mets ci-joint le module dans l'état que j'ai actuellement. Je suis preneur de toute piste possible car j'aimerais, malgré les gros changements, bien comprendre comment fonctionne les modules modernes. Merci par avance ! products.zip
-
Since this morning, I have been struggling with the problem that the photos in the categories are pixelated. The problem occurs in browsers based on the Chromium engine (Chrome, Edge, Opera). This problem does not exist with Firefox. In the attachment I am sending a screen from Chrome and Firefox for comparison and a link to the store for viewing: https://medpak.com.pl/nowe-produkty Firefox Chrome
-
Hello, I've recently updated my shop from 1.4 to 1.5. When I was using 1.4, I loaded tons of products with CSV-import. During the upgrade I realized that even though the shop have just over 30,000 products, the img/p contained hundreds of thousands of files, some of which were associated with products deleted from the site, surely because of various imports and batch product deletion. My images were originally in "1.4" filesystem ( img/p/x-y.jpg) After using the PS "move" tool to move the to the new img/p/x/y/z/... filesystem and regenerating thumbnail , I see I still have over 100.000+ images in img/p/ root directory. However, the "move image" said that all images were moved succesfully. Having so many products, I do not know if it's true or not, because I did not have the possibility to check for all product pictures. I think/hope that the "move images" feature rely on database ps_img table to check what are the "right" images to move... Am I right ? Questions : - Is it safe to delete those img/p/...jpg images (they are eating up a lot of space) ? Are those "orphans" images or should I keep them on the server ? - Is there a way or a tool to cleanup unused images from ftp in order to keep img/p clean and get rid of "unlinked" images ? Any suggestion is really appreciated.
-
Bonjour, mes images apparaissent côté admin mais plus côté public... Je n'ai touché à rien de spécial, y aurait il quelqu'un pour m'aider ? Merci d'avance...