Product characteristics

  • Posts: 4
  • Thank you received: 0
6 years 3 weeks ago #290709

-- url of the page with the problem -- : www.jgsapi.com/testsite/
-- HikaShop version -- : 3.4
-- Joomla version -- : 3.8.6
-- PHP version -- : 5.6.35
-- Browser(s) name and version -- : Chrome 65

Hello to all
I have a free version of the hikashop
But I have a question
In the free version, we add some characteristic to the product, such as color and size
Our products are as follows
Color => size
Brown => small
Brown => medium
Brown => large

Green => small

In our products, we will never have a medium-sized, large-sized green color.
OK
When a customer enters the product page, he can choose which products we will never have.


Green => Medium
Green => large
Is there a way that a customer can not choose the option of color green with large or medium size?
For example,

Attachments:

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

  • Posts: 4519
  • Thank you received: 611
  • MODERATOR
6 years 3 weeks ago #290718

Hello,

In your product setting page, in the Variant tab you can unpublished unwanted variant product, like on the screenshot :



Hope this will fit your needs.
Regards

Last edit: 6 years 3 weeks ago by Philip.

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

  • Posts: 4
  • Thank you received: 0
6 years 3 weeks ago #290813

Let suppose we don't have the "brown Large" shoe any time. but if we publish " green Larg " shoe, in front end the "brown Large" will be displayed in drop down and default product data will be shown .
see this video :
screencast-o-matic.com/watch/cFff2zDJhB

Last edit: 6 years 3 weeks ago by the_silent_man.

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
6 years 2 weeks ago #290816

Hi,

You can't have the dropdown refresh dynamically to disable some values in some cases and not have them disabled in some other cases.
However, you can go around that and change the way the characteristics are displayed.
You can use the "characteristic selection method" setting of the Hikashop configuration to use either the "table" or the "list" mode and you'll see that in these cases, you can't select non existing variants.

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

  • Posts: 4
  • Thank you received: 0
6 years 2 weeks ago #290850

In Table mode with 2 characteristics problem solved . but with 3 characteristics it returned to dropdown mode and remain the issue.

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
6 years 2 weeks ago #290859

Hi,

Yes, since the table is a two dimensional display, it can only handle two characteristics like that.
For more characteristics, I can only recommand the "list" display mode.

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

  • Posts: 4
  • Thank you received: 0
5 years 11 months ago #291879

Hi
I created a controller named test and a function get like below

class testController extends hikashopController
{
public function get(){
echo ("Hi I am test");
}
}
When I call it, I get a 403 error
www.jgsapi.com/testsite/index.php?option...kashop&task=test.get

Last edit: 5 years 11 months ago by the_silent_man.

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
5 years 11 months ago #291881

Hi,

1. Please don't post in a subject that has nothing to do with your question. Please open a new thread in that case.

2. Your link is wrong. It should be like that:
www.jgsapi.com/testsite/index.php?option...p&ctrl=test&task=get

3. In your controller, you need to tell HikaShop that you want to authorize the call to that get function.
You can easily do that by adding such code :
var $display = array('get');
just at the beginning of the class, like it is done in the different controllers available in HikaShop by default.

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

Time to create page: 0.082 seconds
Powered by Kunena Forum