cancel
Showing results for 
Search instead for 
Did you mean: 

How to show correct order purchase point

How to show correct order purchase point

Hello,

 

Up to magento version 2.4.0 the below would attribute an order to the correct store and website in orders view->purchase point

 

\Magento\Quote\Model\Quote->setWebsite($websiteId)->setStoreId($storeId);
\Magento\Quote\Model\QuoteManagement->placeOrder($this->quote->getId());

Higher versions always attribute the orders to default site and store

Should I change something in higher versions?

Many thanks

2 REPLIES 2

Re: How to show correct order purchase point


@choiceadvantage wrote:

Hello,

 

Up to magento version 2.4.0 the below would attribute an order to the correct store and website in orders view->purchase point

 

\Magento\Quote\Model\Quote->setWebsite($websiteId)->setStoreId($storeId);
\Magento\Quote\Model\QuoteManagement->placeOrder($this->quote->getId());

Higher versions always attribute the orders to default site and store

Should I change something in higher versions?

Many thanks


You need a specific product or service to run your small business, so you reach out to your suppliers and tell them what you need. They provide it. You pay them for it. End of story.

Re: How to show correct order purchase point

Purchase Orders are documents issued from a Buyer (your organization) to a Seller (the vendor). They are an important tool for Buyers because they formalize requirements and pricing, and serve as legally binding documentation of the goods/services that were ordered.