• Closed by: Marek
  • Closed on: 01.05.19, 16:00
  • Reason: Closed
  • Comment: Glad to help!

Ticket #14194 - Code to show quantities and brand image in product page

Hi, iwant to show the exact stock quantity in product page. I use the layout builder. I dont know if i have to edit product.tpl or other file and which is the code to add stock quantity.
I also want to insert the manufacturer image on title. Can i?
Thanks in advance

Comments

Alex 05 Apr 2019, 14:14

Hi.
1) Is it what you need?
https://c2n.me/40RI7RA

2)

I also want to insert the manufacturer image on title. Can i?

Yes. I can modificate the file for you. It will cost 10 euro.

Alejandro Castro 05 Apr 2019, 14:54

1) No, i have it activated, but i cant see how many units are available in product page

2) I can write the code, but i dont know if i can do it in the layout builder or in the product.tpl file

Marek 05 Apr 2019, 16:13

Sorry, it was a message to another customer

Alex 05 Apr 2019, 17:58

Ok :)
1) Marek soon will check the issue
2) Manufacturer look here
modules\pspagebuilder\views\templates\front\widgets\widget_productpagetabs.tpl
or here
modules\pspagebuilder\views\templates\front\widgets\widget_productpagetitle.tpl

Marek 07 Apr 2019, 17:31

Hi, Alejandro.
I have no idea why, but that option doesn’t work in Classic the as well. So there is another solution.
Open the file

/themes/alysum/templates/catalog/product.tpl

Add following line to any place you want:

{$product.quantity}