[Skip to main content](#vessel-content)

#   Lost "Add to cart" button after adding options

##

- **[rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")**
- [![rcadmin's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38257-rcadmin "View rcadmin's Profile") Topic Author
- [ Offline](/forum/user/38257-rcadmin)

Less More

- Posts: 58
- Thank you received: 2
-
-

10 years 8 months ago -  10 years 8 months ago [\#232553](#232553) by [rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")  *[Lost "Add to cart" button after adding options](/forum/26-product-category-display/882898-lost-add-to-cart-button-after-adding-options#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  This is how a regular product works:  Also when a product is free, there there are options I would like it to say &quot;Choose an option&quot; instead. In which view and where can I customise this?")* was created by *[rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")*

-- url of the page with the problem -- : [ www.rosmini.school.nz/shop/product/41-se...term-1-waterpolo-fee](https://www.rosmini.school.nz/shop/product/41-senior-b-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)[ www.rosmini.school.nz/shop/product/41-se...term-1-waterpolo-fee](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)[ www.rosmini.school.nz/shop/product/42-premier-a](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: 10 years 8 months ago by [rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODI4OTgtbG9zdC1hZGQtdG8tY2FydC1idXR0b24tYWZ0ZXItYWRkaW5nLW9wdGlvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

10 years 8 months ago [\#232572](#232572) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Lost "Add to cart" button after adding options](/forum/26-product-category-display/882898-lost-add-to-cart-button-after-adding-options#232572 "-- 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  This is how a regular product works:  Also when a product is free, there there are options I would like it to say &quot;Choose an option&quot; instead. In which view and where can I customise this?")*

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODI4OTgtbG9zdC1hZGQtdG8tY2FydC1idXR0b24tYWZ0ZXItYWRkaW5nLW9wdGlvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")**
- [![rcadmin's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38257-rcadmin "View rcadmin's Profile") Topic Author
- [ Offline](/forum/user/38257-rcadmin)

Less More

- Posts: 58
- Thank you received: 2
-
-

10 years 8 months ago -  10 years 8 months ago [\#232662](#232662) by [rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")  Replied by *[rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")* on topic *[Lost "Add to cart" button after adding options](/forum/26-product-category-display/882898-lost-add-to-cart-button-after-adding-options#232662 "-- 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  This is how a regular product works:  Also when a product is free, there there are options I would like it to say &quot;Choose an option&quot; instead. In which view and where can I customise this?")*

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](/forum/user/38257-rcadmin "View rcadmin's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODI4OTgtbG9zdC1hZGQtdG8tY2FydC1idXR0b24tYWZ0ZXItYWRkaW5nLW9wdGlvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

10 years 8 months ago [\#232671](#232671) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Lost "Add to cart" button after adding options](/forum/26-product-category-display/882898-lost-add-to-cart-button-after-adding-options#232671 "-- 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  This is how a regular product works:  Also when a product is free, there there are options I would like it to say &quot;Choose an option&quot; instead. In which view and where can I customise this?")*

Hi,

1. You would have to edit the file "quantity" of the view "product" and modify the variable $this-&gt;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&gt;Views and search for "FREE_PRICE".

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODI4OTgtbG9zdC1hZGQtdG8tY2FydC1idXR0b24tYWZ0ZXItYWRkaW5nLW9wdGlvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")**
- [![rcadmin's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38257-rcadmin "View rcadmin's Profile") Topic Author
- [ Offline](/forum/user/38257-rcadmin)

Less More

- Posts: 58
- Thank you received: 2
-
-

10 years 8 months ago -  10 years 8 months ago [\#232712](#232712) by [rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")  Replied by *[rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")* on topic *[Lost "Add to cart" button after adding options](/forum/26-product-category-display/882898-lost-add-to-cart-button-after-adding-options#232712 "-- 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  This is how a regular product works:  Also when a product is free, there there are options I would like it to say &quot;Choose an option&quot; instead. In which view and where can I customise this?")*

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

Last edit: 10 years 8 months ago by [rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile"). Reason: Solved

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODI4OTgtbG9zdC1hZGQtdG8tY2FydC1idXR0b24tYWZ0ZXItYWRkaW5nLW9wdGlvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

10 years 8 months ago [\#232713](#232713) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Lost "Add to cart" button after adding options](/forum/26-product-category-display/882898-lost-add-to-cart-button-after-adding-options#232713 "-- 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  This is how a regular product works:  Also when a product is free, there there are options I would like it to say &quot;Choose an option&quot; instead. In which view and where can I customise this?")*

Hi,

It's near the beginning of the file:
[ take.ms/qgMHK](http://take.ms/qgMHK)

The following user(s) said Thank You: [rcadmin](/forum/user/38257-rcadmin "View rcadmin's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODI4OTgtbG9zdC1hZGQtdG8tY2FydC1idXR0b24tYWZ0ZXItYWRkaW5nLW9wdGlvbnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.075 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
