Jump to content

product availability status


croc

Recommended Posts

Hello everybody.

I would like to import products via csv, and in the column "if on stock, then (Display ON STOCK)"

But i dont want to manage available stock quantities and also i will not import this in csv, so by all products will be phisicaly 0 on stock.

 

Is it possible to set it anywhere, that also by 0 on stock of the products it will be displayed on the product page icon "ON STOCK" ?

 

Thanks for all tips.

Link to comment
Share on other sites

Well at this point you can try modifying the template file, product.tpl

			{if $PS_STOCK_MANAGEMENT}
				<!-- availability -->
				<p id="availability_statut"{if ($product->quantity <= 0 && !$product->available_later && $allow_oosp) || ($product->quantity > 0 && !$product->available_now) || !$product->available_for_order || $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 class="warning_inline" id="last_quantities"{if ($product->quantity > $last_qties || $product->quantity <= 0) || $allow_oosp || !$product->available_for_order || $PS_CATALOG_MODE} style="display: none"{/if} >{l s='Warning: Last items in stock!'}</p>
			{/if}
Link to comment
Share on other sites

×
×
  • Create New...