Magento send 1 year old order emails - magento

i have a glitch in my magento 1.7. When 2017 come my customers start receive 2 order emails when place order(1 is correct but 2 is one year old). Maybe need to clean email queue ? if so, how ?

It seems like you are creating some scripts for the sales order. While an order is completed then the script is also synced with last order and it affects the order email system.

Related

I want to prevent user to make payout request from his wallet for specific time

I'm working on e-learning academy system like udemy every instructor have wallets and wallets have three type of balance
1- total balance and it present total earning
2- available balance and it present earning that he can make payout or transfer it to his bank account
3- hold balance and it present earning that is not available for specific time then will be available to transfer it.
Project build by Laravel my issue how can I hold money for 14 days and after that make this money available without any action from my side I need logical idea to make it
can use cron job, or is anyone have this experience before ?
Let me break down the issue as per my understanding so we make sure I'm answering the correct question;
You have a system that has a wallet feature.
This wallet needs to hold some money and make the money unavailable to be paid out (hold status)
Then after 14 days, the money gets paid automatically without any interaction.
If I'm correct, then keep reading the answer below. If i'm not, correct me with a comment and I'll update my answer accordingly.
Answer:
We will create a new table. Let's call it pending_payments. It'll have the following information: user_id, payment_amount, pay_at
That table will hold information about pending payments and to which user they should be paid as well as the amount and the date it should be paid at.
We'll have a Laravel job that can be automated ( read this for more information: https://laravel.com/docs/9.x/scheduling) which will do the following:
a. Run daily on a specific time. Let's say at 13:00 daily for ease.
b. It'll check the pending_payments table for payments that should be paid today.
c. Pay them ( which means run whatever function/task you have to run in order to process the payment).
d. On a successful payment, remove the row from pending_payments table. And on a failure payment, log the error and insert the row again with a later date to be retried again later.
That's it.

Power Automate - Overcome 30 day limit using free version?

I have created a flow at our college that sends out a series of weekly emails to students on a remote learning course. The flow starts with a simple MS Form that collects a student's name and email address, along with a date field as start date for the emails. It's a 12 week course but due to the 30 day flow limit I can only send the first 4. Is there trigger that i can use to send another 4 emails, and then trigger the final 4 emails using the same date from the original MS Form?
We currently use the free version. If we were to subscribe, is there a workflow/trigger with the paid version that we could use?
Thank you,
Nigel.

Magento Shopping Cart Products not in input order

The company i work for running Magento 1.7.0.2 with a Cart2quote extension.
They are getting frustrated because when they add a list of products to an order in admin the products dont stay in the order that they were inputted.
Example By SKU:
Order inputted-
D707
E018
P883
P882
Order when finished inputting-
D707
P882
P883
E018
I have only used 4 as an example, although more often than not it can be in excess of 50+ products.
Could this be due to an extension confilct with cart2quote or is there some other soloution?
Sometimes, buy pressing "Updates items and qtys" it does put them in a reverse order (first product is last) and they can live with that.
But as it is now, its making it frustrating for them to double check they have inputted the correct items.
Im sorry to waffle on, but any comments would be appreciated.
Many Thanks in advance.
Dale.
I'm not familiar with this extension, but check created time, updated time, id, etc when sorting.

Magento sells products but fails to store the order

I have a silly problem - a Magento 1.7.2.0 that works just fine, except for now and then it does not store the order in the database.
Emails go out, payment gets processed (owner gets confirmation from PayPal, for example) but no order is stored in the database. I did not rely on grid only, I checked the database - and nothing is there.
Also, last time this happened I checked increment values in eav_entity_store and thy were not updated - it says 130000030 and in the email order is numbered 130000031 - so somewhere in the process it crashes.
First idea was to look in the error log but I was not able to see anything there that I could relate to this.
Now I need a fresh idea. Any thoughts?
Thanks

Magento: Can you set it so all Websites share the same order increment id sequence?

Does anyone know if it is possible to make it so all websites or stores share the same order increment ID. Basically we are working with an ERP system that is allowing us to submit our Invoice number to be the actual order number in the system, the thing is though, they only need one number sequence not a different one for each store like how Magento does by default.
I've just found this out and it is pleasantly easy. You could put the following in an upgrade script...
Mage::getModel('eav/entity_type')
->loadByCode('order')
->setIncrementPerStore(false)
->save();
P.S. I've been receiving requests to make an extension of this but one already exists: Custom Order Number Pro. It's commercial but it has a decent sounding list of features.
You can change it directly in the database. See table eav_entity_type and column increment_per_store (change this to 0).
Another numbering information is stored in eav_entity_store
You can change it directly in the database. See table eav_entity_type and column increment_per_store (change this to 0).
Another numbering information is stored in eav_entity_store
Unfortunately this doesn't work if you use Sisow and iDeal payments. The orders aren't sent to client nor admin. I had to undo the changes. Now it's back to working order but still no working solution for continuous order numbers in multi-store config.
Br,
Steve
You can change it directly in the database. See table sales_sequence_meta => column sequence_table and change reference of 'order' in 'entity_type' to same table like sequence_order_0.
Ex: Default Table
meta_id entity_type store_id sequence_table
5 order 1 sequence_order_1
6 order 2 sequence_order_2
7 order 3 sequence_order_3
8 order 4 sequence_order_4
Change To
5 order 1 sequence_order_0
6 order 2 sequence_order_0
7 order 3 sequence_order_0
8 order 4 sequence_order_0
This may help you.

Resources