Jump to content

wouterb038

Members
  • Posts

    14
  • Joined

  • Last visited

About wouterb038

  • Birthday 11/25/1991

Contact Methods

Profile Information

  • Location
    Zwolle
  • Interests
    Prestashop & Drupal
  • Activity
    Freelancer

Recent Profile Visitors

4,607,860 profile views

wouterb038's Achievements

Newbie

Newbie (1/14)

  • Dedicated Rare
  • Week One Done Rare
  • One Month Later Rare
  • One Year In Rare

Recent Badges

1

Reputation

  1. Glad it's fixed! My own solution is not completely through the structure prestashop. The other is of course simplerer and better Could you please mark this topic as [sOLVED] ?
  2. Hi Dusticelli, I made a mistake. You need to change te following: productcomments-extra.tpl Change this <ul class="comments_advices"> <li> <a class="reviews" href=""> .......... To. ---> <ul class="comments_advices"> <li> <a class="reviews"> .......... After this you have to add a bit of CSS. You can place the productcomments.css but may also in other files (for example global.css or product.css) ul.comments_advices li a.reviews:hover { cursor:pointer; } let me know if it worked
  3. Hello, I made a quick solution for this: 1. Edit file productcomments.js (in themes/**your-theme**/js/modules/productcomments/productcomments.js) Comment out the following code: $(document).on('click', 'a[href=#idTab5]', function(e){ $('*[id^="idTab"]').addClass('block_hidden_only_for_screen'); $('div#idTab5').removeClass('block_hidden_only_for_screen'); $('ul#more_info_tabs a[href^="#idTab"]').removeClass('selected'); $('a[href="#idTab5"]').addClass('selected'); }); Like this: /* $(document).on('click', 'a[href=#idTab5]', function(e){ $('*[id^="idTab"]').addClass('block_hidden_only_for_screen'); $('div#idTab5').removeClass('block_hidden_only_for_screen'); $('ul#more_info_tabs a[href^="#idTab"]').removeClass('selected'); $('a[href="#idTab5"]').addClass('selected'); }); */ After this add following code: $("#product_comments_block_extra .reviews").click(function() { $('html,body').animate({ scrollTop: $("#idTab5").offset().top}, 'slow'); }); The file should now look like this: /* * 2007-2015 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2015 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ $(document).ready(function(){ $('input.star').rating(); $('.auto-submit-star').rating(); if (!!$.prototype.fancybox) $('.open-comment-form').fancybox({ 'autoSize' : false, 'width' : 600, 'height' : 'auto', 'hideOnContentClick': false }); $(document).on('click', '#id_new_comment_form .closefb', function(e){ e.preventDefault(); $.fancybox.close(); }); /* $(document).on('click', '.reviews', function(e){ $('*[id^="idTab"]').addClass('block_hidden_only_for_screen'); $('div#idTab5').removeClass('block_hidden_only_for_screen'); $('ul#more_info_tabs a[href^="#idTab"]').removeClass('selected'); $('a[href="#idTab5"]').addClass('selected'); }); */ $("#product_comments_block_extra .reviews").click(function() { $('html,body').animate({ scrollTop: $("#idTab5").offset().top}, 'slow'); }); $(document).on('click', 'button.usefulness_btn', function(e){ var id_product_comment = $(this).data('id-product-comment'); var is_usefull = $(this).data('is-usefull'); var parent = $(this).parent(); $.ajax({ url: productcomments_controller_url + '?rand=' + new Date().getTime(), data: { id_product_comment: id_product_comment, action: 'comment_is_usefull', value: is_usefull }, type: 'POST', headers: { "cache-control": "no-cache" }, success: function(result){ parent.fadeOut('slow', function() { parent.remove(); }); } }); }); $(document).on('click', 'span.report_btn', function(e){ if (confirm(confirm_report_message)) { var idProductComment = $(this).data('id-product-comment'); var parent = $(this).parent(); $.ajax({ url: productcomments_controller_url + '?rand=' + new Date().getTime(), data: { id_product_comment: idProductComment, action: 'report_abuse' }, type: 'POST', headers: { "cache-control": "no-cache" }, success: function(result){ parent.fadeOut('slow', function() { parent.remove(); }); } }); } }); $(document).on('click', '#submitNewMessage', function(e){ // Kill default behaviour e.preventDefault(); // Form element url_options = '?'; if (!productcomments_url_rewrite) url_options = '&'; $.ajax({ url: productcomments_controller_url + url_options + 'action=add_comment&secure_key=' + secure_key + '&rand=' + new Date().getTime(), data: $('#id_new_comment_form').serialize(), type: 'POST', headers: { "cache-control": "no-cache" }, dataType: "json", success: function(data){ if (data.result) { $.fancybox.close(); var buttons = {}; buttons[productcomment_ok] = "productcommentRefreshPage"; fancyChooseBox(moderation_active ? productcomment_added_moderation : productcomment_added, productcomment_title, buttons); } else { $('#new_comment_form_error ul').html(''); $.each(data.errors, function(index, value) { $('#new_comment_form_error ul').append('<li>'+value+'</li>'); }); $('#new_comment_form_error').slideDown('slow'); } } }); }); }); function productcommentRefreshPage() { window.location.reload(); } 2. Edit file productcomments-extra.tpl (in themes/**your-theme**/modules/productcomments/productcomments-extra.tpl) Replace the code as shown below {* * 2007-2015 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2015 PrestaShop SA * @version Release: $Revision$ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {if (!$content_only && (($nbComments == 0 && $too_early == false && ($is_logged || $allow_guests)) || ($nbComments != 0)))} <div id="product_comments_block_extra" class="no-print" itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating"> {if $nbComments != 0} <div class="comments_note clearfix"> <span>{l s='Rating' mod='productcomments'} </span> <div class="star_content clearfix"> {section name="i" start=0 loop=5 step=1} {if $averageTotal le $smarty.section.i.index} <div class="star"></div> {else} <div class="star star_on"></div> {/if} {/section} <meta itemprop="worstRating" content = "0" /> <meta itemprop="ratingValue" content = "{if isset($ratings.avg)}{$ratings.avg|round:1|escape:'html':'UTF-8'}{else}{$averageTotal|round:1|escape:'html':'UTF-8'}{/if}" /> <meta itemprop="bestRating" content = "5" /> </div> </div> <!-- .comments_note --> {/if} <ul class="comments_advices"> {if $nbComments != 0} <li> <a class="reviews"> {l s='Read reviews' mod='productcomments'} (<span itemprop="reviewCount">{$nbComments}</span>) </a> </li> {/if} {if ($too_early == false AND ($is_logged OR $allow_guests))} <li> <a class="open-comment-form" href="#new_comment_form"> {l s='Write a review' mod='productcomments'} </a> </li> {/if} </ul> </div> {/if} <!-- /Module ProductComments --> After this you have to add a bit of CSS. You can place the productcomments.css but may also in other files (for example global.css or product.css) ul.comments_advices li a.reviews:hover { cursor:pointer; }
  4. Hello, I made a quick solution for this: 1. Edit file productcomments.js (in themes/**your-theme**/js/modules/productcomments.js) Comment out the following code: $(document).on('click', 'a[href=#idTab5]', function(e){ $('*[id^="idTab"]').addClass('block_hidden_only_for_screen'); $('div#idTab5').removeClass('block_hidden_only_for_screen'); $('ul#more_info_tabs a[href^="#idTab"]').removeClass('selected'); $('a[href="#idTab5"]').addClass('selected'); }); Like this: /* $(document).on('click', 'a[href=#idTab5]', function(e){ $('*[id^="idTab"]').addClass('block_hidden_only_for_screen'); $('div#idTab5').removeClass('block_hidden_only_for_screen'); $('ul#more_info_tabs a[href^="#idTab"]').removeClass('selected'); $('a[href="#idTab5"]').addClass('selected'); }); */ After this add following code: $("#product_comments_block_extra .reviews").click(function() { $('html,body').animate({ scrollTop: $("#idTab5").offset().top}, 'slow'); }); The file should now look like this: /* * 2007-2015 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2015 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ $(document).ready(function(){ $('input.star').rating(); $('.auto-submit-star').rating(); if (!!$.prototype.fancybox) $('.open-comment-form').fancybox({ 'autoSize' : false, 'width' : 600, 'height' : 'auto', 'hideOnContentClick': false }); $(document).on('click', '#id_new_comment_form .closefb', function(e){ e.preventDefault(); $.fancybox.close(); }); /* $(document).on('click', '.reviews', function(e){ $('*[id^="idTab"]').addClass('block_hidden_only_for_screen'); $('div#idTab5').removeClass('block_hidden_only_for_screen'); $('ul#more_info_tabs a[href^="#idTab"]').removeClass('selected'); $('a[href="#idTab5"]').addClass('selected'); }); */ $("#product_comments_block_extra .reviews").click(function() { $('html,body').animate({ scrollTop: $("#idTab5").offset().top}, 'slow'); }); $(document).on('click', 'button.usefulness_btn', function(e){ var id_product_comment = $(this).data('id-product-comment'); var is_usefull = $(this).data('is-usefull'); var parent = $(this).parent(); $.ajax({ url: productcomments_controller_url + '?rand=' + new Date().getTime(), data: { id_product_comment: id_product_comment, action: 'comment_is_usefull', value: is_usefull }, type: 'POST', headers: { "cache-control": "no-cache" }, success: function(result){ parent.fadeOut('slow', function() { parent.remove(); }); } }); }); $(document).on('click', 'span.report_btn', function(e){ if (confirm(confirm_report_message)) { var idProductComment = $(this).data('id-product-comment'); var parent = $(this).parent(); $.ajax({ url: productcomments_controller_url + '?rand=' + new Date().getTime(), data: { id_product_comment: idProductComment, action: 'report_abuse' }, type: 'POST', headers: { "cache-control": "no-cache" }, success: function(result){ parent.fadeOut('slow', function() { parent.remove(); }); } }); } }); $(document).on('click', '#submitNewMessage', function(e){ // Kill default behaviour e.preventDefault(); // Form element url_options = '?'; if (!productcomments_url_rewrite) url_options = '&'; $.ajax({ url: productcomments_controller_url + url_options + 'action=add_comment&secure_key=' + secure_key + '&rand=' + new Date().getTime(), data: $('#id_new_comment_form').serialize(), type: 'POST', headers: { "cache-control": "no-cache" }, dataType: "json", success: function(data){ if (data.result) { $.fancybox.close(); var buttons = {}; buttons[productcomment_ok] = "productcommentRefreshPage"; fancyChooseBox(moderation_active ? productcomment_added_moderation : productcomment_added, productcomment_title, buttons); } else { $('#new_comment_form_error ul').html(''); $.each(data.errors, function(index, value) { $('#new_comment_form_error ul').append('<li>'+value+'</li>'); }); $('#new_comment_form_error').slideDown('slow'); } } }); }); }); function productcommentRefreshPage() { window.location.reload(); } 2. Edit file productcomments-extra.tpl (in themes/**your-theme**/modules/productcomments/productcomments-extra.tpl) Replace the code as shown below {* * 2007-2015 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2015 PrestaShop SA * @version Release: $Revision$ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {if (!$content_only && (($nbComments == 0 && $too_early == false && ($is_logged || $allow_guests)) || ($nbComments != 0)))} <div id="product_comments_block_extra" class="no-print" itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating"> {if $nbComments != 0} <div class="comments_note clearfix"> <span>{l s='Rating' mod='productcomments'} </span> <div class="star_content clearfix"> {section name="i" start=0 loop=5 step=1} {if $averageTotal le $smarty.section.i.index} <div class="star"></div> {else} <div class="star star_on"></div> {/if} {/section} <meta itemprop="worstRating" content = "0" /> <meta itemprop="ratingValue" content = "{if isset($ratings.avg)}{$ratings.avg|round:1|escape:'html':'UTF-8'}{else}{$averageTotal|round:1|escape:'html':'UTF-8'}{/if}" /> <meta itemprop="bestRating" content = "5" /> </div> </div> <!-- .comments_note --> {/if} <ul class="comments_advices"> {if $nbComments != 0} <li> <a href="" class="reviews"> {l s='Read reviews' mod='productcomments'} (<span itemprop="reviewCount">{$nbComments}</span>) </a> </li> {/if} {if ($too_early == false AND ($is_logged OR $allow_guests))} <li> <a class="open-comment-form" href="#new_comment_form"> {l s='Write a review' mod='productcomments'} </a> </li> {/if} </ul> </div> {/if} <!-- /Module ProductComments -->
  5. Hello In prestashop 1.6 you can specify a number of colors per product, eg I sell a keychain in the colors white, black, blue, red, green. Now he shows the product page good al colors. Only the product list he shows only 3 of the 5 show, so only the color white, black, blue. Now I looked at the product list.tpl if I could change the number somewhere, but this is not the case, the only thing I can find is: {if isset ($ product.color_list)} <div class="color-list-container"> product.color_list {$} </ div> {/ if} So my question is: how do instead of 3 colors, 5 colors? thanks ____ French translation Version ____ Bonjour En prestashop 1.6, vous pouvez spécifier un nombre de couleurs par produit, par exemple, Je vends un porte-clé dans les couleurs blanc, noir, bleu, rouge, vert. Maintenant, il montre cette page magnifique. Le produit Seule la liste de produit qu'il ne montre que 3 des 5 spectacle, alors que la couleur blanc, noir, bleu. Maintenant, je regardais les list.tpl produits si je pouvais changer le nombre quelque part, mais ce n'est pas le cas, la seule chose que je peux trouver est: {Si isset ($ product.color_list)} <div product.color_list class="color-list-container"> {$} </ div> {/} Si Donc ma question est: comment faire au lieu de 3 couleurs, 5 couleurs? Merci ____ Dutch translation Version ____ Hallo In prestashop 1.6 kun je per product een aantal kleuren opgeven, b.v. ik verkoop een sleutelhanger in de kleuren wit, zwart, blauw, rood, groen. Nu laat hij dit op de product pagina mooi zien. Alleen op de product lijst laat hij er maar 3 van de 5 zien, dus alleen de kleur wit, zwart, blauw. Nu heb ik in de product-list.tpl gekeken of ik ergens het aantal kon aanpassen, maar dit is niet het geval, het enige wat ik kan vinden is: {if isset($product.color_list)} <div class="color-list-container">{$product.color_list} </div> {/if} Mijn vraag is dus: hoe krijg ipv 3 kleuren, 5 kleuren?? Alvast bedankt
  6. Hello! I have a problem whit my Prestashop 1.5.4.1... The option "Use CCC for CSS." is working fine... But when i turn "CCC for JavaScript" on, Nothing happend in the source code... Al javascripts are stil 1 by 1 listed The strange thing is that I see the following between all the other js files <script type="text/javascript" src="http://www.bobjuweliers.nl/themes/bob/cache/d41d8cd98f00b204e9800998ecf8427e.js"> But the file does not exist I have tried to cmod /themes/cache and the /cache folder to 777 and 755.. Turn off the CCC options and turn on, but nothing seem to work. Also tried another theme, but that is also not working... Can somewhan please help me, Thanks Wouter Bredewold
  7. I have the same problem!!!! the tabel ps_specific_price is growing en growing everday.... after 2 days the webshop give a blank page en database is stop working because its to big@!!!!!! PRESTASHOP PLEASE HELP!!!!!
  8. ... i made a mistake... This is what i want! You can only buy a product if you share of tweet that product.... if you want multiple products... you need to share or tweet them all... Thanks for your fast response
  9. Hai! Sorry for my bad englisch! I am looking for a module of handy method! That customors first like,share or tweet after this they can but the product. If they not share,like or tweet they can not put the product in the cart.. Already thanks !!!!! Greetz Wouter
  10. Hello PS users, I have a multistore prestashop. I create a group and then two shops: A & B I enable all the multi-shop sharing features available I create Product 1 in shop A On the frontend of my site (shop A) I put Product 1 in the cart now if i visit shop B I see the cart is empty Any solutions?? (sorry for my bad englisch) Greetz wouter
×
×
  • Create New...