Variant Display Order

  • Posts: 292
  • Thank you received: 5
  • Hikashop Business
13 years 11 months ago #3387

While investigating templates I discovered that the ordering of variants in the $this->element->variants array is indeterminate.

An order field on variants would be useful.

It could be pushed back to characteristics which would also enable pop-lists to be displayed in non-alphanumeric order. As long as the variant display in admin and the variants array in templates obeyed the same rule.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 11 months ago #3391

The values in characteristics dropdown will be orderable by id ( so from the oldest you added to the newest ) or by alphabetic name from next version.
The variants array ordering is irrevelant to the display since variants are not directly displayed in HikaShop's front end.

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

  • Posts: 23
  • Thank you received: 0
13 years 11 months ago #3698

I am trying to arrange my varient sizes in a specific order.

If you look at

www.549.com.au/shop/index.php?option=com...&category_pathway=58

You will see my shoe sizes list in the order

10
11
12
13
6
7
8
9

and i want them to be

6
7
8
9
10
11
12
13


the id for size 6 is 43
the id for size 7 is 44
the id for size 8 is 45

sequencial all the way upto size 13 being id 50, yet it is still listing as showen on website.

Also, i cannot get the dimensions of the product to show on my other pages.

Thanks

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 11 months ago #3701

You're right, by default the characteristics are ordered by name. We added a new option to select whether to display them order by id or by name with next version which we will publish tomorrow.

The dimensions in the product information are used for shipping volume restrictions. They are not currently displayed on the product page.
You can edit the product page code to display them:
go to the menu Display->Views and edit the file show of the view product. There, you can add code to display the dimensions. For example:

echo 'Width: '.$this->element->product_width.$this->element->product_dimension_unit;

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

  • Posts: 23
  • Thank you received: 0
13 years 11 months ago #3912

Great, i have got the latest version and they are now listing in the order i want them to.
I new get a php error message on this page when i have set up 2 varients all of which have values. Any reason for this?
Cheers

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

  • Posts: 23
  • Thank you received: 0
13 years 11 months ago #3913

also noticed the same thing happening when i add shipping varient to this page.

www.549.com.au/shop/index.php?option=com...category_pathway=154

Shipping is working fine in other product pages, yet when i add it to this item i get the same error. This is also happening in other areas but i have just removed the varient as i am testing. Cheers.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 11 months ago #3918

If you add a new characteristic to a product for which you already changed the variants, the system might not be able to decide how to generate the missing variants and change the existing variants to add that new characteristic.
Thus, you need to click on the "manage variants" button and add the variants of your product yourself.
Otherwise, just delete the characteristics. Save once. Make sure that the variants are all deleted. Add back your characteristics and the system should properly regenerate all the variants.

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

  • Posts: 23
  • Thank you received: 0
13 years 11 months ago #3927

I have deleated all my characterisitcs and started fresh. I am still getting error messages and i have not added any varients to the characterastics after allocating them to a product. You can see at

www.549.com.au/shop/index.php?option=com...category_pathway=154

Thanks

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

  • Posts: 23
  • Thank you received: 0
13 years 11 months ago #3928

I have also added some new charactastics to the following item

www.549.com.au/shop/index.php?option=com...&category_pathway=58

and i have lost the product description and the drop down boxes for the varients.

When i go to the product in the admin section, the description and charactastics are visible and appear to be ok.

I can send you my password for my site if you need to see for yourself.

Thanks

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 11 months ago #3931

When you create a characteristic via the Products->Caracteristics menu, you need to set some values in it. Otherwise, you will get these errors as the system is not able to generate the proper variants because you have a characteristic without values. Please make sure that you have values for the characteristic "Shipped To"

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

  • Posts: 23
  • Thank you received: 0
13 years 11 months ago #3955

everything charactistic has values associated with them, something funky is happening. what about the missing product description i described in an earlier post?
thanks

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 11 months ago #3956

Could you give us an access to your back end so that we could have a look at how you configured all that ?

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

  • Posts: 23
  • Thank you received: 0
13 years 11 months ago #3957

sure, i have emailed you the details. thanks

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 11 months ago #3963

So the variants were not regenerated as you already had variants.

What I did:
1/ Go on the product page. Click on the "manage variants" button. Select all the variants and click on delete
2/ Go back to the product page. delete the characteristics and click on "apply"
3/ Add the characteristics again and click on "apply"

The two products you linked to are now displayed properly on the front end

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

Time to create page: 0.106 seconds
Powered by Kunena Forum