Jump to content

Blockcart.tpl - Need Assistance With A Text Change. Please Help


steve02cal

Recommended Posts

Hello -

 

I am currently running PrestaShop v1.5.6  I am having an issue with the Blockcart module.  Within the module is hard coded text "Free Shipping!".  This is causing me many problems with my customers that will add products to their shopping cart thinking that it will be Free Shipping for everything.  Then when they create an account to purchase the merchandise they become upset that they cannot get "Free Shipping".

 

I am not a coder, so I am not certain how to change this text.  I looked into Blockcard.tpl and found the following statement:

var freeShippingTranslation = '{l s='Free Shipping!' mod='blockcart' js=1}';

I changed the 'Free Shipping!' text to 'Login for cost'.  I saved the change and reloaded my website.  The shopping cart now shows shipping as $.00 which is just as bad as having 'Free Shipping!'.

 

I then found the following statement in the ajax-cart.js module:

else if (typeof(freeShippingTranslation) != 'undefined')	$('.ajax_cart_shipping_cost').html(freeShippingTranslation);

I know that freeShippingTranslation is a variable, but don't understand what I have to change.

 

Can someone assist me so that I can change the text "Free Shipping!" to "Login for cost" within the Blockcart.tpl module?  Any assistance would be greatly appreciated.  As I mentioned, I am not a coder so I don't understand what has to be fixed to make the change work.

 

Thank you in advance for any assistance.  It is greatly appreciated !!!!

Link to comment
Share on other sites

You can change this in translations rather then changing the code in the .tpl file, go to localization, translations, installed modules and look for blockcart and change it there.

You will need to undo the changes to the .tpl file if you have not already done so.

Link to comment
Share on other sites

Hello TDR170 -

 

Thank you for the quick response !!!  Can you provide me with the full Directory Path ?  I cannot find localization, translations, installed modules path.  Sorry if this is a poor question, but I am not a coder.  When I installed PrestaShop v1.5.6 I took all the defaults, so I don't have any special directory names. 

 

Again, thank you for the quick response !!!

Link to comment
Share on other sites

Not a directory, this is a Menu item from the BO, you can edit translations from here.

I do not currently have a 1.5 installed but I believe it is in the location posted, Localizaton, translations, you should see a drop down on this page to select installed modules.

Link to comment
Share on other sites

Hello TDR170 -

 

Thank you very much !!!!  That worked perfect !!!!  I could not believe how easy it was.  I spent a couple of hours looking at raw code trying to make the fix.  As you mentioned earlier, I backed out all my changes as I made backup copies of any module I touched !!!!

 

Once again, I really appreciate your assistance.  You are the best !!!!!

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