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

#   plugin trigger to generate cart link

##

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

Less More

- Posts: 1
- Thank you received: 0
-
-

13 years 4 months ago [\#111458](#111458) by [growerspro](/forum/user/23314-growerspro "View growerspro's Profile")  *[plugin trigger to generate cart link](/forum/4-how-to/84339-plugin-trigger-to-generate-cart-link#111458 "Hello  I have a question about hikashop shopping cart and the possibility to use a plugin trigger in order to generate the url to add a product into the shopping cart from another joomla component.  1. Basically, in a custom component, already registered users (with a joomla account) would accumulate a number of debits totaling to an amount. This amount would be charged monthly. 2. We have in this custom component a table with the user&#95;id ,the amount, the hikashop product&#95;id. 3. we created one product in hikashop. (there will be only one product) 4. I wanted to know if you have a trigger in hikashop we can call by passing the hikashop product&#95;id and amount in order to add a link to the hikashop shopping cart in order for the logged in user to complete the checkout process and pay.  or do we need to manually generate the url (or post button) from our component.  thank you for your answer")* was created by *[growerspro](/forum/user/23314-growerspro "View growerspro's Profile")*

Hello

I have a question about hikashop shopping cart and the possibility to use a plugin trigger in order to generate the url to add a product into the shopping cart from another joomla component.

1. Basically, in a custom component, already registered users (with a joomla account) would accumulate a number of debits totaling to an amount. This amount would be charged monthly.
2. We have in this custom component a table with the user_id ,the amount, the hikashop product_id.
3. we created one product in hikashop. (there will be only one product)
4. I wanted to know if you have a trigger in hikashop we can call by passing the hikashop product_id and amount in order to add a link to the hikashop shopping cart in order for the logged in user to complete the checkout process and pay.

or do we need to manually generate the url (or post button) from our component.

thank you for your answer

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg0MzM5LXBsdWdpbi10cmlnZ2VyLXRvLWdlbmVyYXRlLWNhcnQtbGluaz90bXBsPW1hcmtkb3du) 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: 86316
- Thank you received: 14276
-
-

13 years 4 months ago [\#111477](#111477) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[plugin trigger to generate cart link](/forum/4-how-to/84339-plugin-trigger-to-generate-cart-link#111477 "Hello  I have a question about hikashop shopping cart and the possibility to use a plugin trigger in order to generate the url to add a product into the shopping cart from another joomla component.  1. Basically, in a custom component, already registered users (with a joomla account) would accumulate a number of debits totaling to an amount. This amount would be charged monthly. 2. We have in this custom component a table with the user&#95;id ,the amount, the hikashop product&#95;id. 3. we created one product in hikashop. (there will be only one product) 4. I wanted to know if you have a trigger in hikashop we can call by passing the hikashop product&#95;id and amount in order to add a link to the hikashop shopping cart in order for the logged in user to complete the checkout process and pay.  or do we need to manually generate the url (or post button) from our component.  thank you for your answer")*

Hi,

Each product already have such a add to cart link. You can find it with the "add to cart html link" button of the product edition page.
You will see that you will get the product id and the product quantity in the URL.

So a simple solution would be to have a product with a price of 1 cent and then enters the amount*100 as quantity of the product in the add to cart URL to redirect the users to the checkout with the product in the cart with the amount you want them to pay.

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

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

[](#top)
