Results 1 to 8 of 8

Threaded View

  1. #1

    Default Product info with no cPath causes link problems

    Found a small bug. When I have a product info page with no cPath in the URL, the link to the main category won't have the right cPath, causing it to essentially link to my home page. Simple solution:

    Rewrote /includes/templates/template_default/templates/tpl_modules_category_icon_display.php to fix the problem. See below:

    <?php
    $importcPath = $_GET['cPath'];
    if ($importcPath == '')
    $usecPath = $categories_cPath;
    else
    $usecPath = $importcPath;
    ?>
    <div align="<?php echo $align; ?>" id="categoryIcon" class="categoryIcon"><?php echo '<a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . $usecPath , 'NONSSL') . '">' . $category_icon_display_image . $category_icon_display_name . '</a>'; ?></div>

    Then, make a small change in /includes/modules/category_icon_display.php on line 16 add this line:
    $categories_cPath = $cPath;

    That's it! Hope that helps!
    Last edited by srturner47; 20 Apr 2008 at 02:57 AM.

 

 

Similar Threads

  1. v151 Problems with product info page
    By barendfaber in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 25 Nov 2013, 04:40 AM
  2. v139h Problems with product info display background
    By barendfaber in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 13 Aug 2012, 11:03 AM
  3. Strange Bug with Category cPath link
    By kaylala in forum General Questions
    Replies: 8
    Last Post: 4 Dec 2010, 04:40 AM
  4. Image causes problems with the store.
    By FragaGeddon in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 9 Aug 2010, 05:45 AM
  5. Easy Populate causes problems to Multiple Categories Link Manager
    By milobloom in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 12 Aug 2006, 02:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg