Jump to content

Edit History

hogo20

hogo20

On 1/24/2025 at 6:53 PM, hogo20 said:

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

hello, this method make new problem. 

When pre-order is active, The minimum order number is not automatically entered in the relevant box. However, this method can be used to solve it in the next version, hopefully. 

 

hogo20

hogo20

On 1/24/2025 at 6:53 PM, hogo20 said:

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

hello, this method make new problem. 

When pre-order is active, it is not possible to add goods to the cart. 

I have to undo the edits and look for a better way. 

 

×
×
  • Create New...