If I wanted this to open in a new page/tab when I run it, instead of using the already open page, is there anything I could edit to do so?
Printable View
If I wanted this to open in a new page/tab when I run it, instead of using the already open page, is there anything I could edit to do so?
Yeahbuh. Ctrl click will do the trick.
V156a - got this wonderful tool to edit the product in zc156a by making the following changes to replace the second occurrence of the constant FILENAME_CATEGORIES with the constant FILENAME_PRODUCT in admin\image_checker.php
from
toCode:echo '<a href="' . zen_href_link(FILENAME_CATEGORIES,
'cPath=' . $parent_cPath . '&cID=' . (int)$value['id']) . '&action=edit_category" title="' . TEXT_EDIT_CATEGORY . '" target="_blank">' . zen_image(DIR_WS_IMAGES . 'icon_edit.gif',
ICON_EDIT) . '</a>';
} else {
echo '<a href="' . zen_href_link(FILENAME_PRODUCT, /* BMH change */
'cPath=' . zen_get_product_path((int)$value['id']) . '&product_type=1&pID=' . (int)$value['id']) . '&action=new_product" title="' . TEXT_EDIT_PRODUCT . '" target="_blank">' . zen_image(DIR_WS_IMAGES . 'icon_edit.gif',
ICON_EDIT) . '</a>';
environment Dev: Zen Cart 156a; Apache 2.4.33; PHP 7.3.1; MySQL 5.7.21; Windows 10Code:echo '<a href="' . zen_href_link(FILENAME_PRODUCT,
'cPath=' . $parent_cPath . '&cID=' . (int)$value['id']) . '&action=edit_category" title="' . TEXT_EDIT_CATEGORY . '" target="_blank">' . zen_image(DIR_WS_IMAGES . 'icon_edit.gif',
ICON_EDIT) . '</a>';
} else {
echo '<a href="' . zen_href_link(FILENAME_PRODUCT,
'cPath=' . zen_get_product_path((int)$value['id']) . '&product_type=1&pID=' . (int)$value['id']) . '&action=new_product" title="' . TEXT_EDIT_PRODUCT . '" target="_blank">' . zen_image(DIR_WS_IMAGES . 'icon_edit.gif',
ICON_EDIT) . '</a>';
environment Test: Zen Cart 156a; Apache 2.4.29; PHP 7.2.4; MySQL 5.7.24; Linux 4.15.0
packages / add-ons:
ckeditor ; clone template 1.2.0; payment module fee;
Direct bank Deposit V1.5.revised; zencart155 securepayxml (modified); ozpost v4.2.7;
ceon_back_in_stock_notifications.9 (modified); export_shipping_information_V1.3.5;
edit_orders-4.3.5 (modified); master password 4; admin log in as customer;
image checker 2.0;
I tried this with v1.5.6a and when it was finished running it loaded a /image_checker.php page and it said Page Not Found
This page no longer exists.
Does that mean that all images are there or that the module is not working correctly?
I tried this (downloaded from Github) with a vanilla 1.56a and had no issues, but that is hardly a real test.
This may be related to the quantity of images you have.
Any debugs associated with your error?
Hello Steve,
I revisted this and I don't know if anything has changed with the download but it worked fine and very quickly for the number of images i have. I had fixed a lot of problem images and don't know if this was a problem but it works great now. One thing that would be great is if it started with a page that allowed you to choose Categories or Products.... and the filters....
Thank you!
Shrimp-Gumbo
Another great addition might be to have a search for all "no_image_available" products.... and allow the problem images to be moved to the "no_image_available" image since they are not working. Thank you!
I ran on my production and it worked great! I do see now you have the one option on there too. Thank you!
I ended up finding an issue....
The "Edit" button is not working. When it is pushed it goes to a screen with just the upper menu and the zen cart logo
This is what is linked to:
/categories.php?cPath=12&product_type=1&pID=34739&action=new_product
but when i click the regular edit button in admin I go to:
/product.php?cPath=12&product_type=1&pID=34739&action=new_product
Thank you!