QuotesUK Posted November 19, 2015 Share Posted November 19, 2015 Category list has a custom URL of this format:xxdomainxx/custom-name/40-45.htmlWhen adding to basket the whole side column fills with a formatted store page and a 404 errorWhen inspecting the page source the form submission is to the wrong URL like this:xxdomainxx/40-45.htmlStore version is currently v6.0.8Does anyone know how to fix this? Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 19, 2015 Share Posted November 19, 2015 In CC608, I think this could happen if there is a mismatch between what the Store Settings, SSL tab has for the store's Normal URL and where the store actually is.There will be a problem if /custom-name/ contains any of a few key words. But if this effect happens for all products where /custom-name/ is very different for each category, then we need to look elsewhere.CubeCart is supposed to return just the rendered HTML derived from the template box.basket.php. But, if something goes wrong with finding the seo_path of the category, product, or document, CubeCart sends back an entire page.So, we need to discover what CubeCart doesn't like about the SEO path for the category 40-45. Quote Link to comment Share on other sites More sharing options...
QuotesUK Posted November 19, 2015 Author Share Posted November 19, 2015 "custom-name" doesn’t contain any special words that are likely to affect processing.I have just tested with a different category that ends with /phrase.html and that is affected in the same way, so it affects numbers and letters for the page nameI think this is a URL nesting issue, the custom URL has a path that is longer than just a page name, and the form script is not pulling in the full custom URLFor clarification I use the URL structure of /category/product.html so that Google sees them as a distinct directory, and it helps with SEO (which is the whole point of having a custom URL).This only appears to be an issue in category list view. Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 19, 2015 Share Posted November 19, 2015 As an experiment, in admin, Maintenance, Rebuild tab, check Clear Cache and Clear SQL Cache, and Submit.That may fix the target of the <form> tags. Quote Link to comment Share on other sites More sharing options...
QuotesUK Posted November 19, 2015 Author Share Posted November 19, 2015 Already tried it but did it once more to be sure... no effect. Quote Link to comment Share on other sites More sharing options...
QuotesUK Posted November 19, 2015 Author Share Posted November 19, 2015 Also discovered that the final breadcrumb link is also missing the full path of the custom URLThe left hand navigation link is correct Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 19, 2015 Share Posted November 19, 2015 "the full path of the custom URL" for what? The category being viewed?In admin, Store Settings, Search Engines tab, let us know what you have for the settings of "Add category to product URL path?" and "Add subcategories to category URL path?" Quote Link to comment Share on other sites More sharing options...
QuotesUK Posted November 19, 2015 Author Share Posted November 19, 2015 Add category to product URL path? = no Add subcategories to category URL path? = yes custom url is formed as domain/directory/product (.html)category url is formed as domain/category-name (.html)directory is not the same words as category-name Quote Link to comment Share on other sites More sharing options...
QuotesUK Posted November 23, 2015 Author Share Posted November 23, 2015 kurouto/templates/content.category.php - line 40{if isset($PRODUCTS)} {foreach from=$PRODUCTS item=product}<form action="{$VAL_SELF}" method="post" enctype="application/x-www-form-urlencoded" class="addForm"> classes/gui.class.php - line 203 //Assign common GUI parts $GLOBALS['smarty']->assign('VAL_SELF', currentPage()); Maybe gui.class.php is out of date? - line 13 says... * CubeCart is NOT Open Source. Quote Link to comment Share on other sites More sharing options...
QuotesUK Posted December 10, 2015 Author Share Posted December 10, 2015 bsmither, just wondering if you have any thoughts on how to fix this? Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 10, 2015 Share Posted December 10, 2015 Please send me a PM with your email address. We will need to look deep in the code and verify some things in the database. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.