Jump to content

lower price guarantee


Recommended Posts

hi i want to offer to my customers a "lower price guarantee" for some products.

 

as you see in attachment i want just to add a link to contact form.

 

i found a paid module

http://addons.prestashop.com/it/funzionalita-front-office-moduli-prestashop/11396-richiesta-info-prodotto.html

 

but i just want a link to the contact form page (with the product field already set in the form), so i think i dont need this..

post-748713-0-38629800-1396795378_thumb.gif

Link to comment
Share on other sites

hey,

 

go to your theme folder, open product.tpl

 

go to line 226, there will be

<!-- usefull links-->
				<ul id="usefull_link_block" class="clearfix no-print">
					{if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if}
					<li class="print">
						<a href="javascript:print();">
							{l s='Print'}
						</a>
					</li>
					{if $have_image && !$jqZoomEnabled}{/if}
				</ul>

and just add your link after the </li>

Edited by drugmirko (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 1 month later...

up? i explain better what i need:

the contact form hasn't a Product text field, so

it could be helpful something like that:

 

- In product page a link like that <a href="contactpage/?product=productname">do you find a lower price?</a>

and i know how to do that

 

 

-in form an extra text field named Product with this php code as value

if(isset($_GET['product'])) echo $_GET['product'];
Edited by alfredopacino (see edit history)
Link to comment
Share on other sites

you can add this productname to the textbox "message"

for example, in contact.tpl code add:

<input type="hidden" id="productname" value="{Tools::getValue('productname')}"/>

{if $smarty.get.productname}
{literal}
<script>
$(document).ready(function(){
$("#message").html("i found this product with better price: "+$("#productname").val());
});
</script>
{/literal} 
{/if}
Link to comment
Share on other sites

i tested code on my own, it works

DrD0qPV.png

 

make sure that you use exactly the same code;
 

<input type="hidden" id="productname" value="{Tools::getValue('productname')}"/>

{if $smarty.get.productname}
{literal}
<script>
$(document).ready(function(){
$("#message").html("i found this product with better price: "+$("#productname").val());
});
</script>
{/literal} 
{/if}

in contat-form.tpl file

 

remember about recompilation of theme

Link to comment
Share on other sites

×
×
  • Create New...