Error in Reinxdeing in Magento - php

1.I m adding a configurable product in magento ,with some price and after adding sale tag over it for a particular duration it still shows up after the end of the date. Price is showing different on the page where all products are listed and different when I open it.
2.Sale product price do not update to back to normal after sale ends.

From call backtrace you can assume that OrganicInternet_SimpleConfigurableProducts is causing the issue. Module probably rewrote product price indexer model.
I have never seen this module before, so I can't provide anything further info. You should probably try disabling it and re-running the indexing.
As for the count column that's causing the issue, it was probably created by same module since it shouldn't exist out of the box.
Best of luck.

Related

Woocommerce product type conflict between BO and PHP

I updated WP to 6.0 and Woocommerce to 6.6.1 this morning, i initially noticed a lot of problems, after debugging for hours, i noticed that the main issue was that all products are retrieved as Simple product when i var_dump() in Front, but when i check the same product in BO, it shows as Variable Product, anyone have an idea why? if not, am trying to at least check in the Database to make sure it is a Variable product and not simple, but i don't know how Woocommerce stores this information.
Thanks

Magento2 Invalid Form Key. Please refresh the page while creating configurable product

While creating the configuration products in magento2.2.2 I am facing the “Invalid Form Key. Please refresh the page” error. I have google regarding this error and I have found the solution to increase the value of max_input_vars PHP configurable variable. I have increased this value but the problem is not solved.
While creating the configurable product almost 40000 associated product is generated and now I have set the max_input_vars value to 3075000 but the problem is not solved.
Anyone please help me to fix this issue.
Honestly, i don't think you will be able to create 40001 products in
just one time.
Then, associate 40000 products to a configurable one from admin
product page, looks also something hard.
If you have developper skills, I recommend you to script all of this.
Programatically create products is easy.
Btw, you will need to increase php max_excecution_time if you script don't use PHP Cli (When you run php command line, or CRON, there will be no maximum execution time.)
Usually, i run thoses scripts from Magento CRON to keep a 2mn php max_excecution_time.
40,000 variations on configurable product will take too long to load on the admin, besides, are you displaying 40,000 options on frontend to the customer? I suggest you review your solution on this, this is a design issue.

Magento Update Subtotal

I've tried the suggestions here: Magento update subtotal item
I have a Magento site with several extensions. We're using Amasty to add 'bonus' items. The problem is we want those items to show up and be added to the subtotal if the user selects 30 day billing.
I've tried making a simple extension and hooking to various events, but it looks like Amasty always has the last word when updating the subtotal.
I've even modified the Dispatcher so that it logs who it's dispatching to to see if I can track down where it's getting updated but to no avail.
How can I make sure that the extension I write is the final one to update the subtotal/total for the order?
It's right after checkout that it's being updated by something to exclude the bonus item.s
Checkout sort order for each order total module.
On times one of the order total modules sort order is higher then total module.
Or logically sort orders have some wrong values.
First you need to check that.
I had seen something similar happen when an old Magento commerce version was updated.

Sidebar cart shows incorrect price when adding a bundle product to the cart twice in Magento

I encountered a strange behavior on my Magento (1.7.0.2) installation.
When I add a bundle product with the same configuration (bundle options) to the cart twice, then the cart in the sidebar shows a wrong price. The wrong price looks totally odd to me and makes no sense.
E.g: When I add a product which costs $ 6.25 and add it another time then the price in the cart is $ 23.36 although it should be $ 12.50.
When I then browse to the normal cart, the price is shown correctly and when I browse back to a product page where the sidebar cart is shown then it also shows the correct price.
The strange behavior only occurs for bundle products with the exact same configuration. I haven't tested all product types, but simple products don't lead to this error.
Furthermore it doesn't matter when the product is added a second time. The error also occurs when I add a different product to the cart in between.
The error doesn't raise when I add two products at once by setting the quantity to 2, then everything is ok. For me it seems as there's something going wrong when Magento tries to merge the two products with the identical configuration in the cart.
Any suggestion what might cause this problem?

Magento cart/order validation and manipulation

I'm completely new on working with Magento and I'm going to create a module in order to validate and in some cases manipulate some cart/order information.
To be specific I'm gonna restrict the customer from buying an item more than X times.
I've started working on this a bit, but I'm not so satisfied with the solution.
This is how I've done it so far:
I've created a new module with a controller which subclasses Mage_Checkout_CartController and there I've implemented the addAction-method. So every time a product is added to the cart I search through the user's order history and look for previous orders containing this product. Then I prevent it from being added and trigger an error-message.
It has a lot of shortcomings. For instance, if the customer isn't logged in at the time he can add the product, you can update the cart with too many... etc.
I would be me comfortable if I could hook on events, but I don't know where to start. Haven't found so good guides about this.
I want to do this verification when listing cart, updating cart and before submitting order.
So, my questions are:
How do I add observers on these events in my module? I couldn't get config.xml-configuration for event observing to work. I also need to know the names of these events.
How do I manipulate the quantity of an item in cart / delete it? When updating cart with too many of the products I want to change the quantity and trigger an error.
If you have any other ideas on a better solution for this, you're very welcome to comment.
I appreciate any help. Thanks.
I think this article should answer on all your questions. See events list at the bottom of this article. Do not forget delete cache after each change made to config.xml and other xml files in your module etc folder.

Categories