Zen Cart Logo
Forums / Upgrading to 1.5.x / bunch of errors since upgrade, help please

bunch of errors since upgrade, help please

Views: 5,039

Results 21 to 22 of 22
2 Mar 2013, 5:37 AM
#21
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

bunch of errors since upgrade, help please

No changes needed..

v4.1 of IH4 was made available as of Feb 20th.. it is updated for Zen Cart v1.5.1..

> Design75:

Do you have Image Handler 4 installed?
If so, compare your \admin\includes\modules\category_product_listing.php with a fresh one. IH4 inserts some legagy code that conflicts with ZC 1.5x . IH4 only needs on line of code in that file

<?php echo '<a href="' . zen_href_link(FILENAME_IMAGE_HANDLER, 'products_filter=' . $products->fields['products_id'] . '&current_category_id=' . $current_category_id) . '">' . zen_image(DIR_WS_IMAGES . 'icon_image_handler.gif', ICON_IMAGE_HANDLER) . '</a>'; ?>
> 
> the rest of the changed code is from before ZC 1.5 (unless you have made other modifications to this file)

> **schoolboy:**
>
> The code in that file needs to look like this:
> 
> From Line(s) 325 / 326 :
> ```php
// Split Page
?>
                <td class="dataTableContent" width="20"  align="right"><?php echo $products->fields['products_id'];  ?></td>
                <td class="dataTableContent"><?php echo '<a  href="' . zen_href_link($type_handler, 'cPath=' . $cPath . '&pID=' .  $products->fields['products_id'] .  '&action=new_product_preview&read=only' . '&product_type=' .  $products->fields['products_type'] . (isset($_GET['page']) ?  '&page=' . $_GET['page'] : '')) . '">' . zen_image(DIR_WS_ICONS .  'preview.gif', ICON_PREVIEW) . '</a> ' .  $products->fields['products_name']; ?></td>
                <td class="dataTableContent"><?php echo $products->fields['products_model']; ?></td>
                <td colspan="2" class="dataTableContent"  align="right"><?php echo  zen_get_products_display_price($products->fields['products_id']);  ?></td>
                <td class="dataTableContent"  align="right"><?php echo  $products->fields['products_quantity']; ?></td>
                <td class="dataTableContent" width="50" align="left">
<?php
      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>';
      }
?>
                </td>
<?php if ($action == '') { ?>
                <td class="dataTableContent"  align="right"><?php echo  $products->fields['products_sort_order']; ?></td>
                <td class="dataTableContent" align="right">
        <?php echo '<a href="' . zen_href_link($type_handler,  'cPath=' . $cPath . '&product_type=' .  $products->fields['products_type'] . '&pID=' .  $products->fields['products_id']  . '&action=new_product' .  (isset($_GET['search']) ? '&search=' . $_GET['search'] : '')) .  '">' . zen_image(DIR_WS_IMAGES . 'icon_edit.gif', ICON_EDIT) .  '</a>'; ?>
        <?php echo '<a href="' . zen_href_link($type_handler,  'cPath=' . $cPath . '&product_type=' .  $products->fields['products_type'] . '&pID=' .  $products->fields['products_id'] . '&action=delete_product') .  '">' . zen_image(DIR_WS_IMAGES . 'icon_delete.gif', ICON_DELETE) .  '</a>'; ?>
        <?php echo '<a href="' . zen_href_link($type_handler,  'cPath=' . $cPath . '&product_type=' .  $products->fields['products_type'] . '&pID=' .  $products->fields['products_id'] . '&action=move_product') .  '">' . zen_image(DIR_WS_IMAGES . 'icon_move.gif', ICON_MOVE) .  '</a>'; ?>
        <?php echo '<a href="' . zen_href_link($type_handler,  'cPath=' . $cPath . '&product_type=' .  $products->fields['products_type'] . '&pID=' .  $products->fields['products_id'] .'&action=copy_to' ) . '">' .  zen_image(DIR_WS_IMAGES . 'icon_copy_to.gif', ICON_COPY_TO) .  '</a>'; ?>
        <?php echo '<a href="' .  zen_href_link(FILENAME_IMAGE_HANDLER, 'products_filter=' .  $products->fields['products_id'] . '&current_category_id=' .  $current_category_id) . '">' . zen_image(DIR_WS_IMAGES .  'icon_image_handler.gif', ICON_IMAGE_HANDLER) . '</a>'; ?>
<?php
// BOF: Attribute commands

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.

14 Mar 2013, 4:16 PM
#22
xbox_memberships avatar

xbox_memberships

Zen Follower

Join Date:
Jan 2010
Posts:
157
Plugin Contributions:
0

Re: bunch of errors since upgrade, help please

still getting the issue, odd thing is when the email comes through to the iphone the french a symbol does not appear infront of the prices?