Questions tagged [cart]

A web cart or online shopping cart is a web app used to shop online. **For questions related to CART -- Classification and Regression Trees -- use the tag [cart-analysis], or consider whether the topic is more appropriate for Cross Validated or Data Science Stack Exchange**

3190 questions
1
vote
0 answers

Cannot add item to cart when viewing item, but can from directory page

Using magento, I customers cannot add items to cart when viewing that item. However, when in the directory page that lists multiple items the "add to cart" button is there, and that works fine. Shopping cart works fine all the way to end. This is…
Cadiero
  • 11
  • 3
1
vote
2 answers

change the subtotal dynamically when the quantity changes in shopping cart

I just want the javascript code to achieve this simple thing. The subtotal price should be changed according to the quantity the user changes. If the price is 1000 and the quantity is changed to 2 the subtotal should be 2000. Here is My code…
sathyadev
  • 43
  • 2
  • 7
1
vote
2 answers

Limit php cart items to 1 seller ID at a time?

I have a fully functional cart, programmed with PHP that uses session cookies. My site will host items from multiple sellers and to avoid getting into PayPal parallel payments (just now) I need to be able to limit each session to items from 1 seller…
1
vote
0 answers

minicart js - applying discount when buying multiple items

I have implemented minicart js into my website, and I can add items to the cart and it works properly. What I would like to do, is say when a user adds 2 items at a particular price (say 11.99) it will discount it down to 20. I know there is a…
user2757842
  • 651
  • 1
  • 11
  • 24
1
vote
2 answers

Magento adding configurable product to cart programmatically

I'm trying to add a configurable product to the cart, but while it's not throwing any Exceptions, the cart is still empty. I've used this code before without problems, so I'm not sure if it's something to do with the version of Magento I'm…
Liam Wiltshire
  • 1,254
  • 13
  • 26
1
vote
1 answer

Create a constant session in Meteor javascript

I am building web store using Meteor and having issues with adding items to my cart. Right now, each cart is uniquely identified by a Session ID. However, if I have two browser tabs open, each tab will have its own Session ID. Therefore, is there a…
Trung Tran
  • 13,141
  • 42
  • 113
  • 200
1
vote
1 answer

cart with custom icon with number text android

I have cart icon which looks customized, I want to show the number in the white space of the icon what alignment attribute should I use ? I tried with padding but double digit number looks ugly
karthik kolanji
  • 2,044
  • 5
  • 20
  • 56
1
vote
1 answer

How to get the cart items from magento soap api

I have created a soap client Api for magento, my requirement is to get the current user shopping cart added items. How can i get this? $host = "localhost/magformers_theme/index.php"; //our online shop url $client = new…
Naveenbos
  • 2,532
  • 3
  • 34
  • 60
1
vote
5 answers

I Need to add items to array, not replace them

I have a little script system. It replaces the array but I need it to add to the array. This is what I have: $_SESSION['cart']=array(); // Declaring session array array_push($_SESSION['cart'],'item1'); // Item added to cart If after this I…
Max Underbed
  • 55
  • 1
  • 7
1
vote
1 answer

Custom Cart icon with count for android

I have to show a cart icon with count which is customized image I worked with normal images for the cart, but didn't have idea about the customized images I have this image I have to show this cart icon with count like this Do I have to make…
karthik kolanji
  • 2,044
  • 5
  • 20
  • 56
1
vote
1 answer

How to add a custom product to magento cart - Please explain these options

Can someone please explain how to properly configure and where to get the ID's, names, options, etc of this code? I've been searching but other questions only leads to the solution of some mistake, but I need first to know where to get the numbers…
William
  • 1,010
  • 3
  • 21
  • 39
1
vote
2 answers

Add a class to div if a product is in the cart

Is it possible to see if an item is already in the cart and add a class to div on the product page? I was hoping something like: {% for line_item in cart.items %} {% if line_item.title = product.title %} {% assign incart = "in-cart"…
Stuart Robson
  • 1,149
  • 4
  • 22
  • 42
1
vote
1 answer

prestashop: adding a product to cart, with custom fields

Good day all. I'm developing a module for prestashop, in which the user choose some settings, and then it is possible to save these settings and add a custom product to cart, using them as values for custom fields. I've added a new product, with 7…
Matteo Bononi 'peorthyr'
  • 2,170
  • 8
  • 46
  • 95
1
vote
2 answers

Magento adding multiple configurable product variations adding first one multiple times

I'm trying to add multiple variations of a configurable product to the cart at once, and I've put the code together, but currently it's adding the right qty of products, but only using the first variation. In other words, if I try to add 2 Green…
Liam Wiltshire
  • 1,254
  • 13
  • 26
1
vote
2 answers

PHP - Add to cart button adds blanks to database

In a webshop browsing page I am trying to make an "Add to cart" button, but when the button is pressed an empty field (containing only zeros in all rows) is just inserted in to the table "cart_items". I would like the addtocart.php to insert all…
Jens K
  • 11
  • 1
1 2 3
99
100