Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
Author « Topic »  

cpcsigns
Advanced Member

USA
139 Posts

Pre-sales questions only
(More Details...)

Posted - 03/16/2018 :  15:06:36  
Is there anyway to make barcodes generate on the orders? maybe a mod?

They work great in the warehouse system for scanning and pulling orders.

Michelle L Cosen

dbdave
ECT Moderator

USA
10468 Posts

Posted - 03/16/2018 :  19:18:42  
I'm doing it. I'll see if I can get you the details from our setup. May be a day or so.

cpcsigns
Advanced Member

USA
139 Posts

Pre-sales questions only
(More Details...)

Posted - 03/19/2018 :  06:35:03  
Hey that sounds great.. we are still putting product in.. so a few days is fine with me. Thanks!!

Michelle L Cosen

dbdave
ECT Moderator

USA
10468 Posts

Posted - 03/19/2018 :  18:57:28  
Ok, I had tested several ways to generate a barcode and in the end, this is what we have been using
https://www.jqueryscript.net/other/Simple-jQuery-Based-Barcode-Generator-Barcode.html

But what I have is a custom developed pack slip generator and I use it on that.
I am also on .asp

I am thinking it should be possible to use css to do this.
We just need to be sure the font is available.
I am going to run some tests and see what I come up with and I'll post back.

dbdave
ECT Moderator

USA
10468 Posts

Posted - 03/19/2018 :  20:39:40  
Hi, I have been looking at I did come up with a way to create the barcode with .css only.
I have a test page here
http://www.trophykitsdev.com/dev1/barcode-test.asp

But what I am working on is a way to set this up without hacking the admin code.
I'll post back shortly on my results.

dbdave
ECT Moderator

USA
10468 Posts

Posted - 03/19/2018 :  21:54:02  
Ok, I have tested this in my .asp admin and I thought I had a trick in mind to avoid any mods to the code, but it's just not possible it seems.
We can change any class to a bar code with the css and the order ID in your admin has a class for Order Number xxxxx and we want only the order ID to have a barcode, not the text "Order Number"
So what I did for my test was go into the inc/incorders.asp file and add a span tag around the order number and then I could apply the .css and it worked.

here are the steps
I started here and went to step 4 to download the zip file
https://google-webfonts-helper.herokuapp.com/fonts/libre-barcode-39-extended-text?subsets=latin
unzip the file and there should be 5 files inside.

I created a directory in the vsadmin folder named - barcode-fonts then uploaded the five files to that new directory via FTP

Then in my custom admin .css file, ectadmincustom.css (if you don't have one, you can create one)
I added the following
@media all{
/* libre-barcode-39-extended-text-regular - latin */
@font-face {
font-family: 'Libre Barcode 39 Extended Text';
font-style: normal;
font-weight: 400;
src: url('barcode-fonts/libre-barcode-39-extended-text-v4-latin-regular.eot'); /* IE9 Compat Modes */
src: local('Libre Barcode 39 Extended Text'), local('LibreBarcode39ExtendedText-Regular'),
url('barcode-fonts/libre-barcode-39-extended-text-v4-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('barcode-fonts/libre-barcode-39-extended-text-v4-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('barcode-fonts/libre-barcode-39-extended-text-v4-latin-regular.woff') format('woff'), /* Modern Browsers */
url('barcode-fonts/libre-barcode-39-extended-text-v4-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('barcode-fonts/libre-barcode-39-extended-text-v4-latin-regular.svg#LibreBarcode39ExtendedText') format('svg'); /* Legacy iOS */
}
some.class {
font-family: "Libre Barcode 39 Extended Text", LibreBarcode39ExtendedText-Regular, Verdana, calibri;
font-size: 36pt;
}

}

The part in red there is where you can add any class to convert that text to a barcode.

For example if you had
div.orderid {
font-family: "Libre Barcode 39 Extended Text", LibreBarcode39ExtendedText-Regular, Verdana, calibri;
font-size: 36pt;
}
then the entire line will turn into a barcode.
However we want just the order ID.
in the .asp version we change
print "<div class=""orderid"">" & xxOrdNum & " " & IIfVr(getget("id")="new","("&yyNewOrd&")", ordID)
to
print "<div class=""orderid"">" & xxOrdNum & " " & IIfVr(getget("id")="new","("&yyNewOrd&")","<span class=""barcode"">" & ordID & "</span>" )
but I don't have a current version of the .php cart so I can't tell you how to wrap that order ID in a span tag.

Perhaps someone else can help with that, or if you want to send me a message (click my user name) and then email me your incorders.php file, I'll see if I can make the edit.

cpcsigns
Advanced Member

USA
139 Posts

Pre-sales questions only
(More Details...)

Posted - 03/20/2018 :  03:39:37  
I am going to forward to my counterpart that is more experienced than me on this front.

I appreciate the help!!

Michelle L Cosen
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000