Separate print template

  • Posts: 197
  • Thank you received: 13
1 year 9 months ago #348970

-- HikaShop version -- : 4.7
-- Joomla version -- : 4.2.6
-- PHP version -- : 8.1

in order listing page, when we click on print order button, it sends order information to the printer with the html template of the file "show.php"

is there any solution that i can separate this files ?

i need a file to show the order detail on computer, and another file to create template for printing order

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 9 months ago #348975

Hi,

Sure. When you want to modify that view file order / show via the menu Display>Views, it will save the file in templates/YOUR_TEMPLATE/html/com_hikashop/order/show.php
Copy it via FTP, for example to show_invoice.php and show_website.php
Then, in the show.php file, remove all the code and replace it by:

<?php
if($this->invoice_type == 'order') {
include('show_website.php');
}else{
include('show_invoice.php');
}
That way, you'll now have two different files that you can modify separately.

The following user(s) said Thank You: yerg55

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

  • Posts: 197
  • Thank you received: 13
1 year 9 months ago #349002

as usual , HikaShop made it B) B)
thank you

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

Time to create page: 0.040 seconds
Powered by Kunena Forum