Devils Parts Posted April 27, 2015 Share Posted April 27, 2015 (edited) Hi there I have the strangest issue, I am currently using the default Bootstrap theme on 1.6.0.9 and I have no issues with it besides customers not being able to download or view their past orders and the password reset it very much a hit and miss in the front office. Besides this all works seamlessly well but I want to upgrade to 1.6.0.14 to fix the above issues. When I upgrade my duplicate store on a different URL I get "In Stock" text displayed next to my price which previously did not display. It seems to be some sort of add on by Prestashop for stock reporting? Can anyone assist in turning this feature off or is it best to leave it there? If anyone wants to analyse the code you may so here: http://www.coolboost.co.za/jesse/12-devilsown-alcohol-injection Thanks a million everyone! Edited April 27, 2015 by Royalboy (see edit history) Link to comment Share on other sites More sharing options...
rouhaud Posted April 28, 2015 Share Posted April 28, 2015 i have the same problem https://www.prestashop.com/forums/topic/434562-en-stock-a-cote-du-prix-1614/ Link to comment Share on other sites More sharing options...
Devils Parts Posted April 28, 2015 Author Share Posted April 28, 2015 Whatever the issue is here its definitely not the wrong or corrupted PS files. I downloaded and unzipped the latest version of PS 1.6.0.14 and copied only my sites current settings.inc and only the img(besides admin) folder across to it. I edited the domain names in phpmyadmin from what it was to "localhost" and got the site up and running perfectly on WAMP on my local machine. I then initiated the upgrade script which migrated the original database from 1.6.0.9 to 1.6.0.14 and once done, deleted the install folder and browsed my store. The same copy of my products availability was written next to the price.See below.......any ideas? Link to comment Share on other sites More sharing options...
rouhaud Posted April 29, 2015 Share Posted April 29, 2015 some body have found the soluce !!! go to see here : https://www.prestashop.com/forums/topic/434562-en-stock-a-cote-du-prix-1614/?p=2041475 you must edit the product-list.tpl and line 84 erase this : {if $PS_STOCK_MANAGEMENT && isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)} {if ($product.allow_oosp || $product.quantity > 0)} <link itemprop="availability" href="http://schema.org/InStock" />{if $product.quantity <= 0}{if $product.allow_oosp}{if isset($product.available_later) && $product.available_later}{$product.available_later}{else}{l s='In Stock'}{/if}{else}{l s='Out of stock'}{/if}{else}{if isset($product.available_now) && $product.available_now}{$product.available_now}{else}{l s='In Stock'}{/if}{/if} {elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)} <link itemprop="availability" href="http://schema.org/LimitedAvailability" />{l s='Product available with different options'} {else} <link itemprop="availability" href="http://schema.org/OutOfStock" />{l s='Out of stock'} {/if} {/if} you can go to see the result here : http://www.nfc-smartags.com/12-encodeur 1 Link to comment Share on other sites More sharing options...
Devils Parts Posted April 29, 2015 Author Share Posted April 29, 2015 Thanks for the assistance, still wish I knew why the code was placed there by Prestashop in the first place! At least it is a solution for the time being. 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