HTML TAGS

  • Posts: 21
  • Thank you received: 0
  • Hikaserial Standard Hikashop Business Hikashop Essential
7 months 3 weeks ago #282969

-- HikaShop version -- : 3.2.1
-- HikaSerial version -- : 2.0.1
-- Joomla version -- : 3.8.2
-- PHP version -- : 7.0.25

Hi, I use Attachserial to send gift voucher to buyer, and I see that description field of the product display the html tags, like <p>description text</p>.
Is there a way to correctly display the HTML fields, or remove these HTML TAGS, with strip_tags or with script?

I need to have one serial generate by product, regardless of the quantity purchased, is it possible?
Thank you,

Last Edit: 7 months 3 weeks ago by Muadib24.

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

  • Posts: 22525
  • Thank you received: 3509
  • MODERATOR
7 months 3 weeks ago #283003

Hello,

There is no "format" for that in the AttachSerial plugin but it's something that we can add for a future release.

For the moment you can see to force the strip tags in the plugin, just before the line

$this->displayTextBox($img, (int)$d['size'], (int)$d['x'], (int)$d['y'], (int)$d['w'], (int)$d['h'], $textcolor, $localfont, $d['text']);

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: 21
  • Thank you received: 0
  • Hikaserial Standard Hikashop Business Hikashop Essential
7 months 3 weeks ago #283072

Thank you, line 438 in attachserial.php I have replaced

$d['text']);
by
strip_tags($d['text']));
I think you should change your code, who need to print html tags on gift voucher ?

And for this question, please :
I need to have one serial generate by product bought, regardless of the quantity purchased, is it possible?

Last Edit: 7 months 3 weeks ago by Muadib24.

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

  • Posts: 22525
  • Thank you received: 3509
  • MODERATOR
7 months 3 weeks ago #283090

Hello,

If you use the default interface to associate a pack with a product, it will be always depending the quantity in the cart.
Afterwards, there is a plugin called "serial per order" which will allow you to have different kind of rules for the serial attribution.

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: Muadib24

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

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