Commerce Server General - Displaying Products in CS 2000

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > September 2004 > Displaying Products in CS 2000





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Displaying Products in CS 2000
CPragash

2004-09-07, 8:47 pm

Hello All,

I'm trying to display and page the products within the sub-categories
of a category. When a user clicks on the category (no products at the
this level) which has some sub categories, CS 2000 only displays links
to the three sub categories. I need to display the links but display
and page the products as it usually does when a user clicks on the sub
category. The paging seems to a tricky part here...has anybody tried
this before...if so could any guidance or code samples would be great
help.

Thanks for the time and effort in advance.

Regards,
Chris
Vinayak Tadas[MSFT]

2004-09-09, 5:52 pm

CS2000 has limited support for paging compared to CS2002
However if you want to page the products under a category you can call the
Category.Products method and pass the starting record and recordtoretrieve
parameter
The code will be something like
Set oCatalogManager = CreateObject("Commerce.CatalogManager")
Set productCatalog = oCatalogManager.GetCatalog("Catalogname")
Set oCategory = productCatalog.GetCategory("Category")
' Get 20 products starting from the 20th product. 12 stands for
return products and product families
Set oRsProducts = oCategory.Products(12,20,20)
--------------------
From: chrispragash@hotmail.com (CPragash)
Newsgroups: microsoft.public.commerceserver.general
Subject: Displaying Products in CS 2000
Date: 7 Sep 2004 19:50:59 -0700
Organization: http://groups.google.com
Lines: 15
Message-ID: <79c9faae.0409071850.a0e8ac0@posting.google.com>
NNTP-Posting-Host: 216.237.226.147
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1094611860 6341 127.0.0.1 (8 Sep 2004 02:51:00
GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 8 Sep 2004 02:51:00 +0000 (UTC)
Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.s
ul.t-online.de!t-online.de!news.glorb.com!postnews2.google.com!not-for-mail
Xref: cpmsftngxa10.phx.gbl microsoft.public.commerceserver.general:14722
X-Tomcat-NG: microsoft.public.commerceserver.general

Hello All,

I'm trying to display and page the products within the sub-categories
of a category. When a user clicks on the category (no products at the
this level) which has some sub categories, CS 2000 only displays links
to the three sub categories. I need to display the links but display
and page the products as it usually does when a user clicks on the sub
category. The paging seems to a tricky part here...has anybody tried
this before...if so could any guidance or code samples would be great
help.

Thanks for the time and effort in advance.

Regards,
Chris


Thanks
Vinayak Tadas
Microsoft
http://blogs.msdn.com/vinayakt

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2002 Microsoft Corporation. All rights
reserved.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Get Secure! For more info visit http://www.microsoft.com/security. Please
reply to the newsgroups only. Thanks

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com