Author Topic: Admin - Product Status - Availability image issue (php code inside JS)  (Read 3089 times)


  • Beginner
  • *
  • Posts: 8
  • A beginner
Joomla 3.7
VM 3.2.2

Location of bug: Admin Panel - Product - Product Status: Availabiliy field.

Choose any image in "Select image" dropdown and Image will not show.

Problem location:
\administrator\components\com_virtuemart\assets\js\products.js Line 97:
Code: [Select]
jQuery('#imagelib').attr({ src:'<?php echo JURI::root(true).$this->imagePath ?>'+$newimage, alt:$newimage });

As you can see - there is php code in JS script instead of path to image ;)


  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10485
  • VM4.0.7 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Thank you, I found 2 errors more of the same type. I will reupp the vm3.2.3, for that we have this version.
Should I fix your bug, please support the VirtueMart project and become a member
Extensions approved by the core team: