Welcome, Guest
Username: Password: Remember me

TOPIC: Center stock icon & show stock quantity in product detail

Center stock icon & show stock quantity in product detail 3 years 7 months ago #3790

  • danielblasco
  • danielblasco's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 64
  • Thank you received: 1
  • Karma: 0
Hello,
I need to center the stock icon in categories and also display the number of products in the product detail page. (see images)


Thanks!

Example:
www.disfracescarnavales.com/disfraces-de-animales
Attachments:
  • Attachment This image is hidden for guests. Please log in or register to see it.
  • Attachment This image is hidden for guests. Please log in or register to see it.
The administrator has disabled public write access.

Re: Center stock icon & show stock quantity in product detail 3 years 7 months ago #3815

  • danielblasco
  • danielblasco's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 64
  • Thank you received: 1
  • Karma: 0
Any solution to my question?
Thanks
The administrator has disabled public write access.

Re: Center stock icon & show stock quantity in product detail 3 years 7 months ago #3818

  • danielblasco
  • danielblasco's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 64
  • Thank you received: 1
  • Karma: 0
I solved the first part of my question. Missing me know if you can display the number of products (image2.jp)

Regards.
The administrator has disabled public write access.

Re: Center stock icon & show stock quantity in product detail 3 years 7 months ago #3899

  • trungdt
  • trungdt's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2287
  • Thank you received: 997
  • Karma: 121
Hello,

You can insert this code to file templates/.../html/com_virtuemart/productdetails/default.php
<span class="product-in-stock">
     <?php echo $this->product->product_in_stock . ' item(s) in stock'; ?>
    </span>
The administrator has disabled public write access.
Time to create page: 0.159 seconds