KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: RustyX on April 24, 2014, 08:57:52 pm

Title: Deeplink to product by SKU
Post by: RustyX on April 24, 2014, 08:57:52 pm
Is it possible to deeplink to a product without knowing its sequence number in the products table, e.g. by sku?
Title: Re: Deeplink to product by SKU
Post by: ryan on April 25, 2014, 10:23:30 am
You can get a product by SKU if that's what you're asking.
Title: Re: Deeplink to product by SKU
Post by: RustyX on April 30, 2014, 04:00:54 pm
I need to generate a link from outside Konakart into a Konakart's product page knowing only the product SKU. Thus without going thru Konakart search features.
Title: Re: Deeplink to product by SKU
Post by: ryan on May 01, 2014, 05:08:31 pm
All you need to do is to create an action class very similar to ShowProductDetailsAction.jsp where you pass it the SKU rather than the product id. The action class can use the getProductPerSku() API call to get the product.