Code

Discussion on WooCommerce Security Deposits - WordPress Plugin

Discussion on WooCommerce Security Deposits - WordPress Plugin

Cart 547 sales

codeCraze supports this item

Supported

This author's response time can be up to 2 business days.

101 comments found.

Hi I’ve had the codeCraze WooCommerce Security Deposits plugin running on my site for nearly a year without issue. However, since a recent update to WooCommerce, the plugin is now causing issues with the Action Scheduler. It is continually creating pending logs which are forever filling up the MySQL database; this, in turn, is causing my site to reach its allotted webspace on a daily basis, despite installing a log clearing plugin. This also means that my site is essentially in a broken state at the moment because the latest WooCommerce update for the database can never finish and continues to attempt to update. I had a developer look at the site and he created this loomer video to explain what’s happening and why it’s down to your deposits plugin: https://www.loom.com/share/f175d476e28b4d199fa2575aaff9b264?sid=5fa39e08-bbc7-4340-a2d0-dd50268d7ffc Under Woocommerce > Settings > Advanced > Features it states there is “1 incompatible plugin detected (WooCommerce Security Deposits)”. The plugin hasn’t been updated since 2022 so can you confirm if you plan on updating it to be compatible with the latest version of WooCommerce? Or whether I should search for another plugin to do the same job? Regards Paul

This is a great plugin, but if possible we’d love to be able to set the Security Deposit for all products within a specific category by default. There appears to be settings to enable store-wide, ie: “Enable Cart Security Deposit”, but this doesnt work for us as we have some physical (merchandise type) products also sold on our website that dont require the security deposit.

We bulk import 15-20 products per month so need a way to have it auto-set for each of these on import if possible.

Is there any code we could add to the functions.php file or custom code to the plugin files as a temporary measure in the interum? Much appreciated! Thank you!

Would it work similar to the code you supplied recently to another user?

This was supplied as a code snippet which will enable / disable security deposit when a condition is met. Could it be modified to enable security deposits on all products within a certain category? Perhaps it differs as this display on the cart page instead of the product page.

add_action( 'woocommerce_cart_calculate_fees' ,   'custom_before_calculate_deposit' );
function custom_before_calculate_deposit($cart){
    foreach( $cart->cart_contents as $cart_item_key => &$cart_item ){

        $enable  = false; //achieve condition here

        if($enable)){
            WC()->cart->cart_contents[$cart_item_key]['security_deposit_enabled'] = 'yes';
        } else {
            WC()->cart->cart_contents[$cart_item_key]['security_deposit_enabled'] = 'no';
        }

    }
}

Before purchasing this plugin, I would like to ask:

If there are additional fees during checkout, for example, the base product price is $100, and there is an additional fee of $20, will the deposit of 50% include the additional fee so that the deposit becomes $60 and the next payment is $60? Or is it only 50% of the base price, making the deposit $50 and the next payment $70?

Most of the plugins I’ve encountered only calculate the base price for the deposit, not the total price.

Thank you in advance.

Are you still giving updates for this plugin? I would like to buy it

Hello, one pre sale question, When will you if at all update this plugin?

presale questions

1) I take orders via phone/text message. I need to add payment plan via the admin/edit order view. can this plugin add payment plan to an order not created via the customer checkout?

2) Is it posible to have the initial payment be a fixed ammount, and then switch to percentage payents with the remainder ammount?

Example: $275 purchase. Set $75 deposit and then 4 payments of 25% each ($50) of remainder. $275 -$75 = $200 $200 / 4 = $50

Hello, I am interested in your product. But I would like to know if the administrator has the option of not refunding but the possibility of cashing in part or all of the security deposit in the event of a problem?

Hi, I need a way for the customer to be able to search the deposit products from the my account page ( orders area). Can you develop a custom solution like this? the customer will need to check their deposit product and be able to ask for a refund via a php mailer

Hi, is support still active?

We have left an email earlier this week but to no response.

Could someone please advise.

Thank you,

WooCommerce Security Deposits breaks “Sold individually”. Please let us know when this will be fixed.

Actually, Sold Individually works when using the normal “Add to Cart” button, but does not work when forcing a product into the cart like this: https://mystoreaddress.com/checkout/?add-to-cart=productID

Hello, I have released an update to fix this issue. Thank you.

Thank you so much!

It’s a presale question … It is compatible with Yith Bookings? Thanks!

Hi, I have bought the product. I am trying to determine if there is a way to remove the security deposit if someone uses a coupon. For example, I have a giveaway coupon where the security deposit is included, but currently, I cannot determine how to remove the deposit for just coupon items. I have tried to make the coupon include an amount greater than the total cost of the booking + security deposit, but the security deposit still appears.

Hello, apologies for the late reply.

I wrote a code snippet which will enable / disable security deposit when a condition is met. Please find it below :

add_action( 'woocommerce_cart_calculate_fees' ,   'custom_before_calculate_deposit' );
function custom_before_calculate_deposit($cart){
    foreach( $cart->cart_contents as $cart_item_key => &$cart_item ){

        $enable  = false; //achieve condition here

        if($enable)){
            WC()->cart->cart_contents[$cart_item_key]['security_deposit_enabled'] = 'yes';
        } else {
            WC()->cart->cart_contents[$cart_item_key]['security_deposit_enabled'] = 'no';
        }

    }
}
Please let me know if you have any questions. Thank you.

If I wanted to add a certain coupon code to the conditions, what would that look like?

Hay mate! Can you make this compatible with Yith Bookings? I really need this feature. Thanks.

Is it possible to schedule an invoice for the security deposit. For example customer gets the security deposit payment email 2 days before their stay? My client uses the woocommerce system as a back end ordering system, customers pay their 50% deposit to secure their booking but the security deposit is refundable and not due until 48 hours before their stay. Thanks in advance

support still active? I tried but no response from them..

Hello,

My sincere apologies for responding so late as I have been out due to medical surgeries, I have already responded to your support message.

My apologies again. Thank you.

Nice plugin, could you please confirm if it has any external API for setting the security deposit programmatically.?

Thanks in advance

Hello,

My sincere apologies for responding so late as I have been out due to medical surgeries. Currently there is no API endpoint to handle the creation. However, adding a security deposit is quite simple process where a fee is added and tagged by order item meta in both the fee and iti’s connected order item. I can provide an example function to do that which you can add as part of your API endpoint.

My apologies again. Thank you.

This looks to be exactly what I need, but I’m about to install WooCommerce 6.1 and this plugin is only confirmed to be compatible up to WooCommerce 5.1.x, will you be updating this? The plugin also doesn’t show as being updated since 26 August 21, is it abandoned, or will it be abandoned soon as I need long term support?

Hello,

My sincere apologies for responding so late as I have been out due to medical surgeries, WooCommerce had not made any changes to refund APIs in a very long time so the plugin still works fine. I will be releasing an update soon to declare compatibility.

My apologies again. Thank you.

I appreciate you replying to this. But I purchased the plugin anyway, and sent you a support question about 4 days ago and I haven’t heard back. I have a client waiting on me for this project so would really appreciate your assistance with the plugin not working for PayPal. Thank you!

Hello, I have already responded to your support email. Thank you.

Hello,

My sincere apologies for responding so late as I have been out due to medical surgeries, I have not tested this plugin with mentioned theme but security deposits are fees so they should work out of the box with any theme.

My apologies again. Thank you.

is it possible to rename the security deposit tittle to something of our choice? Please let me know how to do it also if we want to change the string of security deposit to some other ” Convenience Fee”

Hello,

My sincere apologies for responding so late as I have been out due to medical surgeries. Yes that is possible via the filter ‘woocommerce_security_deposits_fee_title’.

My apologies again. Thank you.

Hi! It is compatible with RNB Woocommerce Booking?

Hello,

Unfortunately , customers reported back compatibility issues because RedQ plugin ignores all woocommerce fees in their custom calculation.

Thank you.

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey