Jump to content

Search the Community

Showing results for tags 'Availability'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Community Help and Support
    • PrestaShop Download
    • PrestaShop Marketplace
  • News and Announcements
    • PrestaShop news and releases
    • PrestaShop Beta
    • PrestaShop Blogs
    • PrestaShop Meetups
  • International community (English)
    • General topics
    • PrestaShop Merchants
    • PrestaShop Developers
    • Taxes, Translations & Laws
    • Community Modules and Themes
  • Forum francophone
    • Discussion générale
    • Aide et support communautaire
    • PrestaShop pour les marchands
    • PrestaShop pour les développeurs
    • Adaptation aux lois Québécoises
    • Modules et thèmes gratuits
    • Modules et thèmes payants
  • Foro en Español
    • Discusión general
    • Soporte de la comunidad y ayuda
    • Comerciantes PrestaShop
    • Desarrolladores PrestaShop
    • Módulos y plantillas gratuitas
  • Forum italiano
    • Forum generale
    • Aiuto e supporto della Community
    • Commercianti PrestaShop
    • Sviluppatori PrestaShop
    • Aspetti legali sull'eCommerce
    • Moduli e template gratuiti
  • Deutsches Forum
    • Generelle Fragen
    • Support und Hilfe aus der Community
    • e-Commerce/Versand-Handel mit Prestashop
    • Prestashop-Entwickler
    • Anpassung an deutsches Recht
    • Kostenlose Module und Templates
    • Generelle Fragen Copy
  • Nederlandstalig forum
    • Algemeen
    • Hulp en ondersteuning, van en voor de community
    • PrestaShop-winkeliers
    • PrestaShop-ontwikkelaars
    • Het aanpassen van PrestaShop
    • Gratis modules en templates
  • Fórum em Português
    • Fórum Geral
    • Ajuda e Suporte da Comunidade
    • Lojistas que utilizam o PrestaShop
    • Desenvolvedores PrestaShop
    • Legislação específica
    • Módulos e temas gratuitos
  • Polskie forum
    • Forum ogólne
    • Wsparcie i pomoc użytkowników
    • Oferty twórców PrestaShop
    • Deweloperzy PrestaShop
    • Darmowe Moduły i Szablony
  • Dansk forum
    • Generelt forum
    • Hjælp og support fra fællesskabet
    • PrestaShop for købmænd
    • PrestaShop for udviklere
    • Love og regler
    • Gratis moduler og temaer
  • České fórum
    • Instalasi, Konfigurasi dan upgrade
    • Obecná diskuze
    • Bezplatné moduly a šablony
    • PrestaShop vývojáři
    • PrestaShop obchodníci
  • Bahasa Indonesia
    • Diskusi Umum
    • Podpora a pomoc komunity
    • Laporan Bug
    • Jasa, Promosi & Lowongan Kerja
  • Svenskt forum
    • Allmän diskussion
    • Installation, konfigurering och uppdatering
  • Forumul românesc
    • Discuţii generale
    • Instalare, configurare şi upgrade
  • Pусский язык
    • Обсуждение скрипта
    • Установка, Настройка, Обновление
    • Прием багов
  • Slovenské fórum
    • Všeobecná diskusia
    • Podpora a pomoc komunity
    • PrestaShop obchodníci
    • PrestaShop vývojári
    • Bezplatné moduly a šablóny
  • Türkçe Topluluğu
    • Genel Konular
    • Topluluk desteği ve yardım
    • PrestaShop Tüccarları
    • Prestashop Geliştiricileri
    • Ücretsiz Modül ve Temalar
  • Diễn đàn tiếng Việt
    • Thảo luận chung
    • Hỗ trợ từ cộng đồng
    • Dành cho chủ doanh nghiệp / cửa hàng
    • Dành cho lập trình viên
  • PrestaShop Communities
    • اللغه العربيه [Arabic]
    • Ελληνικά [Greek]
    • עִבְרִית [Hebrew]
    • 中文
    • Magyar [Hungarian]
    • 日本語 [Japanese]
    • Lietuviškai [Lithuanian]
    • انجمن فارسی [Persian]
    • ไทย [Thai]
    • Malaysia [Malaysian]
    • Eesti [Estonian]
    • Slovenščina [Slovenian]
    • Српски [Serbian]
  • IP. Board Forum
    • IP. Board Forum Questions and Issues
  • Archive
    • Zapłać Moduły i Szablony [ARCHIVE]
    • Moduly, upravy a dizajn [ARCHIVE]
    • Phát triển và các mô-đun [ARCHIVE]
    • Yazılım, Modül ve Tema [ARCHIVE]
    • Модули, Шаблоны [ARCHIVE]
    • Module şi teme [ARCHIVE]
    • Pengembangan dan Modul [ARCHIVE]
    • Moduler och teman [ARCHIVE]
    • Ecommerce x PrestaShop [ARCHIVE BOARD]
    • Vývoj a moduly [ARCHIVE]
    • Kostenpflichtige Module, Templates [ARCHIVE]
    • Módulos y temas pagos [ARCHIVE]
    • Módulos e temas pagos [ARCHIVE]
    • Servizi commerciali [ARCHIVE]
    • Forum - Feedback Contributor
    • PrestaShop Cloud

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


  1. Hello, i would like to show in my cart the availability date of the product if they are not in stock but they will be soon. How i can do?
  2. Hello ! I am having an issue with the "out of stock but orders are allowed" Label. I've check this on the products settings : And now I would like yo apply different texts on products here : Here you can see my "Out of stock but orders are allowed" label filled with : "Montage sous 5 à 10 jours" but on my front-office the message is the regular "Out of stock but orders are allowed" message set in the products setting (so "Commande 3 à 5 jours"). Note that the "In stock" label works and my product display the custom text "Montage sous 3 à 4 jours" when it's in stock, but the other label won't display ! Do anyone have an idea on how to achieve this ? Thanks in advance, Maxime.
  3. Hello, Using prestashop 1.7.4.2 Does anyone now how to get the stock quantities like shown into the product details into the product list ? Not the into cart button but the real quantities that are available like 5 items in stock, 20 items in stock ..... I managed to do this from the product details into the product additional info but i can't get it into the product list. I already use the product availability field in the product list but does use it to show the delivery time. I thought by putting the beneed code into the theme/templates/catalog/_partials/miniatures.product.tpl but it doesn't work. {block name='product_quantities'} {if $product.show_quantities} <div class="product-quantities" style="margin:10px 0 10px 0;"> <label class="label">{l s='In stock' d='Shop.Theme.Catalog'}</label> <span data-stock="{$product.quantity}" data-allow-oosp="{$product.allow_oosp}">{$product.quantity} {$product.quantity_label}</span> </div> {/if} {/block} https://tassenverkoop.be Hope that anyone knows this.
  4. Salve, avrei la necessità di creare una logica che lavori in questo modo: Questo sotto è un estratto del file product-variants.tpl, nello specifico il blocco che regola la restituzione delle varianti Colori (i pallini con all'interno i colori). Vorrei che, se la variante è Non Disponibile nel sito, venga mostrato un altro <span> che ho apportunamente creato (che sarà una "X" sul pallino per indicare che il colore è terminato). Per fare questo ho inserito il {if $product.availability == 'unavailable'} centrale che vedete nel codice, con annesso <span> con classe input-color-unavailable. Il problema è che a quanto pare lo <span> in questione viene mostrato solo quando è stato selezionato il colore Non Disponibile, e viene mostrato su tutte le varianti di colore. Al contrario, se è selezionata una variante Disponibile, lo <span> non viene mostrato su nessuna variante. Sembra quindi che Prestashop legga la disponibilità di una variante solo se selezionata (in pratica, la stessa logica che usa per il messaggio di disponibilità più in basso). Nel video allegato potete vedere la Variante Gialla che è Disponibile, e la Variante Rossa che è Non Disponibile. Lo <span> attualmente ha il background blue così si vede chiaramente. Quando seleziono la Variante Rossa Non Disponibile, mi applica lo span blu a tutte quante. Quando seleziono la Variante Gialla Disponibile, non mi mostra lo span blu su quella Non Disponibile. La mia domanda è quindi: è possibile fare in modo che legga le disponibilità delle varianti anche senza selezionarla? Spero di essere stato il più chiaro possibile, Grazie in anticipo <input class="input-color" type="radio" data-product-attribute="{$id_attribute_group}" name="group[{$id_attribute_group}]" value="{$id_attribute}"{if $group_attribute.selected} checked="checked"{/if}> {if $product.availability == 'unavailable'} <span class="input-color-unavailable"></span> {/if} <span {if $group_attribute.html_color_code}class="color" style="background-color: {$group_attribute.html_color_code}" {/if} {if $group_attribute.texture}class="color texture" style="background-image: url({$group_attribute.texture})" {/if}> <span class="sr-only">{$group_attribute.name}</span></span> variants.mov
  5. Prestashop 1.7.6.9 Official Facebook by Prestashop does not update stock as per original settings. There are currently 3 different stock features in facebook cataloge: In stock, Out of stock, Available for order and Discontinued. So, when the product is out of stock, but orders are allowed, it should have the status Available for order so it can be ready for Ads and showing in the Facebook Shop, instead, Prestashop lists it as Out of stock and that's it. I discussed with Prestashop help, but they got stock at not responding anymore by email. It seems that they have not checked the entire feature themselves, they just pushed a module without checking the actual feature. So, somehow, this is very wrong (modules/ps_facebook/classes/Provider/ProductAvailabilityProvider.php): public function getProductAvailability($productId, $productAttributeId) { $product = new Product($productId); if ((int) StockAvailable::getQuantityAvailableByProduct($productId, $productAttributeId)) { return ProductItemAvailabilityValues::IN_STOCK; } switch ($product->out_of_stock) { case 1: return ProductItemAvailabilityValues::AVAILABLE_FOR_ORDER; case 2: $isAvailable = Product::isAvailableWhenOutOfStock($product->out_of_stock); return $isAvailable ? ProductItemAvailabilityValues::AVAILABLE_FOR_ORDER : ProductItemAvailabilityValues::OUT_OF_STOCK; case 0: default: return ProductItemAvailabilityValues::OUT_OF_STOCK; } } } I could edit myself, but since Prestashop pushes updates once per day, I will not know if what I updated is actually valid.
  6. Hi to all, I wanted to change the default message "Last items in stock" to information about how many items are left in stock, so first I changed the message in Translations in Admin from "Last items in stock" to "Available items: ", and then in product-add-to-cart.tpl I changed this bit: {block name='product_availability'} <span id="product-availability"> {if $product.show_availability && $product.availability_message} {if $product.availability == 'available'} <i class="material-icons rtl-no-flip product-available">&#xE5CA;</i> {elseif $product.availability == 'last_remaining_items'} <i class="material-icons product-last-items">&#xE002;</i> {else} <i class="material-icons product-unavailable">&#xE14B;</i> {/if} {$product.availability_message} {/if} </span> {/block} ... to this - removed <i class="material-icons product-last-items">&#xE002;</i>, as it did not fit, and then added {$product->quantity}: {block name='product_availability'} <span id="product-availability"> {if $product.show_availability && $product.availability_message} {if $product.availability == 'available'} <i class="material-icons rtl-no-flip product-available">&#xE5CA;</i> {elseif $product.availability == 'last_remaining_items'} {$product->quantity} {else} <i class="material-icons product-unavailable">&#xE14B;</i> {/if} {$product.availability_message} {/if} </span> {/block} I have no idea why on the page I see "1 Available items:" instead of "Available items: 1" - the number is in front of the message, not behind. Where is the problem? How should I fix it? I would appreciate any tips. Adam
  7. dear guys , how can I avoid that if a visitor adds a product to the shopping cart, the availability for other visitors is automatically removed until the visitor completes the purchase? Or how can I automatically cancel abandoned carts to free up the availability of non-purchased products? Thanks
  8. Hello Dear Community, We want you to present our new Prestashop Module "Change Product Availability-Text by Manufacturer" Save your pure Time! With this Module you can quickly masschange the Product Availability-Texts for all Products by a choosen Manufacturer and Language with just one Click. This Module works with prestashop 1.6 and 1.7 Just choose The Manufacturer choose the Language Enter The New Text With a click on submit all products of the choosen manufacturer have the new entered Text setted in the choosen Language. If interested, the module can be purchased here ---> https://addons.prestashop.com/en/delivery-date/45391-change-product-availability-text-by-manufacturer.html Sorry for the Bad english... Good luck and good business wishes
  9. There is a SOLVED thread guiding how to add a SOLD OUT image when an item is no longer available. it works smoothly. What about implementing this to the mobile default template? I've tried to add the same line {if $product.quantity<=0}<img src="https://www.yoursite...d-Out-small.png" style="position:absolute; top:0px; right:0px; z-index:2; border:none;"/>{/if} to mobile/product.tpl but it shows the ribbon on the top of the page once I click on the item instead of showing it in the homepage. Then I've tried with category-product-list.tpl {if isset($products)} <ul data-role="listview" id="category-list" class="ui-listview ui-grid-a"> {foreach from=$products item=product name=products} <li class="ui-block-{if $smarty.foreach.products.index % 2}b{else}a{/if} product-list-row"> <a href="{$product.link|escape:'htmlall':'UTF-8'}" data-ajax="false"> <div class="product_img_wrapper"><img class="ui-li-thumb" src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'large_default')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" /></div> <h3 class="ui-li-heading">{$product.name|escape:'htmlall':'UTF-8'}</h3> {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} <p class="ui-li-price"> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)} {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} {/if} </p> {assign var='info3_str' value=' '} {assign var='info3_class' value='on_sale'} {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} {capture assign='info3_str'}{l s='On sale!'}{/capture} {elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} {capture assign='info3_str'}{l s='Reduced price!'}{/capture} {assign var='info3_class' value='discount'} {/if} <p class="ui-li-price-info {$info3_class}"><span>{$info3_str}</span></p> <p class="availability"> {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)} {if ($product.allow_oosp || $product.quantity > 0)}{l s='Available'}{elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}{l s='Product available with different options'}{else}{l s='Out of stock'}{/if} {else} {/if} </p> {if isset($product.online_only) && $product.online_only} <p class="online_only">{l s='Online only!'}</p> {/if} {/if} {if isset($product.new) && $product.new == 1}<p class="new">{l s='New'}</p>{/if} {if $product.quantity==0}<img src="http://www.e-piazza....mall-ribbon.png" style="position:absolute; top:0px; right:0px;" />{/if} </a> </li> {/foreach} </ul><!-- #category-list --> {/if} It shows on the main list page but it's not aligned with the item image and it even makes the product image and info move to the right.
  10. right i am having a problem with the availability text not showing correctly i have added this code to the template if you go to a product is works fine so what im trying to is: if the product is out of stock with me but the supplier has stock i have allowed back order on that product. if back order is allowed on that products it should show so for this product it is out of stock with me but in stock with supplier the code works fine on product page view product here on the search of the same product it also works fine with this code view search page here but on the category page where product is shown it juts shows out of stock it doesn't take the text in put in from the products quantity page view category page here is what i put the the product page for the text im trying to see see image attached so not all products will be set to available to order only ones i have set to allow orders if im out of stock and supplier out of stock the products gets set to deny back orders
  11. Good morning, I use a template called SiteShop and the case is that in the general list of products I would like a label to leave without having to enter the product where it says Stock or Sold out for example and in different color if possible where the customer already see that it is in stock or not without having to enter it. Is it a module? I need help urgently thanks. I attach a photo where it is clearer what I need
  12. Cześć, W sklepie pod adresem testowym http://polcarat.ayz.pl/ korzystam z Atrybutów i kombinacji (kolor i rozmiar). Dla kombinacji są przypisane różne wartości odnośnie dostępności (cena jest stała). Mam włączoną możliwość zamawiania gdy stan magazynowy jest równy 0. Przy zmianie np atrybutu koloru na taki gdzie stan magazynowy jest równy 0 nie zmienia się informacja o Dostępności tak jak zmienia się zdjęcie i cena (jeżeli jest inna dla danej kombinacji). Informacja o dostępności zmienia się dopiero gdy przeładuję stronę. Moje pytanie jest takie, czy to błąd Prestashop? Czy jest jakiś moduł / poprawka który aktualizuje pole Dostępności przy zmianie atrybutów bez potrzeby przeładowania strony? http://polcarat.ayz.pl/pierscionki/2412-2980-srebrny-pierscionek-z-krysztalem-swarovski-pk-1902.html#/39-rozmiar-24/47-kolor-sapphire Wersja PrestaShop: 1.7.3.3
  13. Hi, I have an online store with antiques. Each product only one piece. I would like to create availability statuses on the product page ($product.availability_message). 1. If the product is reserved (order status: waiting for payment), I would like to display the availability message on the product page: "product reserved" (without the possibility of ordering). 2. If the product has been sold (order status: paid / shipped / delivered), I would like to display the message about availability: "product sold" (without the possibility of ordering). I am asking for help, how to do it.
  14. Hello, I have a question! how can i show this field, because he disappeared, and I do not know how to show it http://nemops.com/wp-content/uploads/2014/06/quickview_features_spot-680x375.jpg
  15. Hello, Am searching for a way to show product availability on product list. It shows alright on the product info but not on the product-list. It must be related to the custom theme i use for my shop. My prestashop 1.6.1.4 And here's the Product-list.tpl {* * 2007-2015 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2015 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {include file="$tpl_dir./layout/setting.tpl"} {if isset($products) && $products} {*define numbers of product per line in other page for desktop*} {if isset($class)} {*only display grid mode when include from other module*} {assign var="LISTING_GRIG_MODE" value="grid" scope="global"} {assign var='nbItemsPerLine' value=$LISTING_PRODUCT_COLUMN_MODULE} {if $LISTING_PRODUCT_COLUMN_MODULE=="5"} {assign var="colValue" value="col-xs-{12/$LISTING_PRODUCT_MOBILE} col-sm-{12/$LISTING_PRODUCT_TABLET} col-md-2-4 col-sp-12" scope="global"} {else} {assign var="colValue" value="col-sp-12 col-xs-{12/$LISTING_PRODUCT_MOBILE} col-sm-{12/$LISTING_PRODUCT_TABLET} col-md-{12/$LISTING_PRODUCT_COLUMN_MODULE}" scope="global"} {/if} {else} {assign var='nbItemsPerLine' value=$LISTING_PRODUCT_COLUMN} {/if} {assign var='nbItemsPerLineTablet' value=$LISTING_PRODUCT_TABLET} {assign var='nbItemsPerLineMobile' value=$LISTING_PRODUCT_MOBILE} {*define numbers of product per line in other page for tablet*} {assign var='nbLi' value=$products|@count} {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines} {math equation="nbLi/nbItemsPerLineTablet" nbLi=$nbLi nbItemsPerLineTablet=$nbItemsPerLineTablet assign=nbLinesTablet} <!-- Products list --> <div {if isset($id) && $id} id="{$id}"{/if} class="product_list {$LISTING_GRIG_MODE} row {if isset($class) && $class} {$class}{/if}"> {foreach from=$products item=product name=products} {math equation="(total%perLine)" total=$smarty.foreach.products.total perLine=$nbItemsPerLine assign=totModulo} {math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineTablet assign=totModuloTablet} {math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineMobile assign=totModuloMobile} {if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if} {if $totModuloTablet == 0}{assign var='totModuloTablet' value=$nbItemsPerLineTablet}{/if} {if $totModuloMobile == 0}{assign var='totModuloMobile' value=$nbItemsPerLineMobile}{/if} <div class="ajax_block_product col-sp-12 {$colValue}{if $smarty.foreach.products.iteration%$nbItemsPerLine == 0} last-in-line {elseif $smarty.foreach.products.iteration%$nbItemsPerLine == 1} first-in-line{/if} {if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModulo)} last-line{/if} {if $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 0} last-item-of-tablet-line {elseif $smarty.foreach.products.iteration%$nbItemsPerLineTablet == 1} first-item-of-tablet-line{/if} {if $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 0} last-item-of-mobile-line {elseif $smarty.foreach.products.iteration%$nbItemsPerLineMobile == 1} first-item-of-mobile-line{/if} {if $smarty.foreach.products.iteration > ($smarty.foreach.products.total - $totModuloMobile)} last-mobile-line{/if}"> {include file="$tpl_dir./sub/product-item/product-item.tpl" callFromModule=isset($class)} </div> {/foreach} </div> {addJsDefL name=min_item}{l s='Please select at least one product' js=1}{/addJsDefL} {addJsDefL name=max_item}{l s='You cannot add more than %d product(s) to the product comparison' sprintf=$comparator_max_item js=1}{/addJsDefL} {addJsDef comparator_max_item=$comparator_max_item} {addJsDef comparedProductsIds=$compared_products} {/if} And here's the Product-item.tpl {* ************************ Creat by leo themes ************************* *} {if !isset($callFromModule) || $callFromModule==0} {include file="$tpl_dir./layout/setting.tpl"} {include file="$tpl_dir./errors.tpl"} {/if} <div class="product-container text-center product-block" itemscope itemtype="https://schema.org/Product"> <div class="left-block"> <div class="product-image-container image ImageWrapper"> <div class="leo-more-info" data-idproduct="{$product.id_product}"></div> <a class="product_img_link" href="{$product.link|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}" itemprop="url"> <img class="replace-2x img-responsive" src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html':'UTF-8'}" alt="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}" title="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} itemprop="image" /> <span class="product-additional" data-idproduct="{$product.id_product}"></span> </a> <div class="Buttons StyleC"> {if isset($quick_view) && $quick_view} <a class="quick-view WhiteRounded" href="{$product.link|escape:'html':'UTF-8'}" data-link="{$product.link|escape:'html':'UTF-8'}" title="{l s='Quick view'}" > <i class="fa fa-arrows"></i> </a> {/if} {if $ENABLE_WISHLIST} {hook h='displayProductListFunctionalButtons' product=$product} {/if} {if isset($comparator_max_item) && $comparator_max_item} <a class="add_to_compare compare WhiteRounded" href="{$product.link|escape:'html':'UTF-8'}" data-id-product="{$product.id_product}" title="{l s='Add to compare'}" > <i class="fa fa-align-center"></i> </a> {/if} </div> {if isset($product.new) && $product.new == 1} <span class="label-new label-info label">{l s='New'}</span> {/if} {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} <span class="label-sale label-warning label">{l s='Sale!'}</span> {/if} <div class="flags-avilab"> <div class="product-flags pull-left"> {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} {if isset($product.online_only) && $product.online_only} <span class="online_only label label-warning">{l s='Online only'}</span> {/if} {/if} {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} {elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} <span class="discount label label-danger">{l s='Reduced price!'}</span> {/if} </div> {if (!$PS_CATALOG_MODE && $PS_STOCK_MANAGEMENT && ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)} <div itemprop="offers" itemscope itemtype="http://schema.org/Offer" class="availability pull-right"> {if ($product.allow_oosp || $product.quantity > 0)} <span class="{if $product.quantity <= 0 && !$product.allow_oosp}out-of-stock{else}available-now{/if}"> <link itemprop="availability" href="http://schema.org/InStock" /> {if $product.quantity <= 0}{if $product.allow_oosp}{if isset($product.available_later) && $product.available_later}{$product.available_later} {else}<span class="label label-success">{l s='In Stock'}</span>{/if} {else}<span class="label label-danger">{l s='Out of stock'}</span>{/if} {else}{if isset($product.available_now) && $product.available_now}<span class="label label-success">{$product.available_now}</span> {else}<span class="label label-success">{l s='In Stock'}</span>{/if}{/if} </span> {elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)} <span class="available-dif"> <link itemprop="availability" href="http://schema.org/LimitedAvailability" /> <span class="label label-warning">{l s='Available with different options'}</span> </span> {else} <span class="out-of-stock"> <link itemprop="availability" href="http://schema.org/OutOfStock" /><span class="label label-danger">{l s='Out of stock'}</span> </span> {/if} </div> {/if} {/if} </div> </div> {if isset($product.is_virtual) && !$product.is_virtual}{hook h="displayProductDeliveryTime" product=$product}{/if} {hook h="displayProductPriceBlock" product=$product type="weight"} </div> <div class="right-block"> <div class="product-meta"> <h5 itemprop="name" class="name"> {if isset($product.pack_quantity) && $product.pack_quantity}{$product.pack_quantity|intval|cat:' x '}{/if} <a class="product-name" href="{$product.link|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}" itemprop="url" > {$product.name|truncate:90:'...'|escape:'html':'UTF-8'} </a> </h5> <div class="product-desc" itemprop="description"> {$product.description_short|strip_tags:'UTF-8'|truncate:500:'...'} </div> {if isset($product.color_list) && $ENABLE_COLOR} <div class="color-list-container">{$product.color_list} </div> {/if} <div class="price-review"> {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 pull-left"> <div class="contentprice"> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)} {hook h="displayProductPriceBlock" product=$product type='before_price'} <span class="price product-price"> {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} </span> {if isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0} {hook h="displayProductPriceBlock" product=$product type="old_price"} <span class="old-price product-price"> {displayWtPrice p=$product.price_without_reduction} </span> {hook h="displayProductPriceBlock" id_product=$product.id_product type="old_price"} {if $product.specific_prices.reduction_type == 'percentage'} <span class="price-percent-reduction">-{$product.specific_prices.reduction * 100}%</span> {/if} {/if} {hook h="displayProductPriceBlock" product=$product type="price"} {hook h="displayProductPriceBlock" product=$product type="unit_price"} {hook h="displayProductPriceBlock" product=$product type='after_price'} {/if} </div> </div> {if $page_name != "product"} {hook h='displayProductListReviews' product=$product} {/if} </div> </div> {if $page_name !='product'} <div class="functional-buttons clearfix"> <div class="cart"> {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.customizable != 2 && !$PS_CATALOG_MODE} {if (!isset($product.customization_required) || !$product.customization_required) && ($product.allow_oosp || $product.quantity > 0)} {capture}add=1&amp;id_product={$product.id_product|intval}{if isset($product.id_product_attribute) && $product.id_product_attribute}&amp;ipa={$product.id_product_attribute|intval}{/if}{if isset($static_token)}&amp;token={$static_token}{/if}{/capture} <a class="button ajax_add_to_cart_button btn" href="{$link->getPageLink('cart', true, NULL, $smarty.capture.default, false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart'}" data-id-product-attribute="{$product.id_product_attribute|intval}" data-id-product="{$product.id_product|intval}" data-minimal_quantity="{if isset($product.product_attribute_minimal_quantity) && $product.product_attribute_minimal_quantity >= 1}{$product.product_attribute_minimal_quantity|intval}{else}{$product.minimal_quantity|intval}{/if}"> <i class="fa fa-shopping-cart"></i> <span>{l s='Add to cart'}</span> </a> {else} <div class="btn btn-default disabled" title="{l s='Out of stock'}"> <i class="fa fa-shopping-cart"></i> <span>{l s='Out of stock'}</span> </div> {/if} {/if} </div> </div> {/if} </div> </div> <!-- .product-container> --> I would appreciate any Help. Even a module that can help me put on availibity manually would be welcomed.
  16. Hi, I have encountered a problem that in my eshop (running on Presta 1.6) the quantity of product that is in stock is not updated after adding the product to the cart. It updates only after comleting the order. I assume that is the standard behaviour but do you have idea how (and where) to change the code so that the quantity is update each time the product is added to or removed from the cart? i.e. if I have 10 pcs. in stock and add 2 to cart, eshop would show 8 pcs in stock on product page or not available if I add to cart all 10 - it is quite confusing for customers as it is now because it still shows the initial quantity which however cannot be ordered... Thank you!
  17. Hi, is it possible to change the availability text "in stock" "out of stock" for all articles at once? Regards, Palido
  18. Good Afternoon Guys I am currenly managing a store with PS ver 1.6.1 and transformer theme from themeforest. In the meantime we are experiencing an issue with checkout where it shows the same status: (in stock) disregarding available quantity In the checkout page It is supposed to show in the availability field "out of stock" when quantity is zero but id does not and We are not sure if this issue has something to do with the template or if it is a prestashop issue, Advanced stock management is activated for all products in store and we chose to specify available quantities manually We appreciate any help you can give us
  19. I have added the Prestashop Mobile Tempate to my shop and it works pretty well. Unless for an annoying issue: under each product it reads "Availability: This product is no longer in stock " But in the previous product list it displays the price and "in stock" Of course the products are available and it creates confusion with customers! Any suggestions are warmly welcome!
  20. I am trying to setup my store so that customers can order products that are not in stock or for which the stock is not sufficient. While I can get it to work with items that are not in stock (quantity <= 0), the shopping cart is always showing "in stock" if you order an item that has stock level > 0, even if you order much more than the current stock level. How can I get the shopping cart to show a message when more then the amount of products in stock are ordered? Or can I at least add the stock amount to the availability column in this case? It looks quite confusing that the shopping cart would say that a product is in stock while it actually is not... Secondly, I would like to be able to change the color of the availability text. Right now it is always green, even if the product is not in stock. Could this be configured to be orange or yellow?
  21. Hi everyone I'm trying to make "this product is no longer in stock" alert show also when I allow customers to buy out of stock products but everything I try in product.tpl seams not working. Could someone help me with changing this code to display that alert with add to basket button at the same time? Thanks in advance for helping ! Best regards.
  22. Hi, I want to make some little change in ps1.6.0.9 please help me anyone soon. When i add any product then availability for product should be disabled as default. I hope you understands, please find the image. Reply soon. Thanks! Mohit
  23. Hi I would like to change the default massage of Prestashop as below. How can I edit it? Thanks for any comment Availability: THIS PRODUCT IS NO LONGER IN STOCK WITH THOSE ATTRIBUTES BUT IS AVAILABLE WITH OTHERS.
  24. Hi everyone, I asked this already in another forum but since is more related to development, i decided to move it here as well. So. I disabled stock management totaly, because I am not able to upload quantitues for different attributes without a module, anyway, thing is that I do not use that anymore. No warehouse, no stock, no quantities whatsoever - for now. But still, I would like to be able to show on screen if a product is available or not, and I thought choosing another value, like on_sale - which i do not use otherwise - would do the trick. I need your help in this. We are at product.tpl. The code below is meant to decide if avilability is shown on product page or not: <p id="availability_statut"{if ($product->quantity <= 0 && !$product->available_later && $allow_oosp) OR ($product->quantity > 0 && !$product->available_now) OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}> <span id="availability_label">{l s='Availability:'}</span> <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> </p> Since there is no more quantity, i would like to use product ->on_sale to show availability instead of quantity, since on_sale has only two values, 0 and 1. Then i`d be able to upload these values in bulk by csv. Question is: how to modify the above code so it will display availability based on on_sale value, REGARDLESS of the attributes? (I want this to take its value only from ps_product, not ps_product_attribute or whatever table is using) All I want is to add a two value swich wich will display on screen one of the two values: in stock (if on_sale=1) or available for order (if on_sale =0) Please someone help me do this before christmas. Thank you PS: any other solution is wellcome for this issue...
  25. Hey everybody! Here comes my new tutorial: it's about displaying product availability and a notice to remove them from the cart if they're out of stock and you still have them in the cart. Basically, like amazon, but in the cart summary page only. Of course, it can be extended to work with the ajax cart as well! Here: http://nemops.com/smart-shopping-cart-for-prestashop/ Cheers!
×
×
  • Create New...