plugin trigger to generate cart link

  • Posts: 1
  • Thank you received: 0
11 years 4 months ago #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_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 or Create an account to join the conversation.

  • Posts: 82758
  • Thank you received: 13346
  • MODERATOR
11 years 4 months ago #111477

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 or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum