Results 1 to 3 of 3
  1. #1

    Default Get category name of linked product

    Hello,

    I cant find the function that calls the name of linked product category.
    Now i'm using this function

    zen_get_categories_name((int)$current_category_id);

    and it works if I am on the products original page, but when I am on the linked products product_info page the linked category name does NOT apear.

    for example:

    original page linked page

    Thanks a lot.
    My most recent work: magprom.net

  2. #2

    Default Re: Get the category name of linked product

    The truth is that i have a code that strips non english characters, and this is the problem.
    Now I am looking for a solution abbout how to show stripped category names on NON LINKED Products category and NON striped category names for linked products category.

    The only thing that comes in my mind is to somehow use the parameters in the linked products...

    if ($_GET["main_page"]=="product_info"?cPath=???){non striped zen_get_categories_name((int)$current_category_id);}

    elseif ($_GET["main_page"]=="product_info"){striped zen_get_categories_name((int)$current_category_id);}

    But i dont know hoh to call the parameters. Any sugestions?
    Last edited by perfumbg; 26 Jun 2013 at 08:20 PM.
    My most recent work: magprom.net

  3. #3

    Default Re: Get the category name of linked product

    this made the trick

    if (($current_page_base == 'product_info') and ((in_array($cPath,explode(",",'133,122'))) or strpos($cPath, '134_') === 0)){non striped zen_get_categories_name((int)$current_category_id);}

    but because i dont have much categories and i manualy include them :) if you do have many ... this wont be of much help.
    My most recent work: magprom.net

 

 

Similar Threads

  1. v139h Unable to display linked product in category page
    By snk060 in forum General Questions
    Replies: 37
    Last Post: 9 Dec 2013, 02:23 PM
  2. copy linked-product multiple category info to another product
    By torvista in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 10 Nov 2010, 06:31 PM
  3. Trying to get category name to display in Featured Product
    By ilabardee in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 31 Jan 2009, 07:29 PM
  4. Getting linked product category
    By Ollie2 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 8 Mar 2007, 03:01 PM
  5. Category name is displayed on product. How do I get rid of it?
    By Robert T in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 2 Jul 2006, 07:53 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