tozi Posted November 14, 2009 Share Posted November 14, 2009 Ahojte mám malý problém alebo skôr otázku.V súbore product-list.tpl som nahradiltúto časť {if ($product.allow_oosp OR $product.quantity > 0)}{l s='Available'}{else}{l s='Out of stock'}{/if} týmto <!-- availability --> quantity == 0 && !$product->available_later) || (!$product->available_now && $display_qties != 1) } 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} Ale nefunguje to. Vie mi niekto poradiť čo je zle?Ďakujem za pomoc.edit (riešenie): <!-- availability --> {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 More sharing options...
tozi Posted November 14, 2009 Author Share Posted November 14, 2009 Upresním to. Potrebujem aby sa mi tam zobrazovalo to čo sa vypisuje pri pridávaní produktu. Link to comment Share on other sites More sharing options...
Pat Posted November 16, 2009 Share Posted November 16, 2009 Zdravim, taky by me toto zajimalo a hlavne bych rad, aby se to nekde dalo hramodne nastavit, jako napriklad (Skladem/Neni skladem) a jeste idealne barevne odlisit zelena/cervena)Pokud nikdo nevite, tak to asi budu muset nejak vykoumat (, pac bez toho je shop naprd, aby vsude bylo skladem je nesmysl.Predem diky. Link to comment Share on other sites More sharing options...
Pat Posted November 16, 2009 Share Posted November 16, 2009 Takze ted jsem zjistil, kdyz smazu toto: $allow_oosp && a jinak tam necham puvodni, co tam maji, tak to konecne ukazuje spravne, zda to skladem je ci neni. Jeste si pohraju s barvama a bude to super.Vic jsem momentalne nechtel, tak je to pro me vyresene. Link to comment Share on other sites More sharing options...
tozi Posted November 16, 2009 Author Share Posted November 16, 2009 Môžeš sem hodiť celý kód?edit:vyriešené,riešenie je vyššie v prvom príspevku Link to comment Share on other sites More sharing options...
Pat Posted November 17, 2009 Share Posted November 17, 2009 <!-- availability --> quantity == 0 && !$product->available_later) || (!$product->available_now && $display_qties != 1) } 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} $allow_oosp && - toto jsem smazal v tom puvodnim kodu, co jsi psal, barvy jsem jeste neresil.Mas to hnedka pred tim $product->quantity, ani jsem neresil, co to jinak dela, ale nechapu, nac to tam je, kdyz to pak ukazuje nesmysly. Link to comment Share on other sites More sharing options...
kachna Posted May 16, 2010 Share Posted May 16, 2010 ako je to teda s tymi farbami? aby bolo Out of stock cervenou?//ok vyriesene Link to comment Share on other sites More sharing options...
jaro61 Posted September 18, 2010 Share Posted September 18, 2010 Táto úprava funguje výborne ak sa na produkt dostaneme priamo cez kategóriu. Ale ak dáme produkt vyhľadať, tam sa už dostupnosť nezobrazuje správne. Vedel by niekto pomôcť ako vyriešiť aj tento problém?Ďakujem. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now