Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 500 al imprimir guia #6

Open
mabatidaga opened this issue Apr 24, 2020 · 3 comments
Open

Error 500 al imprimir guia #6

mabatidaga opened this issue Apr 24, 2020 · 3 comments

Comments

@mabatidaga
Copy link

tengo un error 500 al imprimir la guia desde la orden, alguna ayuda?

@nmarquezdrubu
Copy link
Contributor

Buenas @mabatidaga, en que version de magento estas trabajando?

@AdolfoPra
Copy link

Buenas, tengo tambien el inconveniente de error 500 al querer imprimir la guia desde la seccion Enviar.
Utilizo Magento 2.3.6

@manuelcanepa
Copy link

Al parecer el error sigue ocurriendo y se debe a que al pisar el template original de sales_order_view (Sin ninguna razon valida aparente):

<action method='setTemplate'>
<argument name='template' xsi:type='string'>DrubuNet_Andreani::order/view/info.phtml</argument>
</action>

El template hace una llamada al metodo getTrackingUrl, pero no existe el metodo en el helper:

<p><a href="#" id="linkId" onclick="popWin('<?php /* @escapeNotVerified */ echo $this->helper('DrubuNet\Andreani\Helper\Data')->getTrackingUrl($order->getTracksCollection()->getFirstItem()->getTrackNumber()) ?>','trackorder','width=800,height=600,resizable=yes,scrollbars=yes')" title="<?php /* @escapeNotVerified */ echo __('Track Order') ?>"><?php /* @escapeNotVerified */ echo __('Track Order') ?></a></p>

Ademas hay varios lugares donde se hace la misma llamada haciendo que todas esas funcionalidades se corten por faltar ese metodo.

<p><a href="#" id="linkId" onclick="popWin('<?php /* @escapeNotVerified */ echo $this->helper('DrubuNet\Andreani\Helper\Data')->getTrackingUrl($order->getTracksCollection()->getFirstItem()->getTrackNumber()) ?>','trackorder','width=800,height=600,resizable=yes,scrollbars=yes')" title="<?php /* @escapeNotVerified */ echo __('Track Order') ?>"><?php /* @escapeNotVerified */ echo __('Track Order') ?></a></p>

data-mage-init='{"popupWindow": {"windowURL":"<?php /* @escapeNotVerified */ echo $this->helper('DrubuNet\Andreani\Helper\Data')->getTrackingUrl($track->getNumber()) ?>","windowName":"trackorder","width":800,"height":600,"left":0,"top":0,"resizable":1,"scrollbars":1}}'

$this->_andreaniHelper->getTrackingUrl($tracking)

$this->_andreaniHelper->getTrackingUrl($trackings)

$this->_andreaniHelper->getTrackingUrl($tracking)

$this->_andreaniHelper->getTrackingUrl($trackings)

$this->_andreaniHelper->getTrackingUrl($tracking)

$this->_andreaniHelper->getTrackingUrl($trackings)

$trackingUrl = $helper->getTrackingUrl($trackingNumber);

$trackingUrl = $helper->getTrackingUrl($trackingNumber);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants