Jump to content

Prestashop Module Product Question Send to own question back button product not working properly


Recommended Posts

Hi All,

 

i downloaded the module product question (send to own question) module.

Please take a look at this link.

 

http://indiesin.com/worldwide/modules/productquestion/productquestion-form.php?id_product=272

 

How come the back button (product link) is not working?

 

Tried to edit the php file but still no solution.

 

Attached the php file.

 

This is the TPL file.

{capture name=path}{l s='Send Questions' mod='productquestion'}{/capture}
{include file=$tpl_dir./breadcrumb.tpl}
<h2>{l s='Send Questions' mod='productquestion'}</h2>
<p class="bold">{l s='Send question to the owner of the store, about this product below.' mod='productquestion'}.</p>
{include file=$tpl_dir./errors.tpl}
{if $confirm}
<p class="success">{$confirm}</p>
{else}
<form method="post" action="{$request_uri}" class="std">
 <fieldset>
  <h3>{l s='Send a question' mod='productquestion'}</h3>

  <p class="align_center">
   <a href="{$productLink}"><img src="{$img_prod_dir}{$cover.id_image}-medium.jpg" alt="" title="{$cover.legend}" /></a><br/>
   <a href="{$productLink}">{$product->name}</a>
  </p>
  {if !$validate_login}
  <p>
   <label for="friend-name">{l s='Your name' mod='productquestion'}:</label>
   <input type="text" id="friend-name" name="name" style="width: 215px;" value="{if isset($smarty.post.name)}{$smarty.post.name|escape:'htmlall'|stripslashes}{/if}" />
  </p>

  <p>
   <label for="friend-address">{l s='Your email' mod='productquestion'}:</label>
   <input type="text" id="friend-address" name="email" style="width: 215px;" value="{if isset($smarty.post.email)}{$smarty.post.email|escape:'htmlall'|stripslashes}{/if}" />
  </p>
  {/if}
  <p>
   <label for="friend-address">{l s='Your message' mod='productquestion'}:</label>
   <textarea id="friend-address" name="message" rows="10" style="width: 215px;" />{if isset($smarty.post.message)}{$smarty.post.message|escape:'htmlall'|stripslashes}{/if}</textarea>
  </p>

  <p class="submit">
   <input type="submit" name="submitQuestion" value="{l s='send' mod='productquestion'}" class="button" />
  </p>
 </fieldset>
</form>
{/if}
<ul class="footer_links">
<li><a href="{$productLink}" class="button_large">{l s='Back'}</a></li>
</ul>

 

Thanks!

productquestion.php

Link to comment
Share on other sites

  • 4 months later...
  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...