I work on a payment solutions module for Magento 2. We have a customer who is using this module on Magento Enterprise (Adobe Commerce), and this Magento version has the promotion scheduling feature (Catalog price rule):
(https://docs.magento.com/user-guide/marketing/price-rule-catalog-scheduled-changes.html#schedule-an-update-to-a-catalog-price-rule).
Currently we are facing an issue related to this feature, because when scheduling a promotion for a product, the discount rule cannot be applied to the cart instantly at the scheduled time. The discount only starts to work a few hours later.
We use the calcProductPriceRule() method of the Magento\CatalogRule\Model\Rule class to get the price with the discount rule applied. We found that within this method, there is the use of Magento cache that could possibly be related to the problem:
https://github.com/magento/magento2/blob/2.4/app/code/Magento/CatalogRule/Model/Rule.php#L503.
I believe it is a problem related to the cache because as I mentioned, a few hours later the discount starts to work and can be applied to the cart normally.
Our customer has already run the commands such as bin/magento indexer:reindex and bin/magento cache:flush to try to clear the cache when creating the schedule, but it hasn't worked.
Does anyone please know if a specific command is needed to clear this specific cache variable? And then ideally we are going to add it to CRON.
Or some other idea of what might be going on?
Please check the priority of the rule you created. Please set it to the highest priority and try again
Related
A friend of mine who running e-commerce website using Magento 2 platform. She set price attribute on her products and now she wants to change the price. She is able to find the attribute input field and changed the price and then saved and cashed out, but it doesn't update frontend, and there is no any error show either.
I'm pretty new to Magento 2 and wondering any body has any idea what is going on?
You must flush storage cache then run this command (from the root of magento's directory) line to get the change applied :
$ php bin/magento indexer:reindex
Let me know if you still face the problem then.
If you cannot ssh to server, you can go to admin System->Tools->Index Management to Re
i'm using magento 1.7.2 CE and m2epro 6.0.8 , updated for 6.1.4 and have got troubles with Create Orders from Ebay
1 Problem:
Magento Order was not created.
Reason: The requested Payment Method is not available.
Found FAQ Hint, that says :
You should enable payment method “M2E Pro Payment”
in System→Configuration→Payment Methods
i've checked this setting, it IS enabled, don't know what else i can do.
Payments done on Ebay are PayPal, there were no changes of setting after update
however i can confirm the order manually, but then i have another Problem with Double VAT calculation, that doesn't appear on automatic order creation.
FAQ says, Double VAT are only created if Catalog Prices are set Excluding VAT, but my Magento manages Prices including VAT, so dont how else to avoid double VAT
Thanks in advance
I had the same problem today. In my case it was caused by the module RicoNeitzel_PaymentFilter. I had to activate the "M2E Pro Payment" - method for all customer groups.
We have recently updated a Magento site to version 1.12. Now the site wont retrieve up-sell products to product details page anymore. No custom code changes committed and no target rules specified. Still the up-sell product relations are visible in back end and in the catalog_product_link table as well. But I always get an empty result set to template\targetrule\catalog\product\list\upsell.phtml.
Anyone came across a problem like this?
Are there some other conditions that needs be satisfied in order to show up-sell products?
May by my database update scripts haven't run correctly. If so what are the tables/modules I should have a look at?
Did you run reindexing.
For product collections flat tables are used.This needs reindexing.
Also make sure you clear your cache after reiundexing.
I have implemented M2Epro with magento.
I have used Ebay_Available_quantity attribute to set ebay available quantity.
But there are time where website normal stock is zero and product is out of stock and its still listing on ebay.
When someone buys it on ebay. It does make an order on M2Epro. But does not allow to make order as a magento order.
Is it because it is out of stock or quantity is zero ?
Can we have exceptions for third party sales ?
Thanks
Abhi
We also encountered this issue some time ago and this is what M2e answered on an email:
Thank you for provided details.
I checked your FBA order XXXX and I understand that you
want Magento order creation for FBA orders do not depend on stock
availability.
Let me please explain the logic how Magento orders are created. When
a channel order is imported in M2e Pro, M2e Pro checks settings
provided in Account settings > Orders tab. If corresponding settings
for Magento order creation are provided - M2E Pro sends a request to
Magento to create a Magento order for the channel order.
Magento orders are created due to Standard Magento functionality and
Core Models. Magento does not let to create an order if the product is
out of stock or 'disabled' or does not have available qty in Magento.
These requirements should be met so that the order was successfully
created.
M2e Pro cannot affect the logic of Magento orders creation process.
You can temporarily set 'in stock' status and qty available if you
want Magento order to be created at one for FBA order.
Hope this explanation will be helpful. Please let me know if I can
assist you with something else.
Next email:
Other our customers use backorders feature. As a possible workaround
for creation orders when product quantity is 0, you can allow for
needed products (product should be in stock, manage quantity - "yes".
This will allow Magento order creation for corresponding FBA order if
qty=0. You can set this parameter in Magento product inventory.
I have consulted with our development department on your case. As a
possible workaround, we can provide you with a part of the code which
is responsible for orders functionality. If your developers would be
able to adjust the needed changes, we would be glad to assist you.
Please also note, that we will not guarantee the proper work when some
custom modifications to the code are applied. In case this suggestion
is approved by your developers, please send us your confirmation and I
will send you a part of the code.
The code they wanted to provide was useless, it was just a hint that the magic happens in
app/code/community/Ess/M2ePro/Model/Order.php
public function createMagentoOrder()
which is quite obvious.
Please consider that backorders feature will bring other issues, so we do not use this and currently live with this situation as it is.
For me it is a quite important and standard situation to have FBA stock but no magento stock, so I don't understand why they don't fix the problem.
When time is available we will do a fix ourselves.
I am using magento on www.gotech.ro, and they have different promotions from time to time. That is why i am using the promotions tab in the admin area, to create price rules (in this case -15%). The problem is that after a while (one day or more), the rule just gets deactivated, even if in admin there is no expiration date set, or it is set sometime in the future. Also, the rule says activated, but on the site, there are the full prices, with no rule applied to them.
I've searched a lot of forums to see a similar problem, but i couldn't find anything. I am using Magento 1.5.1.
Regards,
Vali.
Is the Magento Cron job running every night? In Magento, promotions need to be re-applied every day. This is done automatically by the Cron job. If it is not running, you would see exactly the behavior your describe.