Jump to content

Edit History

Mark C

Mark C

On 7/20/2022 at 2:20 AM, Knowband Plugins said:

You Need to Assign the stock data as per the product on the controllers/front/ProductController.php , and use the same on "/themes/{Your-theme}/templates/catalog/_partials/product-add-to-cart.tpl".

 

On the Above tpl file,  Add the HTMLcontent , even you can add js changes in the "themes/{Your-theme}/assets/js/theme.js".

from this idea, I think I can use the "unity" column. I will just edit the tpl file in "/themes/{Your-theme}/templates/catalog/_partials/product-add-to-cart.tpl". Is this code below correct?

{l
          s='The minimum purchase order quantity for the product is %quantity% %unity%.'
          d='Shop.Theme.Checkout'
          sprintf=['%quantity%' => $product.minimal_quantity, '%unity%' => $product.unity]
          }

Mark C

Mark C

On 7/20/2022 at 2:20 AM, Knowband Plugins said:

You Need to Assign the stock data as per the product on the controllers/front/ProductController.php , and use the same on "/themes/{Your-theme}/templates/catalog/_partials/product-add-to-cart.tpl".

 

On the Above tpl file,  Add the HTMLcontent , even you can add js changes in the "themes/{Your-theme}/assets/js/theme.js".

from this idea, I think I can use the "unity" column. I will just edit the tpl file in "/themes/{Your-theme}/templates/catalog/_partials/product-add-to-cart.tpl". Is this code correct below:

{l
          s='The minimum purchase order quantity for the product is %quantity% %unity%.'
          d='Shop.Theme.Checkout'
          sprintf=['%quantity%' => $product.minimal_quantity, '%unity%' => $product.unity]
          }

×
×
  • Create New...