Auto-checkout 100% discount product

  • Posts: 5
  • Thank you received: 0
11 years 8 months ago #123345

HI, I am using Ambra Subs to put users into specific user groups as they buy the subscription. I have also set 100% discount on certain items in hikashop for users who are in this user group (basically a user with a "Business" subscription gets the business documents for free).

Currently they have to add to cart and checkout. I'm not selling physical products. I am selling PDF documents. They can only download the document if it has been purchased so I was wondering if I can make the entire checkout process happen 'without the user noticing' if the document price is zero. Hence I can change the "Add to cart" button to something like "Get this document" and the checkout process happens without the user seeing it. Is this possible?

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 8 months ago #123362

Hi,
I think that this can be done with some language file modifications through "Hikashop->System->Configuration->'Language'".
For example you can change this line :

ADD_TO_CART="Add to cart"
By :
ADD_TO_CART="Get this document"
Or this line :
FREE_PRICE="Free"
By :
FREE_PRICE=" "
Hope this will help you a little.

Please Log in or Create an account to join the conversation.

  • Posts: 5
  • Thank you received: 0
11 years 8 months ago #123364

Thank you for trying to help. Much appreciated. But that would mean that the checkout process is still see by the client. Im fairly advanced in Joomla and yes, editing the language files is a must if I want to change that text.

But basically I want the checkout process to not be visible if the document has a 100% discount. I've created a page with some custom code that shows the products already purchased. Basically I want the documents with a 100% discount to be automatically added to this list without the need for an extra checkout screen. I don't think this is possible with the checkout workflow. I was wondering if there is anything else I can do. I've switched on ajax add to cart - so maybe I should detect if a document of zero price is added and perform a checkout behind the scenes? Im selling PDF documents so I dont need any details like shipping or anything.

Please Log in or Create an account to join the conversation.

  • Posts: 5
  • Thank you received: 0
11 years 8 months ago #123641

Basically Im looking for a piece of code that allows me to convert items in a cart into a sale, without the user seeing it. Because its a 100% discounted software item. Any help in this area guys?

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #123728

Hi,

This will require some development, create a plugin on the function onAfterCartUpdate() to check which product is added, and then depending on the product, create a hidden checkout.

It require a good php level, here is the documentation for developers:
www.hikashop.com/support/documentation/6...umentation.html#cart

Please Log in or Create an account to join the conversation.

Time to create page: 0.080 seconds
Powered by Kunena Forum