Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
Twitch Base8 - Obsidian - This, is what's new.
Will this work for v1.5.7? If not, are there plans to make it compatible in the near future?
Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
Twitch Base8 - Obsidian - This, is what's new.
That is great to hear. This feature is incredibly useful for large inventories (especially when the products have very similar names). I'd be happy to see it become a ZC standard feature since it parallels e-commerce platforms thumbnail display of inventory for their sellers. Thank you for a great plugin. I look forward to using it again.
TAP Thumb for 1.57c now includes Twitch Admin - Show Current Value (in split view - right sidebox)
Thought I would share as anyone could use this bit for their cart (works in previous Zen versions) as it should be a standard part of Zen...
Zen Cart 1.57c
YOUR_ADMIN/configuration.php
Add the four bold lines of code below:
if (ADMIN_CONFIGURATION_KEY_ON == 1) {
$contents[] = array('text' => '<strong>Key: ' . $cInfo->configuration_key . '</strong><br>');
}
// Twitch Admin - Show Current Value (in split view - right sidebox)
$contents[] = array('text' => '<strong>Current Value: ' . $cInfo->configuration_value . '</strong><br>');
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
$contents[] = array('text' => '<br><strong>' . $cInfo->configuration_title . '</strong><br>' . $cInfo->configuration_description . '<br>' . $value_field);
$contents[] = array('align' => 'text-center', 'text' => '<br>' . '<button type="submit" name="submit' . $cInfo->configuration_key . '" class="btn btn-primary">' . IMAGE_UPDATE . '</button>' . ' <a href="' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id) . '" class="btn btn-default" role="button">' . IMAGE_CANCEL . '</a>');
break;
default:
if (isset($cInfo) && is_object($cInfo)) {
$heading[] = array('text' => '<h4>' . $cInfo->configuration_title . '</h4>');
if (ADMIN_CONFIGURATION_KEY_ON == 1) {
$contents[] = array('text' => '<strong>Key: ' . $cInfo->configuration_key . '</strong><br>');
}
// Twitch Admin - Show Current Value (in split view - right sidebox)
$contents[] = array('text' => '<strong>Current Value: ' . $cInfo->configuration_value . '</strong><br>');
$contents[] = array('align' => 'text-center', 'text' => '<a href="' . zen_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id . '&action=edit') . '" class="btn btn-primary" role="button"> ' . IMAGE_EDIT . '</a>');
$contents[] = array('text' => '<br>' . $cInfo->configuration_description);
$contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . zen_date_short($cInfo->date_added));
if (zen_not_null($cInfo->last_modified))
$contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . ' ' . zen_date_short($cInfo->last_modified));
}
break;
And you will see the value:
Finishing up the new TAP Thumb now public release on the way
Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
Twitch Base8 - Obsidian - This, is what's new.
Submitted to forum plugins for review:
Twitch Admin Product Thumbnails (TAP Thumb)
Version 21a for Zen Cart 1.57c
June 20.2021
Updated for 1.57c, now includes admin switches, built-in image checker and other useful features. This module will display category images, product images, attribute images and additional images (legacy) in several locations within your admin. If no image exists the default no_picture.gif will display.
- This module is not immediately backwards compatible with 1.56c or previous.
- Image/_MED/_LRG Display (legacy) - not supported.
- Alternate Product Types Display Thumbnails - available in future release
Includes Admin 1.57c fileset and simplified install instructions with detailed feature list.
If my work has helped you today in any way, show your appreciation with things like positive feedback or donations.
Find me at www.twitchtoo.com
Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
Twitch Base8 - Obsidian - This, is what's new.
New admin product - preview_info.php output:
View of product content as customer could see it (without formatting) as well it summarizes admin features/switch positions for display - hidden when not in use to conserve space. Plus - page buttons float just like collect_info.php.
Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
Twitch Base8 - Obsidian - This, is what's new.
I broke the array with this little bug in the TAP Thumb for 1.57c version only:
YOUR_ADMIN > includes > modules > copy_product.php
old code...
if (SHOW_TAP_THUMB == 'Show') { // product level copy
echo ($pInfo->products_image != '' ? $contents[] = array('text' => '<br />'. zen_image(DIR_WS_CATALOG_IMAGES . $pInfo->products_image, $pInfo->products_image, ADMIN_TAP_THUMB_WIDTH, ADMIN_TAP_THUMB_HEIGHT) . ' ' ) : $contents[] = array('text' => '<br />'. zen_image(DIR_WS_CATALOG_IMAGES . PRODUCTS_IMAGE_NO_IMAGE, $pInfo->products_image, ADMIN_TAP_THUMB_WIDTH, ADMIN_TAP_THUMB_HEIGHT) . ' ' ));
}
replace with this:
if (SHOW_TAP_THUMB == 'Show') { // product level copy
$pInfo->products_image != '' ? $contents[] = array('text' => '<br />'. zen_image(DIR_WS_CATALOG_IMAGES . $pInfo->products_image, $pInfo->products_image, ADMIN_TAP_THUMB_WIDTH, ADMIN_TAP_THUMB_HEIGHT) . ' ') : $contents[] = array('text' => '<br />'. zen_image(DIR_WS_CATALOG_IMAGES . PRODUCTS_IMAGE_NO_IMAGE, $pInfo->products_image, ADMIN_TAP_THUMB_WIDTH, ADMIN_TAP_THUMB_HEIGHT) . ' ');
}
YOUR_ADMIN > includes > modules > delete_product.php
old code...
if (SHOW_TAP_THUMB == 'Show') { // product level delete
echo ($pInfo->products_image != '' ? $contents[] = array('text' => '<br />'. zen_image(DIR_WS_CATALOG_IMAGES . $pInfo->products_image, $pInfo->products_image, ADMIN_TAP_THUMB_WIDTH, ADMIN_TAP_THUMB_HEIGHT) . ' ' ) : $contents[] = array('text' => '<br />'. zen_image(DIR_WS_CATALOG_IMAGES . PRODUCTS_IMAGE_NO_IMAGE, $pInfo->products_image, ADMIN_TAP_THUMB_WIDTH, ADMIN_TAP_THUMB_HEIGHT) . ' ' ));
}
replace with this:
if (SHOW_TAP_THUMB == 'Show') { // product level delete
$pInfo->products_image != '' ? $contents[] = array('text' => '<br />'. zen_image(DIR_WS_CATALOG_IMAGES . $pInfo->products_image, $pInfo->products_image, ADMIN_TAP_THUMB_WIDTH, ADMIN_TAP_THUMB_HEIGHT) . ' ') : $contents[] = array('text' => '<br />'. zen_image(DIR_WS_CATALOG_IMAGES . PRODUCTS_IMAGE_NO_IMAGE, $pInfo->products_image, ADMIN_TAP_THUMB_WIDTH, ADMIN_TAP_THUMB_HEIGHT) . ' ');
}
YOUR_ADMIN > includes > modules > move_product.php
old code...
if (SHOW_TAP_THUMB == 'Show') { // product level move
echo ($pInfo->products_image != '' ? $contents[] = array('text' => '<br />'. zen_image(DIR_WS_CATALOG_IMAGES . $pInfo->products_image, $pInfo->products_image, ADMIN_TAP_THUMB_WIDTH, ADMIN_TAP_THUMB_HEIGHT) . ' ' ) : $contents[] = array('text' => '<br />'. zen_image(DIR_WS_CATALOG_IMAGES . PRODUCTS_IMAGE_NO_IMAGE, $pInfo->products_image, ADMIN_TAP_THUMB_WIDTH, ADMIN_TAP_THUMB_HEIGHT) . ' ' ));
}
replace with this:
if (SHOW_TAP_THUMB == 'Show') { // product level move
$pInfo->products_image != '' ? $contents[] = array('text' => '<br />'. zen_image(DIR_WS_CATALOG_IMAGES . $pInfo->products_image, $pInfo->products_image, ADMIN_TAP_THUMB_WIDTH, ADMIN_TAP_THUMB_HEIGHT) . ' ') : $contents[] = array('text' => '<br />'. zen_image(DIR_WS_CATALOG_IMAGES . PRODUCTS_IMAGE_NO_IMAGE, $pInfo->products_image, ADMIN_TAP_THUMB_WIDTH, ADMIN_TAP_THUMB_HEIGHT) . ' ');
}
For anyone using Tap Thumb for 1.56c version only (same files as above) please change instances of this:
' '
to this:
' '
Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
Twitch Base8 - Obsidian - This, is what's new.
Let's add some clarity...
YOUR_ADMIN/includes/languages/english/extra_definitions/TAP_Thumb.php
change this:
define('TAP_IMAGE_DELETE_CAT_TEXT', 'Note: Removes image from category (image is NOT deleted/removed from server)');
to this:
define('TAP_IMAGE_DELETE_CAT_TEXT', 'Note: Removes image from category (image is NOT deleted/removed from server)');
define('TAP_IMAGE_DELETE_PRODUCT_TEXT', 'Note: Removes image from product (image is NOT deleted/removed from server)');
YOUR_ADMIN/includes/modules/product/collect_info.php
change this:
<label class="radio-inline"><?php echo TAP_IMAGE_DELETE_CAT_TEXT; ?></label>
to this:
<label class="radio-inline"><?php echo TAP_IMAGE_DELETE_PRODUCT_TEXT; ?></label>
...it's the little details
Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
Twitch Base8 - Obsidian - This, is what's new.
In YOUR_ADMIN/includes/css/a_twitch_modules.css, any particular reason for the empty rule for .tapButton_LIVE? I don't find it used in any file.
thanx
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting.
Bookmarks