Help with a product

  • Posts: 80
  • Thank you received: 2
  • Hikashop Business
2 weeks 4 days ago #364450

-- HikaShop version -- : 5.1.1
-- Joomla version -- : 5.2.1
-- PHP version -- : 8.3.12
-- Browser(s) name and version -- : Firefox 132.0.2

Hi All

Can you please help me a problem what i am trying to do is is to have one product first and then anothert under neathlike this.

Product Colour Red and i wont a chose to pick another coulor.
Colour Blue
Colour Black
Colour White

Thanks
J

Last edit: 2 weeks 4 days ago by Uniweb.

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

  • Posts: 82913
  • Thank you received: 13389
  • MODERATOR
2 weeks 4 days ago #364453

Hi,

Then, you can use characteristics / variants:
www.hikashop.com/support/support/documen...html#characteristics
However, you want to change the "characteristic selection method" setting of the HikaShop configuration to "list":
www.hikashop.com/support/documentation/5...html#display_product
That way, you'll get a listing of variants on the products page.

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

  • Posts: 80
  • Thank you received: 2
  • Hikashop Business
2 weeks 3 days ago #364471

HI Nicolas

Thanks for all your help with the above issue, but can you help me with a new problem i am trying to delete all the Country and States but i wont to keep all the UK ones.

So what i wont is to only have all the Counties of the UK.

Thanks

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

  • Posts: 82913
  • Thank you received: 13389
  • MODERATOR
2 weeks 1 day ago #364482

Hi,

Why do you want to do that ?
First, if you delete the countries / states, next time you update HikaShop, it will add back all the deleted zones. So, instead I would rather recommend to unpublish the zones.
Second, if you delete or unpublish the countries, the states of these countries won't be used since the user can only select among the states of the currently selected country. So there should be no reason to delete or unpublish the states.
Unpublishing all the countries at once is quite easy:
- go to the System>Zones menu
- increase the number of elements per page to 500
- use the filters on the top right corner to have only the countries
- use the global checkbox to select all the countries
- unselect the UK
- click on the unpublish button at the top

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

  • Posts: 80
  • Thank you received: 2
  • Hikashop Business
1 week 6 days ago #364568

Hi Nicolas

What do you think causes this i have attached a photo for you to look at.

Thanks
John

Attachments:

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

  • Posts: 4753
  • Thank you received: 644
  • MODERATOR
1 week 5 days ago #364569

Hello,

Can you be more specific in your current issue, because sorry for this return, but we don't see any weird situation in your screenshot...
Provide more elements like description, detailed allowing us to understand, annotated screenshot (red bordered issue part).

Regards

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

  • Posts: 80
  • Thank you received: 2
  • Hikashop Business
1 week 5 days ago #364586

Hi Philip

Why i click on Variants and click on the edit button i can not see the Description part underthe word Description. I have tryed this on other browsers and its the same:(. Can some one please help me.

Thanks
J

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

  • Posts: 80
  • Thank you received: 2
  • Hikashop Business
1 week 5 days ago #364592

HI

I have just tryed it with a new install and also instaaled your data pack and it is still doing the same :(.

I have just installed Joomla 4 and it still dose the same.

Last edit: 1 week 5 days ago by Uniweb.

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

  • Posts: 82913
  • Thank you received: 13389
  • MODERATOR
1 week 5 days ago #364587

Hi,

So you mean that the HTML editor displays fine for main products, but not for variants, is that correct ?
In that case, try deactivating the form customization, with the corresponding button at the bottom of the product edit page, in the green area. It should help circumvent the problem.

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

  • Posts: 80
  • Thank you received: 2
  • Hikashop Business
1 week 4 days ago #364615

Hi Nicolas

Yes you are right - I can see the HTML editor display in the main products section, but when i click on variants i can not see the HTML editor. I have turned off the customization but it is still the same. I have tried it on Joomla 4 and Joomla 5 with a fresh install of joomla and HikaShop and it is still the same. :( :( :( :( . Please help me...

Thanks

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

  • Posts: 82913
  • Thank you received: 13389
  • MODERATOR
1 week 3 days ago #364618

Hi,

Deactivating the form customization has worked each time someone else contacted us with a similar issue.
So your issue might be different. It might be linked to the browser, or a module of the browser you might be using for example.
We do not have the problem on a fresh install of Joomla with HikaShop on our end.
Could you provide an access to a backend with the issue and precise instructions to reproduce the problem ?
The devil might be in the details.
You can provide the access via our contact form:
www.hikashop.com/support/contact-us.html

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

  • Posts: 80
  • Thank you received: 2
  • Hikashop Business
1 week 2 days ago #364635

Hi Nicolas

Have you had chance to look at my problem yet?

Thanks

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

  • Posts: 82913
  • Thank you received: 13389
  • MODERATOR
1 week 1 day ago #364645

Hi,

Please note that we do not usually work during the weekend.

Thanks for the access.
I looked at the situation on your website and I can see you're using the Sparky Page Builder:
extensions.joomla.org/extension/sparky-page-builder/
So, I've downloaded it and installed it on my end and I have the same issue with it.
So, I've looked at its code and I can see that the javascript code of that editor is made in a way that it can only work with one editor on the page.
When you edit a variant, you have the editor for the description of the main product already initialized, and that's why the editor doesn't display for the variant.
Unfortunately, the way the code of Sparky is written, I don't see a way to make it work here.
It would require an overhaul of Sparky to support multiple editors on the same page. That's something you could bring up to Sparky's developer on www.hotjoomlatemplates.com/support-forum...ree-joomla-templates

Being able to initialize several editors on the same page is not only useful for variants, but can happen even with Joomla with custom fields:
docs.joomla.org/J4.x:Adding_custom_fields/Editor_Field
So I think that's something the developers should look into.

As a simple work around, you can switch the "Editor" setting of the HikaShop configuration to use another editor like TinyMCE.
Another work around would be to create a view override of product / variant for your backend template via the menu Display>Views and to add the line:

<?php echo $this->editor->setEditor('tinymce');?>
before the line:
<?php echo $this->editor->display();?>
This should force the use of tinymce for variants while still retaining the use of Sparky for the main product.

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

  • Posts: 80
  • Thank you received: 2
  • Hikashop Business
1 week 28 minutes ago #364682

Hi Mate

Thanks for having a look at the problem i have, but I have had a look where to add the code --( <?php echo $this->editor->setEditor('tinymce');?> )-- but i can not find where to add can you please show me on a screenshot..

Thannks

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

  • Posts: 82913
  • Thank you received: 13389
  • MODERATOR
6 days 8 hours ago #364686

Hi,

I can give you a screenshot, but I don't think it will help much more than what I wrote in my previous message.
Here it is:
i.imgur.com/rleIxgl.png

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

  • Posts: 80
  • Thank you received: 2
  • Hikashop Business
6 days 9 minutes ago #364704

Hi Nicolas

Thanks for all your help but it did not work, :( I have attached a photo of what it look like now..

Thanks

Attachments:

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

  • Posts: 82913
  • Thank you received: 13389
  • MODERATOR
5 days 8 hours ago #364713

Hi,

I checked on your website and I can see what the problem is.
It's because TinyMCE is not able to activate itself when loaded in AJAX if it's not already somewhat loaded on the page.
So it would require extra, more complex, changes on the main product edit form view to preload tinyMCE on the main page.
So I've had to also add this code:

      <?php 
      $editor = hikashop_get('helper.editor');
      $editor->setEditor('tinymce');
      $editor->display();
      ?>
in product / form via Display>Views on your website for this to work. It's now working fine.

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

  • Posts: 80
  • Thank you received: 2
  • Hikashop Business
3 days 23 hours ago #364748

Hi Nicolas

If i was to put this on a nother night what would i need it edit. Has in where would i need to add the code.

Thanks

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

  • Posts: 82913
  • Thank you received: 13389
  • MODERATOR
3 days 4 hours ago #364751

Hi,

As I said, you would need to add this code in the view file product / form via the menu Display>Views.
You could add it at the beginning for example.

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

Time to create page: 0.081 seconds
Powered by Kunena Forum