如何获得带有订单ID(如28)的订单增量ID(如100000028).在销售订单中,页面订单增量ID类似于100000028,但我的订单ID如28.如何按订单ID获取订单增量ID?我试过下面的
$write = Mage::getSingleton('core/resource')->getConnection('core_read');
$result=$write->query("SELECT entity_id FROM `sales_flat_order` WHERE `increment_id` = 'your increment id' ");
$row = $result->fetch();
echo $row['entity_id'];
Run Code Online (Sandbox Code Playgroud) 是否可以在admin-> sales-> orders-> view(选择特定订单)页面中获取特定订单的quote_id?
我想在admin-> sales-> view(选择特定订单)礼品选项块中显示我的自定义表(其中包含订单的quote_id)数据.