Product variant selection

  • Posts: 16
  • Thank you received: 0
10 years 10 months ago #140798

-- url of the page with the problem -- : adellin.gr/index.php/%CE%BC%CF%80%CE%B1%...%81%CF%8C%CF%82-mini
-- HikaShop version -- : 2.2.2
-- Joomla version -- : 2.5
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

Hi,
there is a problem in the product page view used, product variants are not selectable for some reason.
Can you give some guidance where to search for this problem?

Kindest regards
Alex

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
10 years 10 months ago #140841

Hi,
Your issue is probably coming from the modifications that you have made through your product view's files, and from your CSS code that is hiding your quantity field and add to cart button:

.hikashop_product_quantity_field {
width: 25px !important;
display: none;
}
#hikashop_product_characteristics .hikashop_product_stock .btn.button.hikashop_cart_input_button {
display: none;
}
Note that another solution can be to set the "Characteristics selection method" option to Dropdown through the page : "Hikashop->System->Configuration->Main".

The following user(s) said Thank You: alexsp

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

  • Posts: 16
  • Thank you received: 0
10 years 10 months ago #140943

Hi Mohamed,
thanks for your support.
i corrected what you mentioned,
Now i have an addtocart and a quantity filed for each product variation, nut there is one more add to cart and quantity field that i think its confusing and doesn't make sense. Do you know how i could get rid of it?

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

  • Posts: 82909
  • Thank you received: 13379
  • MODERATOR
10 years 10 months ago #140967

You could add such CSS:
.hikashop_product_stock{ display: none; }
#hikashop_product_characteristics .hikashop_product_stock{ display: block; }

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

  • Posts: 16
  • Thank you received: 0
10 years 10 months ago #140987

Hi nicolas,
thanks for your reply.
This css solved my problem when the product has variants but it also disappeared the add to cart button for the products that do not have variants.
For example in this url
adellin.gr/index.php/%CE%BC%CF%80%CE%B1%...8E%CF%80%CE%BF%CF%85
What i would like to have if possible is to display (only) a per variant add to cart button when a product has variants but also display an add to cart button when the product has no variants.

Thanks again

Kindest regards
Alex

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

  • Posts: 82909
  • Thank you received: 13379
  • MODERATOR
10 years 10 months ago #141225

Hi,

That's not possible with just CSS. You'll have to modify the file "show_default" further to display the main add to cart button or not based on whether there are characteristics or not for the current product.

The following user(s) said Thank You: alexsp

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

  • Posts: 16
  • Thank you received: 0
10 years 10 months ago #141297

Hi nicolas,
i know that this is not possible with just css. I will try to solve it by editing show_default.php file but i may need your help also.
I think that this should the normal, i don't see a reason to display an extra add to cart button below the per product variant add to cart buttons as this is confusing and doesn't make sense from my point of view at least.

Kindest regards
Alex

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

  • Posts: 82909
  • Thank you received: 13379
  • MODERATOR
10 years 10 months ago #141332

Hi,

You're right and that's actually not the case by default as far as I know (I'm not able to reproduce that issue on my end), so I can only conclude that this happens because of your modifications to the view file.

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

Time to create page: 0.076 seconds
Powered by Kunena Forum