Enrique Gómez 382 Posted August 10, 2013 (edited) This module relates the products by tag. You can configure globally the number of products showed in the carousel. The layout is for the default prestashop theme. Updated(10/10/2013)Modified installation Updated(29/11/2013)Fixed some bugs Updated(02/08/2014)Compatibility 1.6 Updated(02/08/2014)Compatibility 1.6 Updated(18/07/2016)Simplified. No use of overrides, no write to tpl, no database changes.. simply relates products by tag pele_relatedproducts.zip Edited July 19, 2016 by Enrique Gómez (see edit history) 9 Share this post Link to post Share on other sites
nadie 6,466 Posted August 10, 2013 Good module! Good contribution to the Community of Prestashop. Sorry for my English Share this post Link to post Share on other sites
syntaxed 3 Posted August 11, 2013 (edited) This is one awesome free module. I'm glad that you are continuing the update. Does this module need a product to contain tags for it to work? Can it just display products based on same category, or totally random with no relation to the tags at all? -- Just figured out there is a built in modules for that. Thanks. Edited August 11, 2013 by syntaxed (see edit history) Share this post Link to post Share on other sites
Enrique Gómez 382 Posted August 12, 2013 This is one awesome free module. I'm glad that you are continuing the update. Does this module need a product to contain tags for it to work? Can it just display products based on same category, or totally random with no relation to the tags at all? -- Just figured out there is a built in modules for that. Thanks. At this moment it's based completely on products that share the same tag. For the same category Prestashop has a built in module productscategory. If you want totally random, all products must share the same tag and then check the random checkbox for all products (and possibly you'll want to limit the number of related products...) If you are interested I can put here the sql update sentences to do it quickly. Share this post Link to post Share on other sites
ropencho 0 Posted September 10, 2013 I love this pluggin. Somebody could helpme to give it form and design like the related category? Because now it didnt work. Let me know if some one could give me a hand Share this post Link to post Share on other sites
Enrique Gómez 382 Posted September 11, 2013 (edited) I love this pluggin. Somebody could helpme to give it form and design like the related category? Because now it didnt work. Let me know if some one could give me a hand Hi Rodrigo, Each template is different, yours may be similar to the image attatched (Template monster) This template has the $HOOK_PRODUCT_TAB and $HOOK_PRODUCT_TAB_CONTENT with the following layout. Which is clearly not prepared for having tabs, because if you have more than one tab the result will be a completely mess. <section id="last_page_product" class="page_product_box toggle_frame"> {$HOOK_PRODUCT_TAB} <div id="more_info_sheets" class="toggle_content toggle_content_comment"> {if isset($HOOK_PRODUCT_TAB_CONTENT) && $HOOK_PRODUCT_TAB_CONTENT}{$HOOK_PRODUCT_TAB_CONTENT}{/if} </div> </section> the green mark is the HOOK_PRODUCT_TAB which has the html generated by pele_relatedproducts_tab.tpl and the pink is HOOK_PRODUCT_TAB_CONTENT which has the html generated by pele_relatedproducts.tpl. You can change the pele_relatedproducts_tab.tpl and use a <h3> instead of <li><a> to match the others headers The other (pele_relatedproducts.tpl) is a simple div with the products (but obviously don't have the javascript for the carousel) . But as if said if you have more than one module hooked to the tab the result will be a mess. Edited September 11, 2013 by Enrique Gómez (see edit history) Share this post Link to post Share on other sites
Serbun 0 Posted October 1, 2013 (edited) Good day, I installed this module and would like to change it, I hope I can help. My question is: I can change the title for the price?, What I mean instead of the picture appears with the title, I want to display the image with the price, believe you can? thanks and regards Edited October 1, 2013 by Serbun (see edit history) Share this post Link to post Share on other sites
Enrique Gómez 382 Posted October 2, 2013 (edited) Good day, I installed this module and would like to change it, I hope I can help. My question is: I can change the title for the price?, What I mean instead of the picture appears with the title, I want to display the image with the price, believe you can? thanks and regards You can do the following. Go to the pele_relatedproducts module folder. In pele_relatedproducts.php add the following at line 184 $other_value['displayed_price'] = Product::getPriceStatic($other_value['id_product']); Next in pele_relatedproducts.tpl you have <div id="idTab_RelatedProducts"> {if count($peleRelatedProducts) > 0} <div class="block_related_products clearfix"> {foreach from=$peleRelatedProducts item=peleRelatedProduct} <div class="block" style="float: left;width: 120px;height: 120px;margin-right: 20px;"> {if $peleRelatedProduct.image.id_image ne ""} <a href="{$peleRelatedProduct.link}" title="View {$peleRelatedProduct.name|htmlspecialchars}"><img src="{$link->getImageLink($peleRelatedProduct.image.link_rewrite, $peleRelatedProduct.image.id_image, 'medium_default')}" height="80" width="80"></a> {else} <a href="{$peleRelatedProduct.link}" title="View {$peleRelatedProduct.name|htmlspecialchars}"><img src="{$img_prod_dir}{$lang_iso}-default-medium.jpg" alt="" height="80" width="80" title="{$peleRelatedProduct.name|escape:'htmlall':'UTF-8'}" /></a> {/if} <br /> <a href="{$peleRelatedProduct.link}" title="View {$peleRelatedProduct.name|htmlspecialchars}">{$peleRelatedProduct.name|htmlspecialchars} </a> </div> {/foreach} </div> {else} <center><b>{l s='There are no related products at this time.' mod='pele_relatedproducts'}</b></center> {/if} </div> In lines 7 and 9 you have the image title. You can replace the image title so you get: {if $peleRelatedProduct.image.id_image ne ""} <a href="{$peleRelatedProduct.link}" title="{convertPrice price=$peleRelatedProduct.displayed_price}"><img src="{$link->getImageLink($peleRelatedProduct.image.link_rewrite, $peleRelatedProduct.image.id_image, 'medium_default')}" height="80" width="80"></a> {else} <a href="{$peleRelatedProduct.link}" title="{convertPrice price=$peleRelatedProduct.displayed_price}"><img src="{$img_prod_dir}{$lang_iso}-default-medium.jpg" alt="" height="80" width="80" title="{$peleRelatedProduct.name|escape:'htmlall':'UTF-8'}" /></a> {/if} Edited October 2, 2013 by Enrique Gómez (see edit history) 1 Share this post Link to post Share on other sites
Serbun 0 Posted October 3, 2013 Buen día enrique, gracias por contestar, hice lo que me dijiste, pero no me funciono, no sé si por que ya le había modificado algo antes, mira aquí te dejo mi página web: www.construlitaonline.com.mx. Gracias y quedo al pendiente. Share this post Link to post Share on other sites
Serbun 0 Posted October 3, 2013 Enrique Good day, thanks for answering, I did what you told me, but I worked, do not know if he had already changed something before, look here I leave my website: www.construlitaonline.com.mx. Thanks and stay tuned. Share this post Link to post Share on other sites
Enrique Gómez 382 Posted October 4, 2013 Enrique Good day, thanks for answering, I did what you told me, but I worked, do not know if he had already changed something before, look here I leave my website: www.construlitaonline.com.mx. Thanks and stay tuned. Buen día enrique, gracias por contestar, hice lo que me dijiste, pero no me funciono, no sé si por que ya le había modificado algo antes, mira aquí te dejo mi página web: www.construlitaonline.com.mx. Gracias y quedo al pendiente. I answer in the spanish thread -> http://www.prestashop.com/forums/topic/260539-modulo-productos-relacionados-por-tag-y-ordenables/page-2?do=findComment&comment=1404325 Share this post Link to post Share on other sites
jpmad4it 1 Posted October 18, 2013 Hi there, where can this module be downloaded from?? Share this post Link to post Share on other sites
Enrique Gómez 382 Posted October 19, 2013 Hi there, where can this module be downloaded from?? My mistake I uploaded a new version In the Spanish forum and forgot to add in this thread. Now it's available in the first post Share this post Link to post Share on other sites
jpmad4it 1 Posted October 24, 2013 (edited) Hi again, I have got the related product price displaying correctly, but how can I change this so that it shows the price with TAX / VAT? Any help would be amazing. Thanks in advance. EDIT: Oh I figured it out. Changed: $other_value['displayed_price'] = Product::getPriceStatic($other_value['id_product'],false); to $other_value['displayed_price'] = Product::getPriceStatic($other_value['id_product'],true); Edited October 24, 2013 by jpmad4it (see edit history) Share this post Link to post Share on other sites
Enrique Gómez 382 Posted October 27, 2013 Hi again, I have got the related product price displaying correctly, but how can I change this so that it shows the price with TAX / VAT? Any help would be amazing. Thanks in advance. EDIT: Oh I figured it out. Changed: $other_value['displayed_price'] = Product::getPriceStatic($other_value['id_product'],false); to $other_value['displayed_price'] = Product::getPriceStatic($other_value['id_product'],true); I forgot to change it . I upload the new version. Share this post Link to post Share on other sites
amar.prestashop 6 Posted November 6, 2013 Great module, i've not tested it yet but i like to implement this module soon. Only one thing i like to change, is possible to display the related products in the left or right column instead inside the product page ? I like to use a single product like a landing page for my SEO off-page actions and i like display the product with its related items on the right column. Thank you, Amar, Share this post Link to post Share on other sites
Enrique Gómez 382 Posted November 8, 2013 Great module, i've not tested it yet but i like to implement this module soon. Only one thing i like to change, is possible to display the related products in the left or right column instead inside the product page ? I like to use a single product like a landing page for my SEO off-page actions and i like display the product with its related items on the right column. Thank you, Amar, It's a question of hooking the module to the displayRightColumnProduct instead of the tab hooks and probably making some changes to the tpl file to fit your display needs. (it's not difficult but you need some prestashop module knowledge) Share this post Link to post Share on other sites
energise 0 Posted November 10, 2013 The Prestashop features page still says that "Related Products" is a built-in feature - See here: http://www.prestashop.com/en/features#2 What happened to it? I can't find any announcements! Share this post Link to post Share on other sites
vekia 8,950 Posted November 10, 2013 regarding to the: Related Products Displaying related products is a wonderful tool to “up-sell” customers while they browse a product’s page or during the final checkout. This feature allows you to choose which products are related and display them to your customers. For example, there may be an alternative model to a dish washer or great accessories to go with a dress, the Related Products feature will display the alternatives beneath the product description. it's a category products module, it's a part of default prestashop installation Share this post Link to post Share on other sites
tandor 0 Posted November 11, 2013 Great module, thank you so much, I made it work outside the tab section Share this post Link to post Share on other sites
amar.prestashop 6 Posted November 12, 2013 It's a question of hooking the module to the displayRightColumnProduct instead of the tab hooks and probably making some changes to the tpl file to fit your display needs. (it's not difficult but you need some prestashop module knowledge) Thank you Enrique Gòmez, Can you modify the tab hooks to display Right Column Product ? I will change the template. Anyway i will contact you in the next few days for custom jobs Amar, Share this post Link to post Share on other sites
sofronije 0 Posted December 14, 2013 (edited) After installing this module I cant insert iframe (youtube video) in description field. I get massaage: The description field (English) is invalid. This massage stay even after uninstalling a module. PrestaShop™ 1.5.5.0 Any ideas how to solve this problem? Or how to get back to original (witch files to restore from original insalation)? Edited December 14, 2013 by sofronije (see edit history) Share this post Link to post Share on other sites
vekia 8,950 Posted December 14, 2013 go to preferences > general and check this option: Share this post Link to post Share on other sites
pavomils 0 Posted December 24, 2013 Is it possible that, module will display only products with the same first tag? Share this post Link to post Share on other sites
Hepmi 0 Posted January 26, 2014 Hi, I have the problem with the module. On Screen set_product.png and set_pruduct2.png can see how I set the tags and product code. And the product still does not show related goods you are adding a screen :-( I use PS 1.5.6.1 thx for helphttp://sperky.relaxsimracers.eu Share this post Link to post Share on other sites
edge82 0 Posted January 28, 2014 Hi, The module works for me. I want to know how to add pagination to this module. Any idea? -Thanks Share this post Link to post Share on other sites
Enrique Gómez 382 Posted January 28, 2014 Hi, I have the problem with the module. On Screen set_product.png and set_pruduct2.png can see how I set the tags and product code. And the product still does not show related goods you are adding a screen :-( I use PS 1.5.6.1 thx for help http://sperky.relaxsimracers.eu Hi, the weight related numbers field is to introduce numbers with the aim of being capable of ordering the results. If you don't need the order issue leave it blank, the module won't let you save anything but numbers separated by commas in the Weight related products fields. In the description this is stated: "Weights (number) sepparated by commas, each one corresponds to the Tag by position" Share this post Link to post Share on other sites
Enrique Gómez 382 Posted January 28, 2014 Hi, The module works for me. I want to know how to add pagination to this module. Any idea? -Thanks The pagination issue can be taken care via javascript (with for example, some nice carousel plugin) or via ajax with php in the server side. The first option should be easier, so you only would need to find the right jquery plugin and configure it in the template. You would need some "front -end " skills. This would be a front end pagination but you really have all the data loaded in the page (but some info will be hidden by the jquery script, which is responsible of orchestrating the pagination). But the true pagination (the second option) implies more advanced skills in order to call php code to really pull the data from database. Share this post Link to post Share on other sites
Hepmi 0 Posted February 2, 2014 Hi, the weight related numbers field is to introduce numbers with the aim of being capable of ordering the results. If you don't need the order issue leave it blank, the module won't let you save anything but numbers separated by commas in the Weight related products fields. In the description this is stated: "Weights (number) sepparated by commas, each one corresponds to the Tag by position" I dont understand :-( Where i set weights number? Share this post Link to post Share on other sites
edge82 0 Posted February 3, 2014 Hi, Thanks for information and idea for pagination. Could you suggest any nice carousel plugin for pagination. -Thanks Share this post Link to post Share on other sites
zapmore 3 Posted February 9, 2014 This module looks awesome. Just wondering if the module have a responsive design? if not, how hard is it to implement? Share this post Link to post Share on other sites
Enrique Gómez 382 Posted February 16, 2014 Hi, Thanks for information and idea for pagination. Could you suggest any nice carousel plugin for pagination. -Thanks There are a lot, for example http://sorgalla.com/jcarousel/ And if your theme uses bootstrap you have one included http://www.w3resource.com/twitter-bootstrap/carousel-tutorial.php Share this post Link to post Share on other sites
Enrique Gómez 382 Posted February 16, 2014 This module looks awesome. Just wondering if the module have a responsive design? if not, how hard is it to implement? The layout is very simple... is a div with 120 px div blocks inside, so probably it will be in some way responsive given the fact that the blocks will reorganise to fit the size screen. But I find in every theme there's always some layout/css work (in all presentation modules) to fit your needs. Share this post Link to post Share on other sites
lukruk 4 Posted February 25, 2014 Hello Is polish version this module ? If is please same link to download Share this post Link to post Share on other sites
H0unter 0 Posted March 12, 2014 Nice module dude! I was wondering if you could help me. How i can change the numbers of product showed in the module? How can i change to "carrusel" style this module? Best regards Share this post Link to post Share on other sites
Enrique Gómez 382 Posted March 17, 2014 Nice module dude! I was wondering if you could help me. How i can change the numbers of product showed in the module? How can i change to "carrusel" style this module? Best regards To limit the number of related products you must fill in the Limit number of related products field in the product The carousel issue .... When I work on a theme that has a carousel I usually copy the tpl/js code from that "carouselised" module (for example product category) and I use it on my module, I usually change the hook to the footer. It's not really difficult but for now I prefer not to make a "carouselised" version and keep it simple. If I have time in the future I will change the position of the module to the footer and I'll add the carousel ability. Share this post Link to post Share on other sites
belladona 3 Posted March 23, 2014 (edited) I very love this module, it's perfect for my use. Since prestashop 1.6.X, he's not works :/ I use the default theme. Have you an idea why he dont works? incompatibility? the tag case is show, but not the case weight product. On product page, a sentence "related product" is write, and nothing. Thank you Enrique Gomez Edited March 23, 2014 by belladona (see edit history) Share this post Link to post Share on other sites
vitochueng 1 Posted March 25, 2014 Hi Great module! Is it Compatible with ps 1.5.6.2? Regards! Share this post Link to post Share on other sites
belladona 3 Posted March 26, 2014 Hi Great module! Is it Compatible with ps 1.5.6.2? Regards! yep vitochueng, atm, the 1.6.x version not with my tests. but 1.5.x no problem. I have already tested. very great module ^^ Share this post Link to post Share on other sites
Enrique Gómez 382 Posted March 27, 2014 (edited) I very love this module, it's perfect for my use. Since prestashop 1.6.X, he's not works :/ I use the default theme. Have you an idea why he dont works? incompatibility? the tag case is show, but not the case weight product. On product page, a sentence "related product" is write, and nothing. Thank you Enrique Gomez Sorry the module is tested with PS 1.5.X. With 1.6 doesn't work for now. I will adapt it in the next few weeks. Regards Edited March 27, 2014 by Enrique Gómez (see edit history) Share this post Link to post Share on other sites
belladona 3 Posted March 28, 2014 Sorry the module is tested with PS 1.5.X. With 1.6 doesn't work for now. I will adapt it in the next few weeks. Regards really? ^^ I m very happy to know you will update the module, in my website, it's a must have for me, and I dont have found any module to do the same fonction. Regards ps: if you need beta tester, I do it with pleasure Share this post Link to post Share on other sites
tomcruise 0 Posted April 7, 2014 hi, is there any way to hook this module in right side column of product page Share this post Link to post Share on other sites
ricardoferreira.net 1 Posted May 5, 2014 Hi, the module is offline ? thanks. Share this post Link to post Share on other sites
Enrique Gómez 382 Posted May 5, 2014 Hi, the module is offline ? thanks. I've tried downloading it and the link works.. What problem do you have? Share this post Link to post Share on other sites
ricardoferreira.net 1 Posted May 6, 2014 I've tried downloading it and the link works.. What problem do you have? Thanks, the link now works, thanks for the module! Share this post Link to post Share on other sites
miss-d 0 Posted June 4, 2014 Great module, thank you so much, I made it work outside the tab section Hi - can someone help me with removing the module of the tab hook? I'd like it displayed like "Products from same cat" - how can this be done? Thanks for the great module btw! Share this post Link to post Share on other sites
wizips 2 Posted June 4, 2014 Sorry the module is tested with PS 1.5.X. With 1.6 doesn't work for now. I will adapt it in the next few weeks. Regards Hi! When the expected completion of work on a version for prestashop 1.6? Thanks in advance! Share this post Link to post Share on other sites
Enrique Gómez 382 Posted August 2, 2014 Updated for 1.6. Tested with default theme -> same layout than native productscategory. In 1.6 the module hooks to productFooter The fields added are the same Share this post Link to post Share on other sites
NicePack 1 Posted August 21, 2014 Excuse me Enrique, do you know in wich file can I change the name of related products to not truncate them (show full name)? Thanks for any help! Share this post Link to post Share on other sites
Enrique Gómez 382 Posted August 21, 2014 Excuse me Enrique, do you know in wich file can I change the name of related products to not truncate them (show full name)? Thanks for any help! For the 1.6 version the file is pele_relatedproducts_16.tpl. The line is <a href="{$peleRelatedProduct.link}" title="{$peleRelatedProduct.name|htmlspecialchars}">{$peleRelatedProduct.name|truncate:14:'...'|escape:'html':'UTF-8'}</a> the truncate is what does the job (obviously). You can use {$peleRelatedProduct.name|escape:'html':'UTF-8'} instead Share this post Link to post Share on other sites
NicePack 1 Posted August 21, 2014 Fixed it. Thanks a lot and great module! Share this post Link to post Share on other sites
NicePack 1 Posted August 21, 2014 Sorry to bother you again. I try to show the price under ProductName but no success. It seems that you have a hidden line {*convertPrice price=$peleRelatedProduct.displayed_price*} I unmarket it but it happened nothing. I also tried to copy/paste the lines on productscategory.tpl <p class="price_display"> <span class="price{if isset($categoryProduct.specific_prices) && $categoryProduct.specific_prices} special-price{/if}">{convertPrice price=$categoryProduct.displayed_price}</span> {if isset($categoryProduct.specific_prices.reduction) && $categoryProduct.specific_prices.reduction && $categoryProduct.specific_prices.reduction_type == 'percentage'}<span class="price-percent-reduction small">-{$categoryProduct.specific_prices.reduction * 100}%</span>{/if} {if isset($categoryProduct.specific_prices) && $categoryProduct.specific_prices}<span class="old-price">{displayWtPrice p=$categoryProduct.price_without_reduction}</span>{/if} </p> But no luck either. Is there any way to show price with the module? Share this post Link to post Share on other sites
Enrique Gómez 382 Posted August 21, 2014 Sorry to bother you again. I try to show the price under ProductName but no success. It seems that you have a hidden line That line does exactly that Strip the * So {convertPrice price=$peleRelatedProduct.displayed_price} will render the price formatted The price is with taxes. To show prices without taxes go to pele_relatedproducts.php line 296 change the true for false. So $other_value['displayed_price'] = Product::getPriceStatic($other_value['id_product'],false); Share this post Link to post Share on other sites
danvers 0 Posted August 23, 2014 Hello Enrique, I've installed your module and thank you a lot for it! I've managed to display title, price, category. But I need to display the name of the manufacturer. I've tried with {Manufacturer::getNameById($categoryProduct.id_manufacturer)|escape:'htmlall':'UTF-8'} where I would like to appear in the .tpl file, but there's nothing. Do you know how I can get the name of the manufacturer? Best regards, Share this post Link to post Share on other sites
DARKF3D3 39 Posted August 25, 2014 (edited) Hi Enrique, I just installed the module on PS1.6 and it works perfectly. EDIT: Now I'm trying to edit the module because i would like to show a fixed number of related products, so I also need to disable the scrolling freature. Edited August 28, 2014 by DARKF3D3 (see edit history) Share this post Link to post Share on other sites
Enrique Gómez 382 Posted August 30, 2014 Hi Enrique, I just installed the module on PS1.6 and it works perfectly. EDIT: Now I'm trying to edit the module because i would like to show a fixed number of related products, so I also need to disable the scrolling freature. Ok, to show a fixed number is possible to do it within the module new fields below tags and disabling the scrolling can be achieved deleting the script from pele_relatedproducts_16.tpl <script type="text/javascript"> $(document).ready(function() { if (!!$.prototype.bxSlider) $('#bxslider_pele').bxSlider({ minSlides: 2, maxSlides: 6, slideWidth: 178, slideMargin: 20, pager: false, nextText: '', prevText: '', moveSlides:1, infiniteLoop:false, hideControlOnEnd: true }); }); </script> Share this post Link to post Share on other sites
DARKF3D3 39 Posted August 30, 2014 Thanks Enrique, it worked! Share this post Link to post Share on other sites
Enrique Gómez 382 Posted August 30, 2014 (edited) Hello Enrique, I've installed your module and thank you a lot for it! I've managed to display title, price, category. But I need to display the name of the manufacturer. I've tried with {Manufacturer::getNameById($categoryProduct.id_manufacturer)|escape:'htmlall':'UTF-8'} where I would like to appear in the .tpl file, but there's nothing. Do you know how I can get the name of the manufacturer? Best regards, You need to join the manufacturer table in the SQL that queries the products so, yo may change the function pele_getProductsOrderByWeight to: public function pele_getProductsOrderByWeight( $id_tag, $id_lang, $index_tag) { return Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(' SELECT pl.name, m.name as manufacturer_name, pl.id_product, REPLACE(SUBSTRING(SUBSTRING_INDEX(p.pele_related_tag_weight, ",", '.$index_tag.'), LENGTH(SUBSTRING_INDEX(p.pele_related_tag_weight, ",", '.$index_tag.' -1)) + 1), ",", "") as weight FROM `'._DB_PREFIX_.'product` p LEFT JOIN `'._DB_PREFIX_.'product_lang` pl ON p.id_product = pl.id_product'.Shop::addSqlRestrictionOnLang('pl').' '.Shop::addSqlAssociation('product', 'p').' LEFT JOIN `'._DB_PREFIX_.'manufacturer` m ON p.id_manufacturer = m.id_manufacturer WHERE pl.id_lang = '.(int)$id_lang.' AND product_shop.active = 1 '.('AND p.id_product IN (SELECT pt.id_product FROM `'._DB_PREFIX_.'product_tag` pt WHERE pt.id_tag = '.(int)$id_tag.')') .' ORDER BY weight DESC, pl.name ASC'); } this way in the tpl you can access the {$peleRelatedProduct.manufacturer_name} and in case of being one assigned it will be displayed. Edited August 30, 2014 by Enrique Gómez (see edit history) Share this post Link to post Share on other sites
danvers 0 Posted September 1, 2014 (edited) Thank you for your help Enrique Edited October 12, 2014 by danvers (see edit history) Share this post Link to post Share on other sites
danvers 0 Posted October 12, 2014 (edited) Hello Enrique, Sorry to bother again, I've noticed something weird and annoying: When I add a new product or if I just re-saved a product in the back office, the module create a new tag even if the tag already exist. I have put the overriden files in the right path (validate.php, tag.php, & product.php) Is that because I've 4731 tags? Is that too much for the module? edit: I've managed to see why it wasn't working: The validate.php file was empty.... now that I've put the original one, it's works like a charm! Edited October 22, 2014 by danvers (see edit history) Share this post Link to post Share on other sites
abhiz.2007 1 Posted October 12, 2014 just out of curosity any idea what is the ideal tag count per product? or what are the guidelines for tagging Share this post Link to post Share on other sites
PrestaShark 129 Posted October 15, 2014 (edited) I will make it responsive if author dont have any objections? Writed before testing After test it is responsive but can be elegant with owl.carousel(2) script. Otherwise i have looking for this kind of module from a long time! Great contribution! Liked! http://zazl.linuxpl.info/16/tshirts/1-faded-short-sleeve-tshirts.html demo with integrated owl.carousel(2) script instead of oooold bxslider ultra responsive draggable - on mobile too! Edited October 15, 2014 by PrestaShark (see edit history) Share this post Link to post Share on other sites
Enrique Gómez 382 Posted October 17, 2014 I will make it responsive if author dont have any objections? Writed before testing After test it is responsive but can be elegant with owl.carousel(2) script. Otherwise i have looking for this kind of module from a long time! Great contribution! Liked! http://zazl.linuxpl.info/16/tshirts/1-faded-short-sleeve-tshirts.html demo with integrated owl.carousel(2) script instead of oooold bxslider ultra responsive draggable - on mobile too! Yes you can do it whataever improvement you want and share it. The 1.6 version uses the default theme responsive carrousel. Share this post Link to post Share on other sites
Enrique Gómez 382 Posted October 17, 2014 just out of curosity any idea what is the ideal tag count per product? or what are the guidelines for tagging Tags are others ways of categorizing productos (more transversal) so you can use it to relate products. Share this post Link to post Share on other sites
Enrique Gómez 382 Posted October 17, 2014 Hello Enrique, Sorry to bother again, I've noticed something weird and annoying: When I add a new product or if I just re-saved a product in the back office, the module create a new tag even if the tag already exist. I have put the overriden files in the right path (validate.php, tag.php, & product.php) Is that because I've 4731 tags? Is that too much for the module? It's really strange, the module doesn't deal too much with the "normal" prestashop way of saving tags (it adds an order field). Probably it seems another issue (maybe Presta bug?) Share this post Link to post Share on other sites
danvers 0 Posted October 22, 2014 It's really strange, the module doesn't deal too much with the "normal" prestashop way of saving tags (it adds an order field). Probably it seems another issue (maybe Presta bug?) I've managed to see why it wasn't working: The validate.php file was empty.... now that I've put the original one, it's works like a charm! Share this post Link to post Share on other sites
Compolux 2 Posted November 19, 2014 (edited) Hello, I tried to install this modul, but I received instalation error - override classes. Is some way, how to fix this problem with instalation? Thanks Edited November 19, 2014 by Compolux (see edit history) Share this post Link to post Share on other sites
Enrique Gómez 382 Posted November 24, 2014 Hello, I tried to install this modul, but I received instalation error - override classes. Is some way, how to fix this problem with instalation? Thanks This happens because there's some other module that overrides the same method, in those cases prestashop can't do the mix of the two files. So the best approach is that you rename the override folder in my module (for example to_override) so Prestashop understands that he doesn't need to copy the files. This way the module installs fine but you need to copy the files manually in the override folders and do the mix in the method that is overwritten by both modules (normally is quite straightforward). Finally delete the class_index.php that is in the cache folder that will load the new classes. Share this post Link to post Share on other sites
tUb26 4 Posted November 25, 2014 Hello! I've used the CYRelatedProducts module with great success, so I wanted to try out the updated one, thank you for sharing. Unfortunately, I can't install the module (on PS 1.5.6.2), because I get the error message that says the __construct method in the Product class is already overwritten. Anyone came across the same problem? Regards: tUb26 Share this post Link to post Share on other sites
Enrique Gómez 382 Posted December 1, 2014 Hello! I've used the CYRelatedProducts module with great success, so I wanted to try out the updated one, thank you for sharing. Unfortunately, I can't install the module (on PS 1.5.6.2), because I get the error message that says the __construct method in the Product class is already overwritten. Anyone came across the same problem? Regards: tUb26 In cases where exists a method that is already overwritten you need to do the mix between files by hand. it is quite straightforward. So if you rename the override folder in the my pele_relatedproducts folder (for example to_override) Prestashop doesn't try to move the files so the module installs fine but you need to move the files into their corresponding place in the Prestashop override folder. Share this post Link to post Share on other sites
marykryu 1 Posted December 7, 2014 Enrique, thanks for your job! That's very useful module ) I just wanna ask you how switch theme of your module from carousel to products tab/grid? I have Presta 1.6 Yes you can do it whataever improvement you want and share it. The 1.6 version uses the default theme responsive carrousel. Share this post Link to post Share on other sites
marykryu 1 Posted December 7, 2014 Sorry ) One more question )) How can i add short description after name? Thanks Share this post Link to post Share on other sites
ying kit 0 Posted January 8, 2015 (edited) Hola Enrique , he instalado el módulo , está excelente ...pero necesito aumentar el tamaño de la descripción del producto relacionado es, no me aparece toda la descripción del producto , me puedes ayudar donde debo hacerlo ?? Mil gracias !!! Edited January 8, 2015 by ying kit (see edit history) Share this post Link to post Share on other sites
lumalogi 0 Posted February 17, 2015 Hello Enrique! Great module!! I have a question How can I add the button compare? Share this post Link to post Share on other sites
vendugeek 2 Posted March 11, 2015 Hello, Can you give me another slider code because it does not work on my website Thank you Share this post Link to post Share on other sites
PrestaShark 129 Posted March 11, 2015 Hello, Can you give me another slider code because it does not work on my website Thank you Hi, I love owl.carousel slider/carousel script. Here is content of pele_relatedproducts_16.tpl file {if count($peleRelatedProducts) > 0} <section class="page-product-box blockpeleproductsrelated"> <h3 class="peleproductsrelated_h3 page-product-heading">{l s='Related Products' mod='pele_relatedproducts'}</h3> <div id="peleproductsrelated_list" class="clearfix"> <div class="related owl-carousel owl-theme owl-loaded"> {foreach from=$peleRelatedProducts item='peleRelatedProduct' name=categoryProduct} <div class="item"> <a href="{$peleRelatedProduct.link}" class="lnk_img product-image" title="{$peleRelatedProduct.name|htmlspecialchars}"><img src="{$link->getImageLink($peleRelatedProduct.image.link_rewrite, $peleRelatedProduct.image.id_image, 'home_default')|escape:'html':'UTF-8'}" alt="{$peleRelatedProduct.name|htmlspecialchars}" /></a> <h5 class="product-name text-center"> <a href="{$peleRelatedProduct.link}" title="{$peleRelatedProduct.name|htmlspecialchars}">{$peleRelatedProduct.name|escape:'html':'UTF-8'}</a> </h5> {*convertPrice price=$peleRelatedProduct.displayed_price*} <br /> </div> {/foreach} </div> </div> </section> {/if} Share this post Link to post Share on other sites
vendugeek 2 Posted March 11, 2015 That is not work for me i don't know why, Another question, how can i choose the number of products showed ? Share this post Link to post Share on other sites
Darkaim13 0 Posted April 29, 2015 Does anyone know how to add a tag to a bunch of products based on: a feature for example by using sql queries??? For example: SELECT feature FROM *products ADD TAG Thanks in advance!!! Share this post Link to post Share on other sites
Enrique Gómez 382 Posted April 30, 2015 Does anyone know how to add a tag to a bunch of products based on: a feature for example by using sql queries??? For example: SELECT feature FROM *products ADD TAG Thanks in advance!!! In the backoffice you can add/remove products form tags section. The sql is not an easy one. Share this post Link to post Share on other sites
Darkaim13 0 Posted April 30, 2015 Thanks for the answer. Is there a quicker way than this because I have around 3000 products? Also I would like to ask another question. How can you set for all products a set number of slides and to show random products? Is there a way to change this in the module php code? I dont want for a specific tag but for all of them. A tag may have 200 products. It's too time consuming to go in every product and set it. Share this post Link to post Share on other sites
Darkaim13 0 Posted April 30, 2015 In addition, have anyone managed to implement owl carousel in this module? Where do I put the files I download from owl carousel website? Share this post Link to post Share on other sites
Bojdeuca 0 Posted May 4, 2015 Thank you, Enrique Gómez, for the module, you saved my day! Share this post Link to post Share on other sites
SnaikBG 0 Posted May 15, 2015 Is there a way to chose specific related products, for instance i want when i open the product X to see the product Y as related but when i open the product Y there wont be any related products ? Share this post Link to post Share on other sites
profoon 0 Posted May 16, 2015 (edited) Thanks allot for this fine module, works outstanding in PS 1.6.0.14 had to increase the "truncate to 35" in line 12 of the "pele_relatedproducts_16.tpl" the original was to short. I have a question? how do I center the text in this module . thanks in advance. OK found it, just put <center> after product-name at line11 like this : " class="product-name"><center> " Edited May 16, 2015 by profoon (see edit history) Share this post Link to post Share on other sites
Enrique Gómez 382 Posted May 19, 2015 Is there a way to chose specific related products, for instance i want when i open the product X to see the product Y as related but when i open the product Y there wont be any related products ? It's not possible, the relation between tag items is bidirectional Share this post Link to post Share on other sites
Enrique Gómez 382 Posted May 19, 2015 (edited) Thanks for the answer. Is there a quicker way than this because I have around 3000 products? Also I would like to ask another question. How can you set for all products a set number of slides and to show random products? Is there a way to change this in the module php code? I dont want for a specific tag but for all of them. A tag may have 200 products. It's too time consuming to go in every product and set it. You can set it directly on the code public function hookProductTabContent($params) { // final array $pele_related_products = array(); // grab the product id $id_product = intval(Tools::getValue('id_product')); $prod= new Product($id_product); $number_of_products=strlen($prod->pele_related_limit_number_products)==0?-1:$prod->pele_related_limit_number_products; After that override the variable adding the line $number_of_products=10 in line 312 if($prod->pele_related_random_order){ shuffle($pele_related_products); } remove the if so you have always the call to shuffle shuffle($pele_related_products); Edited May 19, 2015 by Enrique Gómez (see edit history) Share this post Link to post Share on other sites
isabella_brown 3 Posted May 19, 2015 Great module.Glad to know that it is a free one. I am going to test this soon in my new website. Share this post Link to post Share on other sites
Darkaim13 0 Posted June 5, 2015 It just came to my attention that I have two sets of bx-controls on my product page. The one is right next to product title ( ) and the other is on the module block. I have tried and tried to remove one of them with no luck. I checked the code and I saw that there are two bx-wrappers inside the module that each one has its own set of controls. Why the one is next to product title I dont know. I just want the controls on the module. Any suggestions? I place here the url if anyone can help: http://papantoniou.gr/el/monterna-fotistika/2817-fotistiko-kremasto-agatha-metalliko-mauro-monofoto.html Thanks in advance. Share this post Link to post Share on other sites
Enrique Gómez 382 Posted June 9, 2015 (edited) It just came to my attention that I have two sets of bx-controls on my product page. The one is right next to product title ( ) and the other is on the module block. I have tried and tried to remove one of them with no luck. I checked the code and I saw that there are two bx-wrappers inside the module that each one has its own set of controls. Why the one is next to product title I dont know. I just want the controls on the module. Any suggestions? I place here the url if anyone can help: http://papantoniou.gr/el/monterna-fotistika/2817-fotistiko-kremasto-agatha-metalliko-mauro-monofoto.html Thanks in advance. Each theme has his markup the module his for the default template ... It seems that you need to delete 1 and add postition relative to 2 http://i.imgur.com/CLhNvRU.png Edited June 9, 2015 by Enrique Gómez (see edit history) Share this post Link to post Share on other sites