Thorsman Posted July 25, 2013 Share Posted July 25, 2013 Dear prestashop users, I'm very thankful for the support on this forum. What would I do without you guys? Im using 1.4.7.3 Could be a silly question but at my defence, I'm still new ;-) Now I have another question; Is there by any chance a module for changing the quantity to just "In stock" on a product? Attach is a picture on the problem. Thank you /George Link to comment Share on other sites More sharing options...
vekia Posted July 25, 2013 Share Posted July 25, 2013 you just want to use "IN STOCK" instead the number of the quantity? it's easy, you don't have to use module for this. take a look into the product.tpl file located in your theme directory: you've got there something like: <!-- availability --> <p id="availability_statut"{if ($product->quantity <= 0 && !$product->available_later && $allow_oosp) OR ($product->quantity > 0 && !$product->available_now) OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}> <span id="availability_label">{l s='Availability:'}</span> <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='This product is no longer in stock'}{/if}{else}{$product->available_now}{/if}</span> </p> <p id="availability_date"{if ($product->quantity > 0) OR !$product->available_for_order OR $PS_CATALOG_MODE OR !isset($product->available_date) OR $product->available_date < $smarty.now|date_format:'%Y-%m-%d'} style="display: none;"{/if}> <span id="availability_date_label">{l s='Availability date:'}</span> <span id="availability_date_value">{dateFormat date=$product->available_date full=false}</span> </p> <!-- number of item in stock --> {if ($display_qties == 1 && !$PS_CATALOG_MODE && $product->available_for_order)} <p id="pQuantityAvailable"{if $product->quantity <= 0} style="display: none;"{/if}> <span id="quantityAvailable">{$product->quantity|intval}</span> <span {if $product->quantity > 1} style="display: none;"{/if} id="quantityAvailableTxt">{l s='Item in stock'}</span> <span {if $product->quantity == 1} style="display: none;"{/if} id="quantityAvailableTxtMultiple">{l s='Items in stock'}</span> </p> {/if} you can use this in your theme: {if ($display_qties == 1 && !$PS_CATALOG_MODE && $product->available_for_order)} <p id="pQuantityAvailable"{if $product->quantity <= 0} style="display: none;"{/if}> <span id="quantityAvailable">{$product->quantity|intval}</span> <span {if $product->quantity > 1} style="display: none;"{/if} id="quantityAvailableTxt">{l s='Item in stock'}</span> <span {if $product->quantity == 1} style="display: none;"{/if} id="quantityAvailableTxtMultiple">{l s='Items in stock'}</span> </p> {/if} it will show "Item in stock" instead the number of the quantities available (remember that you have to replace code) Link to comment Share on other sites More sharing options...
Thorsman Posted July 27, 2013 Author Share Posted July 27, 2013 Thank you Vekia, but it seems that I even can't find the theme directory. So only one silly question left: Where do I find it? Thank's for your patients. Cheers, George Link to comment Share on other sites More sharing options...
vekia Posted July 27, 2013 Share Posted July 27, 2013 hello you have to use FTP service. just log in, and go to the root directory of your prestashop. You will see there /themes/ directory Link to comment Share on other sites More sharing options...
Thorsman Posted July 27, 2013 Author Share Posted July 27, 2013 I'm a newbie, you have to tell me in newbie terms. What is FTP Service? Is it www.Myhompage.com/IADMIN login? Thank you for your patients Link to comment Share on other sites More sharing options...
vekia Posted July 27, 2013 Share Posted July 27, 2013 hello no, FTP service isn't related to the prestashop. FTP is a service provided by your hoster. In this case you need: address of the FTP host login (FTP username) password (FTP password) then you have to use some tool to connect to the FTP service. for example total commander. You can use Total Commander to make FTP connection so you can publish/upload/download your website files 1. Run Total Commander, 2. Click Net, 3. In drop down menu choose "FTP Connect..." or you can use hot key combination (Ctrl+F), 4. Now when new window is open choose “New connection...”, 5. When you click on “New connection” new window will open and you need to fill out empty fields and click on OK, then you will be able to manage the website files list.. if you doin this for the first time - be carefully Link to comment Share on other sites More sharing options...
Recommended Posts