Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Add product having different sizes View modes: 
User avatar
Member
Member
eng.rupalikulkarni-gmail - 9/19/2012 10:41:11 AM
   
Add product having different sizes
Hi,

I want to add products to kentico v6 having different sizes and different prices, I have added all sizes as options..
But when i add perticular product to shopping cart , It shows 2 lines .. top line contains editing portion and bottom line does have ordered product with price..

I want to have only one line in there with products selected size and price..

Is there any way to accomplish this?


Thanks!

User avatar
Member
Member
kentico_edwardh - 9/19/2012 11:16:57 AM
   
RE:Add product having different sizes
Hello Erick,

You would need to remove the record from ShoppingCartContentTable (standard DataTable object) in EvaluateShoppingCartContent method in CustomShoppingCartInfoProvider class while using custom e-commerce providers as described here:

http://devnet.kentico.com/docs/6_0/devguide/index.html?custom_providers_overview.htm

This is the DataTable that is assigned to DataSource property of GridView control on which you are looking in ~\CMSModules\Ecommerce\Controls\ShoppingCart\ShoppingCartContent.ascx.cs file:

gridData.DataSource = ShoppingCartInfoObj.ContentTable;

Best Regards,
Edward Hillard

User avatar
Member
Member
eng.rupalikulkarni-gmail - 9/20/2012 9:45:47 AM
   
RE:Add product having different sizes
Hi,

Thank you very much for your reply.. It worked..

If we want to do it without options for different sizes of products , Can you please suggest is there any other way to accomplish this?


Thanks!

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 9/21/2012 9:30:38 AM
   
RE:Add product having different sizes
Hi,

Do you mean to sell different sizes (i.e. from the merchant point - to have information which size of some type of product should be billed-invoiced and shipped) without setting the product options?

In case you sell many different sizes, or even custom sizes, the options may not be suitable for easy management. In that case (and if above is your aim), you could store the information about the size into the ShoppingCartItemInfo.CartItemCustomData property.
That data are automatically copied to the OrderItemInfo.OrderItemCustomData when the Order is made, so you can work with the stored sizes from within an Order as well.
The most customization will be needed in displaying the information and in the calculations, but it should be possible using the current versions customization possibilities.

Should you need any additional details, please feel free to ask.

Regards,
Zdenek

User avatar
Member
Member
AndyZhur-mail - 9/21/2012 7:00:21 AM
   
RE:Add product having different sizes
Hello Edward,

Subscribe to the issue.

How in your opinion the best to do much of one type of goods, which vary only in size and price?

The more difficult question of how to use options to such токарам, if the price of the options is measured with the size?

Can you please tell me where i can find the code example for it ?

I mean in which file i am suppose to change the code as you specified it should be at ShoppingCartItemInfo.CartItemCustomData.

Thanks!

Sorry for my English.

Best Regards,
Andy Zhuravlev

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 9/23/2012 9:11:04 AM
   
RE:Add product having different sizes
Hi,

this seems to be a default functionality. You can define product options and define for each a different price. Until now you do not need to customize anything.

You can define product options in the CMS Desk - E-commerce - Product options.

Best regards,
Ivana Tomanickova.

User avatar
Member
Member
eng.rupalikulkarni-gmail - 9/24/2012 10:23:21 AM
   
RE:Add product having different sizes
Hi,

Default functionality with options adding 2 lines to the shopping cart, When i click on AddToCart
button.

I want to show only one line in there, Specifying product name with its size, And don't want basic price of product into a Total price

Can anyone please help me to achieve this?


Thanks!

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 10/8/2012 8:08:13 AM
   
RE:Add product having different sizes
Hi,

This is the current design how to achieve variable products easily using e-commerce solution configuration options. The idea is to inform the customer correctly.

If you wish to have only a single line for specifically sized product , you could either use separate products (one product per one size), not the product options, or you could modify the code to merge the lines of the ShoppingCartContentTable in the ShoppingCartInfoProvider, however this won't be an easy solution. There are no general customization instructions for this task. We would need detailed information about how it should look like to discuss the customization possibilities here.

Regards,
Zdenek