Skip to main content

Lost "Add to cart" button after adding options

10 years 8 months ago - 10 years 8 months ago #232553 by rcadmin
-- 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 www.rosmini.school.nz/shop/product/41-se...term-1-waterpolo-fee

This is how a regular product works: 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: 10 years 8 months ago by rcadmin.

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

10 years 8 months ago #232572 by Mohamed Thelji
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.

10 years 8 months ago - 10 years 8 months ago #232662 by rcadmin
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: 10 years 8 months ago by rcadmin.

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

10 years 8 months ago #232671 by nicolas
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.

10 years 8 months ago - 10 years 8 months ago #232712 by rcadmin
For option 2 I searched product / listing_price.php but could not find FREE anywhere
Last edit: 10 years 8 months ago by rcadmin. Reason: Solved

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

10 years 8 months ago #232713 by nicolas
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.062 seconds
Powered by Kunena Forum