Skip to main content

Questions tagged [cart]

1 vote
1 answer
97 views

I'm looking for the best way to add a 'Send Cart Link' button to the Order entry view in Commerce 4/Craft 4. Currently the 'Share Cart' link is behind the cog in the top right of the order view. This ...
Rob Hodges's user avatar
1 vote
1 answer
114 views

I have read in the Commerce documentation that natively, commerce doesn't display any errors when a false coupon is being entered. Did I understand the docs correctly or is there any why to achieve ...
LessMore Creative Studio's user avatar
1 vote
2 answers
284 views

Have been trying to get cart updates via ajax. I've looked at this answer: 'https://craftcms.stackexchange.com/questions/17347/update-commerce-cart-using-ajax' My cart seem to update ok but I can't ...
DieselHashtag's user avatar
1 vote
1 answer
153 views

I wrote a function to sort / re-order the line items in a cart. function sortCart(Order $order) { $lineItems = $order->getLineItems(); $lineItemsOrdered = array(); // [...] $order-...
kindoflike's user avatar
0 votes
0 answers
174 views

I want to set a custom field on shopping cart when I first retrieve it. https://craftcms.com/docs/commerce/4.x/extend/events.html#modifycartinfo sounds appropriate so I tried doing this: Event::on( ...
kindoflike's user avatar
1 vote
1 answer
705 views

I am building a onepagecheckout for craft commerce 3. I created a custom controller to submit cart and payment info in one form submit. I'll call the default updateCart action with a curl request and ...
Maarten Heideman's user avatar
0 votes
0 answers
57 views

Sometimes, the cart gets added without the id as below. Any ideas, please? (Craft Commerce version is 2.2.19)
Priya's user avatar
  • 1
1 vote
1 answer
257 views

Is there anyway to remove all the discounts if cart becomes empty?
Bhashkar Yadav's user avatar
1 vote
1 answer
261 views

I'm having an issue with addresses on Craft Commerce 3 (specifically the State field). When a new customer adds an address, the State field defaults to a text field (not the expected Select field). If ...
Chris H.'s user avatar
1 vote
1 answer
168 views

I have an issue where sales and sale pricing seem not to be present in the cart. This is on an ecommerce flow where this was previously all working but I had moved onto other dev work on this site for ...
Mike's user avatar
  • 719