Skip to main content

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

More
7 years 9 months ago #302153 by serbofleconcepts
-- 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.

More
7 years 9 months ago #302154 by nicolas
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:
Code:
<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:
Code:
<?php echo $this->editor->display(); ?>
which you could replace by something like that:
Code:
<?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.

More
7 years 9 months ago #302175 by serbofleconcepts
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.

More
7 years 8 months ago #302178 by Jerome
Hello,

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

Regards,

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

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

More
7 years 8 months ago #302256 by serbofleconcepts
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.

More
7 years 8 months ago - 7 years 8 months ago #302264 by Philip
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: 7 years 8 months ago by Philip.

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

More
7 years 8 months ago #302321 by serbofleconcepts
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;

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

More
7 years 8 months ago #302331 by nicolas
Hi,

Sorry, the code I gave is wrong.
It should be:
Code:
<?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.

More
7 years 8 months ago #302372 by serbofleconcepts

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

Time to create page: 0.234 seconds
Powered by Kunena Forum