On woocommerce storefront header, I want to hide the search box for not-logged users, and replace it with 2 yellow buttons: “Login”, “Register” (like the stackoverflow landing-page header) that send to my customized login/register urls. I tried this CSS code that works to hide the sear…
grouping elements for same object
this is a simplified array of objects with different elements( it’s a result from database). I’m trying to group classes together for each person so I can show it in an html table as final result, I’m …
Call a function from a WordPress plugin
I have a wordpress plugin that I’m looking to call one of the functions on a custom template. The function I want to call is get_ship_now_adjust_date_link. Is it possible to just do the following on a …
What is the use of ‘flock’ in PHP [closed]
I am working on Codeigniter 3 for a month, and i want to make my own logging app, that logs the entry of the users and their actions on the website.So i digged deep into the codes related to logging …
How to sort an array based on another value?
So I am pretty lost here because I don’t know what my object looks like (not sure why I can’t do print_r() to print the object). Basically from the below code, I need to sort the reviews which is $_reviews based on $percent_avg. I got the $percent_avg value from a multiple for loops and that’…
Display custom product image on WooCommerce email notifications
I am trying to modify the product images in the auto generated WooCommerce order e-mails. Note, I am trying to do this with hooks, rather than creating a modified e-mail template. To start, I have a …
Is it possible with only PHP ? PHP FORM
I have a .csv file which contains the name of a product and its quantity separated by a comma. I would like to choose a product from the ComboBox and have its quantity displayed into ‘max’ of my input of numer type . Here is a sample of the .csv file : Here is a sample of my HTML and
laravel update database multiple records
I am new to Laravel. I’m simply trying to update a full row of mysql table. Data are being sent from a form. I only get to have only 2 records updated and the rest go NULL. I am sure that the fields …
php filtering json file and returning an attribute value
I have a json file which I read in. I want to first filter the json data to return the object defined by the datasetID, then get out the datasetName. I have filtered in javascript, but would prefer to …
Php associative array value update from a form
I am trying to update value of an associative array from form data. When the user presses submit, the array values should be updated. Here is the code below. $userInfo = array(‘new_user_name’ => ”,…