Increase the size of the product description window in the back-end

  • Posts: 125
  • Thank you received: 1
  • Hikashop Business
6 months 2 weeks ago #302153

-- HikaShop version -- : 4.0.1
-- Joomla version -- : 3.9.1

Hello, my client would like a larger window to add / edit the product description in the back-end - is this possible?

I've looked at the page ... administrator/components/com_hikashop/views/product/tmpl/form.php and can see that the div class is set to <div class="hk-container-fluid">. Can I change this to make the display look different?

Thanks

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

  • Posts: 66308
  • Thank you received: 9731
  • MODERATOR
6 months 2 weeks ago #302154

Hi,
Yes that's the file where you want to change that. However, it's better to do it with a view override via the menu Display>Views.
You'll want to change the line:

<div class="hkc-xl-4 hkc-lg-6 hikashop_product_block hikashop_product_edit_description"><div>
For example, you could set the hkc-xl-4 to hkc-xl-8
And the line:
<?php echo $this->editor->display(); ?>
which you could replace by something like that:
<?php echo $this->editor->width = 1100; $this->editor->display(); ?>
where 1100 is the width in px that you want for the editor.

The following user(s) said Thank You: serbofleconcepts

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

  • Posts: 125
  • Thank you received: 1
  • Hikashop Business
6 months 2 weeks ago #302175

Thanks Nicolas, I've found a suitable width using the div class. The code you suggested below that causes the contents to be replaced with whatever the width is, but anyway, this is not needed.

Is there a way to adjust the height of the description box?

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

  • Posts: 23551
  • Thank you received: 3654
  • MODERATOR
6 months 1 week ago #302178

Hello,

Same code as previously but "height" instead of "width".

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: 125
  • Thank you received: 1
  • Hikashop Business
6 months 1 week ago #302256

I tried this, but as I said above, whatever value I enter into this part of the code replaces the product text in the back-end?

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

  • Posts: 2188
  • Thank you received: 292
  • MODERATOR
6 months 1 week ago #302264

Hello,

Sorry, but can you detail what you mean by "replaces the product text in the back-end" because we aren't sure to understand you well, use screenshot or code sample and describe results please.

Sorry for this return and awaiting news from you.
Regards

Last edit: 6 months 1 week ago by Philip.

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

  • Posts: 125
  • Thank you received: 1
  • Hikashop Business
6 months 1 week ago #302321

Hello, so this is the code I'm implementing in the form.php page;

<?php echo $this->editor->width = 1100; $this->editor->display(); ?>

This results in the following display in the product editor page;

Attachments:

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

  • Posts: 66308
  • Thank you received: 9731
  • MODERATOR
6 months 1 week ago #302331

Hi,

Sorry, the code I gave is wrong.
It should be:

<?php $this->editor->width = 1100; echo $this->editor->display(); ?>

The following user(s) said Thank You: serbofleconcepts

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

  • Posts: 125
  • Thank you received: 1
  • Hikashop Business
6 months 1 week ago #302372

Thanks, all sorted now.

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

Time to create page: 0.073 seconds
Powered by Kunena Forum