We have a Laravel deployment website set up under deploy.mysite.com which handles deployments for a multitude of other websites. One other website I’m trying to deploy which is also a Laravel site resides under site2.myothersite.com. Both are on the same server. Deploy calls a script on site2, this depl…
Paypal Sandbox Access Token not Found in Cache
I am having a persisting issue with the Paypal access token for the sandbox environment where I continually get the error, I am not sure where to go as this is a new token that is being generated and used just prior to running the API call. Everything was working normal until this began giving me issues a cou…
PHP show result without refresh
Here is the php code I want to show if domain is available or not in same page without refresh <input type="text" name="domain_name" class=…
WordPress Sub Menu Options Page with Tabs
I have not been able to find a suitable answer on the web for what I am trying to do. I have created a custom post type “donation” and under that, have a submenu of “settings”. I want the settings page to use tabs for different things to keep it simple. Here is what I have: When I clic…
Custom “Terms and Conditions” acceptance checkbox in Cart page Woocommerce
Works on small home project, and want to add checkmark option bellow “Proceed to Checkout” button into Cart page into my Woocommerce site. I found this function, that is add that option: …
PHP how do I get previous Quarter start and end date
I know how to get the previous Quarter number how to turn that into date ranges especially when it goes into the previous year? $Quarter = floor((date(‘n’) – 1) / 3);
Woocomerce Remove a specific cart items when adding to cart another specific items
Provided solution here Remove a specific cart item when adding to cart a specific product in Woocommerce works perfect for one product id. Is any way to do this for multiple id’s? Answer Update 2 : The following code will work for multiple product IDs: Code goes in function.php file of your active child…
Laravel UUID’s and their uniqueness?
I have two tables, one for lists and another that stores a history of lists that were created. These lists are very temporary and they can be deleted by numerous methods so I add a reason field on the history for that. Now both have a uuid field and I can generate an actual string to store with Laravel’…
Add customer email and phone in “Order” column to admin orders list on Woocommerce
I am trying to find a way on how to add the customer phone and email below the name on the WooCommerce order view. See picture for reference where I need to add this information. Any ideas, tips or …
Preserve elements in each row of a two-dimensional array based on another array
I have this array: What I am looking for is a way to get a multiple array with only required columns (array_column is not a option, since it’s give me only 1 column). What I have done The problem is that it seems too laggy, since it iterates twice over this. Is there any way to get multiple columns with…