Hidden items remaining in cart and checkout after being removed – Magento 1.9

We seem to be having a weird issue after we switched back to our Magento 1.9 store with the cart having multiple items in the cart even after the cart and cached has been cleared.

To give a bit of back story, we built a new Magento 2 store on a different hosting box and switched all operations over to the new store only to find out that it wouldn’t work after all. We then switched back to our Magento 1.9 store until we can work out the bugs with Mag 2. Ever since we switched back to our Magento 1 store there seems to be an issue where items are remaining hidden in the cart even after the items have been removed and the sales_flat_quote and sales_flat_quote_item DB tables have been emptied.

I have attached a couple of screenshots showing a single $ 19 item in the cart but the subtotal is showing $ 38. It doesn’t seem to be doubling the price but pulling an old item that may have previously been added to the cart.

I tried installing an extension that removed items from the cart when if the customer has added them before logging in but that didn’t seem to help.

Any ideas what may be causing this?

In Checkout

In Cart

How to add additional custom price at the time of adding the product into cart in Magento 2?

I am using Magento 2.3.0

I have groped products on my website and all associated products of the grouped products are having tier prices and I displayed these tier prices in the product page in the front end. I have one custom price called “retail tag price” and the price is $ 0.20 and I have displayed a checkbox for this price for each associated product in the product page. please refer below screenshot that’s how I displayed all the products and price in the product page.

enter image description here

When I check the checkbox for the perticular product(e.g. Test product 1) then it will add price 0.20 with the product’s particular price. For ex. when customer select 2 quantity and check the checkbox for the Test product 1 then the price will be $ 2.49 + 0.20 = $ 2.69 so, the product will be added to the cart with the price 2.69. So, how can I do this? Do I have to create checkout_cart_product_add_after event for this?

Add Product to cart with required Options is impossible

I added a required customizable option (not sure about the name in English, in French it’s “Option personnalisable”).

On front, there is no problem until you try to add the product to the cart. At this moment it’s printing you this message :

“The product’s required option(s) weren’t entered. Make sure the options are entered and try again.”

I tryed to get where the problem was happening in the code, and I found the place where the error was triggered : vendor/magento/module-catalog/Model/Product/Option/Type/DefaultType.php l216. When I tried to print getttype($ value), it gave me a “null”.

I tried to go further in the core, but cannot find were the bug is happening.

Do you have any idea how I can resolve this error ?

Feel free to ask for more details Thank you

Magento 2 Exception is not working on compare add to cart

I am using the following to throw the exception it is working for me to add to cart prevent.

use Magento\Framework\Exception\StateException; use Magento\Framework\Exception\LocalizedException; 

But when I am trying to add to cart from compare page. page redirect to following.

customer/section/load/?sections=&update_section_id=false&_=1560950834773

How to solve this?

Magento 2 Exception is not working on compare add to cart

I am using the following to throw the exception it is working for me to add to cart prevent.

use Magento\Framework\Exception\StateException; use Magento\Framework\Exception\LocalizedException; 

But when I am trying to add to cart from compare page. page redirect to following.

customer/section/load/?sections=&update_section_id=false&_=1560950834773

How to solve this?

Magento double cart

How to build a Magento double cart by sorting the vendors. one should normal process another one has added a product that is not available from this site. in detail, we build a site with multiple vendors product. if the buyer wants the product from other vendors products should add to the second cart.

Magento 2 add to cart performance issue

In my magento 2 website adding to cart takes about 10 sec. Caching is OK. Redis is configured. Merging/minimizing for CSS/JS is enabled. I’m notised that after first adding item to the cart , adding to cart of this item takes few seconds (Looks like caching), but after 5 minutes it’s takes too much time again. Maybe there is way to redute time or cache “add to cart” for a long time ? Great thanks and sorry for my english.

Coupon code working on checkout/#payment but not working on cart page:Magento2

I am trying to apply coupon code on Magento2 store. I have created normal coupon code (without any condition) When i applied it on cart page it not working give me an error “The Coupon code is invalid” But when i go for checkout then apply it so it work there (same coupon code ).. Please look into below images. not working on cart page

Working on checkout page

Please assist me !!

Split cart rules/discount over multiple lines

I am trying to work out where or how I can get the discounts/cart rules to be applied across multiple lines

eg Current Display

Subtotal: $ xxx.xx

Discount (Free Shipping, Applied Coupon Code WELCOME10, Spend more, get more) -$ xx.xx

Preferred Display

Subtotal: $ xxx.xx

Discount(Free Shipping) -$ xx.xx

Discount(Spend more, get more) -$ xx.xx

Discount(Coupon: WELCOME10) -$ xx.xx

I can see something around Discounts in here, about being an array but not sure how to explode it

<item name="discount" xsi:type="array">                                                            <item name="component" xsi:type="string">Magento_SalesRule/js/view/cart/totals/discount</item>                                                            <item name="config" xsi:type="array">                                                                 <item name="title" xsi:type="string" translate="true">Discount</item>                                                            </item>                                                         </item> 

Observer for Abandonment of Cart

I need help!!!

I am creating a module that integrates with another platform via API. I already got the Observer or Event for customer registration (customer_register_success), purchase completed (checkout_onepage_controller_success_action).

The help I need is how I can get the Observer to abandoned carts?, or what would be the best method to obtain that information and send it via API.