1,467,730
questions
0
votes
0
answers
12
views
PHP code issue causing grid container and bootstrap 5 cards (grid-items) not to render on web-page loading?
I am trying to create a grid container that will dynamically display bootstrap cards of treeseed items that I added to MySQL database.The items should be displayed on the shop portion of a webpage I ...
0
votes
0
answers
8
views
Has anyone successfully managed to configure a PHP class method to retrieve a CheckoutId for a Sumup Payment Widget
Our HTML/Javascript client sends a request to our PHP proxy Class and method to invoke the communication with the Sumup API.
The Sumup Developer Documentation appears to require three steps:
Use Curl ...
0
votes
0
answers
21
views
PHP exec() command not working as expected
I have a PHP process (backup-generic) that builds and then executes a command to perform backups on various directories. The net result of this command, when I execute for a particular user's home ...
0
votes
0
answers
7
views
Exclude products with specific metadata from WooCommerce recent products widget
I am currently trying to exclude specific products from the WooCommerce recent products widget.
Specifically, I want to prevent products with specific metadata from being displayed: Meta key ...
1
vote
1
answer
18
views
Why are some checkout action hooks not working in WooCommerce?
I'm using the following code to save the value of a hidden input field having as attribute name "custom_form_data":
add_action('woocommerce_checkout_update_order_meta', '...
0
votes
0
answers
8
views
Laravel Socialite Google OAuth with Sanctum: Session created but user_id is null after login
I'm building an API-only SPA with Laravel Sanctum and Nuxt3, using cookie-based session authentication. I’ve implemented Google OAuth using Laravel Socialite.
Here’s my current setup for the Google ...
0
votes
0
answers
15
views
When Product A is set as a cross/upsell of Product B, then also auto-set the Product B as cross/upsell of Product A
In WooCommerce :
if Product A is added in the cross/upsells of Product B, then Product B should also automatically be added in the cross/upsells of Product A.
if Product A is removed from the cross/...
0
votes
0
answers
6
views
Issue with Displaying Custom Post Types in WordPress Loop
I’ve created a custom post type called "Portfolio" in WordPress, but it isn’t showing up in the main loop on the homepage. I want to display both regular posts and portfolio items together ...
-1
votes
0
answers
13
views
How to retrieve "views in the past 60 minutes" using YouTube API? [closed]
I am trying to retrieve the "views in the past 60 minutes" data for a live video, similar to what is shown in the YouTube Studio analytics dashboard under the "past 60 minutes" ...
-1
votes
0
answers
20
views
Why do multiple records Create a new table? [closed]
I have a script that displays database info. I have the info being retrieved correctly. My problem is in displaying said info.
I have the below code to populate a table with the info. The info isn't ...
-1
votes
0
answers
21
views
Calculator program went wrong [closed]
I'm a beginner in programming. I am trying to build my first calculator program.
However, on my browser it tells me I have an error on the line where I coded form action=.. is. I tried to find my ...
0
votes
0
answers
13
views
How to authenticate for uploading files for ssh in php
I can connect securely to my Linux server on Windows using puTTY and Core FTP LE, both to root and to user.
But I want to connect using a Windows PHP program to user using the ssh2 library.
I've tried ...
0
votes
1
answer
32
views
LARAVEL: Gmail SMTP configured correctly and works in local XAMPP env but not working in cpanel hosted website
I get this error:
production.INFO: Failed to authenticate on SMTP server with username
"[email protected]" using the following authenticators: "LOGIN",
"PLAIN". ...
0
votes
0
answers
9
views
Updating a custom field value without manually saving in a WooCommerce admin product area
I would like to add the normal stock value of a product to the custom stock value that already has an order status (wc-on-hold and wc-processing). This works great, but only when I save the product ...
0
votes
0
answers
31
views
Laravel javascript variable get in blade file
I need get js var in view blade file.
I got this one in Controller and got success in console
in route file
Route::post('/some-route', [Controller::class, 'someMethod']);
Route::post('/some-route', '...