Blog

Firebase dependency resolution error

User Unresolvable dependency resolving [Parameter #0 [ string $projectId ]] in class KreaitFirebaseAuthApiClient Assistant The error **"Unresolvable dependency resolving [Parameter #0 [ string $projectId ]] in class KreaitFirebaseAuthApiClient"** typically occurs when Laravel's dependency injection container fails to resolve the required `$projectId` parameter in the **KreaitFirebaseAuthApiClient** class. ### Possible Causes & Solutions: #### 1. **Check Your […]

Force Pull Git

User force pull Assistant If you want to forcefully pull the latest changes from a Git repository and overwrite local changes, you can use the following command: git fetch –all git reset –hard origin/<branch-name> git pull origin <branch-name> ### Explanation: 1. `git fetch –all` – Fetches all branches from the remote repository without merging them. […]

reCAPTCHA Checkout Integration

User Quote for setting up recaptcha to checkout form will be 2 hours Assistant If you are referring to implementing Google reCAPTCHA on a WooCommerce checkout form or a custom checkout page, then a **2-hour estimate** is reasonable for a standard integration. This would cover: 1. **Registering reCAPTCHA**: Setting up the Google reCAPTCHA keys for […]

Block IP WooCommerce

User there are too many failed orders in woocomerce from this 67.21.33.24 ban this ip to make any order Assistant To block the IP address `67.21.33.24` from making orders in WooCommerce, follow these steps: ### **1. Block IP via .htaccess (Apache)** If your server runs Apache, add the following lines to your `.htaccess` file (located […]

Dropdown Positioning Fix

User Search Product Code Assistant To ensure the “ dropdown appears directly below the input field instead of beside it, you can use CSS to control its positioning. However, keep in mind that “ behavior varies across browsers, and some styling might not be fully supported. Here's what you can do: ### Solution: 1. **Wrap […]

Datalist dropdown positioning fix

User open to below the field not side Assistant If you want the “ dropdown to appear below the input field rather than beside it, you can achieve this using CSS. The default behavior of “ is controlled by the browser, but you can apply styles to the input field to influence its position. ### […]

Datalist dropdown positioning fix

User Assistant To ensure the “ dropdown appears below the input field instead of to the side, you can use the following CSS: ### Solution: .product-input { position: relative; display: inline-block; width: 100%; } .product_code { width: 100%; font-size: 12px; padding: 5px; } datalist { position: absolute; width: 100%; max-height: 200px; /* Control height */ […]

Prevent AJAX on Clear

User jQuery('.clear_pro_btn').click(function(){ var pId = jQuery(this).attr('data-pid'); parentRow = jQuery(this).closest('.product-id-'+pId); parentRow.find('.product_code').val(''); parentRow.find('.p_depth').val(''); parentRow.find('.p_width').val(''); parentRow.find('.variation-select').val(''); parentRow.find('.p_bmt').val(''); parentRow.find('.p_length').val(''); parentRow.find('.p_weight').val(''); parentRow.find('.pa_use-type').val(''); parentRow.find('.pf_add_to_project').attr('data-vpid', '').hide(); parentRow.find('.pf_pdf_preview').attr('href', 'javascript:void(0);').hide(); parentRow.find('.clear_pro_btn').attr('data-pid', ''); }); prevent below call when clear $('.product_code').on('blur input', function(e) { e.preventDefault(); var thisVal = $(this); var sku = thisVal.val(); var parentProductId = thisVal.attr('data-pid'); console.log(parentProductId); console.log("dfd"+sku); $.ajax({ type: 'POST', url: '', data: { […]

Set value in datalist

User Assistant You can set the value of an “ field based on a selection from the “ in JavaScript. Assuming you have an “ element that uses the “: ### Example: <input type="text" id="product_input-<?php echo $product->get_id(); ?>" list="product_code-<?php echo $product->get_id(); ?>"> <datalist id="product_code-<?php echo $product->get_id(); ?>"> <?php if(is_array($p_sku) && count($p_sku) > 0){ foreach($p_sku as […]

Firebase portfolio Vue 3

User Firebase default database add/display portfolio with image vue 3 Assistant To add and display a portfolio with images in a **Firebase Realtime Database** using **Vue 3**, follow these steps: — ## **1. Set Up Firebase** Ensure you have Firebase set up in your Vue 3 project. 1. Install Firebase SDK: npm install firebase 2. […]