Jump to content

available_now and later dont appear in some pages


bibob

Recommended Posts

Hi

 

I just noticed that the value available_later and available_now dont appear in new-product, bestsales or discount pages, it  only apear in productlist of categories.

 

it means

the {$product.available_later|escape:'quotes':'UTF-8'}  and {$product.available_now|escape:'quotes':'UTF-8'}  only show the value in product-list when i go to categories.

but not in   new-product, best seller or discount pages. on those pages it dont show the value. 

hope someone have a solution to fix that

 

using prestashop last version 1.5.6.1

Link to comment
Share on other sites

New products (new-products.tpl), Top sellers (best-sales.tpl), Price drop (prices-drop.tpl) - all of them use product-list.tpl

Did you make any changes to relevant .php files? Also check .css files. Maybe availability is just hidden with display:none or visibility: hidden.

Link to comment
Share on other sites

New products (new-products.tpl), Top sellers (best-sales.tpl), Price drop (prices-drop.tpl) - all of them use product-list.tpl

Did you make any changes to relevant .php files? Also check .css files. Maybe availability is just hidden with display:none or visibility: hidden.

Hi thanks for reply,  Actually no nothing is hidden, as they are displaying correctly for available now, and i dont have html tags for the text.   you can look here http://shoutkey.com/rebel

Link to comment
Share on other sites

OK. Correct me if I'm wrong. Status available_now works ok on every page. Status available_later works only on category page and it shows an image and time when product will be available again. On other pages with products list there's only an image. Right?

 

Can you show me this part of code in product-list.tpl that is responsible for loading availability status? Did you change it or use custom module to show time until next availability?

Link to comment
Share on other sites

<li class="{$smarty.foreach.products.index} ajax_block_product{if $smarty.foreach.products.first} first_item{/if}
{if ($smarty.foreach.products.index + 1)%3} item{else} last_item{/if} clearfix">	
         
   <div class="add2cart">
	 <div class="product_flags">
	   {if isset($product.available_for_order) && !isset($restricted_country_mode)}
		 <span class="availability">
		 
			 {if ($product.quantity > 0)} 
			    <img src="{$img_dir}icon/available.png" alt="PAA LAGER!" width="12" height="12" border="0"> 
			    {l s='Available'}
			 {else}
			    {if $product.allow_oosp}
 			        <img src="{$img_dir}icon/available-soon.png" title="{l s='Pa Fjernlager'}" width="12" height="12" border="0"> 
 			       {$product.available_later|escape:'quotes':'UTF-8'}                    
			    {else}
 				    <img src="{$img_dir}icon/unavailable.png" alt="Varen kan ikke bestilles" width="12" height="12" border="0"> 
				   	 {l s='UDSOLGT'}  
				{/if}
		     {/if}
		 </span>
				
		{else}
			 <span class="availability">
			 <img src="{$img_dir}icon/unavailable.png" alt="Denne vare er ikke pa lager" width="12" height="12" border="0"> 
			 {l s='UDSOLGT'}   
			 </span>
		{/if}
..... other code removed just some other functions		

as you see iam using if $product.allow_oosp}  for some reasons, anyway the available-soon.png  is showing on  new-product / best sale  so it means it should hook the value of avilable later

 

Edited by bibob (see edit history)
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...