Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
jeffiec
Hey there,
having some issues in the admin being able to enable/disable products from category page, I have read throuhg all of the posts i can find, ensured that the code in category_product_listing.php were correct:
Code:
if ($products->fields['products_status'] == '1') {
echo zen_draw_form('setflag_products', FILENAME_CATEGORIES, 'action=setflag&pID=' . $products->fields['products_id'] . '&cPath=' . $cPath . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . ((isset($_GET['search']) && !empty($_GET['search'])) ? '&search=' . $_GET['search'] : ''));?>
<input type="image" src="<?php echo DIR_WS_IMAGES ?>icon_green_on.gif" title="<?php echo IMAGE_ICON_STATUS_ON; ?>" />
<input type="hidden" name="flag" value="0" />
</form>
<?php
} else {
echo zen_draw_form('setflag_products', FILENAME_CATEGORIES, 'action=setflag&pID=' . $products->fields['products_id'] . '&cPath=' . $cPath . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . ((isset($_GET['search']) && !empty($_GET['search'])) ? '&search=' . $_GET['search'] : ''));?>
<input type="image" src="<?php echo DIR_WS_IMAGES ?>icon_red_on.gif" title="<?php echo IMAGE_ICON_STATUS_OFF; ?>"/>
<input type="hidden" name="flag" value="1" />
</form>
and categories.php:
Code:
if ( isset($_GET['flag']) && ($_GET['flag'] == '0') || ($_GET['flag'] == '1') ) {
if (isset($_GET['pID'])) {
zen_set_product_status($_GET['pID'], $_GET['flag']);
}
}
and still cant turn them on or off, checked for error logs, none, check for console errors, none.
Anything im missing here?
ZC 1.51
IMH 4
Realize you said ZC1.5.1, but that is reminiscent of ZC1.5 and not necessarily related to IH4. When did this begin happening? Upgrade?
Re: Image Handler 4 (for v1.5.x) Support Thread
no, i don't really know when it started, but i didn't do any upgrades, any searches for products not turning on or off, has pointed me to IH, it was the last mod installed according to the guy who built the site, but not too sure, im just trying to fix it lol.
However viewing the page in page source shows this:
<form name="setflag_products" action="http://mysite.com/my_secret_admin/categories.php?action=setflag&pID=98&cPath=3&page=1" method="post">
I saw someone else asking should the change all posts to gets?
could that be?
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
jeffiec
no, i don't really know when it started, but i didn't do any upgrades, any searches for products not turning on or off, has pointed me to IH, it was the last mod installed according to the guy who built the site, but not too sure, im just trying to fix it lol.
And it would help if we knew WHICH version on IH4 you are running.. sounds like an old version.. and if you search this thread for category_product_listing.php the fix is posted..
Quote:
Originally Posted by
jeffiec
However viewing the page in page source shows this:
<form name="setflag_products" action="http://mysite.com/my_secret_admin/categories.php?action=setflag&pID=98&cPath=3&page=1" method="post">
I saw someone else asking should the change all posts to gets?
could that be?
NO..
Re: Image Handler 4 (for v1.5.x) Support Thread
4.2, what would be the best way to upgrade, in the instructions, it only talks about if you have installed ih3?
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
jeffiec
4.2, what would be the best way to upgrade, in the instructions, it only talks about if you have installed ih3?
The way I have done it in the past, is to download (or have) both the old and new versions, compare the two to see if there are files that get deleted from the old (usually haven't seen that happen.), then once determined and made a list of which should go, compare the new and existing files to see what changes need to be made. Merge the changes into the new set of files. Delete any files previously identified and pretty much at the same time upload the entire package (so that the auto installer can do it's thing which includes making backup copies of what was to be replaced, just-in-case). But, a backup of existing files is made/available as part of any routine update.
Re: Image Handler 4 (for v1.5.x) Support Thread
ok, uninstalled 4.2, installed 4.3.1, still cant enable/disable, this just isn't my day.
so any searches on not being able to enable/disable from category page, brings up all about IH$, since im up to the latest and greatest and everyone else seems to be working, what else can be the issue? i have made no mods to the admin side.
Any help appreciated.
Jeff
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
jeffiec
ok, uninstalled 4.2, installed 4.3.1, still cant enable/disable, this just isn't my day.
so any searches on not being able to enable/disable from category page, brings up all about IH$, since im up to the latest and greatest and everyone else seems to be working, what else can be the issue? i have made no mods to the admin side.
Any help appreciated.
Jeff
It would surprise me that the content of the following link hasn't been incorporated in an update since it was made, so first I would suggest if not done already to clear your cache and temporary files (or anything else to "refresh" your browser) while not logged into your admin, if you haven't already. If that still doesn't resolve your issue, see this link: http://www.zen-cart.com/showthread.p...hp#post1117504
The content of that link addresses the issue you are describing with the red/green button not working in the file category_product_listing.php that I went ahead and searched for seeing that you still were having an issue. If unable to still resolve, please seek paid help to address your problem, as you said, others aren't experiencing this with the updated version(s). Btw, there is some updates posted a few pages back that I have not verified as incorporated to the downloads associated with the additional_images functionality.
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
mc12345678
It would surprise me that the content of the following link hasn't been incorporated in an update since it was made, so first I would suggest if not done already to clear your cache and temporary files (or anything else to "refresh" your browser) while not logged into your admin, if you haven't already. If that still doesn't resolve your issue, see this link:
http://www.zen-cart.com/showthread.p...hp#post1117504
The content of that link addresses the issue you are describing with the red/green button not working in the file category_product_listing.php that I went ahead and searched for seeing that you still were having an issue. If unable to still resolve, please seek paid help to address your problem, as you said, others aren't experiencing this with the updated version(s). Btw, there is some updates posted a few pages back that I have not verified as incorporated to the downloads associated with the additional_images functionality.
Not sure I fully understand what you are saying, have cleared all temp files and the link you posted matches what that file already has, remember, I uninstalled and re-installed to 4.3.1 IH is working fine.
Telling someone they need to pay for help can be taken a few ways, i will for arguments sake, take it in a neutral way.
So what you are saying is instead of sharing ideas, with fellow coders, is not the way to go? I should just go out and hire someone who will no doubt do the same thing, unless it's deva herself? And like i said, i don't even think IH is the issue, however, most of the searches so far, have pointed at IH, that's why I am asking if someone knew of another add-on i could look at or java.
Re: Image Handler 4 (for v1.5.x) Support Thread
Ok, little trouble shooting and putting a trap in 'setflag' function of categories.php,
print '<script type="text/javascript">';
print 'alert("im in the case"'. $_GET['flag'] . ')';
print '</script>';
I get the popup, but $_GET['flag'] is empty?
Just looking for clues.
Jeff
Re: Image Handler 4 (for v1.5.x) Support Thread
Quote:
Originally Posted by
jeffiec
Ok, little trouble shooting and putting a trap in 'setflag' function of categories.php,
print '<script type="text/javascript">';
print 'alert("im in the case"'. $_GET['flag'] . ')';
print '</script>';
I get the popup, but $_GET['flag'] is empty?
Just looking for clues.
Jeff
The code you posted looks like Zen Cart 1.3.x code... Possibly Zen Cart was upgraded from a previous version and something was missed when merging files... Or maybe some older code was merged into your "/admin/categories.php" by mistake when installing a plugin...
The code from Zen Cart 1.5.1 for "/admin/categories.php" (note the parts in red):
Code:
case 'setflag':
if ( isset($_POST['flag']) && ($_POST['flag'] == '0') || ($_POST['flag'] == '1') ) {
if (isset($_GET['pID'])) {
zen_set_product_status($_GET['pID'], $_POST['flag']);
}
}
zen_redirect(zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $_GET['cPath'] . '&pID=' . $_GET['pID'] . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . ((isset($_GET['search']) && !empty($_GET['search'])) ? '&search=' . $_GET['search'] : '')));
break;