-
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
-
Doing import of product and resizing images
Start Online Design replied to med's topic in Core developers
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! -
Filter on Price-Drop page
Start Online Design replied to sirDonald's topic in Configuring and using PrestaShop
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. -
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); }
-
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.'/',
- 7 replies
-
- 1
-
- login form
- create new account
-
(and 1 more)
Tagged with:
-
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.'/',
-
PM sent! Regards, http://developerprestashop.com
-
Look for a Prestashop developer or designer
Start Online Design replied to BCLightingUSA's topic in Job Offers
PM sent! Regards, -
Module Transporteur en fonction du stock
Start Online Design replied to julclo's topic in Appels d'offres et prestations
PM envoyé Cordialement, -
Recherche de Partenaire sous-traitant
Start Online Design replied to Archibold's topic in Appels d'offres et prestations
PM envoyé Cordialement, -
PM sent. Regards,
-
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.
-
Start Online Design started following [email protected]
-
Réel professionnel du SEO ?
Start Online Design replied to LeGastronome's topic in Appels d'offres et prestations
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 -
I have sent you a PM Best regards