Xurxo DZ Posted January 29, 2016 Share Posted January 29, 2016 Básicamente ese es el problema. En cualquier producto, abro el formulario para enviar un comentario, escribo lo que sea y al hacer clic sobre el botón "Enviar" no ocurre absolutamente nada. He revisado el tpl de los comentarios y no veo errores: <form id="id_new_comment_form" action="#" onsubmit="return false;"> <h2 class="title">{l s='Write your review' mod='productcomments'}</h2> {if isset($product) && $product} <div class="product clearfix"> <img src="{$productcomment_cover_image}" height="{$mediumSize.height}" width="{$mediumSize.width}" alt="{$product->name|escape:html:'UTF-8'}" /> <div class="product_desc"> <p class="product_name"><strong>{$product->name}</strong></p> {$product->description_short} </div> </div> {/if} <div class="new_comment_form_content"> <h2>{l s='Write your review' mod='productcomments'}</h2> <div id="new_comment_form_error" class="error" style="display:none;padding:15px 25px"> <ul></ul> </div> {if $criterions|@count > 0} <ul id="criterions_list"> {foreach from=$criterions item='criterion'} <li> <label>{$criterion.name|escape:'html':'UTF-8'}</label> <div class="star_content"> <input class="star" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="1" /> <input class="star" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="2" /> <input class="star" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="3" /> <input class="star" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="4" /> <input class="star" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="5" checked="checked" /> </div> <div class="clearfix"></div> </li> {/foreach} </ul> {/if} <label for="comment_title">{l s='Title for your review' mod='productcomments'}<sup class="required">*</sup></label> <input id="comment_title" name="title" type="text" value=""/> <label for="content">{l s='Your review' mod='productcomments'}<sup class="required">*</sup></label> <textarea id="content" name="content"></textarea> {if $allow_guests == true && !$logged} <label>{l s='Your name' mod='productcomments'}<sup class="required">*</sup></label> <input id="commentCustomerName" name="customer_name" type="text" value=""/> {/if} <div id="new_comment_form_footer"> <input id="id_product_comment_send" name="id_product" type="hidden" value='{$id_product_comment_form}' /> <p class="fl required"><sup>*</sup> {l s='Required fields' mod='productcomments'}</p> <p class="fr"> <button id="submitNewMessage" name="submitMessage" type="submit">{l s='Send' mod='productcomments'}</button> {l s='or' mod='productcomments'} <a href="#" onclick="$.fancybox.close();">{l s='Cancel' mod='productcomments'}</a> </p> <div class="clearfix"></div> </div> </div> </form> He comprobado también la consola del FireFox y veo que cada vez que hago clic sobre el botón me devuelve un error de JS: Cadena vacía pasada a getElementById(). ¿Alguien tiene alguna idea? Link to comment Share on other sites More sharing options...
Xurxo DZ Posted February 18, 2016 Author Share Posted February 18, 2016 (edited) Actualizo para añadir la respuesta del firebug: Aparece uno nuevo cada vez que hago click en enviar... ¿Me podéis echar un cable? Edited February 18, 2016 by Xurxo DominioZero (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts