All Questions
15 questions
2
votes
1
answer
315
views
Duplicate cart items
community!
Bumped into an issue - duplicate items in a cart.
In the quote table, I have multiple quotes for the same customer. Items_count is increased like an exponent, eg 2, 3, 6, 178, 192. In the ...
1
vote
0
answers
103
views
Magento 2 - Empty Cart and Quote behaviour
When the session quote has no visible items should it be set as inactive or still kept as active?
Does anyone know how to do it? Thanks in advance.
0
votes
1
answer
849
views
Get Last Added Product ID of Cart without using checkout session
I am using RESTful APIs of Magento and I want to get the last added product id of in the cart. All of my searches are using the Checkout Session method of Magento which is
$this->checkoutSession-&...
0
votes
1
answer
427
views
How to get quote details in helper
I want to see if there is anything exists in the cart if I am in a phtml page
I have tried to use session and cart but I am getting null
When I tried to use session I wasn’t sure how to get the ...
1
vote
1
answer
1k
views
Magento 2 Remove cart content when user log-out | Empty cart when logged back in
Correct me if I'm wrong, but completely removing the cart content on customer log-out is not native to Magento 2 is it?
I read about the "Persistent cart" but it seems to work only for removing the ...
1
vote
1
answer
318
views
how can we access customer session in checkout
I have one special field called some_id in customer data and I want to save the some_id and quote_id in database.
I am using sales_quote_save_afterevent to save both ids. But my customer session is ...
0
votes
0
answers
278
views
Magento 2.3: get cart items inside the cron file
I want to get current quote data for cronjob in cron/run.php But my code it's not working.
Magento2 version is CE 2.2.6. Here is my code
<?php
namespace ABC\Abandon\Cron;
use \Psr\Log\...
1
vote
0
answers
74
views
Magento Quote Duplicate value coming
I just need to find the categories of item in cart.
For that I've used:
class MageCustom_ShippingFilter_Model_Shipping extends Mage_Shipping_Model_Shipping
{
public function collectCarrierRates($...
9
votes
3
answers
2k
views
Disable cart sharing between different Stores of website in Magento 2?
My website is with Three different Stores and I'd like to disable the cart sharing feature between stores. So when I switch from one store to the other store, the product in my cart shouldn't be valid ...
1
vote
1
answer
2k
views
Set only last added product in the quote
In my website i have bounded the user to only add one product into the cart , however from the session quote object it loads multiple products. How can i restrict quote object to show only last added ...
1
vote
1
answer
941
views
Magento 2 where session data is stored (see example)
I'm trying to figure out how magento is hiding quote ids on client side
I've checked quote mask ids table, but this id is not there, so leaves me to guess its in session data "jQuery.localStorage.get('...
2
votes
1
answer
6k
views
Magento 2: How to add extra variable in session for Cart
I already referred
How to Set, Retrieve and Unset Session Variables in Magento 2?
When a user clicks on "Add To Cart" button. I would like to Add One Additional Variable in Cart Quote Session.
How ...
1
vote
1
answer
1k
views
How to reinitialize cart/quote after a checkout?
When a user checks out, the quote is becoming null, and the ID becomes 0.
This is causing a problem because the next time I'm calling
cart = Mage::getSingleton('checkout/cart');
and using the cart ...
1
vote
1
answer
57
views
Cart clears after changing email
I am customizing Magento's native one page checkout (ee 1.13). We have been modifying it so that customers could order without authentication (but without guests orders).
I'm having an issue with ...
0
votes
1
answer
2k
views
problem unsetting quote (cart), data is not saved
I need to save quoteId and unset quote (cart) data in session clicking a button when I'm is in the cart, then after performing other operations (for example, I buy some items) I would like to click ...