All Questions

Tagged with
Filter by
Sorted by
Tagged with
1
vote
0answers
49 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 ...
0
votes
2answers
139 views

How to add quote to customer in magento2

I want to set custom pricing for magento2 product through API . I googled for the same and tried to implement the solutions one by one. But no solution is worked out. $cartId = $this->...
1
vote
1answer
509 views

Magento 2 : How to update Quote Customer?

I want to move all cart items of a current customer with another customer(move all cart items to another customer cart items). In other words, I want to share One Customer Cart items with another ...
0
votes
1answer
403 views

Magento 2 : Custom quote column value not copied on quote merge

I have created a custom column named 'campaign_id' through UpgradeSchema in quote table as below. $installer->getConnection()->addColumn( $installer->getTable('quote'), '...
0
votes
0answers
32 views

URGENT || Clear Order IDs

We have recently suffered issues on our Magento 2.1.8 store which has resulted in our customers not being able to place any orders. We think this issue has now been fixed, however some customers who ...
1
vote
1answer
382 views

Magento 2 CityId does not have corresponding setter?

I have created an customer address attribute city_id while i am trying to add this attribute in the below following REST APis Getting bellow error. Property "CityId" does not have corresponding ...
1
vote
0answers
370 views

Magento 2: address custom attribute, from Order entity to Account entity

I've added a custom attribute to checkout: added column in 'quote' and 'sales_oreder' tables plugin for Magento\Checkout\Block\Checkout\LayoutProcessor plugin for Magento\Checkout\Model\...
1
vote
1answer
767 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 ...
0
votes
1answer
699 views

How to get the order items and quote items whenever create order from admin panel?

I would like to get the items that added via admin panel in the order page. I have created the observer to listen to Create New Order button event like this : public function execute(Observer $...
1
vote
0answers
265 views

Why sales_order_item and quote_item being populated with configurable and simple product?

Whenever I created the product item I always found that the sales_order_item is populated with two rows for each product for example : select quote_item_id,expected_delivery_time, sku,product_type ...
1
vote
0answers
131 views

Get latest quote data by customer id or e-mail

I want to retrieve the latest quote and quote items that hasn't been checked out only by using customer id or customer e-mail, is there a way to do this?
3
votes
1answer
1k views

Why are quotes not converted to is_active=0 after checkout? M1/M2

When looking at sales_flat_quote (M1) or quote (M2) table, there are many quotes stuck at is_active=1. Even though there is a sale in sales_flat_order / sales_order. This does not seem to have a ...
1
vote
1answer
131 views

cannot create plugin for PaymentInformationManagement

I'm trying to create plugin for Magento/Checkout/Model/PaymentInformationManagement class When I'm placing the order, the program stops after constructor in my plugin class. Here is /etc/di.xml <...
7
votes
2answers
4k views

Update custom column data in quote table Magento 2

I inserted a custom column in quote table like this: if (version_compare($context->getVersion(), '1.0.1', '<')) { $setup->getConnection()->addColumn( $setup->...
0
votes
0answers
329 views

Order Total and Order Item issue when creating order magento 2

I am using the following to create an order in magento 2. Basically I have to shift data from a custom made eCommerce site to magento 2. protected function createRealOrder($singleOrder, $tempOrder, $...
1
vote
2answers
889 views

Saving a Quote Since Save() is Deprecated

I have created a new attribute for quotes and orders in Magento 2.1.5. I have an observer that sets the value for this attribute based on a session variable (indentOrder). The code I have is working:...
0
votes
1answer
1k views

Magento 2 : How Can I Update Quote Total

I am creating functionality for additional donation. I am trying to add donation amount in quote total but it will not reflect. This my code portion of that part : <?php namespace ...
0
votes
0answers
67 views

Customize Total Section In Magento 2.1

How can I customise the Total calculation so that it will calculate only the price of certain products with some specific attribute value? I tried by re-creating Magento/Quote/Model/Quote/Address/...
3
votes
2answers
421 views

Change estimate shipping country programatically

I want to change the country in estimate shipping (cart page) programatically in my module (meaning user clicks on a button in footer on homepage and I change the shipping country on cart page for ...
2
votes
1answer
3k views

Magento 2 - Having trouble collecting totals for a custom gift card module

I'm in the process of adding support for a 3rd party gift card system. These cards will not exist in any way within the context of Magento, and an external web based API will validate/confirm balance/...
2
votes
0answers
744 views

Load customer Quote Error in magento 2.1 EE

Once the customer is logged in or creating account, Load Customer Quote Error is getting. Can you please help me solve this ? Thank you
4
votes
1answer
414 views

Quote: getOrigOrderId vs. getReservedOrderId

Considering the class Magento\Quote\Model\Quote: What is the difference between the following two methods: getOrigOrderId getReservedOrderId Thanks .......................................................
3
votes
0answers
512 views

Fetching simple product data from a quote item, based on a configurable product

In my module I want to do some things if a product in the cart has a custom attribute 'servicepack'. So by using the /etc/catalog_attributes.xml I exposed the property <?xml version="1.0"?> &...
4
votes
1answer
2k views

Magento 2 Restore Quote/Cart after order is cancelled/Failed

I am Trying to Restore Quote/Cart after order is cancelled/Failed in custom payment gateway (CCAvenue) but the problem it the quantity of item restored is doubled. protected function _cancelPayment($...
10
votes
1answer
922 views

Multiple Cart or Split Quote in Magento2

I want to show two cart for normal products and vendor products. I don't think it possible to create multiple cart either by splitting quote or creating multiple quote. Because Magento 2 separate ...
1
vote
1answer
5k views

Magento 2 : How to Update cart after cart update event (checkout_cart_update_items_after)

I am trying tho again update cart after update cart action(when cart qty is updated from cart page Or from miniCart) and change the qty if some cases $mappedProductSkus= $this->_helperData->...
1
vote
0answers
3k views

Update shipping address programmatically in magento 2?

Basically the store have 4 currency and when user change currency the default shipping country should be updated. Example USD - shipping country USA GBP - shipping country UK EUR - shipping country ...