Jump to content


Popular Content

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

  1. 1 point
    Non, les liens des changelogs^^
  2. 1 point
    Merci Johann, je deteste la pub déguisée sur les forums...! J'ai tenté de résoudre quelques points sur le site, si d'autres experts ont des avis : Merci !!
  3. 1 point
    Vous allez l'avoir dans \themes\classic\templates\catalog\_partials\miniatures\product.tpl Sinon je pensais aussi a la solution des groupes de clients, pour lesquels vous pouvez masquer le prix, voici un lien plus clair : https://www.reussir-mon-ecommerce.fr/comment-masquer-les-prix-avec-prestashop/ Cordialement,
  4. 1 point
    ces liens ont toujours été moisis, allez voir les changelogs sur github ou téléchargez les zip, ils sont dedans. Maintenant, les changelogs chez Prestashop c'est une version très très minimaliste des véritables changements effectués, seul un diff renseigne correctement.
  5. 1 point
    J'ai essayé plusieurs configurations je vais essayé celle ci du coup pour etre certain
  6. 1 point
    This should not be necessary. Is there something in common between these missings images? Look per FTP if images exist (especially the original image) in the folder. Do you have a backup of the files including these images? If not, maybe your provider offers automatic backups?
  7. 1 point
    Realmente le vas a dar al cliente a elegir entre mas de 250 opciones diferentes? incluso si son 20 opciones con 10 valores cada una es una barbaridad, el cliente final no va a ser posible de comprar o lo vera tan complicado que pasara de tus productos. Intenta reducir o que los productos sean separados por alguna de esas combinaciones, reduce las combinaciones que no se suelen pedir o añade algun modulo que la opcion de medidas sea una barra deslizante. Si yo entrara en un producto y tuviera mas de 5 o 6 opciones y estas tuvieran mas de 8 o 9 (por ejemplo tallas) tendria que interesarme mucho para comprarlo Si quieres pon aqui un ejemplo y alguno de nosotros puede decirte algun tipo de solucion, Añadir 250 opciones a un producto, me parece que es demasiado.
  8. 1 point
    Hi! You need to install next modules: ps_bestsellers, ps_newproducts and ps_specials. Download links: https://github.com/PrestaShop/ps_bestsellers https://github.com/PrestaShop/ps_newproducts https://github.com/PrestaShop/ps_specials NB! Unzip file and rename folder to right name (remove '-master'). Then compress file again and install module.
  9. 1 point
    Bonjour Johann , merci pour ta réponse rapide .
  10. 1 point
    Yop, I don't think Prestashop Themes are really useful with favicons. It really depends on the theme you've chosen. On Prestashop 1.6, you should use this favicon generator : https://www.favicon-generator.org This tool will give u some files and in an HTML file some URL Method goes that way : - upload favicons generated in /themes/img/favicons on /themes/yourtheme/img - delete theses lines in header.tpl on your theme (/themes/yourtheme/header.tpl) <link rel="icon" type="image/vnd.microsoft.icon" href="{$favicon_url}?{$img_update_time}" /> <link rel="shortcut icon" type="image/x-icon" href="{$favicon_url}?{$img_update_time}" /> - add theses lines instead (Prestashop 1.6) : <link rel="apple-touch-icon" sizes="57x57" href="{$img_dir}/apple-icon-57x57.png"> <link rel="apple-touch-icon" sizes="60x60" href="{$img_dir}/apple-icon-60x60.png"> <link rel="apple-touch-icon" sizes="72x72" href="{$img_dir}/apple-icon-72x72.png"> <link rel="apple-touch-icon" sizes="76x76" href="{$img_dir}/apple-icon-76x76.png"> <link rel="apple-touch-icon" sizes="114x114" href="{$img_dir}/apple-icon-114x114.png"> <link rel="apple-touch-icon" sizes="120x120" href="{$img_dir}/apple-icon-120x120.png"> <link rel="apple-touch-icon" sizes="144x144" href="{$img_dir}/apple-icon-144x144.png"> <link rel="apple-touch-icon" sizes="152x152" href="{$img_dir}/apple-icon-152x152.png"> <link rel="apple-touch-icon" sizes="180x180" href="{$img_dir}/apple-icon-180x180.png"> <link rel="icon" type="image/png" sizes="192x192" href="{$img_dir}/android-icon-192x192.png"> <link rel="icon" type="image/png" sizes="32x32" href="{$img_dir}/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="96x96" href="{$img_dir}/favicon-96x96.png"> <link rel="icon" type="image/png" sizes="16x16" href="{$img_dir}/favicon-16x16.png"> <link rel="manifest" href="{$img_dir}/manifest.json"> <meta name="msapplication-TileColor" content="#ffffff"> <meta name="msapplication-TileImage" content="{$img_dir}/ms-icon-144x144.png"> <meta name="theme-color" content="#ffffff"> For Prestashop 1.7, use {$urls.img_url} instead of {$img_url}, folder is still on your theme (but in a different place). Save, that's all. You'll have more that just Prestashop favicons. Depends on your current theme. Apple requires more than a simple favicon, or a Microsoft favicon. However, you should ask your host provider for chmod or chown (means you have or haven't the right permissions to write into some folders, as old floppy disks). I think ur problem went from provider, or a bad Prestashop install/theme. Do not worry for a simple favicon, you can simply force it on your theme (or child theme if u use PS 1.7, already seen this issue and solved it this way) EDIT : i've made a tutorial based on classic theme, using custom favicons. You can read it here : https://www.team-ever.com/prestashop-1-7-creer-un-theme-enfant-child-theme/ There's a classic child theme at the end of the tutorial. You will only have to upload your own favicons, and make sure favicon.ico is on your Prestashop root folder.
  11. 1 point
    Ok, i know it may be redundant, but if you have a ton of products you can actually use the category product listings. What I mean by this is that you can edit the module so that it can accept the {categories} tag. For instance, on a fresh PS installation, you can add stuff like {categories: 1,2,3} whatever, and it shall display all products in those categories. In my case, my website has over 5000 products and i need to make a "special" tempalte for those who what to see a simplified version of the products list. Provided you have the module up and running... HOW TO ACHIEVE THIS: In the CMSController override file, after: public function returnProducts($id_product) { $explode_products = explode(",", $id_product); foreach ($explode_products AS $idp) { $explode[] = $idp; foreach ($explode as $tproduct) { if ($tproduct != '') { $x = (array)new Product($tproduct, true, $this->context->language->id); $productss[$tproduct] = $x; $productss[$tproduct]['id_product'] = $tproduct; $image = self::getImagesByID($tproduct, 1); $picture = explode('-', $image[0]); $productss[$tproduct]['id_image'] = $picture[1]; } } } $products = Product::getProductsProperties($this->context->language->id, $productss); $this->context->smarty->assign('products', $products); $this->context->smarty->assign('feedtype', "cmsProductsFeed"); $contents = $this->context->smarty->fetch(_PS_MODULE_DIR_ . 'cmsproducts/products.tpl'); return $contents; } You need to duplicate this function and rewrite it, like so: //Display all products by category id public function returnCategoryProducts($id_category) { $explode_categories = explode(",", $id_category); foreach ($explode_categories as $idc) { $explode[] = $idc; foreach ($explode as $tcategories) { $categoryQuery = new Category($id_category); //grab the category id from the tag if ($tcategories != '') { foreach ($categoryQuery as $tcategorie) { // loop in the category arrays $categoryProducts = $categoryQuery->getProducts($this->context->language->id, 1, 100); //grab all the products associated with the specified category id $products = Product::getProductsProperties($this->context->language->id, $categoryProducts); $this->context->smarty->assign('products', $products); } } } } $this->context->smarty->assign('feedtype', "cmsProductsFeed"); $contents = $this->context->smarty->fetch(_PS_MODULE_DIR_ . 'cmsproducts/products.tpl'); return $contents; } Then, in the footer of the page, where you have: public function returnContent($contents) {... You need to duplicate the following function: /** PRODUCTS **/ preg_match_all('/\{products\:[(0-9\,)]+\}/i', $contents, $matches); foreach ($matches[0] as $index => $match) { $explode = explode(":", $match); $contents = str_replace($match, $this->returnProducts(str_replace("}", "", $explode[1])), $contents); } Then simpliy do some minor adjustments and end up with: /** CATEGORIES **/ preg_match_all('/\{categories\:[(0-9\,)]+\}/i', $contents, $matches); foreach ($matches[0] as $index => $match) { $explode = explode(":", $match); $contents = str_replace($match, $this->returnCategoryProducts(str_replace("}", "", $explode[1])), $contents); } // replaced $this->returnProducts with $this->returnCategoryProducts // and preg_match_all('/\{products\:[(0-9\,)]+\}/i', $contents, $matches); to preg_match_all('/\{categories\:[(0-9\,)]+\}/i', $contents, $matches); Then go ahead and try it out. I'm building my website as a web version of Microsoft Excell, displaying products as spreadsheets. Cheers!
  12. 1 point
    Try this solution: 1. Go on Facebook Developers: https://developers.facebook.com/docs/plugins/page-plugin#settings 2. In "Facebook Page URL" insert your page instead of “https://www.facebook.com/facebook” Below these boxes must be checked: - Adapt to plugin container width - Show Friend's Faces Next boxes must be unchecked: - Use Small Header - Hide Cover Photo - Show Page Posts 3. Push the button “Get Code” 4. Save code (one below “2. Place the code for your plugin wherever you want the plugin to appear on your page.” 5. Need to add in the code the following definition: “data-width="YYY" where YYY means dimension in pixels of your desire width of Facebook Like Box block. For example code for the Facebook page would look like this: <div class="fb-page" data-href="https://www.facebook.com/facebook" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true" data-show-posts="false" data-width=”379”><div class="fb-xfbml-parse-ignore"><blockquote cite="https://www.facebook.com/facebook"><a href="https://www.facebook.com/facebook">Facebook</a></blockquote></div></div> As I said 379 is the width in pixels of your desired Facebook Like Box block. 6. In the file “blockfacebook.tpl” remove code: <div class="fb-like-box" data-href="{$facebookurl|escape:'html':'UTF-8'}" data-colorscheme="light" data-show-faces="true" data-header="false" data-stream="false" data-show-border="false"> and replaces with the code above. 7. Done J. For me it works, I hope to be your helpful to you. It is responsive, but please take into account statements made by Facebook: https://developers.facebook.com/docs/plugins/page-plugin#resizing “No Dynamic Resizing The Page plugin works with responsive, fluid and static layouts. You can use media queries or other methods to set the width of the parent element, yet: The plugin will determine its width on page load It will not react changes to the box model after page load. If you want to adjust the plugin's width on window resize, you manually need to rerender the plugin.”
  13. 1 point
    There are a number of ways you could do that. One that I think makes a lot of sense is to require Composer’s autoload file from the primary PrestaShop Controller abstract class, which is inherited by all other controllers. Here’s how to do so: Create a file named Controller.php in override/classes/controller/ Paste this code into that file: <?php /* * Override the main Controller abstract class to require Composer's autoload file * Makes Composer packages available to your entire PrestaShop install */ abstract class Controller extends ControllerCore { public function __construct() { // Load Composer vendor packages require _PS_ROOT_DIR_ . '/vendor/autoload.php'; parent::__construct(); } } Note: after saving the override, make sure to delete the class cache file, located at cache/class_index.php .
  14. 1 point
    Hello, The "uploadable file" column in csv file is not to attach a file but to allow visitor to upload a file in front-end. I had to import a hundred of files with pdf attached and I managed to do it with a few changes: 1/ First, back up your files ad database, to avoid to delete attached files by mistake. 2/ in classes/attachment.php at the end of file, just before the very last }, add this: public function addAttachment($autodate = true, $nullValues = false) { $return = parent::add($autodate, true); return $return; } public static function addAttachmentImport($filename, $name, $description) { $attachment = new Attachment(); $languages = Language::getLanguages(); foreach ($languages as $language) $attachment->name[$language['id_lang']] = strval($name); $attachment->description[$language['id_lang']] = $description; $attachment->file = sha1($filename); $attachment->file_name = $filename; $path_file = _PS_DOWNLOAD_DIR_.$filename; $attachment->file_size = filesize($path_file); $finfo = finfo_open(FILEINFO_MIME_TYPE); $attachment->mime = finfo_file($finfo, $path_file); $attachment->addAttachment(); return (int)$attachment->id; } public static function addAttchmentProductImport($id_product, $id_attachment) { return Db::getInstance()->execute(' INSERT INTO `'._DB_PREFIX_.'product_attachment` (`id_attachment`, `id_product`) VALUES ('.(int)$id_attachment.', '.(int)$id_product.') '); } 2/ in controller/admin/AdminImportController.php search for case $this->entities[$this->l('Products')]: below, in the available_fields filst, search for 'delete_existing_images'=> array('label' => $this->l('Delete existing images (0 = No, 1 = Yes)')), just below, add this 'delete_existing_attachments' => array('label' => $this->l('Delete existing attachments (0 = No, 1 = Yes)')), 'attachment' => array('label' => $this->l('attachment')), Then in the same file, search for Feature::cleanPositions(); just below, add this // Attachment files import if (isset($product->delete_existing_attachments)) if ((bool)$product->delete_existing_attachments) if (isset($attachments['attachment']) && !empty($attachments['attachment'])) $attachment_filename = isset($tab_attachment[0]) ? $tab_attachment[0] : ''; $attachment_name = isset($tab_attachment[1]) ? trim($tab_attachment[1]) : $attachment_filename ; $attachment_description = isset($tab_attachment[2]) ? trim($tab_attachment[2]) : ''; if(!empty($attachment_filename)) { $id_attachment = (int)Attachment::addAttachmentImport($attachment_filename, $attachment_name, $attachment_description); Attachment::addAttchmentProductImport($product->id, $id_attachment); } } 3/ Place your attached files in folder /download Remember filenames must not contain spaces. 4/ In your csv file You can add several attached files per product. For each file, you must specify the filename, then you can specify a name and a description. Name and description are optional. To separate filename, name and description, use "|" as a separator. Add those two columns: - Attachment (filename|name|description) - Delete existing attachment (0 = No, 1 = Yes) Example for column "Attachment" (here your separator value is %): filename1.pdf|Name of my first pdf|Description of my first pdf%filename2.pdf%filename3.pdf I hope it works for you!
  15. 1 point
  16. 1 point
    Senkinek nem javaslom a Prestashop.hu-t, hogy arra építsen. Egyetlen dolog csak: nézzétek meg az ott készült fordítást a shophoz. Tele van helyesírási hibákkal, logikátlan fordításokkal. Zoli különböző nevek alatt hadban áll mindenkivel szerintem, eszem ágában nem lenne ilyen emberrel bármilyen szinten is együtt dolgozni, vagy modult vásárolni tőle. Itt a magyar szekcióban lehet találni épp elég embert aki segítőkész, és korrekt áron korrekt munkát kínál. Akinek kétsége van, elég ha átböngészi itt a magyar szekciót a Zoli és SPW hozzászólásait illetően. A következtetést mindenki vonja le magának némi olvasgatást követően.
  17. 1 point
    Heu non, le boulot d'un modo c'est pas d'éditer les posts des membres pour supprimer les liens morts... Si on devait le faire pour tous les liens morts du forum on aurait pas fini... m1bs le fera quand il passera... j'en suis sûr ;-)
  • Create New...

Important Information

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