THEMLER PRESTASHOP 1.6 - product list result page --> add qty field

WALLOON
67 Posts
WALLOON posted this 06 March 2019

It is possible to have the product qty field on the result page ?
Like this module : https://addons.prestashop.com/demo/FO21493.html
Thanks.
Regards.
Remy

It is possible to have the product qty field on the result page ? Like this module : https://addons.prestashop.com/demo/FO21493.html Thanks. Regards. Remy
Vote to pay developers attention to this features or issue.
5 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 13 March 2019

Hello Remy,

I apologize for the delay.

Do you mean search result page?
If so, it is not possible to configure search results page in Themler directly.

Gina
Themler Support

Hello Remy, I apologize for the delay. Do you mean search result page? If so, it is not possible to configure search results page in Themler directly. Gina Themler Support
WALLOON
67 Posts
WALLOON posted this 15 March 2019

We have added the module (https://addons.prestashop.com/demo/FO21493.html) but Themler doesnt recognize it.
We can customize the result page (see picture) but the module is not anchored in the Themler products list...
Do you see a way to fix this ?
Regards :)

We have added the module (https://addons.prestashop.com/demo/FO21493.html) but Themler doesnt recognize it. We can customize the result page (see picture) but the module is not anchored in the Themler products list... Do you see a way to fix this ? Regards :)
WALLOON
67 Posts
WALLOON posted this 25 March 2019

je peux ajouter ce code :
<form action method class>

    <input type="hidden" name="token" value="{$static_token|escape:'htmlall':'UTF-8'}">
    <input type="hidden" value="{$product.id_product|intval}" name="id_product">
    <input type="hidden" value="{$product.quantity|intval}" name="product_quantity">
    {if $product.available_for_order}
        <input type="number" min="{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}" class="input-group form-control number-quantity" name="qty" value="{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}" data_allow_order="{if $product.allow_oosp || !$is_stock_management}1{/if}">
    {if ($product.allow_oosp || $product.quantity > 0)}
            <button data-button-action="add-to-cart" class="btn btn-primary button-quantity">{l s='Add to cart' mod='productlistquantity'}</button>
    {else}
            <button class="btn btn-primary button-quantity" disabled >{l s='Add to cart' mod='productlistquantity'}</button>
    {/if}
    {/if}
</form>

il s'affiche très bien
Mais peut on l'ajuster pour qu'il soit fonctionnel?

je peux ajouter ce code : &lt;form action method class&gt; <input type="hidden" name="token" value="{$static_token|escape:'htmlall':'UTF-8'}"> <input type="hidden" value="{$product.id_product|intval}" name="id_product"> <input type="hidden" value="{$product.quantity|intval}" name="product_quantity"> {if $product.available_for_order} <input type="number" min="{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}" class="input-group form-control number-quantity" name="qty" value="{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}" data_allow_order="{if $product.allow_oosp || !$is_stock_management}1{/if}"> {if ($product.allow_oosp || $product.quantity > 0)} <button data-button-action="add-to-cart" class="btn btn-primary button-quantity">{l s='Add to cart' mod='productlistquantity'}</button> {else} <button class="btn btn-primary button-quantity" disabled >{l s='Add to cart' mod='productlistquantity'}</button> {/if} {/if} </form> il s'affiche très bien Mais peut on l'ajuster pour qu'il soit fonctionnel?
WALLOON
67 Posts
WALLOON posted this 25 March 2019

We can add this code - the appaerance is ok but it is not bind to the database - how to do that ?
Remy

We can add this code - the appaerance is ok but it is not bind to the database - how to do that ? Remy
WALLOON
67 Posts
WALLOON posted this 27 March 2019

J'ai trouvé !
tout est ici :
https://www.arnaud-merigeau.fr/ajouter-le-champ-quantite-dans-la-liste-produit-de-prestashop/

J'ai trouvé ! tout est ici : https://www.arnaud-merigeau.fr/ajouter-le-champ-quantite-dans-la-liste-produit-de-prestashop/
You must log in or register to leave comments