Lost "Add to cart" button after adding options

  • Posts: 58
  • Thank you received: 2
9 years 1 month ago #232553

-- url of the page with the problem -- : www.rosmini.school.nz/shop/product/41-se...term-1-waterpolo-fee
-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 2.6.32-531.29
-- Browser(s) name and version -- : Chrome

After adding the options, we lost the add to cart button. Take a look at https://www.rosmini.school.nz/shop/product/41-senior-b-term-1-waterpolo-fee

This is how a regular product works: https://www.rosmini.school.nz/shop/product/42-premier-a

Also when a product is free, there there are options I would like it to say "Choose an option" instead. In which view and where can I customise this?

Last edit: 9 years 1 month ago by rcadmin.

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

  • Posts: 12953
  • Thank you received: 1778
9 years 1 month ago #232572

Hello,
You should set the "Display 'add to cart' button for free products" option to Yes via "Hikashop->System->Configuration->Main"

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

  • Posts: 58
  • Thank you received: 2
9 years 1 month ago #232662

Ok, two more questions:

  1. Is it possible to set it up (via a customised view or otherwise) so that they have to choose one of the options?
  2. Which views do I customise if I want to add some PHP that will not display "Free" if there are options? (For now I will just edit the dictionary)

Last edit: 9 years 1 month ago by rcadmin.

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

  • Posts: 83677
  • Thank you received: 13546
  • MODERATOR
9 years 1 month ago #232671

Hi,

1. You would have to edit the file "quantity" of the view "product" and modify the variable $this->ajax to add a javascript check on the options before the call to the hikashopModifyQuantity function.

2. Edit the file "listing_price" of the view "product" via the menu Display>Views and search for "FREE_PRICE".

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

  • Posts: 58
  • Thank you received: 2
9 years 1 month ago #232712

For option 2 I searched product / listing_price.php but could not find FREE anywhere

Last edit: 9 years 1 month ago by rcadmin. Reason: Solved

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

  • Posts: 83677
  • Thank you received: 13546
  • MODERATOR
9 years 1 month ago #232713

Hi,

It's near the beginning of the file:
take.ms/qgMHK

The following user(s) said Thank You: rcadmin

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

Time to create page: 0.073 seconds
Powered by Kunena Forum