Product Option issues due to 'Product Packages'

  • Posts: 104
  • Thank you received: 5
9 years 1 month ago #246505

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.0
-- PHP version -- : 5.6
-- Browser(s) name and version -- : Chrome lastest version
-- Error-message(debug-mod must be tuned on) -- : None

There are 2 separate issues that I would like to resolve:
1. On the url listed with this problem. It is displaying the Options. Since these are required pieces of the package, I would like to have it so these do not display. Is this something that can be done through the UI or do I simply need to hide the div (hikashop_product_options)? I have 2 concerns here. 1 is that I had to remove the 'No' option & 2 is that hiding it via the css will hide it for ALL options. What happens if I have other products that I would like to have options for? Currently, I have to use the options to create 'Product Packages' so the shipping will have the items in individual boxes so the shipping costs come out somewhat correct.
2. On this page ( www.p3proswing.com/site3/index.php/hikas.../2016-02-24-14-12-00 ) it shows a button for 'Choose Options'. I'd like to just have the 'Add to cart' button and not a 'Choose Options' button as the options only exists due to the lack of functionality to ship 'Product Packages'

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

  • Posts: 84313
  • Thank you received: 13702
  • MODERATOR
9 years 1 month ago #246525

Hi,

1. Yes, hiding the area with CSS is fine.
Removing the No can be done for the option itself (not for all the options) by adding a characteristic with only one value to the option product and having only one variant.
And if you want to hide the options ara only for some products, then you need to make your CSS smarter.
For example:
#hikashop_product_PKG20000_page #hikashop_product_options{ display:none; }
will only hide the options for that one product.

2. Displaying the add to cart button there even if the product has options is quite easy by editing the file "quantity" and adding such code at the top:
unset($this->row->has_options);
However, that will just result in the product being added to the cart without the options.
Adding the options with it on the listing will be much more complex as the options are not loaded at all on the listings. You would have to add custom MySQL queries and PHP code to load the options and add hidden input fields to handle that. That would be quite complex.

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

Time to create page: 0.042 seconds
Powered by Kunena Forum