Jump to content

Edit History

hogo20

hogo20

hello, friends

In Prestashop 8.2.0, open file:   /controllers/front/ProductController.php

and remove line 1207 (with this code):

$product['cart_quantity'] = $this->context->cart->getProductQuantity($product['id_product'], $product['id_product_attribute'])['quantity'];

then add this code to: /themes/[your theme]/templates/catalog/_partials/product-variants.tpl

    {block name='product_specific_reference'}
        <p class="product-specific-reference"  style="font-weight: bolder;">
            {foreach from=$product.specific_references item=reference key=key}
            <span class="name">{$key}: </span><span class="value" style="color:#005fff;">{$reference}</span><br/>
            {/foreach}
        </p>
    {/block}

Oper.png

3333.png

hogo20

hogo20

hello, friends

In Prestashop 8.2.0, open file:   /controllers/front/ProductController.php

and remove line 1207 (with this code):
$product['cart_quantity'] = $this->context->cart->getProductQuantity($product['id_product'], $product['id_product_attribute'])['quantity'];

 

then add this code to: /themes/[your theme]/templates/catalog/_partials/product-variants.tpl

    {block name='product_specific_reference'}
        <p class="product-specific-reference"  style="font-weight: bolder;">
            {foreach from=$product.specific_references item=reference key=key}
            <span class="name">{$key}: </span><span class="value" style="color:#005fff;">{$reference}</span><br/>
            {/foreach}
        </p>
    {/block}

Oper.png

3333.png

×
×
  • Create New...