I have added a function to add a free product when a certain coupon code is entered. I now need to check if the original product is still in the cart, and if not, remove coupon and free product from …
Show or hide checkout postcode field based on chosen city in WooCommerce
In Woocommerce, I am trying to hide the checkout postcode field if a specific city field is selected. I found a working code that hides the billing phone if company field is empty: I don’t know how to alter this code to make the required postcode field to be hidden when a specific billing city is select…
switcher php. my question is with switcher. when I switch and form should be changed dynamically
I have 3 options. They are chair , war and peace, acme disc. switcher php. my question is with switcher. when I switch and form should be changed dynamically. I am beginner on php. Answer
Error with paypal ReturnUrl is not a fully qualified URL
This is my code: I read around there that it could be the backslashes but I have them well and also that it could be the localhost but I also did a basic test previously, and it worked, and now in the project I’m working on it doesn’t work. Answer Try to set your properties like this (change to yo…
Issues when Debugging PHP in VSCode using Docker and WSL2
I’ve been working with VSCode + Docker in Windows for some years now, and managed to have a fully working dev environment without any issues. Recently i setup a new development environment with WSL2. Moved all my projects, libraries, CLIs, etc, into WSL, using Docker Windows with WSL2 containers and VSC…
How to turn a table vertical using PHP
I am just learning PHP ,and I want to create a table that display echo data that I submit to my database , the problem I have that the table displayed horizontally by default as you see Horizontal default table this my script but I want it to be echoed vertically instead like this VERTICAL RESULT I WANT and I
insert into tables from another tables
Well, I trying insert into tables to another but I get this error; WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version …
Trying to access data returned from Stripe API with Alamofire, but result is not valid JSON
I’m trying to interface a Swift app with the Stripe API, using Alamofire, but I’m having trouble with the returned results. I was expecting valid JSON, but I am getting the following: Stripe…
How to handle posted multipart/form-data when its send to PHP?
Rather simple question but I’m new to handling formdata and blobs. I need to handle a formdata file that contains both a blob and a string. The blob is first downloaded and then sent successfully to testPDF however in doing a var_dump of $_FILE[‘pdf_blob’] or $_POST[‘pdf_blob’] i…
Laravel view with variable, missing required parameters for route
I am losing too much time for (I am sure) a small missing, but I am not able to find it. Here my issue. I want to create an open blade, so without authentication, with a variable parameter in the …