Jump to content

Edit History

ps8modules

ps8modules

Hi @Thomas Will

If you want to display the available count for a selected combination or attribute, it's not that simple. What you see in the detail is not the same template. It can be done via js or a custom hook.

Prestashop 1.6

find file: ./themes/default-bootstrap/js/product.js

find function: updateDisplay()

find query: 

$('#quantityAvailable').text(quantityAvailable);

add your element:

$('#quantityAvailableBeforeQuantitySelected').text(quantityAvailable);

image.png.cc10c7574cced988497122a0aed214e8.png

 

add to TPL: ./themes/default-bootstrap/product.tpl

image.png.593be9c7be633bc24eb373797345ce7b.png

 

ps8modules

ps8modules

Hi.If you want to display the available count for a selected combination or attribute, it's not that simple. What you see in the detail is not the same template. It can be done via js or a custom hook.

ps8modules

ps8modules

If you want to display the available count for a selected combination or attribute, it's not that simple. What you see in the detail is not the same template. It can be done via js or a custom hook.

×
×
  • Create New...