Create Product sets with multiple products

  • Posts: 1100
  • Thank you received: 12
  • Hikashop Business
8 years 5 months ago #259335

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.5

Hello!

I have searched the forum and i found some topics about "bundle" but i think i need more help!
I want to create a "built your own set" situation so the user will be able to select among multiple products to create a set etc.
Is there a way to achive this?

Thank you in advance

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

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
8 years 5 months ago #259339

Hi,

Currently, the nearest thing is the product options :
demo.hikashop.com/index.php/en/hikashop/...ct-page/with-options

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.
The following user(s) said Thank You: verzevoul

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

  • Posts: 1100
  • Thank you received: 12
  • Hikashop Business
8 years 5 months ago #259406

Hi Jerome,

yes i tried that. One question, the "product set" will include products from multiple categories, so i think it would be helpfull for the user if i could display the category's title above each option. Is this possible?

Thank you

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

  • Posts: 83993
  • Thank you received: 13605
  • MODERATOR
8 years 5 months ago #259413

Hi,

There is no option for that but anything is possible with customization.
You would have to edit the file "option" via the menu Display>Views and add custom code to load the category data from the hikashop_product_category and hikashop_category tables and then display it the way you want.

The following user(s) said Thank You: verzevoul

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

  • Posts: 1100
  • Thank you received: 12
  • Hikashop Business
8 years 5 months ago #259566

Hi nicolas,

i see what you are saying, maybe you could give me an example?

Thank you again

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

  • Posts: 83993
  • Thank you received: 13605
  • MODERATOR
8 years 5 months ago #259580

Hi,


Something like that:

$db = JFactory::getDBO();
$db->setQuery('SELECT * FROM #__hikashop_product_category as pc LEFT JOIN #__hikashop_category as c ON pc.category_id = c.category_id WHERE pc.product_id=' . $product_id);
$category = $db->loadObject();
echo $category->category_name;

The following user(s) said Thank You: verzevoul

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

  • Posts: 1100
  • Thank you received: 12
  • Hikashop Business
8 years 5 months ago #259645

Hi nicolas,

thank you for your help really but i'm gonna need a little bit more :)
Where should i add this code inside option view file?
I tried but i'm not very familiar with this so...

Thank you so much again

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

  • Posts: 83993
  • Thank you received: 13605
  • MODERATOR
8 years 5 months ago #259650

Hi,

Please understand that this is user support, not custom development.
Your subscription is even expired and I've already given you most of the code to do it.
You can't expect us to work for you for free.

The following user(s) said Thank You: verzevoul

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

Time to create page: 0.066 seconds
Powered by Kunena Forum