Is it possible to remove the responsive code for the Admin panel so I can fix the size of the images in admin product & option pages to make it usable? If so - how?
I have a problem with the displayed images in the Admin Products & Admin Options pages and it seems I cant get these fixed.
I have a problem with the displayed images in the Admin Products & Admin Options pages and it seems I cant get these fixed.
Last edited by Nordikota on Mon Oct 24, 2016 9:20 pm, edited 1 time in total.
"Everything is possible, everything is not easy"Nordikota wrote:Is it possible to remove the responsive code for the Admin panel so I can fix the size of the images in admin product & option pages to make it usable? If so - how?
I have a problem with the displayed images in the Admin Products & Admin Options pages and it seems I cant get these fixed.
Are you use Google Chrome browser?
This fix style in option form page and product discount form
https://www.opencart.com/index.php?rout ... n_id=24006
This change CSS style for Google Chrome. After installed you can use admin > options form and admin > products forms in Chrome.Nordikota wrote:Yes I'm using Chrome. What does this extension do? I can't see any changes once installed
But what is you Chrome version? My test Oc 2.3.0.2 is work fine in Chrome.
This fix Css style, widen the columns for Chrome to OC version 2.0. I not test this to current versions. But when I said, my Chrome work, althougth Chrome version is 53.0.x. What your is problem?Nordikota wrote:It says Version 54.0.2840.71 m. Installed your code OK. refreshed the Modifications, emptied the Chrome Cache, deleted the VQmod cache. Can't see any difference, but I'm not sure what this code is supposed to do?
In the Admin/Products page, all of the images take up 1/2 the screen width. I can't see the text in the boxes to the right. If I resize the main browser window, the images reduce in size. This makes it very difficult to navigate. With >1000 products and 20 listed at a time, each image is a full screen high.
In Admin/options page. if I edit an Option that has images, the problem is the same as above.
If I resize the main browser window, the images do not reduce in size. This makes adding new options impossible
I've posted about this before, had no response. I asked the guy who performed our upgrade. No response. I've asked Opencart Support. No response to my last message to them.
That is why I asked if there was a way I can fix the image size so that they do not change if you resize the window. I might then be able to fix them at a small size and make OC2302 useable.
In Admin/options page. if I edit an Option that has images, the problem is the same as above.
If I resize the main browser window, the images do not reduce in size. This makes adding new options impossible
I've posted about this before, had no response. I asked the guy who performed our upgrade. No response. I've asked Opencart Support. No response to my last message to them.
That is why I asked if there was a way I can fix the image size so that they do not change if you resize the window. I might then be able to fix them at a small size and make OC2302 useable.
Your image cache is not work?Nordikota wrote:In the Admin/Products page, all of the images take up 1/2 the screen width. I can't see the text in the boxes to the right. If I resize the main browser window, the images reduce in size. This makes it very difficult to navigate. With >1000 products and 20 listed at a time, each image is a full screen high.
In Admin/options page. if I edit an Option that has images, the problem is the same as above.
If I resize the main browser window, the images do not reduce in size. This makes adding new options impossible
I've posted about this before, had no response. I asked the guy who performed our upgrade. No response. I've asked Opencart Support. No response to my last message to them.
That is why I asked if there was a way I can fix the image size so that they do not change if you resize the window. I might then be able to fix them at a small size and make OC2302 useable.
There eg. in product page image size is 100px x 100px from folder image/cache/catalog/example_100x100.jpg. What is your image path and filename.....? Are you look image sizes from admin > extensions > themes?
We are using OC2302 and Journal2 theme. We upgraded from OC156 to OC2302 & this was done by an OC Guru (not me)
Before asking for help I have tried for 3 weeks to fix it. Including:
Cleaning the image cache, theme cache and browser cache. No difference
Removed all MODs. No difference
Removed OC2302 completely and installed a fresh copy & linked to existing dbase. No difference
Added MODs we need. No difference.
Installed a clean version in a separate directory and used a blank dbase. This was fine!
All images are the same physical size - 800x1000 pixels, 300 dpi. I have a variety of PNG & JPG file formats.
So it must be linked to the Dbase somehow? I've attached a screen shot of the admin/products page so you can see. In admin/options - it is even worse. The images are so large you cant read any of the associated text boxes.
Someone? Anyone?
Before asking for help I have tried for 3 weeks to fix it. Including:
Cleaning the image cache, theme cache and browser cache. No difference
Removed all MODs. No difference
Removed OC2302 completely and installed a fresh copy & linked to existing dbase. No difference
Added MODs we need. No difference.
Installed a clean version in a separate directory and used a blank dbase. This was fine!
All images are the same physical size - 800x1000 pixels, 300 dpi. I have a variety of PNG & JPG file formats.
So it must be linked to the Dbase somehow? I've attached a screen shot of the admin/products page so you can see. In admin/options - it is even worse. The images are so large you cant read any of the associated text boxes.
Someone? Anyone?
That is your product list in admin.Nordikota wrote:
This is replace to admin/controller/catalog/product.php lines 358-362:
Code: Select all
if (is_file(DIR_IMAGE . $result['image'])) {
$image = $this->model_tool_image->resize($result['image'], 40, 40);
} else {
$image = $this->model_tool_image->resize('no_image.png', 40, 40);
}
Thanks - but that code is already there
Code: Select all
foreach ($results as $result) {
if (is_file(DIR_IMAGE . $result['image'])) {
$image = $this->model_tool_image->resize($result['image'], 40, 40);
} else {
$image = $this->model_tool_image->resize('no_image.png', 40, 40);
}
Strange.Nordikota wrote:Thanks - but that code is already there
Code: Select all
foreach ($results as $result) { if (is_file(DIR_IMAGE . $result['image'])) { $image = $this->model_tool_image->resize($result['image'], 40, 40); } else { $image = $this->model_tool_image->resize('no_image.png', 40, 40); }
You can do test product.Nordikota wrote:That doesn't sound very hopeful
Product name: test.
Product image name: image/catalog/test.jpg
Then open this test product in admin product form.
You check, is found image image/cache/catalog/test-40x40.jpg?
Pekka
Can you go to admin > product form.Nordikota wrote:OK done. And I've got test-100x100 & test-40x40
Press mouse right button. Press 'View source code' etc. You press 'find' and text 'test-40x40'.
So is there in source code text 'test-40x40.jpg' of admin product form?
You can also upload this test-40x40.jpg your computer and check it size to Photo shop etc.
I think we might be getting somewhere.
I downloaded the two files from the cache area - the ones marked test-100x100 and test-40x40. And they are both physically 800x1000 - which is the original file size.
Not sure where I can see the source code that shows the 40x40? Do you mean edit the product in the admin/product list?
I downloaded the two files from the cache area - the ones marked test-100x100 and test-40x40. And they are both physically 800x1000 - which is the original file size.
Not sure where I can see the source code that shows the 40x40? Do you mean edit the product in the admin/product list?
You might give it try with Opencart's default theme. You are using one of the most cumbersome Opencart themes. The Journal theme has a reputation for not being compliant with Opencart standards. There is no need for a proper web theme to modify the Opencart admin backend.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Who is online
Users browsing this forum: No registered users and 147 guests