Found it in the admin configure.php file
All working fine
Thanks for your help
Found it in the admin configure.php file
All working fine
Thanks for your help
IH4's install does NOT touch this file.. Like I stated if it's the configure.php file it's a Zen Cart setup issue and NOT related specifically to IH4.. The extra slash you are seeing would tend to indicate that you have a slash in your configure.php file that doesn't belong there..
Glad to hear this..
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Hi,
have installed ih4 on a fresh install and everything went smooth, i think it has problem with product status icon in admin after install.
after installing my product status icon wont switch product on and off
admin/includes/modules/category_product_listing.php
and replaced with this code from backup file created automatically during installPHP Code:
if ($products->fields['products_status'] == '1') {
echo '<a href="' . zen_href_link(FILENAME_CATEGORIES, 'action=setflag&flag=0&pID=' . $products->fields['products_id'] . '&cPath=' . $cPath . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . zen_image(DIR_WS_IMAGES . 'icon_green_on.gif', IMAGE_ICON_STATUS_ON) . '</a>';
} else {
echo '<a href="' . zen_href_link(FILENAME_CATEGORIES, 'action=setflag&flag=1&pID=' . $products->fields['products_id'] . '&cPath=' . $cPath . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . zen_image(DIR_WS_IMAGES . 'icon_red_on.gif', IMAGE_ICON_STATUS_OFF) . '</a>';
}
if (zen_get_product_is_linked($products->fields['products_id']) == 'true') {
echo ' ' . zen_image(DIR_WS_IMAGES . 'icon_yellow_on.gif', IMAGE_ICON_LINKED) . '<br>';
}
hope this makes sense and maybe my solution could be checked or maybe the problem is to do with my install,PHP 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>
<?php
}
if (zen_get_product_is_linked($products->fields['products_id']) == 'true') {
echo ' ' . zen_image(DIR_WS_IMAGES . 'icon_yellow_on.gif', IMAGE_ICON_LINKED) . '<br>';
}
thanks for great add on
bryan
It's not your install. Just checked two shops I'm working on and you're right. Can't turn them on or off. Thanks for posting this, your 'fix' also worked for me.
(Although the readme already told us to check on this file, but since they were the original files I did not not compare them after the install)
U have read the instructionfile twice. Uploaded the files twize, but i must have missed something.
After upload of all files i get following message when i come to step 9 in the guide:
The installation wont start... Does anyone recognize that?WARNING: An Error occurred, please refresh the page and try again
I am using Zen Cart 1.5.0
Ok, thx. I did encouter the same problem with a Dutch language pack. However, I 'luckely' found an older Dutch language pack version for Zen-Cart 1.5. I replaced my admin/includes/languages/dutch.php and then IH4 installed succesfully.
So in my case there is something wrong with this language file that causes the IH4 to fail the install.
I did compare both files changed a few things and tested again without result. So far I did not manage to find the cause of this problem. But my problem is that I'm not a programmer and I have just little knowledge of php.
If anyone is interested to compare my two dutch files, please PM me. Maybe you can find the problem... and maybe help my Swedish friend
This may sound weird, but maybe you could try to temporary replace the swedish.php by the english version and rename that to swedish.php (and rename your original swedish.php to swedish.bak so you can can switch back quickly when done).
I know it's not a fix, but for a "test" you can determin if this swedish.php is causing he problem AND you ca move on first.
Last edited by Gerjan; 9 Apr 2012 at 10:57 PM.
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Bookmarks