Jump to content

Jolline

Member
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Jolline

  1. Hi, is it possible to allow clients to choose whether they wish to renew product or not? The product is basically like a subscription plan, does not involve any domain. Any idea to do so? Any help is appreciated!
  2. FOR NO.1: I added all of the code into configureproduct.tpl of orderforms template: I simply get the productid from $_SESSION['cart']['products'] (session for cart) for the added product and do a query to retrieve the group id it belongs to. Then I check if the current product's group id ($this->_tpl_vars['productinfo']['gid']) is the same as the added product. If yes, I use jQuery to alert a confirm box whether the client would like to delete the product. If the client clicked yes, I will use ajax to remove that product from cart and the user can proceed on by clicking checkout. If no, I will just hide the checkout button. FOR NO.2: I got that answer from a forum http://forum.whmcs.com/showthread.php?41258-limit-one-product-per-customer before asking this question but I didn't know users are able to upgrade their plans through Services > My Services. (First time using WHMCS ^^
  3. UPDATE: Okay I had solved all. FOR NO.3: I not very sure why but I noticed that at 'Please wait while we redirect you to the payment gateway...' page, there's suppose to be a function to submit the form after 5seconds but the function isn't calling. Hence, I amend the setTimeout('autoforward();',5000); to setTimeout('document.viewinvoiceform.submit()',5000);. I had named the form as viewinvoiceform and that's how I can submit using the name.
  4. Hi, There are a few questions which I would like to ask: 1) So I am currently trying to make my clients only able to add one plan from each different category into the cart. After adding plan A from category A to the cart, the client will saw a message stating 'If you would like to add plan B of category A, you will have to remove plan A from the cart first. Would you like to remove plan A?' if he/she is trying to add another plan from the same category. 2) Also, if they had already purchased one of the plans of that category, they will not be able to purchase another plan of that category. They are only able to UPGRADE to the next higher plan of that category. EDIT: 3) I had noticed that clients are unable to check out if they use Bank Transfer. It seems that they will stuck at 'Please wait while we redirect you to the payment gateway...'. This always happens whenever I tried to amend viewcart.tpl of modern template. Anyone has any idea on how to do so/solve? I will be glad to receive any forms of information, thank you!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated