web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Increase Product Quant...
Power Apps
Answered

Increase Product Quantity with button

(0) ShareShare
ReportReport
Posted on by 15

Hi all,

 

I've been following this link on building a shopping cart; Build A Shopping Cart In Power Apps (matthewdevaney.com)


I've got to the part on, Increase The Product Quantity In A Shopping Cart

But the code doesn't work for me and I don't know what how to fix this issue, I'm new to PowerApps, so any help will be much appreciated!

Thank you.

Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

    hey @Udlooc 

     

    can you please share the code that you are using and the exact error message u recieve?thanks in advance, please copy paste your code here

  • Udlooc Profile Picture
    15 on at

    Hi, I thought it would have been easier to the link I was using as a template in my main post.

     

    Code below:

     

    If(
         IsBlank(LookUp(colOrderItems, ProductID = ThisItem.ID)),

         Collect(
              colOrderItems,
              {
                        ProductID: ThisItem.ID,
                        Title: ThisItem.Title,
                        Quantity: 1,
                        PricePer: ThisItem.Price
              }
         ),

         Patch(

              colOrderItems,
              LookUp(colOrderItems, ProductID = ThisItem.ID),
              {
                   ProductID: ThisItem.ID,
                   Title: ThisItem.Title,
                   Quantity: LookUp(colOrderItems, ProductID = ThisItem.ID, Quantity)+1
              }
         )
    );

    Reset(txt_Number)

     

     

  • Verified answer
    Udlooc Profile Picture
    15 on at

    I figured it out, I missed an entry!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard