Welcome to Mediachase Community Sign in | Join | Help    
in Search   

Add to cart from product list ?

Last post Fri, Sep 26 2008, 3:46 PM by truthbrother. 4 replies.
Sort Posts: Previous Next
  •  Wed, Sep 24 2008, 6:39 AM 10357

    Add to cart from product list ?

    Hello,

    Is it possible to add the PurchaseModule.ascx on the product list ? Or what is the best approach to create a link with "Add to cart" in the product list ?

    Because i tried to add the control and it throws an error in the "BindLabels" method.

    I'm using ECF 4.1.2.

    Thanks,
    Victor
  •  Wed, Sep 24 2008, 6:47 AM 10358 in reply to 10357

    Re: Add to cart from product list ?

    [NullReferenceException: Object reference not set to an instance of an object.]
    Mediachase.eCF.PublicStore.SharedModules.PurchaseModule.BindLabels() +803
    Mediachase.eCF.PublicStore.SharedModules.PurchaseModule.Page_Load(Object sender, EventArgs e) +223
    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
    System.Web.UI.Control.OnLoad(EventArgs e) +99
    System.Web.UI.Control.LoadRecursive() +47
    System.Web.UI.Control.LoadRecursive() +131
    System.Web.UI.Control.LoadRecursive() +131
    System.Web.UI.Control.LoadRecursive() +131
    System.Web.UI.Control.LoadRecursive() +131
    System.Web.UI.Control.LoadRecursive() +131
    System.Web.UI.Control.LoadRecursive() +131
    System.Web.UI.Control.LoadRecursive() +131
    System.Web.UI.Control.LoadRecursive() +131
    System.Web.UI.Control.LoadRecursive() +131
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436
  •  Thu, Sep 25 2008, 2:38 AM 10361 in reply to 10358

    Re: Add to cart from product list ?

    To add SKU to a cart it's possible by the following url: ClientHelper.FormatUrl("purchase", false, strIds, "false") where strIds is a key collection of such format "{SkuId}_{Quantity};".

    Ex. ~/Basket/Purchase.aspx?cartmode=false&skus=276_1

    Alexey,
    Mediachase

     

  •  Fri, Sep 26 2008, 2:49 PM 10368 in reply to 10361

    Re: Add to cart from product list ?

    Thanks, it works now.
  •  Fri, Sep 26 2008, 3:46 PM 10370 in reply to 10368

    Re: Add to cart from product list ?

    Great, I am glad that you got the help you needed.

    Mediachase Software
View as RSS news feed in XML
Site Terms | Privacy Policy | About Us | Contact Us
Running on Mediachase eCommerce Framework 4.0.
  Copyright © Mediachase, LTD. 1997-2006. All Rights Reserved

E-commerce, HelpDesk, Service Desk & Project Management Software, alternatives to Microsoft Project Server & Sharepoint Collaboration Server
project management software | microsoft project server | sharepoint collaboration server | issues management, helpdesk & service desk
Powered by Community Server, by Telligent Systems