Hi,
Have you enabled SSL for the store?
If so then the domains for the store in includes/configure.php must be identical (except for https instead of http).
Enjoy the rest of the Easter break!
All the best...
Conor
ceon
Printable View
Hi,
Have you enabled SSL for the store?
If so then the domains for the store in includes/configure.php must be identical (except for https instead of http).
Enjoy the rest of the Easter break!
All the best...
Conor
ceon
I notice something that might be considered a bug in the category and product related mapping.
When I enter a custom mapping for a category, the products under that category don't make use of the custom category mapping, instead auto generating the default category mapping as part of the auto generated product mapping.
Would it be possible to modify the code to fix this? I would imagine that anyone who is creating a custom category mapping would want it to be used when auto generating the mapping for any products in the category.
Hi,
That's not a bug, no, it's just the way the module has been designed to work. Every man and his dog has their own idea about what format their URI Mapping should take and we had to settle on a default style for the module. Of course, since the module lets you enter mappings manually you are free to use whatever format suits you.
I do totally understand where you are coming from and "URI mapping templates" would be the kind of thing you'd need the software to do. It can't do that as yet.
However, a kludgey but effective solution for you would be to temporarily rename the master category for the products you want to use a custom URI mapping to a name that autogenerates the category "part" that you want, go through and generate your product mappings for that category, then rename the category back to it's original name.
That should make things easier for you.
Another alternative is a SQL search and replace but a description of how to do that is a bit beyond the scope of this thread.
All the best...
Conor
ceon
Hi Conor and the rest of you guys. I hope you all had a great easter break well I engoyed mine of course.
But iven though I cleard my head through the easter break I still can't go over some problems with URi mapings. I've got the instalation write and data base is fine & configs in the backend are as it suppose to be. But something weird hapened with stock links generated by zenCart they look like this:
test.alarmy-e.pl/testindex.php?main_page=product_info&cPath=96&products_id=460
while they should be
test.alarmy-e.pl/index.php?main_page=product_info&cPath=96&products_id=460
why is "test" appended before "index.php" ? what did I do wrong(again:wacko:) this time let me ad that "test" is the name the katalog where my testing store is instaled.
Thanks for Your help
Jacob
Got It:bigups:
found my mistake! My configure.php(store side) in line's defining main catalog was:
define('DIR_WS_CATALOG', 'test/');
define('DIR_WS_HTTPS_CATALOG', 'test/');
but of course it should be:
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
(have no idea why i put it in there:frusty:)
FINALY:clap: now it seems that everything is working as it suppose to
Hi
I'm having same problem as:
the code that is under
http://www.zen-cart.com/forum/showth...aster+category
does not help the cPath is still appended have you any idea?
that code is :
/ first, try to get master category id
$category_query = "select p2c.categories_id
from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c
where p.products_id = '" . (int)$products_id . "'
and p.products_status = '1'
and p.products_id = p2c.products_id and p.master_categories_id = p2c.categories_id";
// in case the master category is invalid, fall back on getting first product/category association instead
$category_query .= " union distinct select p2c.categories_id
from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c
where p.products_id = '" . (int)$products_id . "'
and p.products_status = '1'
and p.products_id = p2c.products_id limit 1";
(additions to original code in red)
But (I'm on 1.3.9) in functions_categories.php
I'v got:
$category_query = "select p.products_id, p.master_categories_id
from " . TABLE_PRODUCTS . " p
where p.products_id = '" . (int)$products_id . "' limit 1";
So tell me how that "fix" is supose to help if "oryginaly" master_categories_id is taken from products table??
Hi,
Please search this thread for cPath and read my last few posts about such issues.
I'll have to make this into a FAQ!
All the best..
Conor
ceon