Custom data changing for variants

  • Posts: 180
  • Thank you received: 13
8 years 6 months ago #255929

-- url of the page with the problem -- : www.halare-test.co.uk/
-- HikaShop version -- : HikaShop Business 2.6.3 [1605112330]
-- Joomla version -- : 3.6.4 Stable
-- PHP version -- : 5.6.18

Hi

I have several custom fields added to product, which I am showing in an accordion, via a modified show_block_custom_main.php.

This world perfectly and as expected. What I can not work out is where the same information for the variants are put together so that when we switch to a variation with different values, that this is shown on the page. At the moment as soon as an option is changed, the data is dislplayed in the default format.

Any guidance would be greatly appreciated.

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

  • Posts: 83992
  • Thank you received: 13604
  • MODERATOR
8 years 6 months ago #255933

Hi,

It's done by the "show" file of the "product" view.

The following user(s) said Thank You: esotechie

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

  • Posts: 180
  • Thank you received: 13
8 years 6 months ago #255994

Thank you very much for the quick reply Nicolas.

Much appreciated

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

  • Posts: 31
  • Thank you received: 2
8 years 4 months ago #260982

I'm not sure if this is the same question, but I have two characteristics on my products: 1) type of product you want appliqued and the 2) size. If the customer chooses "applique only", the backend is set to only have one second variant "customer provided product" since they are not buying a product. So why are all of the other variants available in the second drop menu if there is only one variant for "applique only" in the back end?

Or worse, they can add the nonexisting variant item to their wishlist but it does not give them an error message; it simply doesn't add anything to the cart.

craftingwithbrandy2.cloudaccess.host/ind...t/2443-anita-peacock

Virtuemart 3.0.18

Attachments:

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

  • Posts: 31
  • Thank you received: 2
8 years 4 months ago #260984

I get that it's the "show" file but I am not a coder. What/Where in the attached file do I change to not show unused variants?


Besides shouldn't this be default Hikashop? If I didn't add the variant the non-used variants shouldn't be showing up.

Attachments:

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

  • Posts: 83992
  • Thank you received: 13604
  • MODERATOR
8 years 4 months ago #261018

Hi,

The dropdowns are not refresh dynamically.
HikaShop do remove the values that are unused. For example, if you have no variants using the value 2T for that product, and that you've turned off the "Display out of stock products" setting of the Hikashop configuration, you should not see it in the dropdown.
But if you have at least one variant which uses it, then the system has to keep ti in the dropdowns and only remove the add to cart button so that you can't purchase it.
A solution to that is to change the "characteristics display method" setting of the HikaShop configuration to either "list" or "table". Both will circumvent the problem as they don't need any dynamic refresh like it would be needed for the dropdowns and only allow the customer to see the available variants.

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

  • Posts: 31
  • Thank you received: 2
8 years 4 months ago #261115

These are appliques that are made from scratch so all of the products are set to unlimited (there technically is no inventory). That means the variants would also be set to unlimited.

I will try the list and see if that works.

Thanks

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

  • Posts: 31
  • Thank you received: 2
8 years 4 months ago #261116

Also the shop is in catalog mode, so the "add to cart" button is confusing

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

  • Posts: 31
  • Thank you received: 2
8 years 4 months ago #261117

Both of these options look absolutely terrible and are not going to work.

The table is squished and hard to understand. The list is worse because it shows two images for all 42 variants and scrolls on forever. And because it's in catalog mode, there is no way to click on any of the options and contact for more information or add to wishlist.



Lastly, the configuration is set to not show out of stock items so not sure what the products are still showing up.

Attachments:
Last edit: 8 years 4 months ago by drfenning.

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

  • Posts: 83992
  • Thank you received: 13604
  • MODERATOR
8 years 4 months ago #261124

Hi,

1. You're talking about an add to cart button being displayed even though you're in catalog mode but I didn't see any add to cart button neither on your link nor on your screenshots so I'm not sure what you mean ?

2. With these many values for each characteristic, they indeed don't look adapted to what you want to do.
It's alsway possible to improve a bit the display with some CSS, but It won't change the fact that it would be bulky in your case.
Then I don't see another way besides either compromizing on one type of display or customizing the dropdown display with a lot of custom code to them dynamically.

3. In your screenshot www.hikashop.com/media/kunena/attachments/31596/list.JPG you can see that each value of each characteristic is used by at least one variant of the product. So the system cannot remove any value from the dropdowns even though the display of out of stock products is turned off. Otherwise, you wouldn't be able to select all the available combinations.
For example, if the system were to remove the T2 choice in the size dropdown, then you wouldn't be able to select the Tshirt/T2 variant. That would only be possible if the dropdowns were reloaded dynamically, but as I explained you before, that's not the case.

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

Time to create page: 0.150 seconds
Powered by Kunena Forum