Jump to content

Out of stock message?


Recommended Posts

Hi,

I run Prestashop with modified Black&White;theme. You can see the shop at
www.drakfisken.se

There's alot of articles that can be ordered even if they are out of stock, but I can't find a way to show the message to the customers.

If the article is out of stock I would like to have a message saying the estimated delivery time... but now it's just blank...

Where do I change this? How?

//Hans

27427_DgPBKWkETwUQsYScfTqE_t

27428_pqab02W4GeU8S0sqE5Ny_t

Link to comment
Share on other sites

  • 4 weeks later...

In themes/blackwhite/product.tpl
Around line 192 after

<!-- quantity wanted -->

quantity == 0) || $virtual} style="display:none;"{/if}>
{l s='Quantity :'}
<input type="text" name="qty" id="quantity_wanted" class="text" value="{if isset($quantityBackup)}{$quantityBackup|intval}{else}1{/if}" size="2" maxlength="3" />


try to add

<!-- availability -->

quantity == 0 && !$product->available_later) OR ($product->quantity != 0 && !$product->available_now)} style="display:none;"{/if}>
{l s='Availability:'}
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}


Link to comment
Share on other sites

Hi,

sorry for my bad english...

it works very well, but I still have a little problem, when my text "This product is no longer in stock" take more than 2 lines, it overlaps with the block of the bottom (I put it under the button "add to cart" but I have the same problem if I put it above the button "add to cart").

How to avoid it?

Thanks for new help.

Regards.

Stacy Ann.

Link to comment
Share on other sites

Thank you very very very much to Cactusman2... ;-)

The solution was on my_theme/css/global.css


Replace:

#availability_statut {
float:left;
font-size:10px;
height:32px;
padding-left:8px;
}



by:

#availability_statut {
float:left;
font-size:10px;
height:32px;
padding-bottom:10px;
padding-left:8px;
}




Thank you again Cactusman2!

Regards.

Stacy Ann

Link to comment
Share on other sites

×
×
  • Create New...