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

#   Is there any way to add or remove product manually using AJAX

##

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

Less More

- Posts: 29
- Thank you received: 0
-
-

8 years 7 months ago [\#290713](#290713) by [manoj.infowind](/forum/user/56380-manoj-infowind "View manoj.infowind's Profile")  *[Is there any way to add or remove product manually using AJAX](/forum/26-product-category-display/894334-is-there-any-way-to-add-or-remove-product-manually-using-ajax#290713 "I want to know way I can add an item to cart manually using AJAX, and get modules corresponding modules to be refreshed automatically using AJAX.")* was created by *[manoj.infowind](/forum/user/56380-manoj-infowind "View manoj.infowind's Profile")*

I want to know way I can add an item to cart manually using AJAX, and get modules corresponding modules to be refreshed automatically using AJAX.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQzMzQtaXMtdGhlcmUtYW55LXdheS10by1hZGQtb3ItcmVtb3ZlLXByb2R1Y3QtbWFudWFsbHktdXNpbmctYWpheD90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

8 years 7 months ago [\#290716](#290716) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Is there any way to add or remove product manually using AJAX](/forum/26-product-category-display/894334-is-there-any-way-to-add-or-remove-product-manually-using-ajax#290716 "I want to know way I can add an item to cart manually using AJAX, and get modules corresponding modules to be refreshed automatically using AJAX.")*

Hi,

You want to use the window.hikashop.addToCart and window.hikashop.deleteFromCart functions that you can find in media/com_hikashop/js/hikashop.js
These functions automatically refresh the cart modules on the page so you don't have to worry about that.

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

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

Less More

- Posts: 29
- Thank you received: 0
-
-

8 years 7 months ago [\#290795](#290795) by [manoj.infowind](/forum/user/56380-manoj-infowind "View manoj.infowind's Profile")  Replied by *[manoj.infowind](/forum/user/56380-manoj-infowind "View manoj.infowind's Profile")* on topic *[Is there any way to add or remove product manually using AJAX](/forum/26-product-category-display/894334-is-there-any-way-to-add-or-remove-product-manually-using-ajax#290795 "I want to know way I can add an item to cart manually using AJAX, and get modules corresponding modules to be refreshed automatically using AJAX.")*

Is there any way I can have "Add to Cart" button instead of "Choose option" in case of product option for "Gift Wrap", as it require one additional step for customer to add item to cart.
Is any I can have "Add to Cart" button instead of or with the "Choose option" to add specific item to cart with default value of option.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQzMzQtaXMtdGhlcmUtYW55LXdheS10by1hZGQtb3ItcmVtb3ZlLXByb2R1Y3QtbWFudWFsbHktdXNpbmctYWpheD90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

8 years 7 months ago [\#290796](#290796) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Is there any way to add or remove product manually using AJAX](/forum/26-product-category-display/894334-is-there-any-way-to-add-or-remove-product-manually-using-ajax#290796 "I want to know way I can add an item to cart manually using AJAX, and get modules corresponding modules to be refreshed automatically using AJAX.")*

Hi,

Not with just the options.
You would have to edit the view file displaying the add to cart button to add hidden input fields similar to the input fields for the options on the product page so that the javascript add to cart would be able to take it into account.

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

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

Less More

- Posts: 29
- Thank you received: 0
-
-

8 years 7 months ago -  8 years 7 months ago [\#290848](#290848) by [manoj.infowind](/forum/user/56380-manoj-infowind "View manoj.infowind's Profile")  Replied by *[manoj.infowind](/forum/user/56380-manoj-infowind "View manoj.infowind's Profile")* on topic *[Is there any way to add or remove product manually using AJAX](/forum/26-product-category-display/894334-is-there-any-way-to-add-or-remove-product-manually-using-ajax#290848 "I want to know way I can add an item to cart manually using AJAX, and get modules corresponding modules to be refreshed automatically using AJAX.")*

Will it be not a great feature to give ability "Add to Cart" button along with the "Choose Option" button that make it easy to add item to cart with default option value.

Hope you like the idea.

Thanks

Last edit: 8 years 7 months ago by [manoj.infowind](/forum/user/56380-manoj-infowind "View manoj.infowind's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQzMzQtaXMtdGhlcmUtYW55LXdheS10by1hZGQtb3ItcmVtb3ZlLXByb2R1Y3QtbWFudWFsbHktdXNpbmctYWpheD90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

8 years 7 months ago [\#290858](#290858) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Is there any way to add or remove product manually using AJAX](/forum/26-product-category-display/894334-is-there-any-way-to-add-or-remove-product-manually-using-ajax#290858 "I want to know way I can add an item to cart manually using AJAX, and get modules corresponding modules to be refreshed automatically using AJAX.")*

Wouldn't it be better in that case to have the options directly on the listing in that case ?

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

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

Less More

- Posts: 29
- Thank you received: 0
-
-

8 years 7 months ago [\#290923](#290923) by [manoj.infowind](/forum/user/56380-manoj-infowind "View manoj.infowind's Profile")  Replied by *[manoj.infowind](/forum/user/56380-manoj-infowind "View manoj.infowind's Profile")* on topic *[Is there any way to add or remove product manually using AJAX](/forum/26-product-category-display/894334-is-there-any-way-to-add-or-remove-product-manually-using-ajax#290923 "I want to know way I can add an item to cart manually using AJAX, and get modules corresponding modules to be refreshed automatically using AJAX.")*

No because in that user have to do two selection like quantity and option. I feel user wont like that.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQzMzQtaXMtdGhlcmUtYW55LXdheS10by1hZGQtb3ItcmVtb3ZlLXByb2R1Y3QtbWFudWFsbHktdXNpbmctYWpheD90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86555
- Thank you received: 14304
-
-

8 years 7 months ago [\#290933](#290933) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Is there any way to add or remove product manually using AJAX](/forum/26-product-category-display/894334-is-there-any-way-to-add-or-remove-product-manually-using-ajax#290933 "I want to know way I can add an item to cart manually using AJAX, and get modules corresponding modules to be refreshed automatically using AJAX.")*

Hi,

For your case, maybe, but I'm talking about any kind of shops you could make with HikaShop. When we add a feature, we need to think about the big picture.

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

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

Less More

- Posts: 29
- Thank you received: 0
-
-

8 years 7 months ago [\#291006](#291006) by [manoj.infowind](/forum/user/56380-manoj-infowind "View manoj.infowind's Profile")  Replied by *[manoj.infowind](/forum/user/56380-manoj-infowind "View manoj.infowind's Profile")* on topic *[Is there any way to add or remove product manually using AJAX](/forum/26-product-category-display/894334-is-there-any-way-to-add-or-remove-product-manually-using-ajax#291006 "I want to know way I can add an item to cart manually using AJAX, and get modules corresponding modules to be refreshed automatically using AJAX.")*

BTW I have implemented it on my site.

Thanks for support.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTQzMzQtaXMtdGhlcmUtYW55LXdheS10by1hZGQtb3ItcmVtb3ZlLXByb2R1Y3QtbWFudWFsbHktdXNpbmctYWpheD90bXBsPW1hcmtkb3du) 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.066 seconds

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