Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [transaction]

The transaction tag refers to database transactions. For transactional emails, use transactional-mail

1
vote
1answer
24 views

Email not sending magento 2

I sending email from one custom module so everything is working fine but If I change from , I am not getting emails. public function beforeSendMessage(\Magento\Email\Model\Transport $subject) { ...
1
vote
1answer
10 views

Limit Transactions to certain states

I'd like to exclude any users from California or Texas from purchasing our products. How do I accomplish this?
0
votes
0answers
7 views

Additional data: Asymmetric transaction rollback. magento 2 import

I'm trying to upload csv sheet but I get Additional data: Asymmetric transaction rollback It only can upload 50 products I've ran reindex command and cleared cache and di
1
vote
1answer
29 views

Order Status : Pending Payment vs. Payment Review

I'm creating an integration for a Payment Service Provider / Payment Gateway, but I'm a bit stuck in the way how Magento handles stuff. The payment method in question returns a "pending state" with a ...
0
votes
1answer
17 views

rest api invoice capture does not save entry to transaction log

Magento faithfully logs the transaction detail when I manually capture an invoice within the Magento store interface. I assume that Magento would likewise generate the same transaction detail entry ...
0
votes
0answers
17 views

transactions magento/braintree

I have a problem with Braintree and Magento 1.9.x! On my site magento i use Braintree as a payment system, both for paypal and for credit cards! In Sales->Transactions, unfortunately I noticed that ...
1
vote
0answers
47 views

Programmatically import multiple products with same image name in 1 transaction - Magento 2.2.6

I'm running into an error while importing multiple products with the same image name in one transaction. The file "/var/www/magento/pub/media/tmp/catalog/product/t/e/test.jpg" doesn't exist or not ...
0
votes
1answer
101 views

Magento2: Asymmetric transaction rollback

Sometimes I found in log file issue: Ran jobs by schedule. string(32) "Asymmetric transaction rollback." Ran jobs by schedule. Ran jobs by schedule. Ran jobs by schedule. Anyone know how it is and ...
1
vote
0answers
26 views

Create product in code: Transaction errors (please HELP, critical!) - NEW!

I am fetching products from external API and create magento products out of this data. I use Magento 1.9. After a few inserts/updates, I get an error: PHP Fatal error: Some transactions have not ...
1
vote
1answer
55 views

How to send Transaction email from controller in Magento 2 [duplicate]

I have code like below in Magento1 to send Transaction email to customer public function createPostAction() { $user = Mage::getModel('customer/customer')->setId(46210); $user->save(); $...
0
votes
0answers
30 views

Deadlock order save creates invalid transaction thus breaking FK contraint

I have a weird problem when saving an order in a deadlock situation - which can happen with magento as we all know. It does not happen very often - maybe 1 time within 1000 orders. The order is saved ...
0
votes
0answers
83 views

export all the invoice with it transaction id and payment method

I want to export all the invoices with its transaction id and payment method. I have attached image above for reference so which table should be inner join in order to display in admin panel grid. ...
0
votes
0answers
19 views

Total number of transaction not equal to total number of orders

I fetched all the transaction details using modelclass: sales/order_payment_transaction but my number of transactions are not close to Magento orders. What can be the problem or am I fetching it using ...
0
votes
0answers
19 views

Magento2 transaction is being failed due to SID

I am using PayUMoney payment gateway when i am placing order it's success on gateway but magento is redirected to me failure page, and when SID is included in the url then it's redirected to me on ...
0
votes
0answers
17 views

One transaction multiple payment admin

This is my scenario: When the user pays 100$ on my site then 70% (in this case 70$) goes to my bank account and 30% (in this case 30$) goes to my friend's bank account. Do you have any solution for ...
0
votes
2answers
108 views

How to make order id as transaction Id rather than random transaction with PayU?

I want to make order id as Transaction id for Order via credit card/debit card. Now, random ID generated. Below is the code. namespace PayUIndia\Payu\Model; use Magento\Sales\Api\Data\...
1
vote
2answers
249 views

Saving OrderID received from Payment Gateway

I'm working with a payment gateway from where after successful payment a OrderId is received. It is similar to transaction id in Paypal. I'm confused on how to make use of this information because ...
1
vote
0answers
58 views

I need to add value in customer table after successful order placed

This is my Installdata.php Which saves the cashback value in attribute Id. Now I need to save this value into customer table of magento 2 if transaction is successful. <?php namespace Rk\Wallet\...
0
votes
1answer
308 views

Order status is not changing to processing even if successful online transaction

I am using CCAvenue Payment Gateway which is developed by BlueZeal. Sometimes the order status not changing to Processing keep shown Pending. I asked both teams they replied me, pls check with Magento ...
0
votes
1answer
288 views

How to create actions column use layout block magento2

I use layout block to create grid page, but it does't inclue actions column so can I create dropdown actions edit and delete use layout block file Grid.php $this->addColumn( 'actions', ...
0
votes
0answers
72 views

Transaction emails: Can't get tax to successfully show, unsure how to show customer email

I appreciate any advice that can be provided to solve the following. Tax on Transaction Email I have not been able to successfully show the tax on orders. See screenshot: I have tried multiple ...
1
vote
0answers
281 views

SOLVED Magento 1.9 cannot place order “Some transactions have not been committed or rolled back”

I have Magento 1.9.2.4 and something is wrong with onePage checkout. I've got gift card extension installed on it. It is a custom one but 100% it works fine. The problem is that I can't place the ...
0
votes
1answer
1k views

Magento 2 programmatically online refund

I'm trying to make online refund using this method: // \Magento\Sales\Model\Order\Invoice $_invoiceModel // \Magento\Sales\Model\Order\CreditmemoFactory $_creditmemoFactory // \Magento\Sales\Model\...
0
votes
2answers
47 views

Proper steps for translating from CSV file in magento

I want to translate some text using CSV file by going through following steps. Created CSV file named "Mynamspace_Mymodule.csv" in app/locale/en_US/ and feeded it with my translations like, "text to ...
4
votes
0answers
71 views

Get ID of created product in middle of database transaction

I am doing a webapi for Magento 2.1 and i need to create configurable product and simple products and then linking it all up. A psuedo-code normal transaction will look something like this. //...
1
vote
2answers
2k views

Get list of transactions for order

I am developing for magento 2. I have an instance of \Magento\Sales\Model\Order and I want to get a list of all of the transactions associated with the order. How can I do this?
6
votes
1answer
3k views

“Asymmetric transaction rollback error” in integration test

I encountered this error in an integration test. It looks like on shutdown it tries to rollback a transaction which is not open. Stack Trace Fatal error: Uncaught Exception: Asymmetric transaction ...
10
votes
1answer
4k views

Magento 2 - Database transaction for multiple model / resource model objects?

If I have a logic that involve updating multiple model objects which will update a few tables in database, how to provide a database transaction to ensure the data integrity?
2
votes
1answer
511 views

Nested database transactions in Magento 2

I have found the code that uses database transaction (\Magento\SalesRule\Model\ResourceModel\Rule::saveStoreLabels): public function saveStoreLabels($ruleId, $labels) { ... $connection = $...
1
vote
2answers
373 views

Transaction rollback doesnt work

I have the following code in my admin controller: if ($data = $this->getRequest()->getPost()) { if (is_uploaded_file($_FILES['csv_dealers']['tmp_name'])) { $connection = Mage::...
2
votes
1answer
2k views

Magento 1: proper way to use transaction begin and rollback

So I'm working on some tests where I need to create fixtures data. Basically I used to have the following pseudo code that worked fine: public function setUp() { // Programmatically create a ...
0
votes
0answers
46 views

Translate a new word

I want to translate a word but I do not now how I can create a CSV file for can someone help me out of it? I want to translate the Price.html and em_head.html (Login voor prijs) Price.html code: &...
3
votes
1answer
1k views

Magento 2 - How to provide transaction?

In magento 2, How to provide transaction ? Anyone knew, please show me step by step. I found a solution for M1.x here How Provide transaction In Magento
0
votes
1answer
565 views

unable to save / update products

Unable to save or update products in Magento ver. 1.9.1.0. When I go to save a product record in admin, it returns with onscreen error message There is no active transaction and no changes are ...
0
votes
1answer
873 views

Begin & Commit - Lock rows to prevent user from receiving same code

Hi have a bunch of unique codes in a database which should only be used once. Two users hit a script which assigns them at the same time and got the same codes! The script is in Magento and the user ...
1
vote
1answer
339 views

Transactions - need id from saved objects

I have a transaction which saves 2 order objects. The benefit of which is obviously that if any fail then it is all rolled back. However, there are associated objects which need to reference the ids ...
2
votes
1answer
420 views

Upgrade to 1.9.2.1 caused duplicate transactions in Google Analytics

After digging through and analyzing the data being sent from Magento to Google Analytics (GA), it seems that after the 1.9.2.1 update was applied to the site, Magento began sending successful ...
1
vote
1answer
623 views

What is this error and how do you resolve? Transaction ID must not be empty

Getting an error when submitting a credit card order on Magento site (using Authorize.net payment gateway). This is the error: Transaction ID must not be empty. Any idea what this error is and ...
1
vote
1answer
67 views

Save model bypassing active transaction

I've got an obeserver that is run inside a transaction. It's writing log data to database. My problem is that these log entries are missing if the transaction aborted. Is there any way to have $model-&...
2
votes
1answer
174 views

Save 2 objects with a reference to each other in one transaction

for some security reasons I try to save 2 custom objects (different models) into the database, via: try { $transaction = Mage::getResourceModel('core/transaction') ->addObject($object1)...
1
vote
1answer
2k views

Get Transaction Additional Info in magento refund

I am making a custom payment gateway and I have it in the capture payment in Magento when a payment has been through: $payment->setTransactionAdditionalInfo (...
1
vote
1answer
53 views

Transactions methods [closed]

We are thinking about using Magento for our small business. For transactions, can we charge the end customer just like a regular physical merchant or do we have to go through any 3rd party sites ...
3
votes
1answer
4k views

How to add/join sales_flat_order.customer_firstname column to transaction grid?

I have the collection for transaction and I added a line to get customer_firstname: protected function _prepareCollection() { $collection = ($this->getCollection()) ? $...
1
vote
1answer
311 views

Prevent Magento from rolling back custom table entries

I am using third-party integration for on-site credit/debit card payment functionality. With a purpose to audit transactions and as well as for order status flow customization, I need to save ...
0
votes
1answer
22 views

getting different entities for export

i would like to gather different entities for a given time, serialize them to an array or json and send them to an external API. Those entities consists are for example buyers, order, transactions ...
1
vote
1answer
160 views

“Canceled” order because of “Failed merchant rule check” - how to resubmit?

We had a user submit a large order that exceeded our Paypal security settings for a maximum transaction amount. I have fixed that setting and want to re-submit the order so it charges the user without ...
1
vote
1answer
294 views

How to translate or change the title off a bundle item

I am setting up a new store view and i would like to share the products between both store views. The products i am using are for 95% the same for both store views. One of the things i need to change ...
2
votes
3answers
1k views

GA E-Commerce Transactions out by ~50%

Have done a bit of researching and searched various boards and topics and haven't been able to shed much light onto this. It seems like it's been a common problem over the various versions of Magento ...
2
votes
1answer
265 views

Magento Transaction Emails have stopped sending on BACS and Paypal orders, but work on Credit Card Orders

Had a magento installation for about 10 months now, originally installed as 1.8 and been using it fine for the whole period. In december I upgraded to 1.9.1 and since this time, we have only been ...
3
votes
1answer
215 views

Limitation 1 transaction per day

I want to have some limitation for transaction. One product can only allow purchase 1 per customer per day. For example: Customer A can buy product A once per day, after payment that customer cannot ...