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

  • Posts: 158
  • Thank you received: 5
5 years 3 months 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: 81511
  • Thank you received: 13066
  • MODERATOR
5 years 3 months 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: 158
  • Thank you received: 5
5 years 3 months 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: 26000
  • Thank you received: 4004
  • MODERATOR
5 years 3 months 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: 158
  • Thank you received: 5
5 years 3 months 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: 4509
  • Thank you received: 611
  • MODERATOR
5 years 3 months 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: 5 years 3 months ago by Philip.

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

  • Posts: 158
  • Thank you received: 5
5 years 3 months 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: 81511
  • Thank you received: 13066
  • MODERATOR
5 years 3 months 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: 158
  • Thank you received: 5
5 years 3 months ago #302372

Thanks, all sorted now.

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

Time to create page: 0.083 seconds
Powered by Kunena Forum