我正在爲Magento 1開發PDF發票解決方案。我們希望發票顯示按stock_location排序的產品。我們所有的地點都以A,B,C等字母開頭,然後是一些數字。 我希望發票能夠按字母順序顯示產品,因此當我們找到從A到Z開始的產品時,您可以從上到下了解。我只是不知道如何解決這個問題? foreach ($invoice->getAllItems() as $item){
if ($it
我創建一個回覆模型,然後試圖返回的對象與它的主人關係後負荷()。這裏是一個返回一個空對象的代碼: //file: Thread.php
//this returns an empty object !!??
public function addReply($reply)
{
$new_reply = $this->replies()->create($reply);
r