- Posts: 58
- Thank you received: 2
Lost "Add to cart" button after adding options
10 years 8 months ago - 10 years 8 months ago #232553
by rcadmin
Lost "Add to cart" button after adding options was created 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?
-- 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.
Less
More
- Posts: 12953
- Thank you received: 1778
10 years 8 months ago #232572
by Mohamed Thelji
Replied by Mohamed Thelji on topic Lost "Add to cart" button after adding options
Hello,
You should set the "Display 'add to cart' button for free products" option to Yes via "Hikashop->System->Configuration->Main"
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
Replied by rcadmin on topic Lost "Add to cart" button after adding options
Ok, two more questions:
- Is it possible to set it up (via a customised view or otherwise) so that they have to choose one of the options?
- 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
Replied by nicolas on topic Lost "Add to cart" button after adding options
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".
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
Replied by rcadmin on topic Lost "Add to cart" button after adding options
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
Replied by nicolas on topic Lost "Add to cart" button after adding options
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