I am trying to set up a traditional login and registration form following the symfony 4 documentation. Using the registration form I seem to be able to register users correctly into the mariaDB …
google analytics api v4 multiple metrics query
Ive been trying to get the metrics for all urls that contain a specific id in them. From this question: Adding ga:pagePath dimension to get page views for a particular URL using Google Analytics …
What is the purpose of the question marks before type declaration in PHP7 (?string or ?int)?
Could you please tell me how is this called? ?string and string Usage example: public function (?string $parameter1, string $parameter2) {} I wanted to learn something about them but I cannot find …
Add a custom field value below product title in WooCommerce archives pages
In WooCommerce I would like to add custom text to my products display, that will be grabbed from a custom field in product’s edit page. This is how it looks now: You can see the products with their title below: I would like to add a text below every product, marked with blue pen: I have managed to find …
Time loop for WooCommerce checkout select option from date picker input field
Input field one – delivery date has a datepicker attached. This fills in the required date by client. This field determines the delivery time options that are populated in the select field next to it. However the options are based on some rules Time slots are 30 mins intervals from 11am to 4pm. If the d…
Laravel polymorphic with custom foreign key
I have problem with custom shipmentable_type. My structure looks like this: Now I have in my Transfer model realtion like this: The problem is, that to table shipmentable, to column shipmentable_type is going sth like this now: App/Models/Transfer, but I would like to force to be there ‘transfer’ …
Unset Payment Method for downloadable items only and a specific shipping country [closed]
My e-commerce site sells 99% to South Africans, and we use “BACS” “EFT” & Credit Card as payment options. We do accept international orders, but can not calculate the shipping cost for …
Can’t get value from Summernote textarea using Javascript AJAX send post data
I’ve been checking summernote API, and there is my code …
Get the selected variation attributes from orders in Woocommerce 3
In Woocommerce, I have a report in the admin area that tallies up products sold.There are only 5 products sold on the site but there are 1 or 2 variations on some. The report works great but ignores the variations. I need to retrieve the attribute value from items ordered to display the data accurately. How d…
Renaming files with random string after upload and storing the name in array
I’m trying to process multiple files upload with foreach then rename the files with random string and store the file names in an array, here’s my current code: I can’t find where the problem is, should I use foreach for every generated file name then use move_uploaded_file inside the foreach…