kentico_borisp
-
8/1/2012 6:26:12 AM
RE:Creating something slightly different with e-commerce
Hello,
If you want to change the functionality of the buy button, then you can either change the default one available in the system, or you can create a custom user control, which would redirect the user to the W2B page. The default control is located in:
\CMSModules\Ecommerce\Controls\ProductOptions\ShoppingCartItemSelector.ascx.cs
I would recommend you to create a custom control, because your scenario doesn't require a lot of functionality, which is by default available in this control. The control can be registered then in the transformation, rendering the product overview. You can then redirect the user with for example a custom query in the URL to a dynamic page, which would dynamically fetch the data associated with the given SKU from the database. The custom data, such as seller location, name...etc can be either saved in a custom table a link to a SKU with the SKUID for example, or you can save the data directly to the SKU. Additional custom columns can be added through the UI in SiteManager / Development / System tables / <select one> / Fields / New attribute. If you need any details on something, please let me know and I will try to point you into the right direction.
Best regards, Boris Pocatko
|