Jump to content

[Resolved] how do I get rid of an extra, unlinked category page?


Millie Moore

Recommended Posts

No items? But has pagination that suggests there are four pages of products to show? There should be a breadcrumb to this category.

In admin, Categories, click through the list as noted by the breadcrumb list. If a category has sub-categories, that category's name will be a link.

Once you have arrived at a list with the target category, click the Delete icon.

However, CubeCart will do one of two things: deny you the ability to delete this category because this category has products that has assigned this category as their main category or this category has sub-categories, or will re-assign any such products or sub-categories to the parent category.

Getting back to Category ID number 285... For CC6012, it would be interesting to see if there are dozens of products assigned to this category but those products are disabled, or have zero stock.

Link to comment
Share on other sites

So, you are referring to pagination pages, such as:
/test-category-01.html?page=1
/test-category-01.html?page=2
/test-category-01.html?page=3
/test-category-01.html?page=all

But this pagination page:
/test-category-01.html?page=285
says No products found.

Does your pagination sequence really imply you have at least 285 pages of products that could be shown? How many products are listed for Dream Catchers when you choose View All?

What is telling you that you have 285 of something?

Link to comment
Share on other sites

The skin's config file will say how many products 'perpage' to show. That is, a '12' setting will show up to twelve products per page. With 38 products, that is three full pages and two products remaining to show on the fourth page.

To ask the database to get the third page of products, CubeCart uses the formula 2*12 LIMIT 12, meaning, of the eligible records, start with the 24th record of those eligible records and fetch a total of up to 12 records.

In asking the database for the 285th page, that means, of the eligible records (we now know this to be 38 total), start with the 3408th record of those eligible records and fetch a total of up to 12 records. In this case, the database is not going to return anything.

So, let's focus on the sitemap.

Please copy the relevant lines from the sitemap file that indicates "4 jumping straight to 285".

Link to comment
Share on other sites

<url>
<loc>https://motorhead69.com/shop/dream-catchers.html</loc>
<lastmod>2016-10-24</lastmod>
<changefreq>Daily</changefreq>
<priority>1</priority>
</url>
<url>
<loc>https://motorhead69.com/shop/dream-catchers.html?page=1</loc>
<lastmod>2016-10-24</lastmod>
<changefreq>Daily</changefreq>
<priority>1</priority>
</url>
<url>
<loc>https://motorhead69.com/shop/dream-catchers.html?page=1</loc>
<lastmod>2016-10-24</lastmod>
<changefreq>Daily</changefreq>
<priority>1</priority>
</url>
<url>
<loc>https://motorhead69.com/shop/dream-catchers.html?page=2</loc>
<lastmod>2016-10-24</lastmod>
<changefreq>Daily</changefreq>
<priority>1</priority>
</url>
<url>
<loc>https://motorhead69.com/shop/dream-catchers.html?page=3</loc>
<lastmod>2016-10-24</lastmod>
<changefreq>Daily</changefreq>
<priority>1</priority>
</url>
<url>
<loc>https://motorhead69.com/shop/dream-catchers.html?page=4</loc>
<lastmod>2016-10-24</lastmod>
<changefreq>Daily</changefreq>
<priority>1</priority>
</url>
<url>
<loc>https://motorhead69.com/shop/dream-catchers.html?page=285</loc>
<lastmod>2016-10-24</lastmod>
<changefreq>Daily</changefreq>
<priority>1</priority>
</url>

 

Link to comment
Share on other sites

As best I know, the admin, Maintenance, Rebuild tab, the code that creates a sitemap in CC6012 does not include the changefreq and priority elements. Nor does it create links that would include page numbers.

Therefore, I am thinking that this sitemap output may be from a third-party mod.

If so, which one?

If not, please mention the place from within admin that you are creating the sitemap.

Link to comment
Share on other sites

If this is a general-use tool, then I think that it must request the main page, then start collecting all the links that it finds.

(As opposed to CubeCart's sitemap tool which queries the database.)

I don't know this tool from GoDaddy, but I suspect that something in the code of the tool may be corrupting the ?page=all link. That link would be the natural progression of page=1, page=2, etc. as seen in the pagination series of links.

Link to comment
Share on other sites

Is that link present in the sitemap document?

The skin's config file will say how many products 'perpage' to show. That is, a '12' setting will show up to twelve products per page. With 38 products, that is three full pages and two products remaining to show on the fourth page.

To ask the database to get the third page of products, CubeCart uses the formula 2*12 LIMIT 12, meaning, of the eligible records, start with the 24th record of those eligible records and fetch a total of up to 12 records.

In asking the database for the 285th page, that means, of the eligible records (we now know this to be 38 total), start with the 3408th record of those eligible records and fetch a total of up to 12 records. In this case, the database is not going to return anything.

But that page number is not a reason for CubeCart to reject the URL. That is to say, ?page=any_number_at_all is perfectly acceptable to CubeCart, and any number other than 1, 2, 3, and all will show "No products found".

Link to comment
Share on other sites

CubeCart does not recognize that number as being anything special. The 'key' ("page") and the 'value' ("285") have a relationship.

CubeCart sees that a particular page is wanted, and the page wanted is page number 285. The number 285 is not special in any more or less way than the number 2, or the number 27594.

We must stop and realize that we do not yet know for certain what code came up with page number 285. (I want to attribute that to a defect in the code of the googlesitemap plugin for e107, but that's just a guess.)

CubeCart doesn't care what page you want. If you know that a Zebra Dreamcatcher would be on the last page, then it would be the last page of the catalogue you would directly ask for. But not a page beyond that.

CubeCart could, if so coded, reveal that you asked for a page number outside the range of page numbers that would actually show products. The response could be something like, "That page number is beyond the total number of pages of our catalogue." But as it is, you get the same response as searching for a Cellphone Dreamcatcher. "No products found."

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...