[SOLVED] Delete basket automatic

4 years 1 week ago - 3 years 11 months ago #318336 by cppleal
[SOLVED] Delete basket automatic was created by cppleal
Good,

I could not search the forums, but would need to automatically delete the basket every time you enter to complete a subscription.

It happens to me that I have subscription options that can change and when I enter it leaves me the first basket that was configured, which could lead to an error.

Is there a way to do it?


Thanks

Please Log in to join the conversation.

4 years 1 week ago #318366 by krileon
Replied by krileon on topic Delete basket automatic
Click the link to cancel the basket when viewing the basket. Otherwise unpaid baskets will expire and clear themselves based off the "Payment basket timeouts" settings in CBSubs > Settings > Display > Baskets. By default they will expire in 3 hours when using frontend.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

3 years 11 months ago #318590 by cppleal
Replied by cppleal on topic Delete basket automatic
OK, thanks.

The parameter you indicate works in hours, and as you say, it is found by default in 3 hours.
What effect would it have if I put 0.1 h for example. Would it take 6 minutes to delete the basket ?. Or zero, directly, would they be automatically deleted?

Best regards.

Please Log in to join the conversation.

3 years 11 months ago #318617 by krileon
Replied by krileon on topic Delete basket automatic
That parameter sanitizes to integer so if you put 0.1 it will sanitize to 0 and act as 0, which will probably just break the baskets causing them to expire immediately. The proper way to leave a basket is to cancel the basket. This shouldn't be unfamiliar to users as every website that uses a shopping cart or basket behaves the same way.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

3 years 11 months ago #318640 by cppleal
Replied by cppleal on topic Delete basket automatic
OK, thanks.

Issue resolved

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.222 seconds

Facebook Twitter LinkedIn