food4 Posted February 3, 2012 Posted February 3, 2012 Здравствуйте, подскажите кто знает)) как в режиме каталога в карточке товара вывести его наличие? На складе - Нет на складе или цифровое значение как в режиме магазина. Заранее спасибо! Share this post Link to post Share on other sites More sharing options...
Coffin Posted February 3, 2012 Posted February 3, 2012 В шаблоне product-list.tpl надо переписать вот эту часть {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} <div class="content_price"> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price" style="display: inline;">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span><br />{/if} {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)} {if ($product.allow_oosp || $product.quantity > 0)} <span class="availability">{l s='Available'}</span> {elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)} <span class="availability">{l s='Product available with different options'}</span> {else} <span class="NotAvailability">{l s='Out of stock'}</span> {/if} {else} <span class="NotAvailability">{l s='Out of stock'}</span> {/if} </div> {/if} Share this post Link to post Share on other sites More sharing options...
food4 Posted February 3, 2012 Posted February 3, 2012 поменял, ничего не изменилось. и я думал что надо править файл product.tpl версия престы 1.4.4.0 Share this post Link to post Share on other sites More sharing options...
Coffin Posted February 3, 2012 Posted February 3, 2012 а ссылка на сайт есть ? Вобще может надо смотреть шаблоны на наличие условия $PS_CATALOG_MODE и уже оттуда плясать. Share this post Link to post Share on other sites More sharing options...
gabdr Posted February 4, 2012 Posted February 4, 2012 чтобы выводилось цифровое значение нужно переписывать код, а так можно включить в админке отображение в наличии и не вналичии и настроить в языках текст если делать в продукт, то настраивается в админке карточке товаров Share this post Link to post 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