gnattle Posted October 18, 2013 Share Posted October 18, 2013 Next to an item there are two boxes. The first has the reference in which is fine and there is another box to the right side of it which is blank. Upon playing around with things I have found when an item is out of stock, this is written in this box. Everything is virtual stock so there will never be anything out of stock. How can I get rid of this box as it looks silly just a blank empty box sat there! Link to comment Share on other sites More sharing options...
vekia Posted October 18, 2013 Share Posted October 18, 2013 hello it's a non-default theme so it's hard to say what you have to change without an access to store or to product.tpl file Link to comment Share on other sites More sharing options...
gnattle Posted October 24, 2013 Author Share Posted October 24, 2013 Sorry for the delay. What do you need to see and I will show you it? Thank you Link to comment Share on other sites More sharing options...
vekia Posted October 24, 2013 Share Posted October 24, 2013 if it is possible - just share url to your store, i will inspect your website with developer tools Link to comment Share on other sites More sharing options...
gnattle Posted October 24, 2013 Author Share Posted October 24, 2013 Hi. Www.annacalvert.co.uk Thank you Link to comment Share on other sites More sharing options...
vekia Posted October 24, 2013 Share Posted October 24, 2013 ok now i see how it works. i this case you will need to modify product.tpl file. can you please share it? everything depends on code that you've got there Link to comment Share on other sites More sharing options...
gnattle Posted October 25, 2013 Author Share Posted October 25, 2013 Hi The first in the tpl file from the theme and the second the default one. Thanks product_txt.txt product_txt_default.txt Link to comment Share on other sites More sharing options...
vekia Posted October 25, 2013 Share Posted October 25, 2013 you've got there code: <li> <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> </li> change it to: {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} <li> <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> </li> {/if} Link to comment Share on other sites More sharing options...
gnattle Posted October 29, 2013 Author Share Posted October 29, 2013 Hi I changed the code in both files and it has not made any difference? http://www.annacalvert.co.uk/index.php?id_product=42&controller=product Cheers Link to comment Share on other sites More sharing options...
vekia Posted October 29, 2013 Share Posted October 29, 2013 hello please try to clear shop cache and recompile the theme Link to comment Share on other sites More sharing options...
gnattle Posted October 29, 2013 Author Share Posted October 29, 2013 hello please try to clear shop cache and recompile the theme Is this under advanced parameters? Under the configuration checklist on the back office home page I have an alert for Combine, Compress and Cache? Cheers Link to comment Share on other sites More sharing options...
vekia Posted October 29, 2013 Share Posted October 29, 2013 advanced paramters > performance turn force compile ON turn cache off open your product page and refresh it. then back to adv. paramters > performance turn force compile oFF turn cache on Link to comment Share on other sites More sharing options...
gnattle Posted October 30, 2013 Author Share Posted October 30, 2013 advanced paramters > performance turn force compile ON turn cache off open your product page and refresh it. then back to adv. paramters > performance turn force compile oFF turn cache on Hi Cache was already off, so turned compile on. Opened product page, refreshed it and the box was still there. Turned compile off and cache on, refreshed product page and the box is still there? I have two warnings on the performance page. Does this have anything to do with it? here are 2 warnings. Hide warning To use APC, you must install the APC PECL extension on your server. http://php.net/manual/en/apc.installation.php To use Xcache, you must install the Xcache extension on your server. http://xcache.lighttpd.net Link to comment Share on other sites More sharing options...
vekia Posted October 30, 2013 Share Posted October 30, 2013 <li {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}> <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> </li> can you try also with code above? Link to comment Share on other sites More sharing options...
gnattle Posted October 30, 2013 Author Share Posted October 30, 2013 I have done that and it has made the product disappear! When you click on a product you get a blank page (see image) therefore had to change it back! Link to comment Share on other sites More sharing options...
vekia Posted October 30, 2013 Share Posted October 30, 2013 is there any chance to get an access to your ftp? i will change code for you. if not, please revert changes 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