Import from Mijoshop - Product description tabs

  • Posts: 28
  • Thank you received: 3
2 years 7 months ago #340735

-- HikaShop version -- : 4.4.5
-- Joomla version -- : 3.10.8
-- PHP version -- : 7.4.27

Hi,

I am in the process of migrating a site from Mijoshop to Hikashop and the import feature makes it a breeze to move the products from one to the other. However I am about to do the same on another site but it has "product tabs" - "specification" / "application" .

Am I correct in assuming that to create product tabs in Hikashop - I need to:
1/ Create custom fields in Hikashop in the product table for specification & application
2/ Then modify the hikashop view: product / show tabular to include these custom fields via:
www.hikashop.com/support/documentation/i...ow-tabular-view.html

If so seems a lot of work to get product tabs working and difficult for a client to manage their products with the additional tabs - why doesn't hikashop have product tabs as a default which can be enabled/disabled?

Second part of my question is if Mijoshop already has these product tabs and fields filled out, What does Hikashop import do with this data?

Thanks

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 7 months ago #340747

Hi,

1.
HikaShop allows for different layouts on the product page. The tabs are part of the tabular layout. If you create custom product fields, they will display on the right side of the page in the default layout. And if you use the "tabular" layout, they will display in an extra tabs of the tabular layout.
So the way HikaShop is built, to have an interface to be able to have custom fields as extra tabs, it would require to have that capability added to the layout mechanism of the tabular layout, since it wouldn't make sense for other layouts to have tab options where there are no tabs mechanism in the layout.
In most cases where extra tabs are needed for custom fields, this is a matter of a few minutes / hours of customization of the show_tabular layout for a PHP developer (even a beginner should be able to do it) and then the merchant using the shop doesn't have to mess with this.
So to the question

why doesn't hikashop have product tabs as a default which can be enabled/disabled?

, I suppose I would say that it's because the tabs system we have is one where the tabs are added / removed by HikaShop automatically based on the features activated in the backend (for example if you activate the vote & comment system, it wil add 2 tabs to the tabular layout) and we didn't see how to easily linked custom fields with extra tabs.
Note however that I'm not familiar with the tabs system in MijoShop. And I couldn't find any information about it online. If you could tell us more about how this works, maybe we'll have an idea on how to improve things.

2. The custom fields won't be filled by the import system. Supposing that the tabs content is stored in different columns in the mijoshop_product table, you could run a MySQL query via your PHPMyAdmin after the import to populate the custom fields in HikaShop:
UPDATE #__hikashop_product as hkp INNER JOIN #__hikashop_mijo_prod as hkm ON hkp.product_id=hkm.hk_id INNER JOIN #__mijoshop_product as mjp ON hkm.mijo_id = mjp.product_id SET hkp.xxx = mjp.yyy;
where #__ is the table prefix of your website, xxx the column name of the custom field in HikaShop and yyy the column of the mijoshop_product table where the data you want to import is stored.

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

Time to create page: 0.056 seconds
Powered by Kunena Forum