Displaying Products in CS 2000
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Commerce Server General > Displaying Products in CS 2000




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Displaying Products in CS 2000  
CPragash


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-08-04 01:47 AM

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





[ Post a follow-up to this message ]



    RE: Displaying Products in CS 2000  
Vinayak Tadas[MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-09-04 10: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






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:59 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register