Jump to content

1.6.0.9 -> 1.6.0.14 "In Stock" displayed next to price


Recommended Posts

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!

post-581098-0-51555100-1430166764_thumb.jpg

Edited by Royalboy (see edit history)
Link to comment
Share on other sites

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?

post-581098-0-81374600-1430258148_thumb.jpg

Link to comment
Share on other sites

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

  • Like 1
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...