Jump to content

Free delivery label on product page


Recommended Posts

  • 7 months later...

Hi easymar,

Just played with smarty magic and make something like this and it works nicely!

{assign var='freeshipping' value=Configuration::get('PS_SHIPPING_FREE_PRICE')}
     {if $productPrice >= $freeshipping}
          <h5>FREE SHIPPING!</h5>
     {/if}

What it does?

$freeshipping variable gives us value of free shipping

$productPrice is product price

 

And the logic is: IF product price is greater or equals with free shipping price THAN show FREE SHIPPING

You can put in side a nice image badge or css button.

Customers sometimes dont noticed that store have free shipping. This little piece of code may cause a better conversion in my opinion!

 

Coding can be funny! :)

 

PS. If someone selling something measured by weight: vegetables, coffee, tea, etc and want to set free shipping based on products weight can set above notification by replace PS_SHIPPING_FREE_PRICE with PS_SHIPPING_FREE_WEIGHT like here

{assign var='freeshipping' value=Configuration::get('PS_SHIPPING_FREE_WEIGHT')}
     {if $productPrice >= $freeshipping}
          <h5>FREE SHIPPING!</h5>
     {/if}

Cheers!

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

  • 1 month later...

Hi easymar,

Just played with smarty magic and make something like this and it works nicely!

{assign var='freeshipping' value=Configuration::get('PS_SHIPPING_FREE_PRICE')}
     {if $productPrice >= $freeshipping}
          <h5>FREE SHIPPING!</h5>
     {/if}

What it does?

$freeshipping variable gives us value of free shipping

$productPrice is product price

 

And the logic is: IF product price is greater or equals with free shipping price THAN show FREE SHIPPING

You can put in side a nice image badge or css button.

Customers sometimes dont noticed that store have free shipping. This little piece of code may cause a better conversion in my opinion!

 

Coding can be funny! :)

 

PS. If someone selling something measured by weight: vegetables, coffee, tea, etc and want to set free shipping based on products weight can set above notification by replace PS_SHIPPING_FREE_PRICE with PS_SHIPPING_FREE_WEIGHT like here

{assign var='freeshipping' value=Configuration::get('PS_SHIPPING_FREE_WEIGHT')}
     {if $productPrice >= $freeshipping}
          <h5>FREE SHIPPING!</h5>
     {/if}

Cheers!

Hi,

 

Where do you put this freeshipping code ?

Link to comment
Share on other sites

Hi!

You need to put it in product.tpl file of Your template

This works here:

http://basketplanet.pl/pl/nike/723-nike-lebron-12-instinct-684593-583.html

Bezpłatna przesyłka kurierska! - free shipping (because product price is more than 200zł)

http://basketplanet.pl/pl/koszulki/657-koszulka-nike-league-reversible-practice-tank-626702-494.html

Bezpłatna przesyłka kurierska już od 200 zł - because product price is below 200zł (below free shipping price barier)

 

Btw

New Lebrons12 are awesome!! :)

Link to comment
Share on other sites

  • 8 months later...
  • 7 months later...

Thanks for the code PrestaShark,

 

My store is multilanguage, could the free shipping text be translatable (acording to the buyers language selection)?

 

Regards 

 

Hello , I am also interested to get this tweak workable in a multilanguage shop

 

Thanks!

Edited by rololo88 (see edit history)
Link to comment
Share on other sites

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