Blog

PDF Invoice Optimization

User add_filter('pdf_template_table_headings','pdf_invoice_head',999,2); function pdf_invoice_head($header, $order_id ){ //CHANGE DATE HERE AND BELOW y-m-d $date2 = strtotime('2021-11-24'); $orderedDate = strtotime(get_post_meta($order_id,'_dispensed_date',TRUE )); if($orderedDate < $date2 ){ $headers = '' . esc_html__('Medication details:', 'woocommerce-pdf-invoice') . '' . '' . '' . '' . '' . esc_html__( 'Medication', 'woocommerce-pdf-invoice' ) . '' . '' . esc_html__( 'Quantity', 'woocommerce-pdf-invoice' ) . […]

WooCommerce PDF Customization

User add_filter('pdf_template_table_headings','pdf_invoice_head',999,2); function pdf_invoice_head($header, $order_id ){ //CHANGE DATE HERE AND BELOW y-m-d $date2 = strtotime('2021-11-24'); $orderedDate = strtotime(get_post_meta($order_id,'_dispensed_date',TRUE )); if($orderedDate < $date2 ){ $headers = '' . esc_html__('Medication details:', 'woocommerce-pdf-invoice') . '' . '' . '' . '' . '' . esc_html__( 'Medication', 'woocommerce-pdf-invoice' ) . '' . '' . esc_html__( 'Quantity', 'woocommerce-pdf-invoice' ) . […]

Deployment Process and Docs

User Deploying will be after all task done at our demo server and also after verified by client at our server I'll share deployment to live after all task done with proper docx because it is a db related operations Correct above Assistant Here’s a corrected and professional version of your sentence: **"Deployment to the […]

User Profile Update Code

User <script> import { ref,computed,onMounted,inject,watchEffect } from 'vue' import {useDisplay} from 'vuetify' import { useUserStore } from '@/stores/userStores' import {getUserInfo,updateProfileData,updateUserPassword} from '@/dbstore/firebase/userService' import {useLoadingStore} from '@/stores/loading' import SnackBar from '@/components/SnackBar.vue' const loadingStore = useLoadingStore() const userStore = useUserStore() const tab = ref('option-1') const {mdAndUp} = useDisplay() console.log(mdAndUp) const tabDirection = computed(() => mdAndUp.value ? 'vertical' […]

EC2 site not reachable

User ec2-16-171-53-169.eu-north-1.compute.amazonaws.com This site cantot be reached Assistant If `ec2-16-171-53-169.eu-north-1.compute.amazonaws.com` is showing the error **“This site can’t be reached”**, here are some common causes and steps to troubleshoot it: — ### ✅ 1. **Check EC2 Instance Status** – Go to your AWS **EC2 Dashboard**. – Confirm that the instance is: – ✅ **Running** – ✅ […]

Reset MySQL Root Password

User i have forget mysql root password aws ec2 Assistant To reset the MySQL root password on your AWS EC2 instance, follow these steps. This assumes you're using Ubuntu (which you are, as per earlier context) and have SSH access: — ### ✅ Step-by-Step: Reset MySQL Root Password on AWS EC2 (Ubuntu) #### 1. **SSH […]

React WordPress Theme Setup

User Create WordPress theme with react "npm create vite@latest my-app — –template react" Assistant To **create a WordPress theme using React** (with Vite for modern development) and integrate it properly with WordPress, follow these steps: — ### ✅ 1. **Create the React App using Vite** In your terminal: npm create vite@latest my-app — –template react […]

SSH Key Permission Denied

User ubuntu@ip-172-31-0-233:/var/www/wprock$ ssh -T git@bitbucket.org git@bitbcket.org: Permission denied (publickey). ubuntu@ip-172-31-0-233:/var/www/wprock$ Assistant The error: git@bitbcket.org: Permission denied (publickey) has a **typo in the hostname** — you're trying to connect to: git@bitbcket.org It should be: git@bitbucket.org ### ✅ Fix: Run the command again with the correct hostname: ssh -T git@bitbucket.org If you're still getting a permission error […]

Add multiple pages React

User How add multiple pages react Assistant To add **multiple pages in React**, you'll typically use a **routing library** like [`react-router-dom`](https://reactrouter.com/). Here’s a step-by-step guide: — ### ✅ 1. **Install React Router** If not already installed: npm install react-router-dom # or yarn add react-router-dom — ### ✅ 2. **Set up Router in your App** In […]

Forgot Password Firebase Vue

User create forgetpassword for firebase user tha signed with createUserWithEmailAndPassword with out logged in vue Assistant To implement **"Forgot Password"** functionality in Vue.js using Firebase Authentication for users created with `createUserWithEmailAndPassword`, even if they're not logged in, you can use Firebase's `sendPasswordResetEmail()` method. Here’s how you can set it up in Vue (Composition API style): […]