Premiado

Simple redirect button in prestashop

Hi, we would like to make a simple redirect button in some products of our prestashop store. We would like to modify the '[url removed, login to view]' pop-up (see attached picture).

We created a new var named "tipoficha", and we would like to in those products with the var "tipoficha = composto" to change the pop up that appears after the client add it to the cart. It's a simple If condition. So if the product has that value, it shows a button to redirect to another product, we are using the var "ean13" to declare in backoffice the product we want to redirect to. More info send message. We think this is a very easy job, we just can't call the vars to the pop-up. here is what we have done so far, just can't make it work. Thanks.

{if $product->tipoficha == composto || $product->tipoficha == composto2}

<div class="button-container"> <div style="display:none;">

<span class="continue btn btn-default button exclusive-medium" title="{l s='Continue shopping' mod='blockcart'}">

<span>

<i class="icon-chevron-left left" ></i>{l s='Continue shopping' mod='blockcart'}

</span>

</span>

</div>

<a class="btn btn-default button button-medium" onclick="location.href='[url removed, login to view]{$product->ean13}&controller=product'" title="{l s='Proceed to checkout' mod='blockcart'}" rel="nofollow">

<span>

{l s='Proceed to checkout' mod='blockcart'}<i class="icon-chevron-right right"></i>

</span>

</a>

</div>

{else}

<div class="button-container">

<span class="continue btn btn-default button exclusive-medium" title="{l s='Continue shopping' mod='blockcart'}">

<span>

<i class="icon-chevron-left left" ></i>{l s='Continue shopping' mod='blockcart'}

</span>

</span>

<a class="btn btn-default button button-medium" href="{$link->getPageLink("$order_process", true)|escape:"html":"UTF-8"}" title="{l s='Proceed to checkout' mod='blockcart'}" rel="nofollow">

<span>

{l s='Proceed to checkout' mod='blockcart'}<i class="icon-chevron-right right"></i>

</span>

</a>

</div>

{/if}

Habilidades: PHP, Prestashop, Smarty PHP

Ver mais: the container store, container store, button onclick php, prestashop store, php prestashop, html to tpl, redirect prestashop, simple html checkout, prestashop backoffice, button prestashop product, shopping cart class php, prestashop add cart button work, modify product shopping cart prestashop, display product prestashop, add add cart button prestashop, html redirect, prestashop shopping cart button, button class, prestashop add button, prestashop redirect add cart, prestashop add cart button html, prestashop shopping cart add, change link checkout button cart, display tpl prestashop php, prestashop change product

Acerca do Empregador:
( 2 comentários ) Lisboa, Portugal

ID do Projeto: #6823091

5 freelancers estão ofertando em média €27 para este trabalho

bistanil98

expertise in smarty php php/mysql,html,html-5,bootstrap,android,css,css-3,cakephp,(MVC),LARAVEL 4,symfony-2,YII,have more than 11 year of experience we build more then 100 php/mysql projects worked on joomla,wordpres Mais

€30 EUR em 1 dia
(27 Comentários)
6.7
sunsoftpro

First, I am sunsoftpro, I from VietNam. Nice to meet you! I have read your description and been interested in your project. I'm ready to discuss and do hard working so that complete great job. Please discuss befor Mais

€30 EUR em 1 dia
(70 Comentários)
6.1
letshappy

hello, i am prestashop expert and i am mor ethen 4 year experience in this field i easily can do thi ready to start now and will do this in next few hours thanks

€33 EUR em 1 dia
(22 Comentários)
5.5
NayaPakistan

A proposal has not yet been provided

€23 EUR em 1 dia
(89 Comentários)
5.3
luantnd

Hi, I am a professional software developer with 4+ years experience with PHP with Zend PHP certification, CMS , Joomla, Wordpress, Opencart, Prestashop, Magento,Jquery, mysql, html, css ... Freelancer reviews: https Mais

€20 EUR in 0 dias
(56 Comentários)
4.8