florisca.levi Posted March 28, 2014 Share Posted March 28, 2014 Hello, I am currently working on a website using prestashop 1.5.5.0 and i would like to ask how can i change the text for the disponibility of the product? The website can be found here. I would like to change the text which is highlighted in the attached image. Can you help me find the source file in which the text can be edited? Thank you in advance! Levi Link to comment Share on other sites More sharing options...
vekia Posted March 28, 2014 Share Posted March 28, 2014 on each product edit page (in back end) open quantities tab, there is a place to define availability texts (hope that this is what you're looking for - i can't understand your shop language) Link to comment Share on other sites More sharing options...
florisca.levi Posted March 28, 2014 Author Share Posted March 28, 2014 I would like to change the text if the product is no longer available. That text cannot be found in the administration panel of the software. Any other suggestions? Link to comment Share on other sites More sharing options...
MaximeCer Posted March 28, 2014 Share Posted March 28, 2014 Hello, you have just to go, in your back office , in "Localisation >> Language" and select "Front-office translation", your theme.In "product-comparison" you'll be able to change the sentence ! Link to comment Share on other sites More sharing options...
florisca.levi Posted March 28, 2014 Author Share Posted March 28, 2014 Very good, I have managed to change it. I have one more question for you. How can i add a link there? For now all i can do is change the text as plain text. Can it be more formatted or is it possible to add links to that field? Link to comment Share on other sites More sharing options...
MaximeCer Posted March 28, 2014 Share Posted March 28, 2014 To add a link at this place you must put it directly in your code by modifying your product.tpl. Link to comment Share on other sites More sharing options...
florisca.levi Posted March 31, 2014 Author Share Posted March 31, 2014 To add a link at this place you must put it directly in your code by modifying your product.tpl. Can u give me the specific code that I need to enter? I would like my text to be something like this: TEXT TEXT LINK TEXT. Can this be done by modifying the product.tpl? And if yes can u give me a code for it please? Link to comment Share on other sites More sharing options...
MaximeCer Posted March 31, 2014 Share Posted March 31, 2014 It should be something like that : <span id="availability_value"{if $product->quantity <= 0} class="warning_inline"{/if}>{if $product->quantity <= 0}{if $allow_oosp}{$product->available_later}{else}{l s='TEXT'} {l s='TEXT'} <a>LINK</a> {l s='TEXT'} {/if}{else}{$product->available_now}{/if}</span> It can only be done by modifying the product tpl Link to comment Share on other sites More sharing options...
florisca.levi Posted March 31, 2014 Author Share Posted March 31, 2014 Inserting this code instead of the previous in the product.tpl does not change the text. It will insert the same text 2 times. Also, i would like to add the link so another word would be displayed... example: TEXT TEX(this will be a link) TEXT. Link to comment Share on other sites More sharing options...
MaximeCer Posted March 31, 2014 Share Posted March 31, 2014 I don't understand what you want this time, sorry.. But, just put the text you want in the tag : {l s=' '} and the link in <a></a> With that, you should do what you really want ! Link to comment Share on other sites More sharing options...
florisca.levi Posted March 31, 2014 Author Share Posted March 31, 2014 I entered the line u wrote above. As effect of the line in the product.tpl, the text entered from in the code in the tag {l s=' '} will not be displayed in the webpage. Instead, the same old text as before is displayed (the one set from the back office of the Presta Shop) Link to comment Share on other sites More sharing options...
MaximeCer Posted March 31, 2014 Share Posted March 31, 2014 Clean your cache and Force compilation it'll be good Link to comment Share on other sites More sharing options...
florisca.levi Posted March 31, 2014 Author Share Posted March 31, 2014 With minor modifications made to the code i have managed to do what I want. Thank you all for the help you have provided even if the request wasn't written in the best way I only hope that you can help me next time as well! Levi Link to comment Share on other sites More sharing options...
vekia Posted March 31, 2014 Share Posted March 31, 2014 thank you for confirmation that you found solution in this thread glad to hear that prestashop community helped a little i marked whole topic as solved. with regards, Milos Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now