Daresh 497 Posted August 29, 2018 The easiest way is to change the value here: {if $remaining_to_spend > 0} from 0 to something. This is not exactly order value, but if you know your free shipping threshold you can easily calculate what needs to be entered here. It's in views/templates/hook/gmgetfreeshipping.tpl file Share this post Link to post Share on other sites
alldz 0 Posted August 29, 2018 14 minutes ago, Daresh said: The easiest way is to change the value here: {if $remaining_to_spend > 0} from 0 to something. This is not exactly order value, but if you know your free shipping threshold you can easily calculate what needs to be entered here. It's in views/templates/hook/gmgetfreeshipping.tpl file remaining_to_spend = order value + shipping fee? Share this post Link to post Share on other sites
alldz 0 Posted August 29, 2018 i try with {if $remaining_to_spend > 200} but no change Share this post Link to post Share on other sites
alldz 0 Posted August 30, 2018 $remaining_to_spend must be > 200 and < 300 How to do this please? Share this post Link to post Share on other sites
alldz 0 Posted August 30, 2018 i found a solution {if ($remaining_to_spend< 200) && ($remaining_to_spend > 0)} Share this post Link to post Share on other sites
Aumanz 7 Posted September 1, 2018 Hi there, i found a little problem when customer add a voucher to cart.. info from gmgetfreeshipping.tpl on cart page is working fine, {convertPrice price=$remaining_to_spend} is showing price correctly.. the problem is on.. {convertPrice price=$free_shipping} is not showing correct quantity added manually to blockcart.tpl as module author says "here" so, my solution to blockcart.tpl are assign differents variables on blockcart.tpl with the same results module assign to gmgetfreeshipping.tpl.. at the end of the .cart-prices div: {assign var='free_shiper' value=$cart->getOrderTotal(true, Cart::BOTH_WITHOUT_SHIPPING)} {assign var='free_shipen' value=Configuration::get('PS_SHIPPING_FREE_PRICE')} {$free_shipping_mod = $free_shipen - $free_shiper} <p class="free_shipping_not_enough {if $free_shipping <= 0} hidden{/if}">{l s='Spend another' mod='blockcart'} <span class="free_shipping_float">{convertPrice price=$free_shipping_mod}</span> {l s='to get free shipping for your order!' mod='blockcart'}</p> before the .button-container div: {assign var='free_shiper' value=$cart->getOrderTotal(true, Cart::BOTH_WITHOUT_SHIPPING)} {assign var='free_shipen' value=Configuration::get('PS_SHIPPING_FREE_PRICE')} {$free_shipping_mod = $free_shipen - $free_shiper} <div class="layer_cart_row"> <p class="free_shipping_not_enough {if $free_shipping <= 0} hidden{/if}">{l s='Spend another' mod='blockcart'} <span class="free_shipping_float">{convertPrice price=$free_shipping_mod}</span> {l s='to get free shipping for your order!' mod='blockcart'}</p> </div> Also you can insert those codes between other instruccions.. just try.. {if $shipping_cost_float === 0} <!-- Nothing here if you dont like, try adding some divs for check results.. --> {else} <!-- Paste order in next line and past all this code to positions we are talking about --> {assign var='free_shiper' value=$cart->getOrderTotal(true, Cart::BOTH_WITHOUT_SHIPPING)} {assign var='free_shipen' value=Configuration::get('PS_SHIPPING_FREE_PRICE')} {$free_shipping_mod = $free_shipen - $free_shiper} .... {/if} Hope help someone, just let me know if i am the only one facing this issue.. thanks, regards. 1 Share this post Link to post Share on other sites
markoroots 5 Posted January 30, 2019 On 12/27/2015 at 8:57 PM, Daresh said: This module displays the "Spend another X to get free shipping for your order" message in the cart just below the product's list, updates the value while adding / substracting product quantity. (demo) Works for Prestashop 1.5.x and 1.6.x. I would be very greatfull to anyone using this module for sharing his translation with me so I can update it to be ready to work out of the box for many languages. gmgetfreeshipping.zip Hi Daresh, before everything, thanks for sharing. Then are you planing to make it work also for the Ps 1.7 Version? Share this post Link to post Share on other sites
Daresh 497 Posted January 31, 2019 Thanks for a reminder, I'll give it a look in a couple of days. 1 Share this post Link to post Share on other sites
Daresh 497 Posted February 2, 2019 (edited) Hi! I just uploaded the module to work for prestashop 1.7. Please check out the first post in this topic. It implements a Widget interface so you can attach it to any hook that you like, or add {widget name='gmgetfreeshipping'} code anywhere in your template, for example in the modal.tpl of the ps_shoppingcart module. Please test and let me know if it works fine for you. [demo on my PS 1.7 installation] Edited February 2, 2019 by Daresh (see edit history) 1 2 Share this post Link to post Share on other sites
markoroots 5 Posted February 2, 2019 Hi Daresh you are a great!!! Many thanks for sharing your module and for the updates you release. I will try to install it today and I let you know. Thanks again Share this post Link to post Share on other sites
markoroots 5 Posted February 4, 2019 (edited) Here the Italian translation that you have asked in the first post. Get free shipping = Ricevi spedione gratuita Display Spend another X to get free shipping message = Mostra spendi altri X per ricevere la spedizione gratuita Spend another = Spendi altri to get free shipping for your order! = per avere la spedizione gratuita! Also a tip. This is a really usefull plugin but the place where the shipment discount is visualized is a little bit hidden. Is it possible to show the discount shipment written inside the box in attach. Maybe should be better if the written is visualized in the add to cart popup and in the places shown in the images attach. There will be really perfect. Don't you think? Edited February 4, 2019 by markoroots (see edit history) 1 Share this post Link to post Share on other sites
Daresh 497 Posted February 4, 2019 If you have any hook there, you may try to attach this module to that hook. Or you can insert the widget in your .tpl file to make it appear there. But I don't know how your theme works, in the Classic theme it's organized a bit different than in your theme. 1 Share this post Link to post Share on other sites
markoroots 5 Posted February 8, 2019 (edited) Hi Daresh, yes perfect I let me help from my webmaster and now we have added in the right hooks. Great, really useful plugin. Many many thanks for sharing it. Edited March 4, 2019 by markoroots (see edit history) 1 Share this post Link to post Share on other sites
Daresh 497 Posted March 22, 2019 I just updated the modules. Now you can also set up your own free shipping amount in case you are not using the global prestashop setting (but for example have it set up in carriers) Share this post Link to post Share on other sites
Prestafan1234 220 Posted April 12, 2019 On 1/17/2016 at 11:30 AM, Daresh said: Allright, so here's what I did to make that information visible in other places, you don't need a special module for it, just to modify your theme (I've tested it with blockart module version 1.6.0) Edit blockcart.tpl To have the information displayed in the blockart, insert the following code around line 191 (in default theme), just after the closing {/if} for $use_taxes condition, at the end of the .cart-prices div: <p class="free_shipping_not_enough {if $free_shipping <= 0} hidden{/if}">{l s='Spend another' mod='blockcart'} <span class="free_shipping_float">{convertPrice price=$free_shipping}</span> {l s='to get free shipping for your order!' mod='blockcart'}</p> To have the information displayed on the popup after adding the product to cart, insert the following code just before the .button-container div (around line 320 in the default theme: <div class="layer_cart_row"> <p class="free_shipping_not_enough {if $free_shipping <= 0} hidden{/if}">{l s='Spend another' mod='blockcart'} <span class="free_shipping_float">{convertPrice price=$free_shipping}</span> {l s='to get free shipping for your order!' mod='blockcart'}</p> </div> Edit ajax-cart.js This is needed to have the block update while adding/removing products. Add ajaxCart.updateFreeShipping(jsonData); just after the: ajaxCart.refreshVouchers(jsonData); And add the function: updateFreeShipping : function(jsonData) { if (jsonData.freeShippingFloat > 0) { $('.free_shipping_not_enough').removeClass('hidden'); $('.free_shipping_float').text($.trim(jsonData.freeShipping)); } else { $('.free_shipping_not_enough').addClass('hidden'); $('.ajax_cart_shipping_cost').html(freeShippingTranslation); } }, just after the: $('.cart_block .products dt:last').addClass('last_item'); } }, Please let me know if it works. Hi, I know this is an old post, but the module still works in 1.6.1.23. However, I cannot get the above to work. Nothing is displayed in the dropdown cart or in the pop-up after adding to cart. Using a default-bootstrap with a few styling modifications. Share this post Link to post Share on other sites
magyck 0 Posted April 22, 2019 On 31/12/2015 at 8:46, Daresh said: Hola, debe tener el "Envío gratuito a partir de" configurado en Envío -> Preferencias y eso debería ser todo, el módulo no tiene ninguna configuración, es posible que solo necesite traducirlo a su idioma. hola perdona que te moleste , y como lo traduzco al español por ejemplo, gracias Share this post Link to post Share on other sites
Renault Grégory 0 Posted May 19, 2019 Hello, Great free module How can i move the text like the capture i put below Share this post Link to post Share on other sites
Himanshubishtt 12 Posted May 27, 2019 Hi @Daresh I am using your module on my ps 1.7.2. And it's working fine. But my question is, we know that the module displays a block which shows a message to the customer to add more X for free shipping. But is it possible that when the customer gets free shipping, the carrier price is automatically reduced? Say I have a carrier whose shipping rates is Rs 100. So when the customers get free shipping the price gets deducted automatically. Regards, Share this post Link to post Share on other sites
Daresh 497 Posted June 4, 2019 It's possible in carrier settings. Share this post Link to post Share on other sites
Himanshubishtt 12 Posted June 5, 2019 @Daresh sir, I try to do it but unable to configure it that way. Please can you elaborate. Thanks Share this post Link to post Share on other sites
ilisiaraul 2 Posted June 17, 2019 Awesome module. Thank you! Share this post Link to post Share on other sites
digitalsun 0 Posted July 8, 2019 I can not download the module, the link is not working :( Is there any other place to download the module? Thanks, Marlies Share this post Link to post Share on other sites
Daresh 497 Posted July 8, 2019 You can get this module (and many more) after subscribing to our newsletter here: http://greenmousestudio.com/en/ Share this post Link to post Share on other sites
jackieyap79 2 Posted July 30, 2019 On 7/8/2019 at 3:33 PM, Daresh said: You can get this module (and many more) after subscribing to our newsletter here: http://greenmousestudio.com/en/ Hi Daresh, Thank you very much to your kindness to gave us your effort to handle this Free Shipping module. But some bugs was found: I found the problem in blockcart.tpl when customer adding discount voucher, the balance is show + instead of minus. Example: Free Shipping when $200 or above. Added product A = $26.00 Blockcart show: Spend another $174.00 to get free shipping for your order! (This show correct) But: When customer add in discount voucher -$5.00 Blockcart should show: Spend another $179.00 to get free shipping for your order! But now Blockcart show: Spend another $169.00 to get free shipping for your order! (Which is wrong, should be -$5.00 but now become +$5.00) Any idea how to fix this? Thank you and looking forward your kind reply. Share this post Link to post Share on other sites
Daresh 497 Posted July 30, 2019 Hi! I just tested it on both PS 1.6 and 1.7 and it's fine for me. After I add some discount, the amount left to free shipping gets increased, not decreased. Share this post Link to post Share on other sites
jackieyap79 2 Posted July 30, 2019 13 minutes ago, Daresh said: Hi! I just tested it on both PS 1.6 and 1.7 and it's fine for me. After I add some discount, the amount left to free shipping gets increased, not decreased. Thank you to your prompt respond, please kindly refer to the sample picture attached. Share this post Link to post Share on other sites
jackieyap79 2 Posted July 30, 2019 19 minutes ago, Daresh said: Hi! I just tested it on both PS 1.6 and 1.7 and it's fine for me. After I add some discount, the amount left to free shipping gets increased, not decreased. Here is correct, but the cart above is different and wrong. Share this post Link to post Share on other sites
jackieyap79 2 Posted August 1, 2019 On 7/30/2019 at 10:10 PM, Daresh said: Hi! I just tested it on both PS 1.6 and 1.7 and it's fine for me. After I add some discount, the amount left to free shipping gets increased, not decreased. Hi Daresh, Good day to you, any finding so far about the 2 picture of problem I post here after your replied? Thank you. Share this post Link to post Share on other sites
Klemart3D 17 Posted August 26, 2019 @Daresh, what is gmnumeric.tpl? Seems not used? Share this post Link to post Share on other sites
Daresh 497 Posted August 26, 2019 (edited) Probably some leftover from other module Edited August 26, 2019 by Daresh (see edit history) 1 Share this post Link to post Share on other sites
Augen2203 0 Posted September 18, 2019 Hi, is it possible to separate the widget and hook? For a hook to display for example the same content as it is now, but for the widget I would prepare another one. And duplicate the view for another hook? Thank you Share this post Link to post Share on other sites
Daresh 497 Posted September 18, 2019 That would require custom rewrite of some of the module's code. Share this post Link to post Share on other sites
Augen2203 0 Posted September 18, 2019 Just now, Daresh said: Это потребует пользовательской перезаписи части кода модуля. Thank you for your prompt reply, but is there no way to implement two conclusions with different content? Thank you Share this post Link to post Share on other sites
Daresh 497 Posted September 18, 2019 Everything is possible, but not everything in a free module. Share this post Link to post Share on other sites
Augen2203 0 Posted September 18, 2019 4 minutes ago, Daresh said: Все возможно, но не все в бесплатном модуле. I understand, thank you for the quick answers. Share this post Link to post Share on other sites
drosophyle 0 Posted November 29, 2019 (edited) On 12/27/2015 at 7:57 PM, Daresh said: (the module uses widget functionality so you can attach it to any hook, or insert {widget name='gmgetfreeshipping'} code anywhere in your template) Hello, thanks for your module. I am trying to attach it to another hook but it seems prestashop (1.6.1.17) does not allow it. The only one that seems available being "displayShoppingCartFooter" ... Can you please help out? Thanks a lot Edited November 29, 2019 by drosophyle (see edit history) Share this post Link to post Share on other sites
Daresh 497 Posted November 29, 2019 Widgets work only in prestashop 1.7. Share this post Link to post Share on other sites
drosophyle 0 Posted November 29, 2019 1 minute ago, Daresh said: Widgets work only in prestashop 1.7. Ok thanks. But can I hook it somewhere else? For instance I would like that message to appear on the cart block when I click on it, like I see in your demo? I would also like to change the police and align it to the right side instead of left. Any advice? Share this post Link to post Share on other sites
Daresh 497 Posted November 29, 2019 To make it look like the demo follow the instructions in one of my posts on the beginning on this topic. Share this post Link to post Share on other sites
CipaxSoporte 1 Posted December 10, 2019 (edited) Hi tanks for your work!! Edited December 10, 2019 by CipaxSoporte (see edit history) 1 Share this post Link to post Share on other sites
titon222 0 Posted December 11, 2019 (edited) On 9/1/2018 at 10:14 PM, Aumanz said: Hi there, i found a little problem when customer add a voucher to cart.. info from gmgetfreeshipping.tpl on cart page is working fine, {convertPrice price=$remaining_to_spend} is showing price correctly.. the problem is on.. {convertPrice price=$free_shipping} is not showing correct quantity added manually to blockcart.tpl as module author says "here" so, my solution to blockcart.tpl are assign differents variables on blockcart.tpl with the same results module assign to gmgetfreeshipping.tpl.. at the end of the .cart-prices div: {assign var='free_shiper' value=$cart->getOrderTotal(true, Cart::BOTH_WITHOUT_SHIPPING)} {assign var='free_shipen' value=Configuration::get('PS_SHIPPING_FREE_PRICE')} {$free_shipping_mod = $free_shipen - $free_shiper} <p class="free_shipping_not_enough {if $free_shipping <= 0} hidden{/if}">{l s='Spend another' mod='blockcart'} <span class="free_shipping_float">{convertPrice price=$free_shipping_mod}</span> {l s='to get free shipping for your order!' mod='blockcart'}</p> before the .button-container div: {assign var='free_shiper' value=$cart->getOrderTotal(true, Cart::BOTH_WITHOUT_SHIPPING)} {assign var='free_shipen' value=Configuration::get('PS_SHIPPING_FREE_PRICE')} {$free_shipping_mod = $free_shipen - $free_shiper} <div class="layer_cart_row"> <p class="free_shipping_not_enough {if $free_shipping <= 0} hidden{/if}">{l s='Spend another' mod='blockcart'} <span class="free_shipping_float">{convertPrice price=$free_shipping_mod}</span> {l s='to get free shipping for your order!' mod='blockcart'}</p> </div> Also you can insert those codes between other instruccions.. just try.. {if $shipping_cost_float === 0} <!-- Nothing here if you dont like, try adding some divs for check results.. --> {else} <!-- Paste order in next line and past all this code to positions we are talking about --> {assign var='free_shiper' value=$cart->getOrderTotal(true, Cart::BOTH_WITHOUT_SHIPPING)} {assign var='free_shipen' value=Configuration::get('PS_SHIPPING_FREE_PRICE')} {$free_shipping_mod = $free_shipen - $free_shiper} .... {/if} Hope help someone, just let me know if i am the only one facing this issue.. thanks, regards. Thx ! work for me but display "-" before XX € there is a way to use the plugin variable instead of PS_SHIPPING_FREE_PRICE ? Edited December 12, 2019 by titon222 Solved (see edit history) Share this post Link to post Share on other sites
titon222 0 Posted December 12, 2019 Solved with {assign var='free_shipen' value=Configuration::get('GM_FREE_SHIPPING')} Share this post Link to post Share on other sites
Kaan Toker 0 Posted December 28, 2019 where can i translate that module i couldnt find it ? Share this post Link to post Share on other sites
Nducciuredda 0 Posted January 13, 2020 On 1/17/2016 at 11:30 AM, Daresh said: Allright, so here's what I did to make that information visible in other places, you don't need a special module for it, just to modify your theme (I've tested it with blockart module version 1.6.0) Edit blockcart.tpl To have the information displayed in the blockart, insert the following code around line 191 (in default theme), just after the closing {/if} for $use_taxes condition, at the end of the .cart-prices div: <p class="free_shipping_not_enough {if $free_shipping <= 0} hidden{/if}">{l s='Spend another' mod='blockcart'} <span class="free_shipping_float">{convertPrice price=$free_shipping}</span> {l s='to get free shipping for your order!' mod='blockcart'}</p> To have the information displayed on the popup after adding the product to cart, insert the following code just before the .button-container div (around line 320 in the default theme: <div class="layer_cart_row"> <p class="free_shipping_not_enough {if $free_shipping <= 0} hidden{/if}">{l s='Spend another' mod='blockcart'} <span class="free_shipping_float">{convertPrice price=$free_shipping}</span> {l s='to get free shipping for your order!' mod='blockcart'}</p> </div> Edit ajax-cart.js This is needed to have the block update while adding/removing products. Add ajaxCart.updateFreeShipping(jsonData); just after the: ajaxCart.refreshVouchers(jsonData); And add the function: updateFreeShipping : function(jsonData) { if (jsonData.freeShippingFloat > 0) { $('.free_shipping_not_enough').removeClass('hidden'); $('.free_shipping_float').text($.trim(jsonData.freeShipping)); } else { $('.free_shipping_not_enough').addClass('hidden'); $('.ajax_cart_shipping_cost').html(freeShippingTranslation); } }, just after the: $('.cart_block .products dt:last').addClass('last_item'); } }, Please let me know if it works. Thank you very much, it works like a charm! You are my hero!! Share this post Link to post Share on other sites
SliderFlash 82 Posted February 10, 2020 Am 29.11.2019 um 1:25 PM schrieb Daresh: Widgets work only in prestashop 1.7. is this normal ? Share this post Link to post Share on other sites
Daresh 497 Posted February 10, 2020 yes, it tells you the code to insert into your template Share this post Link to post Share on other sites
SliderFlash 82 Posted February 11, 2020 (edited) no change with me.....only if I delete the product does that change Edited February 11, 2020 by SliderFlash (see edit history) Share this post Link to post Share on other sites
SliderFlash 82 Posted February 13, 2020 Hey daresh i have prestashop 1.7 and it doesn't work why? Share this post Link to post Share on other sites
Budrys 2 Posted February 18, 2020 Hello Daresh. I use Your module Spend X To Get Free Shipping. I add it as widget. Question how to disable it on default position but has it still working as widget? Share this post Link to post Share on other sites
Daresh 497 Posted February 18, 2020 Go to Design -> Positions and detach the module from a hook where you don't want it to show. Share this post Link to post Share on other sites
SliderFlash 82 Posted March 1, 2020 (edited) OK now it works, the values must be the same. and delete cache Edited March 1, 2020 by SliderFlash (see edit history) Share this post Link to post Share on other sites
ANGELO Vintage 11 Posted April 4, 2020 THE CORRECT ITALIAN TRANSLATION ARE: Get free shipping = Ottieni la spedizione gratuita Spend another X to get free shipping = Spendi ancora X per la spedizione gratuita Spend another = Spendi ancora to get free shipping for your order! = per ottenere la spedizione gratuita per il tuo ordine! 1 Share this post Link to post Share on other sites
lauragt 0 Posted August 20, 2020 Hi Daresh, I have managed to successfully install this module in my 1.7 store both in the cart and on the product page, but I cannot make it show up in the cart popup (when the mouse is over) as you have in your demo. What would be called the hook to which the module would have to hook? And, what is the name of the hook of the popup that appears after adding an item to the cart? Thanks for your time. Kind regards. Share this post Link to post Share on other sites
Daresh 497 Posted August 20, 2020 Hi, the demo is for prestashop 1.6, I don't remember if I wrote something about how to add it to the 1.7 popup. Share this post Link to post Share on other sites
Riva 4 Posted August 22, 2020 (edited) work latest version ps1.7 Edited October 5, 2020 by Riva (see edit history) Share this post Link to post Share on other sites
Gunnar 0 Posted September 1, 2020 I'm using it on 1.7.5.1 and 1.7.6.0 and it is working great. Thanks Daresh for a great module:-) Share this post Link to post Share on other sites
smexy 0 Posted November 17, 2020 (edited) I've got a problem. I'm using ps 1.7.6.8 Module is working all right but only in cart page. When i'm trying to show it in displayTop hook it's not refreshing the value while on product page. To make it change it's required to refresh the page. Can anybody help me? Thanks. Edited November 17, 2020 by smexy adding informations (see edit history) Share this post Link to post Share on other sites
Prestan0ob 11 Posted January 8 How to display this in product page please? Share this post Link to post Share on other sites
SliderFlash 82 Posted January 8 (edited) vor 24 Minuten schrieb Prestan0ob: How to display this in product page please? you will see it in the shopping cart when you are above the set price freeshipping is displayed. Edited January 8 by SliderFlash (see edit history) Share this post Link to post Share on other sites
Prestan0ob 11 Posted January 8 1 hour ago, SliderFlash said: you will see it in the shopping cart when you are above the set price freeshipping is displayed. I want to show this on product page not in cart. Thank you. Share this post Link to post Share on other sites