I’m trying to have a shopping cart type pop-up appear on the right side of my screen whenever I add something to the cart.
I have a repeater that stores all the possible items in my store, and then I just filter them by what’s in the cart.
I basically have my “add to cart” button save the ID of that item as a variable, then I edit the row containing that item to store a 1 in the “InCart” column.
I’m having two types of weird behaviour.
- I can’t get the cart panel to display at the right side of the screen. I don’t want to pin to browser because I don’t want that scrolling behaviour. I’ve tried just doing “move: x=window.width - this.width” or things along those lines but that’s not working. I think it’s because the width of that panel changes depending on the screen size.
- When I apply the filter, I get this WEIRD artifact at the bottom of the repeater. I have no idea why this happens. It doesn’t go away when I close and open the cart panel, and it doesn’t go away with scrolling and is persistent across all screen sizes.