0

Need to add today date and 2020096 in 'number' => $consignmentNo, so it will be 201803222020096$consignmentNo

$tracks = array(
    '1'=>array(
        'carrier_code' => $carrier_code,
        'title' => $trackTitle,
        'number' => $consignmentNo
    )
);  

Unable to figure out, any help?

1 Answer 1

0

You can add something like this before:

$date = Mage::getModel('core/date')->gmtDate('Ymd');
$id = '2020096';
$consignmentNo = $date . $id . $consignmentNo; 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.