Jump to content

Different availability value


sanl

Recommended Posts

Hey,

 

in product.tpl file I have only this code:

<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>

If i have product i can see: 1-3 days if I dont have: 2-4 weeks

 

It works perfect but IF I use wholesale customer group I got different availability value. In product which I dont have i can see: 1-3 days. There is the problem? I thought it would be additional IF in product.tpl which customer groups but no, its default code. 

 

Any ideas: if i reload site at first 2 sec I can see 2-4 weeks (it should be correct status) and after 2sec its just change to: 1-3days. 

 

Another problem:

If I have product combination: 1 main product - and 2 accessories for that product. Its like notebook and notebook case. If I check my main product notebook and I dont have it i see: 2-4 weeks. If I choose accessorie notebook case: i see 1 -3 days. But its impossible if I dont have my main product cuz total sum is: notebook + something from accesories.

Edited by mantasl (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...