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 [sales]

Denotes questions related to the Sales module of Magento.

1
vote
1answer
15 views

Magento 2.2 - Fatal error: Uncaught Error: Call to undefined method Magento\Framework\App\ResourceConnection::load()

Fatal error: Uncaught Error: Call to undefined method Magento\Framework\App\ResourceConnection::load() in /var/www/html/magento2_dev/vendor/magento/framework/Model/AbstractModel.php:536 Just adding ...
0
votes
1answer
9 views

Invoice VAT - Non VAT

Placed an order with an incorrect VAT number, which then allowed me to submit my order as a Non-Vat customer. Is there any way to now change that order to a VAT customer and submit a new invoice ...
0
votes
1answer
24 views

CustomerGroupsId always true for cart price rules

I'm a bit new here in the forum som feel free to slap me on the fingers if I'm dumb. I want to change the logic in the sales rules engine so it doesn't check the salesrules_customer_id table and ...
0
votes
0answers
6 views

Order shipment creation takes around 2 mins in magento 2

While creating shipment for order in magento2 is very slow. It takes around 2 mins for complete the process. How to solve this.
2
votes
0answers
15 views

How to reset life sales=0 in Magento dashboard?

I have run below-listed queries: SET FOREIGN_KEY_CHECKS = 0; TRUNCATE TABLE `gift_message`; TRUNCATE TABLE `quote`; TRUNCATE TABLE `quote_address`; TRUNCATE TABLE `quote_address_item`; TRUNCATE ...
1
vote
1answer
41 views

Magento2: How to get Bestseller products collection by category ids(subcategories)

I need to get Bestseller products collection by category ids(subcategories) Thanks
1
vote
1answer
28 views

How can I add Track Button to Magento on frontend - Magento 1 [closed]

How can I add track button on sales/order/history/
1
vote
1answer
24 views

when i click on pdf invoice then shows empty page in magento 2

when i click on the print button it will show an empty page Edit 1: Call to undefined method Ced\Gst\Helper\Data::getShippingSource() in /var/www/html/tech/app/code/Ced/Gst/Model/Order/Pdf/...
0
votes
0answers
11 views

what is difference between magento1 and magento2 sales order table list

what is difference between magento1 and magento2 sales order table related data to be stored and which table to be affected. Magento1 Sales related table Magento2 Sales related table Thank you, ...
1
vote
1answer
30 views

Magento 2 Change Product Price

I am working on magento 2.2.6 sale extension and I want to change the price of the product by subtracting the sales price from it.As you know a single product is shown on multiple pages and ...
1
vote
0answers
31 views

Payment Method's name is not displaying in Magento 1.9

In checkout process when one of payment method is clicked the calculation and everything working fine but in the progress bar the method name is absent(ex. Pay on Delivery, Pay on Card). It's absent ...
2
votes
1answer
149 views

How custom attribute of “sales_order_item” table will be save also in “sales_order”

I am using plugin for converting "quote_item" to "sales_order_item" from below give code it work. public function aroundConvert( \Magento\Quote\Model\Quote\Item\ToOrderItem $subject, \...
0
votes
1answer
38 views

Magento 2 Change the email address of store when customer places order

how to change the email address where we get the email when an order is placed on our magento 2. I want to add the multiple email address where email should be sent.
2
votes
0answers
122 views

Magento 2 Limit Product quantity per customer

In my magento store there are virtual subscription products which come as trials. I need to set maximum 1 product which is allowed to purchase by a customer. Does any one knows what is the ...
0
votes
1answer
29 views

Catalog sales rule Magento 2

I have create a custom module that is overriding catalog sales rule module. I have add some banner and text on those products which are in the sale. Now I am confused that what happens when sales ...
0
votes
1answer
40 views

Show value of all totals in controller action

I need to log the values of all totals from a controller action. If the controller action is called, then i need a list rendered which shows the totals: If you are not familiar with totals then look ...
0
votes
2answers
33 views

Magento 1.9 - Where is Sales Email option

I have created a custom email template for Order Confirmation email. Now I want to select that template in the admin so it can be the template/design which will be send to customers who place orders. ...
0
votes
0answers
14 views

I want to set delivery based on days and different fees for it

The concept is my client selling fresh juices. They want when any user select the juices then 2 options will come Delivery and Pickup -- Delivery No of Days (it means on which days they needed ...
0
votes
1answer
96 views

Add column to “Sales Order” history content in customer account

Hello Magento's, How we can add column to Sales order history content into customer account. can anyone help me please?
1
vote
2answers
64 views

How to show Product Custom Attribute in edit page of Credit Memos, Invoice and Shipments below SKU in admin in Magento2.2.0?

I want to show Product Custom Attribute in edit page of Invoice, Shipments and Credit Memos below SKU in admin in Magento2.2.0? Refer my Screenshot. Any help would be appreciated.
0
votes
0answers
19 views

Magento 2 | Get billing country in sales email as block

We run an online shop in Germany and ship to non-EU countries like Switzerland and Norway. Those orders or better invoices get calculated without any tax/vat. The only downside of that is that we must ...
0
votes
0answers
16 views

Is there a short method to achieve the Box login in Magento 2

I am Working with a Box functionality in Magento 2.2.0, I have worked with front end flow with each module but when it comes to backend its getting bigger is there a short way to achieve. Since I am ...
0
votes
0answers
12 views

Magento 2: How to do tax calculation on specific attribute value?

Magento 2 tax calution via product attribute Example like product attribute is Unit. Unit- 15 tax is 4500 Unit- 18 tax is 6500 Unit- 20 tax is 7500
3
votes
1answer
44 views

Apply discount for For every $X spent Programatically in magento 2

I want to apply the discount on every $X spent amount. For example, if $5 discount for every $10, and my cart total is $34 then, I will get the discount of $15. Is it possible by programmatically ...
3
votes
1answer
219 views

How the cart price rule is applied in custom module?

I followed mageworx blog to add Conditions fieldset in my custom module and I added it successfully. https://blog.mageworx.com/2016/09/magento-2-module-with-conditions-model-fieldset/ Now, how can I ...
2
votes
0answers
42 views

QuickBook Desktop

Can we sync data from quickbooks desktop to Magento 2, Specifically If an invoice was Marked paid / or partial paid in Quickbooks will It sync that data up to magento 2? I want to synchronise invoice,...
1
vote
1answer
647 views

Sales Emails going via wrong email address magento 2.2.x

I have setup email address in sales representative but getting sales email from apache@domainname So where I need to fix this issue? Can anyone let me know? Other emails except sales are working ...
0
votes
0answers
27 views

I am getting sales email from wired email address in magento 2?

I have setup sales email address in the admin for sales_representative but still I am getting the sales email from another email address. I have checked everywhere in admin and code but didn't get ...
2
votes
1answer
272 views

All Transaction Emails Getting Sent Only from 'postmaster@example.com' [closed]

In spite of configuring all the Sales Email to a particular ID, example sales@example.com, all the Sales related emails are being sent from postmaster@example.com
3
votes
1answer
172 views

Magento 2.2.1 Error(Item (Magento\SalesRule\Model\Rule) with the same ID “33” already exists)

I got an error in log like main.CRITICAL: Item (Magento\SalesRule\Model\Rule) with the same ID "33" already exists. {"exception":"[object] (Exception(code: 0): Item (Magento\SalesRule\Model\...
2
votes
0answers
186 views

How to create mass credit memos magento 2?

Total noob in magento here. What I want is to select a bunch of orders, and create credit memos for them if their status is completed, and after the creditmemo is created, I want to set their ...
0
votes
0answers
35 views

Magento1 missing orders in backend after importing database

I transfered our magento1 shop to another server and after importing the database all orders of the past 3 months are missing in the backend. Whats strange is that orders are still in the ...
1
vote
0answers
117 views

Magento 2 Index Controller - Display customer, product details on Custom Module

I have created the Custom module and also its Index controller file named Index.php in app/code/Companyname/Modulename/Controller/Index directory. In that Index.php file, I have already added my ...
0
votes
1answer
44 views

How to add custome tab in order page magento 2?

I need to add custom tab in magento 2. Admin > sales > order next to action and to display content below it.
0
votes
1answer
532 views

Magento 2.2.5: Error on running setup: upgrade after upgrading Magento from 2.2.2 to 2.2.5

I am facing issues with Magento Upgrade from 2.2.2 to 2.2.5. After upgraded, I ran setup:upgrade command several times, but each time It takes too much time in Module_Sales upgrading data. After ...
0
votes
0answers
39 views

Add and Store Custom Attribute at checkout page and stored to database table

I want to add the custom attribute at checkout page (frontend) and want to show that value to backend orders details. I have followed this tutorial it is working with frontend but not showing the ...
0
votes
0answers
44 views

display brand column invoice PDF

I am trying to generate invoice PDF which includes 'Brand' column. I am using magento 2.1.9 of community edition. I have able to display Column only by adding following code: Filename: app/code/...
2
votes
1answer
349 views

How to refresh sales order grid by calling \Magento\Sales\Model\ResourceModel\Grid::refresh method

How to call \Magento\Sales\Model\ResourceModel\Grid::refresh method I am following this link: blog.sivaschenko.com <?php namespace Vendor\OrderGridSync\Controller\Index; class Sync extends \...
1
vote
1answer
107 views

Magento 2 - All sales emails to same address (no emails to customer)?

When sending order confirmations, I wish to have them all go to a specified email address and disable them going to the customer. Please note, this is for internal use, where everything is free and ...
0
votes
1answer
323 views

How can we add header and footer to invoice pdf

I am trying to add header to the invoice pdf. I need to include header and footer to the invoice pdf which downloaded from magento2 admin sales order grid. How can we do that. Someone please help me....
1
vote
1answer
112 views

How to get billing address from sales/order_grid_collection?

I have sales/order_grid_collection where I'm getting the desired attributes on my grid, but the last one attribute I need is the billing street of the order, how can I get that programmatically? ...
1
vote
1answer
317 views

How to add custom field in catalog price rule and cart price rule?

I've custom module of banner. I want to add banner id as drop-down in price rules to select as custom field. When, I select banner Id during sales rule then the particular banner must be activated ...
1
vote
3answers
817 views

Magento 2: delete all cart price rules (promotions) programmatically

I want to delete all the price rules programmatically. How can I achieve this one?
1
vote
0answers
200 views

Adding wallet system to magento2 customers

I want to create a custom wallet for the magento store customers. I am not able to get any tutorials regarding this. Can anyone pls help me in creating a wallet for my store.
0
votes
1answer
237 views

Sales Report by Country

I have customers from Germany, Austria, & Switzerland all using the same Store & StoreView. Is there any way to get a sales report filtered by country? Maybe with a short script or something?...
1
vote
1answer
427 views

what is the difference between entity id and increment id in sales_order table

which id should be used for order status update. How should the status be updated?
0
votes
1answer
335 views

How to write own method for Lifetime sales calculation in magento2?

Hi I want lifetime closed order sales accurate record in my magento2 store I write a code for it using core php : <?php $servername = "localhost"; $username = "aaa"; $password = "aaaa"; $dbname =...
0
votes
1answer
428 views

In Magento 1 Sales menu add custom created sub-menu

In Magento 1 Sales menu list add one new sub-menu same as order or invoice. Any one can create this type of extension?
1
vote
4answers
1k views

Delete test orders Magento 2

I've done some orders through Magento however I want to remove them now from Sales page to clean it up. I need to remove only test orders, there are also some real order which I don't wish to remove. ...
1
vote
1answer
386 views

How to override name.phtml for order invoice view in admin panel : Magento 2

I am trying to override vendor/magento/module-sales/view/adminhtml/templates/items/column/name.phtml to add some custom value under sku. I created a module (it is installed properly). In this I have ...