print multiple (confirmed) invoices

  • Posts: 344
  • Thank you received: 3
11 years 1 week ago #166468

-- HikaShop version -- : 2.3.2
-- Joomla version -- : 2.5

I am missing one very important function in Hikashop

1. To be able to print multiple (confirmed) invoices at the same time
Now I have go in to each and each order and print the invoice. This takes up to much time.

2. In the feature there should also be filters so you could choose "dates" and order status like displaying "confirmed orders".

There should also be the same function for Shipping invoice. Which should easy be attached to the package. So you don't have to write name and address by hand.

These function would save us a lot of work

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

  • Posts: 68
  • Thank you received: 8
  • Hikashop Business
11 years 1 week ago #166524

You can export multiple invoices as a pdf using this plugin hikashop.com/component/hikashop/product/cid-18.html
However these are always full invoices not shipping invoices.

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

  • Posts: 26264
  • Thank you received: 4043
  • MODERATOR
11 years 1 week ago #166533

Hi,

1. Like MumsHealth said, that's already possible with the PDF invoice plugin: hikashop.com/component/hikashop/product/cid-18.html
You select all the orders you want in your orders listing, click on the "invoice" button, and it will generate a PDF of the invoices of all the orders that you can easily print in one go.

2. The orders listing already has dates and order status filters on the top right of the screen.

We don't have a ready-made solution for you for shipping invoices though. That would require to modify the PDF invoice plugin to also handle the shipping invoices. A PHP developer would be able to do that for you.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Last edit: 10 years 10 months ago by Jerome.

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

  • Posts: 29
  • Thank you received: 2
10 years 10 months ago #172717

I have purchased this plugin. It will allow me to print multiple invoices. However, when the .pdf invoice is created, it doesn't include the shipping address. It also does not pick up the changes I have made in the order of the address items on the invoice. I changed the address format to have it show City, State, Postal Code instead of the default Postal Code, City, State.

I need the shipping address to show on my printed invoice and have the address in the correct format for US shipping. How can I accomplish this?

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

  • Posts: 26264
  • Thank you received: 4043
  • MODERATOR
10 years 10 months ago #172731

Hi,

The PDF invoice plugin does not use the "address format" from the "address_template" view.
If you want to change the address display for the PDF, you need to override the "invoice.php" file.
For the override instructions, see : www.hikashop.com/forum/2-general-talk-ab...-invoice-plugin.html

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 29
  • Thank you received: 2
10 years 10 months ago #172981

Thanks for the reply. I have located the correct invoice.php file and have copied it to the correct directory for printing the .pdf invoice. However, I have not figured out how to edit the code so that the shipping address will be displayed in the .pdf invoice along with the billing invoice. Is that something you can show me? The code section is below:

<table class="addresses">
	<tr>
<?php
$addresses = array('billing_address','shipping_address');
foreach($addresses as $oneAddress){
	if(empty($order->$oneAddress)) continue;
	if ($oneAddress=='shipping_address' && empty($pluginsShipping)) continue; ?>
		<td valign="top">
			<fieldset>
			<legend><?php echo JText::_('HIKASHOP_'.strtoupper($oneAddress)); ?></legend>
<?php
	if(!empty($order->$oneAddress->address_company)) echo $order->$oneAddress->address_company.'<br/>';
	echo $order->$oneAddress->address_title.' '.$order->$oneAddress->address_firstname.' '.$order->$oneAddress->address_lastname.'<br/>';
	echo $order->$oneAddress->address_street.'<br/>';
	echo $order->$oneAddress->address_post_code.' '.$order->$oneAddress->address_city.' '.$order->$oneAddress->address_state.'<br/>';
	if(!empty($order->$oneAddress->address_telephone)) echo JText::sprintf('TELEPHONE_IN_ADDRESS',$order->$oneAddress->address_telephone).'<br/>';
	if(!empty($order->$oneAddress->address_vat)) echo JText::_('VAT_NUMBER').' : '.$order->$oneAddress->address_vat.'<br/>';
?>
			</fieldset>
		</td>
<?php } ?>
	</tr>
</table>
Thanks again.

Last edit: 10 years 10 months ago by Jerome. Reason: [code] is nice !

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

  • Posts: 26264
  • Thank you received: 4043
  • MODERATOR
10 years 10 months ago #173197

Hi,

Well, the code is displaying the billing_address and the shipping_address in two cells of a single table.
The diffent "echo" are displaying the different parts of the address, for the different lines and the different elements.
Sometimes there are some checks in order to see if the field is empty or not, in order to know if the field has to be displayed or not.

If the order does not have an order_shipping_id, the plugin is made to skip the shipping address.
The skip is made by the code

if ($oneAddress=='shipping_address' && empty($pluginsShipping)) continue; ?>
that you can replace by
 ?>
to not do the shipping skip if you don't have any shipping method for the order.

Otherwise, I really don't know what I can say.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: brob34

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

  • Posts: 29
  • Thank you received: 2
10 years 10 months ago #173364

I figured it out. Thanks for your help!

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

Time to create page: 0.093 seconds
Powered by Kunena Forum