Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Need Stock Quantity Availability Field For Add Products In Orders Rate Topic   - - - - -

 
  • Skay
  • Senior Member
  • Members
  • Join Date: 08-Sep 11
  • 432 posts

Posted 10 December 2020 - 04:16 PM #21

Right?
But I don't see any changes


            {if $hide_amount}
                <label for="checkbox_id_{$product.product_id}">{$product.product nofilter}</label>
            {else}
                <div>{$product.product nofilter} <strong>({$product.amount} {__('in_stock')})</strong></div>
            {/if}



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11998 posts

Posted 10 December 2020 - 10:10 PM #22

I believe the suggestion is that you modify the php code that assigns a value to the 'text' property versus modifying the template code.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • Skay
  • Senior Member
  • Members
  • Join Date: 08-Sep 11
  • 432 posts

Posted 11 December 2020 - 11:03 AM #23

I believe the suggestion is that you modify the php code that assigns a value to the 'text' property versus modifying the template code.

In this file,
app/controllers/backend/products.php
I didn't find the phrase 'text' => $products_list ['product'] to replace



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11998 posts

Posted 11 December 2020 - 08:44 PM #24

Suggest you just search for 'text'.

$objects = array_values(array_map(function ($product) use ($formatter, $image_width, $image_height) {
        return [
            'id'              => $product['product_id'],
            'text'            => $product['product'],
            'price'           => $product['price'],
            'code'            => $product['product_code'],
            'data'            => [
                'product_id'      => $product['product_id'],
                'product'         => $product['product'],
                'price'           => $product['price'],
                'price_formatted' => $formatter->asPrice($product['price']),
                'product_code'    => $product['product_code'],
                'image_width'     => $image_width,
                'image_height'    => $image_height,
                'image'           => empty($product['main_pair']) ? array() : fn_image_to_display($product['main_pair'], $image_width, $image_height),
                'url'             => fn_url('products.update?product_id=' . $product['product_id'])
            ]
        ];
    }, $products));

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.