Show variant in hikashop product insert

  • Posts: 3
  • Thank you received: 0
6 years 2 months ago #298030

-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8

Hi Evreybody,
Is there a way to show, in the pop up of product insert bottom in Joomla article , also the variant product? Becuse I see only the main product. I try to edit hikashopproductinsert.php to find the solution.
Thank you Very much.

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
6 years 2 months ago #298053

Hi,

There is no option. The system only supports products, not variants.

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

  • Posts: 3
  • Thank you received: 0
6 years 2 months ago #298074

I understand, I ask this question because, I saw taht if set manualy in the code the id of a variant che system show the correct variant, so I thought that be possible edit a Query in hikashopproductinsert.php to show all variant product

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
6 years 2 months ago #298077

Hi,

Well, you could edit the file plugins/editors-xtd/hikashopproduct/hikashopproduct.php and change the line:

$Where = ' WHERE product_type=\'main\' AND product_access=\'all\' AND product_published=1 ';
to:
$Where = ' WHERE product_access=\'all\' AND product_published=1 ';
that way, it will display the products and the variants.
However, it will be hard to differentiate the variants among them if you didn't enter a name in each one.

The following user(s) said Thank You: bennyy4

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

  • Posts: 3
  • Thank you received: 0
6 years 2 months ago #298114

Yes, I know but I enter a name for the variant, so It's perfect the solution, Thank You very much!

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

Time to create page: 0.073 seconds
Powered by Kunena Forum