久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何從 magento 中刪除測試訂單

how can I delete test order from magento(如何從 magento 中刪除測試訂單)
本文介紹了如何從 magento 中刪除測試訂單的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

我用 magento 制作了一個網(wǎng)站.現(xiàn)在它已上線,我想刪除所有測試訂單.我知道有一些表按所有這些順序存儲.但我不知道那些表的名字.如果某個正文有任何可以刪除所有訂單數(shù)據(jù)的腳本.

I have made a website in magento. Now it is live and I want to delete the all test order. I know there are some table in all these order are stored. but I don't know the name of those table. If some body has any script which can delete the all the order data.

請給我或請?zhí)峒八写鎯τ唵涡畔⒌谋淼拿Q

Please give me or please mention the name of all the tables which stores the order information

推薦答案

  1. 轉(zhuǎn)到管理>銷售>訂單
  2. 寫下您的測試訂單增量 ID,例如100000001,100000002,100000003,100000111,100000112,100000199
  3. 現(xiàn)在在 magento 根目錄中創(chuàng)建一個 php 文件并將其命名為:remove_test_orders.php
  4. 粘貼以下代碼:

  1. Go to admin>sales>orders
  2. Write down your test orders incremental ids, for example 100000001,100000002,100000003,100000111,100000112,100000199
  3. now create a php file in magento root directory and name it: remove_test_orders.php
  4. Paste the code below:

require 'app/Mage.php';
Mage::app('admin')->setUseSessionInUrl(false);                                                                                                                 
//replace your own orders numbers here:
$test_order_ids=array(
  '100000001',
  '100000002',
  '100000003',
  '100000111',
  '100000112',
  '100000199',
);
foreach($test_order_ids as $id){
    try{
        Mage::getModel('sales/order')->loadByIncrementId($id)->delete();
        echo "order #".$id." is removed".PHP_EOL;
    }catch(Exception $e){
        echo "order #".$id." could not be remvoved: ".$e->getMessage().PHP_EOL;
    }
}
echo "complete.";

  • 現(xiàn)在轉(zhuǎn)到命令行并運(yùn)行:

  • Now go to command line and run:

    php remove_test_orders.php

    php remove_test_orders.php

    最后刪除remove_test_orders.php.

    At the end, delete remove_test_orders.php.

    這篇關(guān)于如何從 magento 中刪除測試訂單的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

    【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!
  • 相關(guān)文檔推薦

    Joining 2 tables in SELECT(MYSQL/PHP)(在 SELECT(MYSQL/PHP) 中加入 2 個表)
    How to make lt;option selected=quot;selectedquot;gt; set by MySQL and PHP?(如何使lt;option selected=“selectedgt;由 MySQL 和 PHP 設(shè)置?)
    Auto populate a select box using an array in PHP(使用 PHP 中的數(shù)組自動填充選擇框)
    PHP SQL SELECT where like search item with multiple words(PHP SQL SELECT where like search item with multiple words)
    json_encode produce JSON_ERROR_UTF8 from MSSQL-SELECT(json_encode 從 MSSQL-SELECT 產(chǎn)生 JSON_ERROR_UTF8)
    MySQL ORDER BY rand(), name ASC(MySQL ORDER BY rand(),名稱 ASC)
    主站蜘蛛池模板: 久久丁香 | 中文字幕免费在线 | 一区二区免费高清视频 | 欧美一级大片 | 日韩午夜| 国产盗摄视频 | 男人阁久久 | 久久久久免费精品国产小说色大师 | 高清视频一区二区三区 | a级大片免费观看 | 国产9999精品 | 成人免费视频 | 成人在线观看免费视频 | 国产中文字幕av | 99精品视频在线观看免费播放 | av黄色免费| 婷婷久久精品一区二区 | 在线免费观看亚洲 | 国产亚洲精品精品国产亚洲综合 | 毛片在线免费 | 欧美激情在线一区二区三区 | 夜夜操操操 | 看片一区 | 亚欧精品一区 | 国产99小视频 | 欧美高清一区 | 日本一二三区在线观看 | 一级欧美一级日韩片 | 欧美日韩最新 | 黄色大片在线视频 | 91九色在线观看 | 欧美精品在线免费 | 综合久久综合久久 | 欧美国产精品 | 国产一区中文字幕 | 亚洲欧美国产一区二区三区 | av大片在线观看 | 欧美日韩在线一区二区 | 日韩高清中文字幕 | 国产高清在线视频 | 国产精品久久久久久吹潮日韩动画 |