Quantcast
Channel: WordPress.org Forums » [WooCommerce] Support
Viewing all 102244 articles
Browse latest View live

Paypal payment received after order was cancelled

$
0
0

Replies: 0

Hi

Strange scenario

Wordpress 5.4.2
Woocommerce 4.2.2 with built in Paypal

On hold stock for pending orders: 10 minutes

This website I manage sells lessons with a limited number of seats and no overbooking should be possible.

Here are the events with their time.

12:23: order, stock 1–>0
12:33: order automatically cancelled after 10 minutes as the order was not paid, stock 0–>1

All this had worked as expected.

But…
15:23: Paypal IPN received, order paid

But at 15:21 another order was placed for the same lesson and the stock was 0 when the other order IPN arrived, with a 0–>-1 stock which should be forbidden.

Of course, all these events and their timing come from Woocommerce order notes.

So my client has an overbooking.

What can be done to avoid such quite annoying situation?

How can it be possible to receive a Paypal payment for a cancelled order?

Best regards
Thierry


Deleting completed scheduled actions

$
0
0

Replies: 0

In my scheduled actions page, it is showing that it has completed “1764” actions. Shall I periodically delete completed actions because they may slow down the site or shall I keep them as it is?

Having trouble deleting and updating products in the cart

$
0
0

Replies: 2

Hello, I’m still adding products for my site and I’ve been testing out how it functions and I’ve realised that the cart page does not delete or update the product when you do any of the functions. Last week I connected the AWS for WordPress plugin CloudFront functions with the AWS load balancer. Could someone help me discover what the problem might be?

Edit min_placeholder

$
0
0

Replies: 6

i am new to wordpress and i having trouble with the price filter,i want it to begin from zero in the slide,how i do it?

Layout of WooCommerce checkout page

$
0
0

Replies: 1

Hi,
The layout of my WooCommerce checkout page is very strange. It is like it is divided into 2 columns with the camps to fill out all being squished together in the lefthand column so it is unclear and offputting to users. Please could you advise how to change this?

I already posted this query in the theme support forum and they sent me here as it isn’t an issue with the theme.

Many Thanks
Anna

Your cart is currently empty

$
0
0

Replies: 2

When I try to checkout with a product in a cart, it says “Your cart is currently empty”.

https://drive.google.com/drive/folders/1RGwXX2zS5H5vaPhJ-jG-JwfaPU9W1rxA?usp=sharing

What I tried.
+ disabling all plugins but woocommerce
+ re-inatalling woocommerce
+ update wordpress and plugins to up to date
+ check database
+ Ask hosting to exclude check out page to exclude from a cache exception
+ and other things mentioned in
https://www.businessbloomer.com/woocommerce-solving-cart-empty-issue/

can you please help me with this issue?

use classes to exclude shipping to zone

$
0
0

Replies: 2

I use weight-based shipping to sell to UK, EU and ROW. I’ve set classes for each. How can I prevent a certain class of product from being shipped abroad?

“Display” is missing

$
0
0

Replies: 1

Hey !

I need your help !

I have to resize some photo for my catalog product ok. But for this I need to go in the display setting of WooCommerce.

But like you see in this photo
https://zupimages.net/up/20/28/6thp.jpg
the category “Display” is missing
but normaly it’s like this
https://zupimages.net/up/20/28/dos0.jpg

and when I go in “Customize” “Product Catalog” I can’t modify the size of my photo
https://zupimages.net/up/20/28/nfle.jpg
I just want to find this setting:
https://zupimages.net/up/20/28/2cvq.jpg

thank you !


Woocommerce & Amazon S3 Storage -> Failed – Network error

$
0
0

Replies: 0

Hello,

I just launched my online shop but a customer came up with an issue.

I’m using theme: Highend (https://hb-themes.com/themes/highend/)
and I’m using the following additional services/plugins to sell digital downloads:
– WooCommerce: to set up the shop
– AWS –> Amazon S3 storage: as external service to store my video tutorials (between 2,61 GB and 4,1 GB)
– Amazon S3 storage plugin: to serve Amazon S3 video tutorials download links when someone purchases.

The client purchased 3 of my digital products (here https://www.marcograssiphotography.com/tutorials/) and started the download. The downloads started, but then he got this message “Failed – Network error” and the downloads have all failed. On a side note, he tried 3 times for each product and never succeeded.

My file download method in Woocommerce is set to -> Force Downloads as I read it is safer for keeping the links hidden. Woocommerce itself and also Amazon S3 don’t suggest using Redirect Only.

Do you know what is wrong? Can you help?

Best,
Jessica

Product quantity in a certain period

$
0
0

Replies: 0

Hello,
is there a way to know the quantity of products in stock in a given period? For example, how many products were in the catalog on July 2nd. I would need it to help me make inventory.
Thank you for your assistance.

External URL On Product Images, not on Title

$
0
0

Replies: 0

I’m building a Woocommerce shop that will only have affiliate products. I would like to reduce the amount of clicks to the merchant to hopefully increase conversions but would still like a product page. So I would like to have the products thumbnails on the shop page/category page and the pictures on product page to link directly to the external url and the product title to go to the product page as usual.
What I am hoping for is site functions similar to thisiswhyimbroke.com
Hope you can help.

Product variations

$
0
0

Replies: 0

Ok all!
Im stuck. Im building a site for a client that sells glass. Basically i have the woocommerce measurement calculator extension and the client adds in their length and width for the area. but i then need to have variations of the product, such as beveling, which costs $0.25 per perimeter inch as opposed to the area.

I need to be able to calculate the main price for the area and then have an addon for beveling that adds to the main price based off the same user input calculated differently.

please help, im so stuck…

YES or NO product tick box

$
0
0

Replies: 0

Hi,

I am trying to create a tick box/radio button for a product, the product needs a verification that if YES is ticked, the “add to cart” button highlights and the user can continue to checkout.

If NO is selected, it needs to show a message along the lines of “you cannot proceed due to…..” and the add to cart button stays greyed out.

Any help is much appreciated.

Thanks

How many product can I upload ?

$
0
0

Replies: 2

So, the top question is, what is my limit and how many product I can upload on my webpage ?
Appreciated for all efforts and helps.
Thank you.

  • This topic was modified 1 hour, 37 minutes ago by gst.

Custom Order Details Field

$
0
0

Replies: 0

On the checkout page of my WooCommerce based site, users will have a list of shipping methods to choose from depending on what they are purchasing. Things like “Free Shipping” for orders over a certain price, “Freight Shipping” for certain items, and so on. My goal, is to capture that list of available shipping options for each order, and display it on the “Edit Order / Order Details” page in the Admin view. A small feature that would help us be able to quickly identify what option people are choosing more often, depending on the options that they have available.

Previously, using custom code I was able to capture the order weight using this code:

add_action( 'woocommerce_checkout_update_order_meta', 'bbloomer_save_weight_order' );
 
function bbloomer_save_weight_order( $order_id ) {
    $weight = WC()->cart->get_cart_contents_weight();
    update_post_meta( $order_id, '_cart_weight', $weight );
}
 
add_action( 'woocommerce_admin_order_data_after_billing_address', 'bbloomer_delivery_weight_display_admin_order_meta', 10, 1 );
  
function bbloomer_delivery_weight_display_admin_order_meta( $order ) {    
    echo '<p><strong>Order Weight:</strong> ' . get_post_meta( $order->get_id(), '_cart_weight', true ) . get_option( 'woocommerce_weight_unit' ) . '</p>';
}

Following that same idea since it does what I want, what would I need to do for the available shipping methods? This is what I have so far:

add_action( 'woocommerce_checkout_update_order_meta', 'save_available_shipping_methods' );
 
function save_available_shipping_methods( $order_id ) {
    $shippingmethods = WC()->cart->get_shipping_methods();
    update_post_meta( $order_id, '_shipping_methods', $shippingmethods );
}

add_action( 'woocommerce_admin_order_data_after_shipping_address', 'get_available_shipping_methods', 10, 1 );

function get_available_shipping_methods($order){
	$order = wc_get_order( $order_id );
	if ( $order ) {
    	echo '<p><strong>'.__('Available Shipping Methods: ').'</strong> ' . get_post_meta($order->get_shipping_methods(), '_shipping_field_value', true ) . '</p>';
	}
}

Woocommerce error

$
0
0

Replies: 2

I am getting this error while updating plugin.

“get_checkout_url function is deprecated since version 2.5. Replace with wc_get_checkout_url”
Can someone please help me with this?

Fatal Error upon activation.

$
0
0

Replies: 1

I am new to WooCommerce. I just downloaded the plugin for my managed WordPress website. Plugin will download, but if I activate the plugin it will cause a fatal error.

I disabled ALL plugins on my website and still received the fatal error message when activating WooCommerce. Even tried installing it on my staging website and it fatal error/crashed my staging website.

Have downloaded the zip file, have tried to install it right from the plugins page, all with the same results. Called GoDaddy hosting support, they also could not figure out the problem. Could be a WooCommerce problem. Package installer is bad on the WooCommerce plugin possibly.

Any advice to install this plugin on my website?

Checkout button does nothing

$
0
0

Replies: 1

Hello!
Nothing happens when I click on the checkout button leading to PayPal. I am lost and have tried disabling and enabling all the plugins one by one and still nothing. Any thoughts or fixes?

make a sold video viewable only for two weeks

$
0
0

Replies: 0

Hello, I’m setting up a site shop and think to sell virtual item (videos) and I would like to make my video (probably youtube) be available for every new customer to be seen only for two weeks. I don’t want to edit the original video again and again every time it is sold, just do it automatically .. somehow. There must be a plugin (preferably free) for woocommerce to do this.
Thank you.

Remove HTML from the minicart when product is in cart

$
0
0

Replies: 0

Hi there,

I’m looking to edit mini-cart.php in order to produce the results shown in the following link, which contains two images:

https://imgur.com/a/4dy4Glr

• Note that the first image shows an item in the cart with a total and sub total.

• The second image shows the desirable result, but is using display:none CSS, which while is okay, means HTML is still being printed and only hidden.

I’ve copied the mini-cart.php file to the following path on my localhost:

C:\wamp64-3.2.0\www\site-name\wp-content\themes\theme-name\woocommerce\cart\mini-cart.php

I’m unsure what needs to be changed.

The answer may not be straightforward or indeed possible, as this request most likely falls outside the remit of WooCommerce support, as it involves custom code.

Here’s the code from the mini cart file.

Thanks for reading, and I hope there’s a simple way. If not, I’m stuck with the CSS method.

<?php
/**
 * Mini-cart
 *
 * Contains the markup for the mini-cart, used by the cart widget.
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/cart/mini-cart.php.
 *
 * HOWEVER, on occasion WooCommerce will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @see     https://docs.woocommerce.com/document/template-structure/
 * @package WooCommerce/Templates
 * @version 3.7.0
 */

defined( 'ABSPATH' ) || exit;

do_action( 'woocommerce_before_mini_cart' ); ?>

<?php if ( ! WC()->cart->is_empty() ) : ?>

	<ul class="woocommerce-mini-cart cart_list product_list_widget <?php echo esc_attr( $args['list_class'] ); ?>">
		<?php
		do_action( 'woocommerce_before_mini_cart_contents' );

		foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {
			$_product   = apply_filters( 'woocommerce_cart_item_product', $cart_item['data'], $cart_item, $cart_item_key );
			$product_id = apply_filters( 'woocommerce_cart_item_product_id', $cart_item['product_id'], $cart_item, $cart_item_key );

			if ( $_product && $_product->exists() && $cart_item['quantity'] > 0 && apply_filters( 'woocommerce_widget_cart_item_visible', true, $cart_item, $cart_item_key ) ) {
				$product_name      = apply_filters( 'woocommerce_cart_item_name', $_product->get_name(), $cart_item, $cart_item_key );
				$thumbnail         = apply_filters( 'woocommerce_cart_item_thumbnail', $_product->get_image(), $cart_item, $cart_item_key );
				$product_price     = apply_filters( 'woocommerce_cart_item_price', WC()->cart->get_product_price( $_product ), $cart_item, $cart_item_key );
				$product_permalink = apply_filters( 'woocommerce_cart_item_permalink', $_product->is_visible() ? $_product->get_permalink( $cart_item ) : '', $cart_item, $cart_item_key );
				?>
				<li class="woocommerce-mini-cart-item <?php echo esc_attr( apply_filters( 'woocommerce_mini_cart_item_class', 'mini_cart_item', $cart_item, $cart_item_key ) ); ?>">
					<?php
					echo apply_filters( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
						'woocommerce_cart_item_remove_link',
						sprintf(
							'<a href="%s" class="remove remove_from_cart_button" aria-label="%s" data-product_id="%s" data-cart_item_key="%s" data-product_sku="%s">&times;</a>',
							esc_url( wc_get_cart_remove_url( $cart_item_key ) ),
							esc_attr__( 'Remove this item', 'woocommerce' ),
							esc_attr( $product_id ),
							esc_attr( $cart_item_key ),
							esc_attr( $_product->get_sku() )
						),
						$cart_item_key
					);
					?>
					<?php if ( empty( $product_permalink ) ) : ?>
						<?php echo $thumbnail . $product_name; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
					<?php else : ?>
						<a href="<?php echo esc_url( $product_permalink ); ?>">
							<?php echo $thumbnail . $product_name; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
						</a>
					<?php endif; ?>
					<?php echo wc_get_formatted_cart_item_data( $cart_item ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
					<?php echo apply_filters( 'woocommerce_widget_cart_item_quantity', '<span class="quantity">' . sprintf( '%s &times; %s', $cart_item['quantity'], $product_price ) . '</span>', $cart_item, $cart_item_key ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
				</li>
				<?php
			}
		}

		do_action( 'woocommerce_mini_cart_contents' );
		?>
	</ul>

	<p class="woocommerce-mini-cart__total total">
		<?php
		/**
		 * Hook: woocommerce_widget_shopping_cart_total.
		 *
		 * @hooked woocommerce_widget_shopping_cart_subtotal - 10
		 */
		do_action( 'woocommerce_widget_shopping_cart_total' );
		?>
	</p>

	<?php do_action( 'woocommerce_widget_shopping_cart_before_buttons' ); ?>

	<p class="woocommerce-mini-cart__buttons buttons"><?php do_action( 'woocommerce_widget_shopping_cart_buttons' ); ?></p>

	<?php do_action( 'woocommerce_widget_shopping_cart_after_buttons' ); ?>

<?php else : ?>

	<p class="woocommerce-mini-cart__empty-message"><?php esc_html_e( 'No products in the cart.', 'woocommerce' ); ?></p>

<?php endif; ?>

<?php do_action( 'woocommerce_after_mini_cart' ); ?>
Viewing all 102244 articles
Browse latest View live