Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default cpath is it needed?

    Do I need to keep the cpath for internal links?


    "' . zen_href_link(zen_get_info_page($products_new->fields['products_id']), 'cPath=' . zen_get_generated_category_path_rev($products_new->fields['master_categories_id']) . '&products_id=' . $products_new->fields['products_id']) . '"

    "' . zen_href_link(zen_get_info_page($products_new->fields['products_id']), '&products_id=' . $products_new->fields['products_id']) . '"

    Is there any risk from removing the cPath section from the links?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: cpath is it needed?

    Why would you want to remove the cPath from the URL?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: cpath is it needed?

    That would be telling :)

    having the cPath in the url breaks what I'm doing, so I either need ALL links to products to have the cPath, or ALL links to products not to have the cPath in the url.

    Is there any reason why removing cPath from the link url in all products and new products would break the store in any way.

  4. #4
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: cpath is it needed?

    Also, which file controls the new products listing on the index page, as I would need to remove the cPath section from the link to product url

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: cpath is it needed?

    In theory, it should not break anything with or without the cPath ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: cpath is it needed?

    Which file controls the new products listing on the index page, as I would need to remove the cPath section from the link to product url

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: cpath is it needed?

    Perhaps read your other post where I broke down all the files for the Products New Listing page ...
    http://www.zen-cart.com/forum/showth...398#post973398
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: cpath is it needed?

    I can't find it the part responsible for the index page list.

    Sorry, i'm obviously being an idiot.

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: cpath is it needed?

    You need to be more specific on what it is you are trying to change ...

    There are a number of Listings ...

    Product Listing is what you see when you navigate the Categories ... and anything in the middle, center boxes are managed separately ...

    New Products which is a link from the Categories sidebox is its own page, as described in the other link where you asked about the Products New and All listings ...

    The All Products is a separate page where its starting point, similar to the New Products that I broke down for you would start with the:
    /includes/modules/pages/products_all/header_php.php


    What specific listing are you trying to change?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  10. #10
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: cpath is it needed?

    Sorry,

    on the main index below your defined text the page can display a selection of your new products.

    I need to edit the file responsible for displaying the new products on the index page or perhaps better to call it home page

    I'm not talking about the dedicated new products page.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 cPath Question
    By DannyVarley in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 15 Jun 2015, 04:40 PM
  2. cPath
    By Soniccc in forum General Questions
    Replies: 4
    Last Post: 12 Feb 2011, 11:07 AM
  3. Get current cpath
    By foteek in forum General Questions
    Replies: 2
    Last Post: 31 Aug 2008, 03:59 AM
  4. cPath=
    By pwhyles in forum General Questions
    Replies: 2
    Last Post: 28 Jun 2007, 10:42 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