Caractheristics of Product Options

  • Posts: 251
  • Thank you received: 2
13 years 2 months ago #25809

Hi Nicolas,

In the Main Config/View I set Characteristics values ordering: Alphabetically.
But the characteristics of the product options are sorted by ID.
How can I set in alphabetic order?

Here an example

www.hidesign.it/it/catalogo/product/show/cid-2240/poltrona-jut

Thank you!

Last edit: 13 years 2 months ago by Nello.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 2 months ago #25810

Hi,

There is indeed a problem on that end. You need to add the code :

if(count($mainCharacteristics[$option->product_id][0])){
                                                       $optionsVariants = array();
                                                       $config =& hikashop_config();
                                                       if($config->get('characteristics_values_sorting')=='old'){
                                                               $order = 'characteristic_id';
                                                       }else{
                                                               $order = 'characteristic_value';
                                                       }
                                                       foreach($option->variants as $k2 => $variant){
                                                               $key = '';
                                                               foreach($variant->characteristics as $char){
                                                                       $key .= $char->characteristic_value.'_';
                                                               }
                                                               $optionsVariants[$key]=&$element->options[$k]->variants[$k2];
                                                       }
                                                       ksort($optionsVariants);
                                                       $element->options[$k]->variants=$optionsVariants;
                                               }
after the lines:
                               if(!empty($element->options)){
                                       foreach($element->options as $k => $option){
                                               if(!empty($option->variants)){
                                                       $this->addCharacteristics($element->options[$k],$mainCharacteristics,$characteristics);

In the file components/com_hikashop/views/product/view.html.php and that will solve the problem.

Last edit: 13 years 2 months ago by nicolas.

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

  • Posts: 251
  • Thank you received: 2
13 years 2 months ago #25812

Resolved!

Thank you so much!

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

  • Posts: 67
  • Thank you received: 0
12 years 11 months ago #33552

I have the same issue but the suggestion given did not work - what can I do please? my site is www.gamebreakermalta.com

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 11 months ago #33577

That modification has been added in HikaShop since then. Are you sure that you changed the corresponding option in the Display tab of the configuration of HikaShop as the poster of that thread did ?

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

  • Posts: 67
  • Thank you received: 0
12 years 11 months ago #33605

I am attaching screen shot to show you that I did do that but the products in the online shop do not show up in alphabetical order just the same.

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 11 months ago #33637

And could you give a link to a product page where you have options as I couldn't find a product with options on your website ?

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

  • Posts: 67
  • Thank you received: 0
12 years 10 months ago #33657

you can view products and categories by clicking on the online shop at www.gamebreakermalta.com but you need to register first

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 10 months ago #33685

I know. I found your products on your website. But all the products I found didn't had any options. So I couldn't look at the problem. Could you give a link to a product page with options ?

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

  • Posts: 67
  • Thank you received: 0
12 years 10 months ago #33688

what do you mean products with options? Can you explain coz I can't understand sorry

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 10 months ago #33691

That thread is about option dropdowns on product pages which were not in the alphabetical order.
You said that you had that problem even though you set that option correctly in the configuration. So we would need to see a product page with option dropdowns to confirm the problem. Like this one:
www.demo.hikashop.com/index.php?option=c...ow&Itemid=91&lang=en

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

  • Posts: 67
  • Thank you received: 0
12 years 10 months ago #33693

what I meant is that I want the products in the categories in alphbetical order NOT the options in the products which I am not using anyway

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 10 months ago #33694

For that, you need to edit the hikashop options of your products listing menu/module and change the ordering column from "ordering" to "product_name". In your case, it's the module with the id 26 that you can edit via the menu Display->Content modules.

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

  • Posts: 67
  • Thank you received: 0
12 years 10 months ago #33696

are you referring to the section called Default Parameters for Products? Coz if yes I already have the product_name chosen as can be seen on the attachment I uploaded a few posts back

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 10 months ago #33719

No, that's the Display tab of the configuration. I'm talking about the Display->Content modules menu that you can see under the title of the screen.

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

  • Posts: 67
  • Thank you received: 0
12 years 10 months ago #33748

ok I've seen that module but all is does is list a number of products at the side of each page. I want the products I have in the categories in alphabetical order and NOT this module of having the products listed in alphabetical order at the side of the page.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 10 months ago #33749

I'm 100% sure that the module with the id 26 on your website is the module which is used in categories on your main area.
Please follow my instructions and it will do what you want.

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

  • Posts: 67
  • Thank you received: 0
12 years 10 months ago #33751

ah ok now I get it - I didn't realise that ID 26 was on the right - I was looking on the left :-) anyway problem solved finally - thanks a million for your help and patience and Merry Christmas

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

Time to create page: 0.090 seconds
Powered by Kunena Forum