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

Default location

$
0
0

Replies: 1

Hi,

My website is http://www.themysterybookclub.co.uk

All our customers are in the UK, but a recent update seems to have changed the payment default settings, so all orders are automatically set up to request the customer’s address in the US format, with a US flag. Obviously, this is a big problem.

How can I amend Woocommerce so that every payment option, and stage of checkout, defaults automatically to the UK format?

Many thanks,
David


Download link from the second server in WooCommerce

$
0
0

Replies: 0

i want to present 2 link for my downloadable product ; one of them uploaded in google drive and another one has been uploaded in my download host.
how can i present both of them to my customer and the choose one of them to download file

Error con Stripe, mensaje de error vacío

$
0
0

Replies: 2

Hola, les agradezco la ayuda de antemano.

Estoy encontrando un error en varias de mis tiendas online con el método de pago Stripe.

La cuestión es que al poner el número de la tarjeta, la compra se realiza de forma automática, pero arroja un mensaje de error sin texto (vacío) y no lleva a la página en la que informa que el pedido se ha realizado correctamente.

Cuando miro en pedidos, el pedido queda en pendiente, y cuando miro en Stripe, el pago se ha realizado correctamente.

Le adjunto esta captura en una de mis páginas
https://ibb.co/YkvmGyT

Default customer location not working

$
0
0

Replies: 1

Hi.

In WooCommerce > General, I have set the option “Default customer location” to “No location by default”.

In WooCommerce > Shipping > Shipping options, I have enabled “Debug mode”.

Nevertheless, navigating to checkout with a private browser window and before I enter anything as an address, I can see the debug message “Customer matched zone “Locations not covered by your other zones””, and the respective shipping options are shown on the page although I was expecting to see the “Enter your address to view shipping options” message in their place.

I don’t understand this behavior since I have set the option for “Default customer location” to “No location by default” as described above.

Can someone please explain?

Thank you.

  • This topic was modified 2 hours, 18 minutes ago by bb3cpo.

Checkout state

$
0
0

Replies: 0

Hello, In checkout page when I select a country it loads another field with cities but It’s not for all countries. For example If I choose Italy it loads a field with “Província” but If I choose Swiss it load “Canton”. My client ask me to translate this labels. Is it possible? Why this works this way? Thank you

https://paste.pics/CQF87

Check stock quantity of variants, instead of parent product

$
0
0

Replies: 0

Hello, I have a e-commerce, based on Woocommerce. I have there simple products and variable products. All in one. My client ask me to add the “stock status” to the product archive. The page is using Hello Elementor & Elementor PRO.
I have added and edited the PHP snippet to my functions.php

//* Add stock status to archive pages
function envy_stock_catalog() {
    global $product;
	//var_dump($product->get_stock_quantity());
    if ( $product->is_in_stock() && $product->get_stock_quantity() > 0 ) {
        echo '<div class="stock" >' . __( ' Skladom', 'envy' ) . '</div>';
    } elseif($product->is_in_stock() && $product->get_stock_quantity() < 1) {
		echo '<div class="stock stock-order-only" >' . __( ' Na objednávku', 'envy' ) . '</div>';
	} else {
        echo '<div class="out-of-stock" >' . __( 'Nie je na sklade', 'envy' ) . '</div>';
    }
}
add_action( 'woocommerce_after_shop_loop_item_title', 'envy_stock_catalog' );

However there is a problem with variable products. It means, I have a product with variants. The stock quantiti is added to each variant, however the main product “stock” has no numbers. It means, even if some of variant is on stock, I am getting “Order only” status to product archive. I would need a function, which will check the stock status of variants, and if only one variant is on stock, in product archive I get “On stock” status.

For example, here’s my product: https://snipboard.io/lDTgHJ.jpg (Na objednávku means “Order only”)
Here’s how it is set in wp-admin: https://snipboard.io/cYArji.jpg main stock is turned off.

However in variant there are some quantity: https://snipboard.io/fU1Kx9.jpg

I am getting still “Order only” in product archive. In my snippet there is something like
elseif($product->is_in_stock() && $product->get_stock_quantity() < 1)
So it seems, the $product->get_stock_quantity() checks only parent products quantity, not the variant’s stock quantity. I need a function, which will check the variant’s stock quantity, instead of parent’s product quantity.

Is possible to do something like this?

SQL Injection

$
0
0

Replies: 0

Today I have received a SQL injection report for WooCommerce from Burpsuite Professional testing.

Severity: High
Confidence: Tentative
GET /shop/?orderby=popularity&1’%20and%208212%3d8212–%20=1 HTTP/1.1

The name of an arbitrarily supplied URL parameter appears to be vulnerable to SQL injection attacks. The payloads ‘ and 8212=8212– and ‘ and 3807=3811– were each submitted in the name of an arbitrarily supplied URL parameter. These two requests resulted in different responses, indicating that the input is being incorporated into a SQL query in an unsafe way.

How to resolve this problem?

Insert woocommerce products grouped wit radio, checkbox buttons

$
0
0

Replies: 1

I want to be able to insert woo commerce products into pages grouped with radio, checkbox buttons.
Here is an example page not using woo commerce buttons, for visual explain: https://chub.ro/configurator-design/


WooCommerce Credit System when condensing website to App Store (In App Purchase)

$
0
0

Replies: 0

Hi,

How would a credit system plugin like WooCommerce “Store Credit” or “Smart Coupons” work if I converted my website into an Apple App Store app? How would the store credits work in that environment when Apple demands In-App purchases? How would I connect the Apple In-App purchase method (on mobile), with the coins/credits being given to the user in WordPress?

Thanks very much for your help and insight!

Company field validation

$
0
0

Replies: 0

how to validate the company fiend like a username.

If one of the users has a company name as WordPress at address field or at billing field
another user cannot enter the same company name WordPress show an error message to add a different name.

Is there a plugin for this ?

$
0
0

Replies: 0

On the page there are 3 buttons 4×4 6×6 and Value Set. This is placed there by putting a HTML link in the product short description.

Although it is working fine, it creates problems when exporting and migrating especially between different themes. As an example the Xstore theme is using a shortcut for this

[button et_class="" target="_blank" style="medium white" url="https://enigmaembroidery.com/wp-content/uploads/2020/04/EE061_INFO.pdf" icon="" title="INFO"]

Exporting this to another theme will not work because the other theme will see the code as plain text – Obviously a huge problems if you have a lot of products.

Therefore my question – Is there a plugin that will create up to 4 horizontal buttons on certain product pages that will link to a pdf document either on the domain, of an external domain.

I know it is possible to change the html to something like this
<button><a href='https://enigmaembroidery.com/wp-content/uploads/2021/04/EE229A_INFO.pdf'>More Info</a></button>

but my aim is to get this out of the product short description

Changing Product title font size

$
0
0

Replies: 1

Does anyone know how I can change the font size of Page title / Product titles in the Shop page of Woocommerce? I’m using global eCommerce template. I tried adding the suggested css, but it did nothing. I can’t find the option for editing text. THe Css file itself doesn’t have anything.

sistem permalink error 404

$
0
0

Replies: 4

Hi guys

I have a developing website and I wanted to fix the permalink system before adding products

Basically I would like to remove the slash / product (e.g. brandexample.com/prodotto/on1-jersey-unif) from the display and perhaps replace it either with the product category (e.g. brandexample.com/collane/on1-jersey-unif or directly brandexample. com / on1-jersey-unif)

in reality I have already tried but if I change it gives me an error or that if I change the permalink system on the product, the latter is seen correctly as I would like it but if I go to read an article on the blog it opens a 404 page

what is the correct procedure to do it right? I would not like to use plugins

thank you very much everyone

CRITICAL Uncaught TypeError: Unsupported operand types: int – string

$
0
0

Replies: 0

Hi there

I have an issue that is logged as follows:

CRITICAL Uncaught TypeError: Unsupported operand types: int - string in /wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/NoteTraits.php:32
Stack trace:
#0 /wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/MobileApp.php(34): Automattic\WooCommerce\Admin\Notes\MobileApp::wc_admin_active_for(172800)
#1 /wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/NoteTraits.php(74): Automattic\WooCommerce\Admin\Notes\MobileApp::get_note()
#2 /wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Events.php(88): Automattic\WooCommerce\Admin\Notes\MobileApp::possibly_add_note()
#3 /wp-includes/class-wp-hook.php(287): Automattic\WooCommerce\Admin\Events->do_wc_admin_daily()
#4 /wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
#5 /wp-includes/plugin.php(551): WP_Hook->do_action(Array)
#6 /wp-cron.php(138): do_action_ref_array('wc_admin_daily', Array)
#7 {main}
  thrown in /wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Notes/NoteTraits.php on line 32

I have updated WP to 5.7.2 and WooCommerce to 5.3.0

I noted your response to another user which involved disabling WooCommerce Admin, but there is no such option in the current version.

I found elsewhere that someone had solved their issue by rolling back their PHP version from 8 to 7.4. This worked for me too. However, I need to address the issue so that I can update PHP again in the near future.

Can you offer any assistance?

Thanks!

Separate Menu for Categories

$
0
0

Replies: 0

Hi,
Can I have a menu to Tshirts and only show tshirts – Menu link to Shorts and only show shorts products etc?

How do I do this please?

Thanks


Wocommerce generates an url’s extension

How to create coupon code for use once only, then no longer usable by anybody

$
0
0

Replies: 1

Is there a way to create coupon codes so that after each has been used once, they are disabled and can no longer be used by anybody?

I want to send the codes to reviewers so they can download a product free of charge. If they then share the discount code, it must no longer work for anybody else, to stop sharing.

(I realise that they could share the download link, but that is a different issue.)

Atributes price ranges

$
0
0

Replies: 0

In the store, I have two main attributes for the product, paper size (50 different sizes) and paper type / medium (50 different paper types).
Paper types are divided into 9 price ranges. There are 5 or more different types of paper in each price category. The customer must select the paper type and paper size at the time of purchase. I have the Paper media attribute set up with 50 paper types and the Paper size attribute set up with 50 different paper sizes. This means that there are about 2500 different variations of one product.

Is it possible to define paper type price categories/ranges and update price variations by set/modify a price range (updating 450 prices instead of 2500)?

Is there any woocommerce plugin that provides such functionality?

Coupon applied two times although “usage limit per user” set to 1

$
0
0

Replies: 2

Hi

We had a case on our site where same user applied the same coupon twice, with same email address.

This is unusual and unwanted behaviour because we have “usage limit per user” set to 1.

One time she has signed in and the other time she checked out as a guest, does this have anything to do with it ?

How can we prevent this?

Thank you,
Damir

Products shortcode

$
0
0

Replies: 4

I’ve created a shortcode like this:

[products limit=”18″ paginate=”true” columns=”3″ category=”sun, eyeglasses” cat_operator=”IN”]

But the system show only the products inside the category “sun”, of course the category eyeglasses have products inside.

How can i fix ?

Thanks

Viewing all 102571 articles
Browse latest View live