Jump to content
thirty bees forum

Recommended Posts

Posted

So, I have ported https://forum.thirtybees.com/user/daresh 's module gmgetfreeshipping to thirtybees! NOTE: Only use this module if you have backoffice>shipping>preferences> "free shipping starts at" greater than 0.

Here is this original module... 01509467555547gmgetfreeshipping.zip

Here is the new port for thirtybees.. 01509467600480getfreeshipping.zip

You will also need to do some theme mods.. Here are mine already done.. 01509469142621getfreeshipping_mods.zip NOTE: replace "your theme name" with your actual them name, like "community-theme-default".

Here are the manual instructs on how to do it...

In \\js\modules\blockcart\ajax-cart.js line# 717 you see: ajaxCart.refreshVouchers(jsonData);

After add: ``` ajaxCart.updateFreeShipping(jsonData); } },

updateFreeShipping : function(cart) { if (cart.freeShippingFloat > 0) { $('.freeshippingnotenough').removeClass('hidden'); $('.freeshippingfloat').text($.trim(cart.freeShipping)); } else { $('.freeshippingnotenough').addClass('hidden'); $('.ajaxcartshipping_cost').html(freeShippingTranslation); ```

In /modules/blockcart/includes/dropdown.tpl you see line# 162-165 you see: ```

<div class="cart-buttons">

```

Before add: <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>

In /modules/blockcart/includes/popup.tpl you see line# 127-129 you see: <div class="button-container"> <nav> <ul class="pager"> Before add: ```

{l s='Spend another' mod='blockcart'} {convertPrice price=$free_shipping} {l s='to get free shipping for your order!' mod='blockcart'}

```

Of course this is all based off of...https://www.prestashop.com/forums/topic/494147-free-module-spend-x-to-get-free-shipping/

you can see it running at http://thirtybees.paganliving.net. Pick a low priced item like in Candles>Chime Candles.

  • Replies 67
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

Actually those template changes utilize data already present in Prestashop, nothing added by the module. All that this module does is displaying the same info under the cart. So if you want to optimize those messages, you need to work on the template.

Posted

Here is my version of how to do it from a non-programmer viewpoint and with help from my theme developer:

Transformer theme (PS 1.6 version)

How to edit the text and how to move the "spend another $xx.xx to get free shipping" to go under the cart total:

/public_html/modules/gmgetfreeshipping/views/templates/hook

Back up and then edit gmgetfreeshipping.tpl as you wish.

I changed it to show: Spend $xx.xx more for Free Shipping!

The text was originally left-justified (all the to the left) so for the Transformer theme, Jonny Li said:

Do these two steps:

  1. Put this code to the "Custom CSS Code" field

HOOKSHOPPINGCART .blockgetfree_shipping{text-align:right;}

  1. Go to BO > Modules > Positions > page, change the sort order of modules in the "displayShoppingCartFooter" section to move that text above.

In other words: slide the whole "get free shipping" module up in the positions for displayShoppingCartFooter (using the arrows did not work for me).

0_1510149147976_XF theme - slide the get free shipping module up in the positions displayShoppingCartFooter.jpg

Posted

@wakabayashi since you helped me move my Amazon Pay button once before, can you please help with this? Or @Daresh can you please help with this?

I need a space or two between "spend XX for free shipping" and the amazon pay button:

0_1510149412038_need a space or two between spend XX for free shipping and the amazon pay button.jpg

Posted

Are you using my getfreeshipping port, or the authors original, gmgetfreeshipping? Nevermind, I can tell by the logo you are using the original. :) You need to copy the /modules/gmgetfreeshipping/views/templates/hook/gmgetfreeshipping.tpl, to the same path but in you modules folder. Then open gmgetfreeshipping.tpl, and add a
after the last

.

Posted

@SLiCK_303 I used the original since I already had it before and didn't want to get confused.

I'll move this: /public_html/modules/gmgetfreeshipping

to /public_html/themes/transformer/modules

Right?

Posted

no there is already a /modules/gmgetfreeshipping/views/templates/hook/gmgetfreeshipping.tpl. you need to copy that file into the same path, but in your theme. So, if you are using the default theme, there should be a /themes/community-theme-default/modules/gmgetfreeshipping/views/templates/hook/gmgetfreeshipping.tpl file

Posted

I don't know how many ways I can say this. Copy /modules/gmgetfreeshipping/views/templates/hook/gmgetfreeshipping.tpl. you need to copy that file into the same path, but in your theme. So, if you are using the default theme, there should be a /themes/Transformer/modules/gmgetfreeshipping/views/templates/hook/gmgetfreeshipping.tpl file

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...