[Skip to main content](#vessel-content)

#   Serials are not getting assigned to orders.

##

- **[jschroeder](/forum/user/13561-jschroeder "View jschroeder's Profile")**
- [![jschroeder's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13561-jschroeder "View jschroeder's Profile") Topic Author
- [ Offline](/forum/user/13561-jschroeder)

Less More

- Posts: 165
- Thank you received: 3
-
-

10 years 8 months ago -  10 years 8 months ago [\#232537](#232537) by [jschroeder](/forum/user/13561-jschroeder "View jschroeder's Profile")  Replied by *[jschroeder](/forum/user/13561-jschroeder "View jschroeder's Profile")* on topic *[Serials are not getting assigned to orders.](/forum/14-hikaserial/880975-serials-are-not-getting-assigned-to-orders?start=20#232537 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- Error-message(debug-mod must be tuned on) -- : Serials are not getting assigned to orders.  I have hikaserial installed and the packs and serials are assigned to my variants in my products but when I complete an order no serial is attached to the order in the backend of hikashop. I am getting frustrated at this point as I have tried every setting available and nothing works. I wanted to mention as well that I am manually importing serials.  How, do I fix this? Also, I have serial attach enbabled in the email, but nothing is being sent when an order is placed? Orders are automatically set as confirmed and the pack data is set to sql.  Also, I have consumable serials enabled and the serials are not disappearing after an order is placed.  This is a pretty urgent problem.  Also, when I set link product quantities it sets the quantity to zero even though there are 10 serials availablein my product how do I fix this as well?  Thanks,  Josh")*

Hi I have finally gotten back around to this again. i have tried setting the height and width of the barcode in the Size (W/H) area and the height is the only thing that changes. The width field has zero effect on making the barcode wider I am using a code39 format. I am using 1.10.2 and 2.6.1 of hikashop.

How can i get the width of the barcode to increase. I tried as you suggested and the only that changes is the height of the barcode.

I want the barcode to be about 600px wide by 150px high

Last edit: 10 years 8 months ago by [jschroeder](/forum/user/13561-jschroeder "View jschroeder's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE0LWhpa2FzZXJpYWwvODgwOTc1LXNlcmlhbHMtYXJlLW5vdC1nZXR0aW5nLWFzc2lnbmVkLXRvLW9yZGVycz9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

10 years 8 months ago [\#232539](#232539) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Serials are not getting assigned to orders.](/forum/14-hikaserial/880975-serials-are-not-getting-assigned-to-orders?start=20#232539 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- Error-message(debug-mod must be tuned on) -- : Serials are not getting assigned to orders.  I have hikaserial installed and the packs and serials are assigned to my variants in my products but when I complete an order no serial is attached to the order in the backend of hikashop. I am getting frustrated at this point as I have tried every setting available and nothing works. I wanted to mention as well that I am manually importing serials.  How, do I fix this? Also, I have serial attach enbabled in the email, but nothing is being sent when an order is placed? Orders are automatically set as confirmed and the pack data is set to sql.  Also, I have consumable serials enabled and the serials are not disappearing after an order is placed.  This is a pretty urgent problem.  Also, when I set link product quantities it sets the quantity to zero even though there are 10 serials availablein my product how do I fix this as well?  Thanks,  Josh")*

Hi,

Sure.
If you take a look at my answer in the first page (post 223962).
[ www.hikashop.com/forum/14-hikaserial/880...?limitstart=0#223962](https://www.hikashop.com/forum/14-hikaserial/880975-serials-are-not-getting-assigned-to-orders.html?limitstart=0#223962)

> The size settings "width" and "height" allow to change the "line width" and "height" into the barcode generator library.

So you can modify the width parameter but it won't have any effect.
Like I wrote, you need to change the "size".

The reason is that there is no real width with a barcode ; but you can define the size of the lines.
Exactly like you can define the size of the squares in the QRCode mode.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE0LWhpa2FzZXJpYWwvODgwOTc1LXNlcmlhbHMtYXJlLW5vdC1nZXR0aW5nLWFzc2lnbmVkLXRvLW9yZGVycz9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jschroeder](/forum/user/13561-jschroeder "View jschroeder's Profile")**
- [![jschroeder's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13561-jschroeder "View jschroeder's Profile") Topic Author
- [ Offline](/forum/user/13561-jschroeder)

Less More

- Posts: 165
- Thank you received: 3
-
-

10 years 8 months ago -  10 years 8 months ago [\#232645](#232645) by [jschroeder](/forum/user/13561-jschroeder "View jschroeder's Profile")  Replied by *[jschroeder](/forum/user/13561-jschroeder "View jschroeder's Profile")* on topic *[Serials are not getting assigned to orders.](/forum/14-hikaserial/880975-serials-are-not-getting-assigned-to-orders?start=20#232645 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- Error-message(debug-mod must be tuned on) -- : Serials are not getting assigned to orders.  I have hikaserial installed and the packs and serials are assigned to my variants in my products but when I complete an order no serial is attached to the order in the backend of hikashop. I am getting frustrated at this point as I have tried every setting available and nothing works. I wanted to mention as well that I am manually importing serials.  How, do I fix this? Also, I have serial attach enbabled in the email, but nothing is being sent when an order is placed? Orders are automatically set as confirmed and the pack data is set to sql.  Also, I have consumable serials enabled and the serials are not disappearing after an order is placed.  This is a pretty urgent problem.  Also, when I set link product quantities it sets the quantity to zero even though there are 10 serials availablein my product how do I fix this as well?  Thanks,  Josh")*

I am sorry but I have tried every parameter available in the back end under barcode including size, size(w&amp;h) and the barcode width and height and nothing changes either the width of the barcode nor the width of the lines in the barcode that is why i posted this here. I promise you there is something wrong when using a code39 barcode.

The **size parameter** works when you use a code128 barcode, qr code, etc but when using a code39 barcode the size does not change when you use the size parameter. I even attached my settings for you. If you set the size parameter to 4 then with the code128 barcode then the lines get 4 times as wide, but when you set it to 4 for a code39 nothing changes at all. There has to be some sort of bug.

This is something I need fixed pretty urgently as I have to be done with the site this friday and I need to be working on this today. I cannot finish laying out my coupon without this so, this is holding me back from finishing it.
Also, how do I change the font size of the serial number below the barcode I see no option for this? It does not appear to change size even if the barcode gets bigger and it is currently way to small. It should get bigger as well when the barcode line width increases.

- [ ![code39-setting.jpg](/forum/attachment/29988) ](/forum/attachment/29988 "...39-setting.jpg") [ ](/forum/attachment/29988?download=1 "...39-setting.jpg")
- [ ![code39.jpg](/forum/attachment/29989) ](/forum/attachment/29989 "code39.jpg") [ ](/forum/attachment/29989?download=1 "code39.jpg")
- [ ![code128.jpg](/forum/attachment/29990) ](/forum/attachment/29990 "code128.jpg") [ ](/forum/attachment/29990?download=1 "code128.jpg")
- [ ![code-128-settings.jpg](/forum/attachment/29991) ](/forum/attachment/29991 "...8-settings.jpg") [ ](/forum/attachment/29991?download=1 "...8-settings.jpg")

Last edit: 10 years 8 months ago by [jschroeder](/forum/user/13561-jschroeder "View jschroeder's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE0LWhpa2FzZXJpYWwvODgwOTc1LXNlcmlhbHMtYXJlLW5vdC1nZXR0aW5nLWFzc2lnbmVkLXRvLW9yZGVycz9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

10 years 8 months ago [\#232650](#232650) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Serials are not getting assigned to orders.](/forum/14-hikaserial/880975-serials-are-not-getting-assigned-to-orders?start=20#232650 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- Error-message(debug-mod must be tuned on) -- : Serials are not getting assigned to orders.  I have hikaserial installed and the packs and serials are assigned to my variants in my products but when I complete an order no serial is attached to the order in the backend of hikashop. I am getting frustrated at this point as I have tried every setting available and nothing works. I wanted to mention as well that I am manually importing serials.  How, do I fix this? Also, I have serial attach enbabled in the email, but nothing is being sent when an order is placed? Orders are automatically set as confirmed and the pack data is set to sql.  Also, I have consumable serials enabled and the serials are not disappearing after an order is placed.  This is a pretty urgent problem.  Also, when I set link product quantities it sets the quantity to zero even though there are 10 serials availablein my product how do I fix this as well?  Thanks,  Josh")*

Hi,

My bad.
It looks like the library BarCode2 (from pear : [ pear.php.net/package/Image\_Barcode2](http://pear.php.net/package/Image_Barcode2)) does not support the setting "width" for some barcode formats.
You can find that lib in the folder "administrator/components/com_hikaserial/inc/barcode/Barcode2/".

In the file "Barcode2.php" we can find the code Code:

if (!$obj instanceof Image_Barcode2_DualWidth) { $obj-&gt;setBarcodeWidth($width); }

And the driver "Code39" is a "dual width" driver Code:

class Image_Barcode2_Driver_Code39 extends Image_Barcode2_Common implements Image_Barcode2_Driver, Image_Barcode2_DualWidth

But not the driver Code128 Code:

class Image_Barcode2_Driver_Code128 extends Image_Barcode2_Common implements Image_Barcode2_Driver

So I think it would require some modifications directly in the lib in order to support that "dual width" and allow you to change it.
Like Code:

if (!$obj instanceof Image_Barcode2_DualWidth) { $obj-&gt;setBarcodeWidth($width); } elseif ($width &gt; 1) { $thin = $obj-&gt;getBarcodeWidthThin() * $width; $obj-&gt;setBarcodeWidthThin($thin); $thick = $obj-&gt;getBarcodeWidthThick() * $width; $obj-&gt;setBarcodeWidthThick($thick); }

Let me know if it helps.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE0LWhpa2FzZXJpYWwvODgwOTc1LXNlcmlhbHMtYXJlLW5vdC1nZXR0aW5nLWFzc2lnbmVkLXRvLW9yZGVycz9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[jschroeder](/forum/user/13561-jschroeder "View jschroeder's Profile")**
- [![jschroeder's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/13561-jschroeder "View jschroeder's Profile") Topic Author
- [ Offline](/forum/user/13561-jschroeder)

Less More

- Posts: 165
- Thank you received: 3
-
-

10 years 8 months ago -  10 years 8 months ago [\#232653](#232653) by [jschroeder](/forum/user/13561-jschroeder "View jschroeder's Profile")  Replied by *[jschroeder](/forum/user/13561-jschroeder "View jschroeder's Profile")* on topic *[Serials are not getting assigned to orders.](/forum/14-hikaserial/880975-serials-are-not-getting-assigned-to-orders?start=20#232653 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- Error-message(debug-mod must be tuned on) -- : Serials are not getting assigned to orders.  I have hikaserial installed and the packs and serials are assigned to my variants in my products but when I complete an order no serial is attached to the order in the backend of hikashop. I am getting frustrated at this point as I have tried every setting available and nothing works. I wanted to mention as well that I am manually importing serials.  How, do I fix this? Also, I have serial attach enbabled in the email, but nothing is being sent when an order is placed? Orders are automatically set as confirmed and the pack data is set to sql.  Also, I have consumable serials enabled and the serials are not disappearing after an order is placed.  This is a pretty urgent problem.  Also, when I set link product quantities it sets the quantity to zero even though there are 10 serials availablein my product how do I fix this as well?  Thanks,  Josh")*

Thank you so much that fixed it. The question I have now is how to increase the size of the serial number below the barcode it is very small right now?

On second though how can I just hide the serial number below the barcode? I have a weird situation where the real barcode is like below. However, the company has a separate code that they call the "viewable barcode and it is the real barcode minus the first 2 letters of the real barcode in their stores like below:

Real Barcode:
$PQ9K6XTZ

Viewable Barcode:
Q9K6XTZ

Also, how do I call my serial extra data in my order sheet that is sent to the customer after they purchase an order? Currently it sends the serial number, but I need to be able to remove the serial number and replace it with the serial extra data in my order receipt that is sent to the customer.

Last edit: 10 years 8 months ago by [jschroeder](/forum/user/13561-jschroeder "View jschroeder's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE0LWhpa2FzZXJpYWwvODgwOTc1LXNlcmlhbHMtYXJlLW5vdC1nZXR0aW5nLWFzc2lnbmVkLXRvLW9yZGVycz9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

10 years 8 months ago [\#232674](#232674) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Serials are not getting assigned to orders.](/forum/14-hikaserial/880975-serials-are-not-getting-assigned-to-orders?start=20#232674 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- Error-message(debug-mod must be tuned on) -- : Serials are not getting assigned to orders.  I have hikaserial installed and the packs and serials are assigned to my variants in my products but when I complete an order no serial is attached to the order in the backend of hikashop. I am getting frustrated at this point as I have tried every setting available and nothing works. I wanted to mention as well that I am manually importing serials.  How, do I fix this? Also, I have serial attach enbabled in the email, but nothing is being sent when an order is placed? Orders are automatically set as confirmed and the pack data is set to sql.  Also, I have consumable serials enabled and the serials are not disappearing after an order is placed.  This is a pretty urgent problem.  Also, when I set link product quantities it sets the quantity to zero even though there are 10 serials availablein my product how do I fix this as well?  Thanks,  Josh")*

Hi,

I see that the lib have "getFontSize / setFontSize" functions but there is no single call of the "set".
So I guess that you can see to replace Code:

$obj-&gt;setShowText($showText);

By Code:

$obj-&gt;setShowText($showText); if ($showText &amp;&amp; $width &gt; 1) { $fontSize = $obj-&gt;getFontSize() * $width; $obj-&gt;setFontSize($fontSize); }

In order to change the font size with the same factor than the width.

About the display of the serial ; you just need to change the configuration of your "attach serial" instance and just display the serial as a "barcode" and not as a raw text.
The Code39 barcode format perform a little modification of the content ; some formats (like EAN13) requires a content which follow the specifications but some other format will add some content to include the checksum (etc).

For your last question, it would require a custom plugin in order to change the serial display.
You have to use the trigger "onDisplaySerials" to do so :
[ www.hikashop.com/support/documentation/1...fct\_ondisplayserials](http://www.hikashop.com/support/documentation/125-hikaserial-developer.html#fct_ondisplayserials)

Regards,

PS : Please try to avoid the multiple edition of your message in order to add new questions

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE0LWhpa2FzZXJpYWwvODgwOTc1LXNlcmlhbHMtYXJlLW5vdC1nZXR0aW5nLWFzc2lnbmVkLXRvLW9yZGVycz9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.065 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
