I had to rewrite it, to get that image out of the Header-Section, and into the User Page.
I now used a fast-draw type combination between our both VqMods, to make it work, so far.
But still, the IMAGE Height
Value needed to be declared, you declared twice the width
and I changed the Variables product_width+height
because I didn't like the large Product-Image Size of 250x200px. reflected on the User Main Page.
But I changed it all afterwards, because I prefer to declare/define a simple fixed Image Size on the User Page
for this specific purpose into the VqMod, since it is not to be defined seperately in the Admin Theme
Image-Size Section, as it comes. So, I declared 250 x 100 px
. in the VqMod on Line 118
of the Code, to make it work!
Code: Select all
$data['image'] = $this->model_tool_image->resize($customer_group['image'], 250, 100);
whereby the responsive thing still shrinks it then from: 250px × 100px to (Skaliert zu 240px × 96px) !!
I guess, I still have to work on this.
to be corrected in your VqMod, I assume, and also depending on theme-related Image settings:
Code: Select all
$data['image'] = $this->model_tool_image->resize($customer_group['image'], $this->config->get($this->config->get('config_theme') . '_image_category_width'), $this->config->get($this->config->get('config_theme') . '_image_category_height'))
PS. I created 2 different VqMod Extensions here, to make either a TEXT-TITLE or a User-Group
specific IMAGE visible in the Account Main Section.
Good Luck ! If it does not work, then, it's not a Default Theme OC v.2.2 Problem,
and I have no other v.2 - Version, to check on anything!
1. Account Welcome plus Customer Group Logo for OpenCart v.2.x
2. Account Welcome plus Customer Group ID - Title for OpenCart v.2.x
(VqMod OC 22.214.171.124 only !)
http://www.opencart.com/index.php?route ... n_id=27046