Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 04-30-2024 09:37:09

KryptSupport
Member
Registered: 04-29-2024
Posts: 77

Barcode Generator

NOTE: This post was created on 2023-08-01 on the Kryptronic eCommerce Community facebook page, which has been replaced with this forum.  All facebook support content was migrated into this forum in April 2024.

Anthony:

Barcodes on INTERNAL Order Confirmation email. From what I understand, there is a barcode generator built into K9, before I used a separate barcode.php generator to create barcodes.                 What I need to do is to add a barcode to the Internal Order Confirmation email for each item ordered, the ITEM NUMBER for the product IS the required barcode (so no need to fill out/clone the barcode database field on the inventory items)  Is this just a simple matter of adding this to the "ordersummaryxhtml.php":                                                                       $barcodenumber = $this->xhtml_encode($item['itemnum']);                                                                                             
$js_docready = 'jQuery(\'' . $barcodenumber . '\', \'code39\',{\'barWidth\': 1, \'barHeight\': 80, \'fontSize\': 20});';
$this->append_global_array('core.js_docready',$js_docready);

Nick:

The internal order confirmations print barcodes for items if barcodes are entered. The code you posts should work for using the item number instead of the barcode. Go ahead and try it.

Nick:

Oh, and if you're using 9.3, custom code is separate in that version, so upload your custom copy of ordersummaryxhtml.php to /private/custom/apps/ecom/ECOM/includes instead of overwriting the file in /private/apps/ecom/ECOM/includes. That will isolate your mods so they are retained in future updates.

Anthony:

Thanks again Nick, yes... I make a copy of the script and give it a new name and call it from the mail messages....
I still had problems making it work, so I switched it to use my old barcode php generator, which is fine as its only for internal orders

Evan:

Does this barcode.php generator pull data from your K9 inventory database? The reason I ask is that we've been wanting to find a utility that we can query certain fields of the inventory database to populate a label so we can print and apply barcodes to items that don't have readable barcodes and hopefully create a check-barcode function in the future to integrate into the shipping screen so that staff can scan verify the correct items for shipping. We used to have this functionality in StoneEdge (Monsoon) years ago and miss that functionality. 😎

Anthony:

hi, yes, it will pull any field from the database using a <div> tag... I'm out.of the office at the moment, but I cam give further details tomorrow.

However, I do believe that Nick has already implemented a similar thing in K9, but as u already had something like that running in k8 I just implemented that code.

I use it specifically for my product I'd, so that I can scan the barcode and it automatically sends the job to the print and cut machines.

Anthony:

I used the PHP Barcode Image Generator v1.09 (9/28/2000) by Charles J. Schofield. This is file and folder is in my root directory - the instructions are all in the php file. I use it like this: print ' <td><div align="center"><img src="https://www.funkybunky.co.uk/barcode/barcode.php?barcode=' . $number . '&height=20&width=110&text=0"></div></td>'; This is in my ordersummaryxhtmlnew.php file so it gives me the 4 digit barcode I need for my products, you will have to add an extra column in the order printout to accommodate this - Hope that helps

Offline

 

Board footer