PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 8/25/2021 7:37 AM by  FillipYang
Which function is using to remove item from the cart
 2 Replies
 0 Subscribed to this topic
 1 Subscribed to this forum
Sort:
You are not authorized to post a reply.
Author Messages





Basic Member






--
6/14/2020 4:39 PM
    I want to reduce the quantity and remove the item from the cart through the serverside script. Can you please inform me which class and method fulfils this requirement





    Basic Member






    --
    6/14/2020 6:35 PM
    Hi i got the way to update the cart

    // create a reference to the Hotcakes store
    var HccApp = HccAppHelper.InitHccApp();
    // get an instance of the product to add
    var p = HccApp.CatalogServices.Products.Find(bvin);
    // create a reference to the current shopping cart
    Order currentCart = HccApp.OrderServices.EnsureShoppingCart();
    try
    {
    foreach (LineItem lineItem in currentCart.Items)
    {
    if (lineItem.ProductId.ToString() == bvin.ToString())
    {
    if (Convert.ToInt32(qty) == 0)
    {
    currentCart.Items.Remove(lineItem);
    HccApp.CalculateOrderAndSave(currentCart);
    }
    else
    {
    lineItem.Quantity = lineItem.Quantity - 1;
    HccApp.CalculateOrderAndSave(currentCart);
    }
    }
    }

    }
    catch
    {

    }








    New Member






    --
    8/25/2021 7:37 AM
    I got similar question, did you already know all required information?Bulgaria has consistently been notable for its great IT subject matter experts and over the years it managed to become quite possibly the most popular spots for IT organizations, all things considered, to outsource their errands at. Nowadays Bulgarian programmers are offering various services, starting from software development and ending with business processes outsourcing (BPO).These days Bulgaria programming services are marginally moving from outsourcing to more intricate software development undertakings which profoundly impacts a country's economy emphatically. According to the most recent reports, the IT sector is perhaps the main ones in Bulgaria's economy and every year attracts colossal measures of cash to it. Most Bulgarian IT organizations are offering their services abroad and are outsourcing-oriented. Due to this reality, IT nearshoring Bulgaria turned out to be widely known among foreign customers. Currently, there are over 65,000 experts who are working in this industry which makes Bulgaria outsourcing destination perhaps the best one in terms of ability accessibility. According to a similar source, Bulgarian high education inside the sector is additionally very immense and includes over 53 profile universities.Outsourcing organizations in Bulgaria are at their pinnacle of popularity nowadays. More than simply that, Bulgarian developers are featured on the A.T. Kearney Global Services Location Index among the first 15 countries, which is pretty impressive and indicates the significant level of the IT industry development in the country.Just a couple of years prior Bulgaria was likewise ranked as the solitary country, located in Europe, that made it to the rundown of the Top 10 outsourcing destinations in the world. Likewise, according to this source, Bulgarian developers are among the very best in the world.What fixes things such that popular and in demand for outsourcing? First of all, it is its advantageous area, which makes it really near the fundamental European countries. This implies easier correspondence, similarities in culture and traditions, a similar attitude towards business and numerous other advantages. The to wrap things up advantage is great Internet association speed in this country as according to Ookla's Global Index once upon a time Bulgaria was among the first 30 countries with the quickest Internet connection.Having considered all that, it ends up being undeniable, that Bulgaria is a great spot for nearshoring practices too. It is particularly relevant for European countries, as there won't be numerous differences in the method of conducting business or language barriers for the only things that are important. That is the reason for some Bulgarian IT organizations to provide outsourcing and particularly nearshoring services these days, read more information here https://mobilunity.com/bl...lopers-or-ukrainian/ .Due to the enormous rise in popularity of the outsourcing practices any Bulgaria software organization is getting huge loads of customers nowadays. Today a Bulgarian software organization can without much of a stretch make a contest for an outsourcing organization Poland. As we discussed previously, there are nearly 250 organizations that provide such services on this current country's territory.One of the greatest advantages of outsourcing to Bulgarian organizations is the size of assessments that one would need to pay for doing such business there. Bulgaria is the second country in Europe that has such low assessments, according to the furthest down the line research.Due to the multilingualism of Bulgarian developers, their professional attitude towards their positions and every one of the necessary certifications – this country is outstanding amongst other outsourcing destinations now. To certain organizations' perspective, even Hungary outsourcing slacks behind.Speaking of abilities of Bulgarian developers, you can be sure, that they have every one of the necessary ones to perform at the very pinnacle of their capacities while working on your project.
    You are not authorized to post a reply.


    Loading
    • Sign-up for the Hotcakes Community Newsletter: