Jump to content

Start Online Design

Members
  • Posts

    135
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Start Online Design's Achievements

Newbie

Newbie (1/14)

11

Reputation

1

Community Answers

  1. Hi, The code is something like this. Just have to replace $tmpfile with your image file. $image_obj = new Image($id_image); $path = $image_obj->getPathForCreation(); ImageManager::resize($tmpfile, $path.'.jpg'); $images_types = ImageType::getImagesTypes($entity); foreach ($images_types as $image_type) { ImageManager::resize($tmpfile, $path.'-'.Tools::stripslashes($image_type['name']).'.jpg', $image_type['width'], $image_type['height']); if (in_array($image_type['id_image_type'], $watermark_types)) Hook::exec('actionWatermark', array('id_image' => $id_image, 'id_product' => $id_entity)); } But, there are also a few modules on addons.prestashop.com that can help you save a lot of time with importing images. I wrote an article about this on my blog here: https://developerprestashop.com/blog/prestashop-modules-for-mass-bulk-import-or-upload-product-images/ Hope it helps. Cheers!
  2. a more simpler way is to create a category named "Special discounts" for example and then associate all the products to that category. You can automate this, but you need a programmer, by creating a php script that gets all the reduced priced products and associates them with "Special discounts" category. Finally you could add this script (path) to your server cron jobs and set it to run as frequent as you want.
  3. Here is what you should do for 1.6 versions: 1. edit product.js and change axis "x" to "y" by replacing this code: if (!!$.prototype.serialScroll) $('#thumbs_list').serialScroll({ items:'li:visible', prev:'#view_scroll_left', next:'#view_scroll_right', axis:'x', offset:0, start:0, stop:true, onBefore:serialScrollFixLock, duration:700, step: 2, lazy: true, lock: false, force:false, cycle:false }); with this code: if (!!$.prototype.serialScroll) $('#thumbs_list').serialScroll({ items:'li:visible', prev:'#view_scroll_left', next:'#view_scroll_right', axis:'y', offset:0, start:0, stop:true, onBefore:serialScrollFixLock, duration:700, step: 2, lazy: true, lock: false, force:false, cycle:false }); 2. edit product.css and put the code bellow: #image-block { width:75% !important; float:right; } #views_block { float: left !important; width: 20% !important; margin-top: 0px !important; } #thumbs_list { max-width:100% !important; height:285px !important; margin-top:10px; } #thumbs_list ul#thumbs_list_frame { max-width:100% !important; height:285px !important; overflow:visible !important; } .view_scroll_spacer, .carousel-controls { top: 0px !important; } span.view_scroll_spacer .carousel-control.left { left: 55px !important; top: -25px !important; -ms-transform: rotate(90deg); -webkit-transform: rotate(90deg); transform: rotate(90deg); } span.view_scroll_spacer .carousel-control.right { left: 55px !important; top: 295px !important; -ms-transform: rotate(90deg); -webkit-transform: rotate(90deg); transform: rotate(90deg); }
  4. Hi everyone! I found a solution. At least it worked for my client shop. In FrontController i changed this code: 'base_uri' => $protocol_content.Tools::getHttpHost().__PS_BASE_URI__.(!Configuration::get('PS_REWRITING_SETTINGS') ? 'index.php' : ''), to this code: 'base_uri' => $protocol_content.Tools::getHttpHost().__PS_BASE_URI__.(!Configuration::get('PS_REWRITING_SETTINGS') ? 'index.php' : '').$this->context->language->iso_code.'/',
  5. Hi everyone! I found a solution. At least it worked for my client shop. In FrontController i changed this code: 'base_uri' => $protocol_content.Tools::getHttpHost().__PS_BASE_URI__.(!Configuration::get('PS_REWRITING_SETTINGS') ? 'index.php' : ''), to this code: 'base_uri' => $protocol_content.Tools::getHttpHost().__PS_BASE_URI__.(!Configuration::get('PS_REWRITING_SETTINGS') ? 'index.php' : '').$this->context->language->iso_code.'/',
  6. PM sent! Regards, http://developerprestashop.com
  7. Salutare! Suntem o firma de development Prestashop. Am deschis un grup si o pagina pe Facebook, destinate comunitatii Prestashop din Romania, care nu prea e vizibila. So... va invitam sa dati like la pagina http://www.facebook....estashopromania si/sau add la grupul http://www.facebook....51085254998797/ Pe grup, dar si pe pagina va puteti pune linkuri spre magazinele voastre online.
  8. Thanks! Good solution, but it is temporary because begining with 1.6 the function displayHeader will be removed
  9. Bonjour, Nous sommes une agence web et nous offrons également services de SEO. Plus de détails ici: http://startonlinedesign.eu/seo/ Cordialement, Start Online Design
×
×
  • Create New...