Variant label missing but not always

  • Posts: 201
  • Thank you received: 6
11 years 2 months ago #162553

-- url of the page with the problem -- : livelaughlove.com/index.php?option=com_h...&category_pathway=34
Second page: livelaughlove.com/index.php?option=com_h...-crew-tee&Itemid=108
-- HikaShop version -- : 2.3.1
-- Joomla version -- : 3.2
-- PHP version -- :5.3
-- Browser(s) name and version -- : All
-- Error-message(debug-mod must be tuned on) -- : N/A

For starters, please look at these two pages:

Page1: livelaughlove.com/index.php?option=com_h...&category_pathway=34
and
Page2: livelaughlove.com/index.php?option=com_h...-crew-tee&Itemid=108

Page1 as you can see is quite fine. The variants look OK and it works as intended.

Page2 on the other hand has the variants quite messed up. After further investigations the reason is that the Label for "Color" variant is missing.

The other notable difference is that in Page1 the variants are in the order 'color: size' while in page 2 they are in 'Size: color'

In any event, My guess is that somehow the single color choice has something to do with this. When I opened the product the only characteristic in the product was size, hence the lack of a color label.

I have attached the upload sheet for that product. I must have done something wrong because I have several of them with the same issue, shirt that are one color and different sizes.

I was able to correct the other product by manually adding the "Color" Characteristic and then unpublishing all the other colors, but that's cumbersome and we have so many colors that any product with all the colors available (none IRL) would take forever to load.

Can someone tell me what I did wrong in the import file? How would I import a single white shirt in multiple sizes without precluding adding more colors in the future?

And is there a way for me to add the label even if the characteristic is wrong?

Thank you

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

  • Posts: 12953
  • Thank you received: 1778
11 years 2 months ago #162566

Hello,

1. Did you done some modification through the file "show_block_characteristic" of the "product" view of your front-end template via "Hikashop->Display->Views"

2. Can you directly check and edit the name of your characteristic through your characteristic configuration page ("Hikashop->Products->Characteristics") ?

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

  • Posts: 201
  • Thank you received: 6
11 years 2 months ago #162656

Thank you for the replay

1. Did you done some modification through the file "show_block_characteristic" of the "product" view of your front-end template via "Hikashop->Display->Views"


I just checked. That file is not edited at all.

2. Can you directly check and edit the name of your characteristic through your characteristic configuration page ("Hikashop->Products->Characteristics") ?


Indeed I can, but that's not the issue. Plus, that page seems to have not much to do with the actual page characteristics., The table where the Characteristics are contained has this class:
<table class="hikashop_product_characteristics_table">

In the view "show_block_characteristic" of the "product" view there is no trace of this table. The only table in that view is this one:
<table class="hikashop_variants_table hikashop_products_table adminlist table table-striped table-hover" cellpadding="1">

In other words, that view and the issue I am having are not related, but I'll keep looking in the views if there is a connection.

As I explained in my OP, the broken page is the result of a product given a "Color" Variant, but the product itself only comes in White.
When I opened the product, the only characteristic assigned to the product was "Size" (in the administration) but in the front end the drop down showed color, with white as its only choice and without label.

When I added manually "Color" to the product then it worked fine. The label appeared again and everything was OK.

I attached my CSV to see if I had done something wrong.
It's either that or there is something wrong with the Characteristic that where there is a single color chosen it won't show the label for some reason.

All I really need is for the Label "Color" to show up. I don't care that there is only one choice in the variants. It's supposed to be that way. I built the import table that way so that if in the future I need to add colors I can.

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 11 months ago #172316

Hi,

I am checking threads which does not have answer, so I am investigating your thread.

1. Size/Color or Color/Size
When you edit a product in the backend and you add a characteristic, you can change the ordering of the characteristics.
I guess that you have different ordering between your two products.

2. Page mess up
I don't see any trouble in your pages and I don't think that the dropdown could be the source of the trouble.
For all characteristics, the same kind of drop down are displayed, so I don't see how changing the order of the characteristics could mess up the page ; but the ItemId can
The different between your two url is the itemId, in the first one there is no one. So there is no Joomla menu assigned, no module assigned, etc.

I hope that it will help you.

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.

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

  • Posts: 201
  • Thank you received: 6
10 years 11 months ago #172324

Thank you for looking over this. Since I posted I was able to identify the issue, but I had so many posts I forgot to mark this solved.

If I recall, the problem here was that when I imported the product there was a discrepancy in the SKU and somehow some variants did not result as variants but they were imported as main products.
As such, they were in the database, but they were not visible in the variant screen. I was able to fix this by going to PhpMyAdmin and adding the parent product to the product entry.

By doing that they became visible as variants in the parent product and thus it fixed this issue which initially I thought it was a visual problem but turned out to be an issue with my import CSV.

WHy that happened, is beyond me because I checked my original CSV and the products were clearly marked as having a parent, they had the parent SKU and they were marked as variants/. Yet, once imported they were not added to the product as variants like the other ones did.

To me (I am trying to remember here) it seemed as if something happened during the import process to cause it rather than some inherent issue with my CSV. I could not see a difference between the variants added successfully and those that were not.

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

  • Posts: 84301
  • Thank you received: 13697
  • MODERATOR
10 years 11 months ago #172325

That is really strange. Usually it is because the CSV doesn't include the parent product code correctly or something like that.

Anyway, glad that you were able to overcome the issue on your end.

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

Time to create page: 0.062 seconds
Powered by Kunena Forum