Domanda

Ho questo codice.

<a href="#" id="linkId" onclick="popWin('<?php echo $this->helper('shipping')->getTrackingPopUpUrlByOrderId(100000019) ?>','trackshipment','width=800,height=600,resizable=yes,scrollbars=yes')" title="<?php echo $this->__('Track this shipment') ?>"><?php echo $this->__('Track this shipment') ?></a>

Si suppone per aprire un pop-up con l'inseguimento dettagli. Ma la sua non funziona. Qualcuno può dirmi che cosa è sbagliato?

Si prega di notare 100000019 è il mio ordine id

È stato utile?

Soluzione

The parameter for getTrackingPopUpUrlByOrderId must be the real order id (not the increment) or the $order object itself. Try this instead:

<?php $order = Mage::getModel('sales/order')->loadByIncrementId(100000019)?>
<a href="#" id="linkId" onclick="popWin('<?php echo $this->helper('shipping')->getTrackingPopUpUrlByOrderId($order) ?>','trackshipment','width=800,height=600,resizable=yes,scrollbars=yes')" title="<?php echo $this->__('Track this shipment') ?>"><?php echo $this->__('Track this shipment') ?></a>
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange
scroll top