attach Invoice

  • Posts: 30
  • Thank you received: 4
  • Hikaserial Subscription Hikashop Business
1 year 2 months ago #355250

-- HikaShop version -- : 5.0.0
-- Joomla version -- : 4.3.4
-- PHP version -- : 8
-- Browser(s) name and version -- : Brave

Bonjour,

j'utilise également HikaSubscription 4.0.2 et attachInvoice (re)acheté hier.

Quand un client se connecte à l'espace 'mon compte' sur le front end du site pour imprimer la facture correspondant à son achat, il s'ensuit une page d'erreur qui dit :
Mise en page show_order_back_invoice introuvable.

de mon côté en back end je peux lui imprimer sa facture.
Auriez-vous svp une idée pour corriger ce problème?

Cordialement,
Nicolas

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 2 months ago #355253

Bonjour,

Pourriez-vous reproduire le souci après avoir activé l'option "debug" de la configuration ? Cela permettra d'avoir le message d'erreur complet pour mieux comprendre d'où vient le problème.

Please Log in or Create an account to join the conversation.

  • Posts: 30
  • Thank you received: 4
  • Hikaserial Subscription Hikashop Business
1 year 2 months ago #355254

Bonjour,
merci de votre réponse, ci-après le log:
Call stack
# Function Location
1 () JROOT/libraries/src/MVC/View/HtmlView.php:420
2 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/administrator/components/com_hikaserial/helpers/helper.php:959
3 hikaserialView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:203
4 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_hikaserial/helpers/helper.php:808
5 hikaserialView->display() JROOT/components/com_hikaserial/views/orderserial/view.html.php:18
6 orderserialViewOrderserial->display() JROOT/administrator/components/com_hikaserial/helpers/helper.php:233
7 hikaserial::getLayout() JROOT/plugins/hikashop/serials/serials.php:358
8 plgHikashopSerials->onAfterOrderProductsListingDisplay() JROOT/libraries/src/Plugin/CMSPlugin.php:284
9 Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}() JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:486
10 Joomla\Event\Dispatcher->dispatch() JROOT/libraries/src/Application/EventAware.php:111
11 Joomla\CMS\Application\WebApplication->triggerEvent() JROOT/plugins/hikashop/attachinvoice/attachinvoice/invoice.php:455
12 require() JROOT/plugins/hikashop/attachinvoice/attachinvoice.php:99
13 plgHikashopAttachinvoice->_getPDFInvoice() JROOT/plugins/hikashop/attachinvoice/attachinvoice.php:252
14 plgHikashopAttachinvoice->onHikashopBeforeDisplayView() JROOT/libraries/src/Plugin/CMSPlugin.php:284
15 Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}() JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:486
16 Joomla\Event\Dispatcher->dispatch() JROOT/libraries/src/Application/EventAware.php:111
17 Joomla\CMS\Application\WebApplication->triggerEvent() JROOT/administrator/components/com_hikashop/helpers/helper.php:2800
18 hikashopView->display() JROOT/components/com_hikashop/views/order/view.html.php:24
19 OrderViewOrder->display() JROOT/libraries/src/MVC/Controller/BaseController.php:645
20 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2552
21 hikashopController->display() JROOT/components/com_hikashop/controllers/order.php:258
22 orderController->invoice() JROOT/libraries/src/MVC/Controller/BaseController.php:678
23 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_hikashop/helpers/helper.php:2530
24 hikashopController->execute() JROOT/components/com_hikashop/hikashop.php:88
25 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
26 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
27 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
28 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:208
29 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:249
30 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293
31 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61
32 require_once() JROOT/index.php:32

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 2 months ago #355257

Hi,

Thanks. I think it comes from the last update we did to the PDF invoice plugin, combined with the use of HikaSerial.
Edit the file plugins/hikashop/attachinvoice/attachinvoice/invoice.php via FTP and change the line:

$app->triggerEvent('onAfterOrderProductsListingDisplay', array(&$order, 'order_back_invoice'));
to:
	$mode = 'order_front_show';
	if(hikashop_isClient('administrator'))
		$mode = 'order_back_invoice';
	$app->triggerEvent('onAfterOrderProductsListingDisplay', array(&$order, $mode));
It should hopefully prevent HikaSerial from trying to load the wrong view file.
Let me know how it goes so that we can include the patch on our end.

Please Log in or Create an account to join the conversation.

  • Posts: 30
  • Thank you received: 4
  • Hikaserial Subscription Hikashop Business
1 year 2 months ago #355259

super,

ça fonctionne, merci de la résolution rapide du pb

++

The following user(s) said Thank You: nicolas

Please Log in or Create an account to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum