1

Have you tried this? E.g. the paypal button function name is woo_custom_paypal_button. Then add action like this into your function.php or specific plugin: add_action( 'woocommerce_checkout_before_customer_details', 'woo_custom_paypal_button' ); Or if there's something that's already displayed there, and you might want to remove it, first find the function ...


1

if you can print your array why cant' you just do a loop on this array and adding each line into your output_content. It will look like this <?php $myArray = Array ( 0 => Array ( 0 => "Color", 1 => "Black", ), 1 => Array ( 0 => "Size", ...


1

Most recieving mail systems will reject an email with a 'from' of someone@otherdomain.com when the email is sent from the mydomain.com system. This is to prevent mail relaying, a form of spam. You need to make sure that your 'from' email address matches your domain. The actual email address (like someone@mydomain.com for mydomain.com) doesn't need to exist, ...


1

Thanks for all your help. Have found the issue. It was caused by Pinpoint Booking System. I deactivated and it removed the second row from the shop page.


1

Ok, so eventually managed to figure out that it was due to a couple of optimization plugins that were interfering with WooCommerce's image slider: JetPack's lazy loading and SG Optimizer. Deactivated SG Optimizer and added the following to my child theme's functions.php: function is_lazyload_activated() { $condition = is_product(); if ( $condition ) return ...


1

If you have the product's ID you can use that to create a product object: $product= wc_get_product( $product_id ); Then from the object you can run any of WooCommerce's product methods. $product->get_regular_price(); $product->get_sale_price(); $product->get_price();


1

Thanks, @ColdTuna! Just in case anyone wants a sample code with React Hooks: Products.js import React from 'react'; import { useEffect, useState } from "react"; import Woocommerce from "../functions/Woocommerce"; function Products() { const [products, setProducts] = useState(0); useEffect(() => { Woocommerce....


Only top voted, non community-wiki answers of a minimum length are eligible