Error after Checkout - Try to install E-Tickets with HikaSerial

  • Posts: 33
  • Thank you received: 3
  • Hikaserial Subscription Hikashop Business
1 week 1 day ago #367387

Something like this:


I am able to add the input field, but unfortunately not the logical delimitation of the component, only to attach the serials of the order to the selected shipping methods ...

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

  • Posts: 26251
  • Thank you received: 4040
  • MODERATOR
1 week 20 hours ago #367405

Hello,

In the HikaSerial product, you write "If you have problems installing HikaSerial, we will take care of it for you." Unfortunately, I can't get any further with the installation at the moment.

Regarding the screenshots, HikaSerial is installed in your website.
What you're talking about is "configuration", not "installation".

The support forum is there to help regarding the configuration of the products ; but there is also a difference between a bug and a feature that you want.
Some requested feature can be developed and added into future release ; such as the support of custom field translations ; but we can't add every requests.

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: 33
  • Thank you received: 3
  • Hikaserial Subscription Hikashop Business
1 week 16 hours ago #367410

Hello,
I am always able to support your work with a donation on behalf of my non-profit organisation. I would also try to implement the "shipping_method" function myself. But unfortunately I don't feel able to implement it myself at the moment without support from you. I would really appreciate it if you could take a closer look at my screenshot and my function request. This is certainly a very useful and attractive function for the component and other customers.

Hoping for a positive feedback.

Sincerely.

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

  • Posts: 33
  • Thank you received: 3
  • Hikaserial Subscription Hikashop Business
5 days 3 hours ago #367437

michael.koch@breisig.live wrote: Hello !
When setting the data on the e-ticket (PDF), I am still missing the option to display the texts in bold or in italics or underlined.

michael.koch@breisig.live wrote:

Jerome wrote: 1 - Bold and Italics is made via the font.
CF : tcpdf.org/docs/fonts/

Thanks, okay i will check this.


Hello,
Regarding the above point, you replied that this can be done via fonts. I have read through the documentation and it is not yet clear to me how I can integrate other fonts. Can you please help me here and explain exactly how this works? Thank you !

Last edit: 5 days 3 hours ago by michael.koch@breisig.live.

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

  • Posts: 26251
  • Thank you received: 4040
  • MODERATOR
3 days 18 hours ago #367466

Hello,

Sorry, I mixed up with another library which do not use font attributions but the selection of the specific font name ("arialb" for "arial bold").

So, we will add the attributes directly in the PDFSerial configuration !

Please edit the file "pdfserial_configuration.php" and replace

<?php echo JHTML::_('select.genericlist', $fonts, $map.'[font]', 'class="custom-select"', 'value', 'text', @$text['font'], 'attserial_fonts_' . $i); ?><br/>
By
<?php echo JHTML::_('select.genericlist', $fonts, $map.'[font]', 'class="custom-select"', 'value', 'text', @$text['font'], 'attserial_fonts_' . $i); ?><br/>
<label><input type="checkbox" name="<?php echo $map ?>[font_attr][]" value="b" <?php echo (in_array($text['font_attr'] ?? [], 'b')) ? 'checked="checked"' : ''; ?>/> Bold</label> 
<label><input type="checkbox" name="<?php echo $map ?>[font_attr][]" value="i" <?php echo (in_array($text['font_attr'] ?? [], 'i')) ? 'checked="checked"' : ''; ?>/> Italic</label> 
<label><input type="checkbox" name="<?php echo $map ?>[font_attr][]" value="u" <?php echo (in_array($text['font_attr'] ?? [], 'u')) ? 'checked="checked"' : ''; ?>/> Underline</label> 

Then edit the file "pdfserial.php" and replace
$pdf->SetFont($font, '', (int)$d['size']);
with
$font_attr = '';
if(!empty($d['font_attr'])) {
	$font_attr = array_intersect($d['font_attr'], array('b','i','u'));
	$font_attr = strtoupper(implode('', $font_attr));
}
$pdf->SetFont($font, $font_attr, (int)$d['size']);
In the same file, you will have to replace two times the line (be careful with the added comas)
'font' => @$text['font']
By
'font' => @$text['font'],
'font_attr' => @$text['font_attr'],

With that patch, you will have the base for the font attributes.
But if you add new rows to the configuration, the won't have the attributes until you save the configuration.

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.

Moderators: Obsidev
Time to create page: 0.063 seconds
Powered by Kunena Forum