Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2007
    Posts
    71
    Plugin Contributions
    0

    Default How to delete links of "item name" and "price" in category list page?

    Links of "item name" and "price" are not friendly to search engine. Could anyone tell me how to delete them?
    You can find it in

    Thanks very much!

  2. #2
    Join Date
    Jun 2007
    Posts
    71
    Plugin Contributions
    0

    Default Re: How to delete links of "item name" and "price" in category list page

    Anyone help me? Thanks!

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: How to delete links of "item name" and "price" in category list page

    'Item Name' is defined in includes/languages/english.php

    'Price' is defined in includes/languages/english/index.php

    The first will go in includes/languages/YOUR_TEMPLATE

    The second will go in includes/languages/english/YOUR_TEMPLATE


    I'd be interested in knowing why those headings would affect SEO.

  4. #4
    Join Date
    Jun 2007
    Posts
    71
    Plugin Contributions
    0

    Default Re: How to delete links of "item name" and "price" in category list page

    Quote Originally Posted by stevesh View Post
    'Item Name' is defined in includes/languages/english.php

    'Price' is defined in includes/languages/english/index.php

    The first will go in includes/languages/YOUR_TEMPLATE

    The second will go in includes/languages/english/YOUR_TEMPLATE


    I'd be interested in knowing why those headings would affect SEO.
    Hi, stevesh
    Thanks for your kind reply.
    However, I want to delete the links, not anchor text. The links bring duplicate contents. Search Engines don't like duplicate contents.
    Where can I delete links?

  5. #5
    Join Date
    Jun 2007
    Posts
    71
    Plugin Contributions
    0

    Default Re: How to delete links of "item name" and "price" in category list page

    I don't find which code control links of "item name". Could someone explain it?
    Thanks.

  6. #6
    Join Date
    Jun 2005
    Posts
    12
    Plugin Contributions
    0

    Default Re: How to delete links of "item name" and "price" in category list page

    I'm looking for a way to disable the link which has the text Item Name at the top of a product listing on the category page and sorts the products by ascending/decending order. I changed the + and - in the admin interface to be blank, but clicking on "Item Name" still allows the sort and there is no way to return to the order according to the customized order set in the product admin interface so I just want to disable the link totally. How can I do this - if not in the admin interface, where is it in the php code?

  7. #7
    Join Date
    Jan 2009
    Location
    Charlottesville, VA
    Posts
    51
    Plugin Contributions
    0

    Default Re: How to delete links of "item name" and "price" in category list page

    Quote Originally Posted by ckalech View Post
    I'm looking for a way to disable the link which has the text Item Name at the top of a product listing on the category page and sorts the products by ascending/decending order. I changed the + and - in the admin interface to be blank, but clicking on "Item Name" still allows the sort and there is no way to return to the order according to the customized order set in the product admin interface so I just want to disable the link totally. How can I do this - if not in the admin interface, where is it in the php code?
    I was asking myself the same question. There was no post here in the forum that answered it as far as I could see, so searched the code instead. The solution is simple.

    in includes/modules/product_listing.php, there is a call to zen_create_sort_heading(), which produces the sorting links on the headers. This is on or about line 63. I had a CUSTOM folder for my theme in this same location, so I copied product_listing.php into my CUSTOM folder, commented out lines 62-64, and my linked headers became plain, unlinked headers. No core mod!

    For those who are concerned about SEO but would still like the sorting links, you could modify the zen_create_sort_heading() function that makes the link. It's in includes/functions/function_general.php, starting around line 500. The code you change is a few lines into this short function:

    Change from:
    Code:
    $sort_prefix = '<a href="' . zen_href_link($_GET['main_page']...
    To:
    Code:
    $sort_prefix = '<a rel="nofollow" href="' . zen_href_link($_GET['main_page']...
    I shortened the line because it's quite long. Just stick that rel="nofollow" in there and the search engines will ignore it.

    I hope this helps.
    Frank

  8. #8
    Join Date
    Aug 2009
    Location
    Arizona, US, Dry Hot Desert
    Posts
    15
    Plugin Contributions
    0

    Default Re: How to delete links of "item name" and "price" in category list page

    Frank:

    Thank you SO MUCH for the "point" in the right direction. That worked perfectly for me. I do not want customers changing the order of the products as the products are in a specific order for a reason.

    Finding this thread was like looking for a needle in a haystack, but it was easier than finding the call to the sort_heading, which I NEVER would have realized to be the simple solution.

    Thanks again!

  9. #9
    Join Date
    Apr 2010
    Posts
    16
    Plugin Contributions
    0

    Default Re: How to delete links of "item name" and "price" in category list page

    Fantastic - thanks Frank, did exactly what I needed it to do! :)

 

 

Similar Threads

  1. v138a There are two "my account" and "shopping cart", how to delete one?
    By fanisme in forum General Questions
    Replies: 1
    Last Post: 16 Mar 2013, 11:43 AM
  2. v150 How do I edit Product Listing "Price", "Qty." and Product Info Move "details"?
    By schobook in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 18 Jan 2013, 01:02 AM
  3. Replies: 0
    Last Post: 27 Nov 2011, 06:04 PM
  4. Can't change the "price" and "Item Name" Link
    By thricelll in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 27 Feb 2011, 08:16 AM
  5. Remove "Product Image" "Item Name" and "Price"...
    By rebekah in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Sep 2008, 06:08 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR