Forums / General Questions / cpath is it needed?

cpath is it needed?

Locked
Results 1 to 18 of 18
This thread is locked. New replies are disabled.
18 Dec 2010, 15:55
#1
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

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?
18 Dec 2010, 16:07
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Posts:
62,757
Plugin Contributions:
1

Re: cpath is it needed?

Why would you want to remove the cPath from the URL? :unsure:
18 Dec 2010, 16:24
#3
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

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.
18 Dec 2010, 16:31
#4
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

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
18 Dec 2010, 16:33
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Posts:
62,757
Plugin Contributions:
1

Re: cpath is it needed?

In theory, it should not break anything with or without the cPath ...
18 Dec 2010, 17:07
#6
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

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
18 Dec 2010, 17:29
#8
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

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.
18 Dec 2010, 17:39
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Posts:
62,757
Plugin Contributions:
1

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? :unsure:
18 Dec 2010, 17:41
#10
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

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.
18 Dec 2010, 17:45
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Posts:
62,757
Plugin Contributions:
1

Re: cpath is it needed?

The centerbox for the new products is built in the:
/includes/modues/new_products.php

use your templates and overrides to make these changes by copying the file to:
/includes/modues/your_template_dir/new_products.php
18 Dec 2010, 18:33
#12
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: cpath is it needed?

thank you, it is all done now. :)
18 Dec 2010, 19:53
#13
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: cpath is it needed?

What file controls the listing if you are looking at a list of products in a category or you are seeing search results?
18 Dec 2010, 23:33
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Posts:
62,757
Plugin Contributions:
1

Re: cpath is it needed?

Look at the:
/includes/modules/product_listing.php

do a search in the Tools ... Developers Tool Kit ... in the bottom input box for:
product_listing.php

to find the files that call that ...
18 Dec 2010, 23:44
#15
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: cpath is it needed?

greatly appreciated :)
19 Dec 2010, 00:13
#16
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: cpath is it needed?

there appears to be a slight padding around the image that is displayed in the search listing.

would that be in the main stylesheet.css?
19 Dec 2010, 00:31
#17
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Posts:
62,757
Plugin Contributions:
1

Re: cpath is it needed?

Not clue ... I am not a designer type ...
19 Dec 2010, 10:39
#18
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: cpath is it needed?

.productListing-data img {
padding: 10px;
}

In main stylesheet.css