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

Translating WooCommerce Cart Widget

$
0
0

Replies: 1

Hello beauty ? Well, I’m using the WooCommerce cart widget, but when the cart is empty, it shows an English message that says “No products in the cart“. I would like to translate this message into Portuguese, but I am not able to. I’ve already tried to translate using the Loco Translate plugin, but it doesn’t work, even saving and synchronizing, besides the translation already exists, but it doesn’t work.
Could anyone help me to solve this problem?


Woocommerce product export file issue

$
0
0

Replies: 2

Hello I’m using the latest version for woocommerce and I currently have an issue with empty product export file. Upon investigation, I found that it is related to the S3 uploads plugin. I’m using S3 uploads plugin for all my website uploads. The issue with woocommerce export file, I believe it’s trying to open the file locally and it’s being saved on S3. That’s why it comes out blank, not sure.
Can we add a flag to check for S3 plugin and work with them so that I can have the export file with data on it for downloading.

Something went wrong and we couldn’t submit your ticket! Please try again.

$
0
0

Replies: 1

Hi,

I’ve been using WooCommerce.com to get support for my paid extensions for years. But now when I try to submit any request, I am getting the “Something went wrong and we couldn’t submit your ticket! Please try again.” message. What’s up with that?

Exclude category on Gutenberg product by category block

$
0
0

Replies: 1

On the Gutenberg block “Products by Category” I can chose multiple categories. But is there a way to exclude a category inside this kind of block? Or is there a workaround without reorganizing the categories?

Checkout SHIPPING messy text

$
0
0

Replies: 1

Hello dear users, i can’t solve my problem for month. On my eshop, in checkout, text with shipping methods is totally in right side and it’s breaking to more lines. I would like to have shipping methods on left, so every options can use full width of page. Especially on mobile phones it looks really weird. I am OK with progress and changes on eshop which i’ve made last 2 months, but this is very hard for me.

I am using latest WordPress + Woocommerce + Avada theme and don’t know which one has problem. I am only able to copy / paste CSS code.

Please can somebody help me?

Eshop -> https://goodvibes.sk

Screenshot on mobile phone (iphone 13)
https://www.linkpicture.com/q/98992527-3F85-45D5-AD20-9B7A0416F181.jpeg

I’ve added at least simple lines between shipping options to “separate it” more.

Thanks for any help

What are Woocommerce loop values?

$
0
0

Replies: 1

I found this: $woocommerce_loop[‘name’] == ‘related’
which targets related product loops, and theres also
$woocommerce_loop[‘name’] == ‘up-sells’ which I figured by try and error, but I need to know how to target cross-sells as well and ideally how to target the main product loop only.
Please note I already asked in slack…

  • This topic was modified 3 hours, 15 minutes ago by snippet24.

How to create a search for a “WC_Customer” in a custom page?

$
0
0

Replies: 1

Hello,

I tried to create a search on a custom page that contains a list of users, but I can’t make it work.

I created a custom page template to mount my page, this page list some data of registered users who have the “shopkeeper” role using a “WP_User_Query” query and also a “WC_Customer” query (because some user data comes of WP_User_Query and some other data comes of WC_Customer) and I would like to be able to search the results of the querys on this page, with a text entry (which I called “searchInput”).

Every time I do a search for the data that comes from the query WC_Customer (E.g.: billing_city), it does not give me results. I think something’s missing.

This is my code:

<?php

/* Template Name: List Users */

...
        <form id="searchForm" method="post" >
            <input class="formControl inputSearch" placeholder="Nome da Loja, Cidade ou Estado" name="searchInput">
            <button type="submit" class="btn btn-primary">Pesquisar</button>
        </form>
        <ul id="userListContainer">
            <?php
            $searchInput = $_POST['searchInput'];

            // WP_User_Query arguments
            $args = array(
                'meta_key' => 'first_name',
                'role' => 'shopkeeper',
                'search'         => $searchInput,
                'search_columns' => array(
                    'first_name',
                    'last_name',
                    'billing_city',
                    'billing_state'
                ),
                'order' => 'ASC',
                'orderby' => 'meta_value',
                'fields' => 'all_with_meta',

                'meta_query' => array(
                    'relation' => 'OR',
                    array(
                            'key'     => 'first_name',
                            'value'   => $searchInput,
                            'compare' => 'LIKE'
                    ),
                    array(
                            'key'     => 'last_name',
                            'value'   => $searchInput,
                            'compare' => 'LIKE'
                    )
            )
            );

            // The User Query
            $users = new WP_User_Query($args);

            // User Loop
            if (!empty($users->results)) {
                foreach ($users->results as $user) {
                    // Get an instance of the WC_Customer Object from the user ID
                    $customer = new WC_Customer($user->ID);

                    $username     = $customer->get_username(); // Get username
                    $user_email   = $customer->get_email(); // Get account email
                    $first_name   = $customer->get_first_name();
                    $last_name    = $customer->get_last_name();
                    $display_name = $customer->get_display_name();

                    // Customer billing information details (from account)
                    $billing_first_name = $customer->get_billing_first_name();
                    $billing_last_name  = $customer->get_billing_last_name();
                    $billing_company    = $customer->get_billing_company();
                    $billing_address_1  = $customer->get_billing_address_1();
                    $billing_address_2  = $customer->get_billing_address_2();
                    $billing_city       = $customer->get_billing_city();
                    $billing_state      = $customer->get_billing_state();
                    $billing_postcode   = $customer->get_billing_postcode();
                    $billing_country    = $customer->get_billing_country();

                    echo
                    '<li>' .
                        '<a href="' . esc_url(get_author_posts_url($user->ID)) . '"target="_blank">' .
                            '<div id="userImage">' . get_avatar($user->ID) . '</div>' .
                            '<div id="userInfo">' . esc_attr($user->first_name) . ' ' . esc_attr($user->last_name) . '<br>' .
                                'CEP: ' . esc_attr($billing_postcode) . ' — ' . esc_attr($billing_city) . ', ' . esc_attr($billing_state) . '<br>' .
                        '</a>' .
                            '<a href="' . esc_attr($user->user_url) . '">' . esc_attr($user->user_url) . '</a>' .
                            '</div>' .
                    '</li>';
                }
            } else {
                echo 'Nenhum usuário encontrado.';
            }
            ?>
        </ul>

    </main><!-- #main -->
</div><!-- #primary -->

<?php
//do_action( 'ekommart_sidebar' );
get_footer();
?>

Any help is welcome! Thanks in advance!!

Add HTML to WooCommerce product description

$
0
0

Replies: 1

I am trying to auto-add some shortcode at the end of every woo product description. (not after short description). The code with which I am trying is:

add_filter('the_content','ce_add_text_long_descr');
function ce_add_text_long_descr($description){
$text="[my-shortcode-goes-here]";
return $description.$text;
}

That one is not working for me. can someone help me?


backorder product not showing in related product.

$
0
0

Replies: 1

Hi,

I want to display products that have reached zero stock or products that have been set to backorder in related products.

However, it is not displayed in the default.

Is there a way to display all of these products?

Thank you.

Add files to products already purchased

$
0
0

Replies: 0

Hey guys,

I need to update and or add files in an already sold product and those files must be available in the users my-account page for download.

I found these posts and would to know if there was any recent development related to this.

https://wordpress.org/support/topic/add-a-new-download-files-list-to-the-product/

https://wordpress.org/support/topic/updatable-digital-downloads/

https://store.makbiz.com/shop/wordpress-plugins/mak-woocommerce-download-permissions/

Looking forward to your input on this.

Thank you!

Lucy

What happens to my products if I change currency?

$
0
0

Replies: 1

Right now my Woocommerce is set to Peruvian Nuevos Soles. What happens if I change to USD? Will the prices of my products get converted to USD or will the value stay the same and I’ll need to change their values individually?

i want to sell mp3 file where the customer put the price he wants

$
0
0

Replies: 1

Hi!

i want to sell mp3 file where the customer put the price he wants
is there any plugin?

thx
Peter

Uncaught Error: Class ‘WC_Order’ not found

$
0
0

Replies: 1

Dear Support team, since today, I get this error and the entire page crashes, when Jetpack 10.9. and woocommerce is sametime activated.

I cant really find out, wheter is woocommerce or 10.9 jetpack causes the crash.

After activating the two pluging, i am not able to get the health check, so the only error i get, is from e-mail:

Fehler-Details
==============
Ein Fehler vom Typ E_ERROR wurde in der Zeile 18 der Datei /var/www/vhosts/flatee.ch/httpdocs/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Overrides/Order.php verursacht. Fehlermeldung: Uncaught Error: Class 'WC_Order' not found in /var/www/vhosts/flatee.ch/httpdocs/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/Overrides/Order.php:18
Stack trace:
#0 /var/www/vhosts/flatee.ch/httpdocs/wp-content/plugins/jetpack/vendor/jetpack-autoloader/class-php-autoloader.php(90): require()
#1 [internal function]: Automattic\Jetpack\Autoloader\jpf11009ded9fc4592b6a05b61ce272b3c_jetpackⓥ10_9\PHP_Autoloader::load_class()
#2 [internal function]: spl_autoload_call()
#3 /var/www/vhosts/flatee.ch/httpdocs/wp-includes/functions.php(642): unserialize()
#4 /var/www/vhosts/flatee.ch/httpdocs/wp-includes/option.php(228): maybe_unserialize()
#5 /var/www/vhosts/flatee.ch/httpdocs/wp-includes/cron.php(1170): get_option()
#6 /var/www/vhosts/flatee.ch/httpdocs/wp-includes/cron.php(765): _get_cron_array()
#7 /var/www/vhosts/flatee.ch/httpdocs/wp-includes/cron.php(817): wp_get_scheduled_event()
#8 /var/www/vhosts/flatee.ch/httpdocs/wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-waf/actions.php

Review stars not aligned – width not 100%

$
0
0

Replies: 1

If a product has less than a 5-star average the stars are not showing up correctly. The code shows that the width is not set to 100% but I don’t know how I’d change that on the website. I’m not the most technical when it comes to CSS so I think I can see the problem but don’t know how to resolve it!

If a product has less than a 5-star average the stars are not showing up aligned. The code shows that the width is not set to 100%, is it meant to? Or is the percentage based on the overall average, with 100% equalling 5 stars?

Any help is appreciated. I see other people have had this problem when I search online but they seemed to resolve it themselves without showing how.

It also doesn’t align the stars correctly on the form when filling out a review but I have removed the form for now.

You can see what I mean here:
https://imgur.com/a/aDNYFZN

TIA 🙂

  • This topic was modified 38 minutes ago by rah82.

How to enqueue wc-single-product for admin?

$
0
0

Replies: 0

Hi,
I want to enqueue wc-single-product from admin. I need to display single product gallery images slider from admin custom plugin page. Please help me.


REST API not updating image link

$
0
0

Replies: 0

Hi,

I am trying to work out a way to bulk update my images in woocommerce, and am getting stuck already in postman trying to figure out how to update the image source link in a product.

Whenever I PUT the following:
{
“name”: “testproduct”,
“images”: [
{
“id”: 20435,
“src”: “https://www.mywebsite/com/images/testimage.jpg&#8221;,
“position”:0
} ]

}
to the correspondings product endpoint; whenever I make a change to the “name” it works as intended, the postman response gives back the changed name ( and ofcourse the entire related product Json), however the image link always remains the stuck to be the old link.

"images": [
        {
            "id": 20435,
            "date_created": "2021-06-30T13:02:27",
            "date_created_gmt": "2021-06-30T13:02:27",
            "date_modified": "2021-07-11T13:14:19",
            "date_modified_gmt": "2021-07-11T13:14:19",
            "src": "https://www.mysite.com/wp-content/uploads/2021/06/testimageold.jpg",
            "name": "testingproduct",
            "alt": "testingproduct "

I found earlier posts having similar issues and they mention to include the image ID in the PUT, and position for good measure, but removing or using this has no effect.
as far as I can tell, the image location is freely accesible, so I dont see why this would not work. Does anybody have an idea where I am going wrong?

Need a plugin to creating a quoting tool / quiz that works with woocommerce

$
0
0

Replies: 0

Looking for a plugin that works as a quoting / quiz tool that works with woo commerce that behaves like the quoting tool on this site. Tried a few plugins but nothing that i can get to work correctly

  • This topic was modified 45 minutes ago by James Huff. Reason: link moved to proper field and thread moved to WooCommerce forum
  • This topic was modified 45 minutes ago by James Huff.

Woocommerce USPS Shipping Method + NetSuite

$
0
0

Replies: 1

We are planning to integrate Woocommerce USPS Shipping Method to our website as a means to generate dynamic shipping methods. We also use Netsuite as a means or order fulfillment (via FarApp).

My question is mainly to see if this plugin is compatible with Netsuite, we use another program to generate labels for us but that gets its data once Netsuite has completed the fulfillment process.

SIDE BAR WITH ATTRIBUTES DISAPPEARED AFTER UPDATING LAST VERSION WOOCOMERCE

$
0
0

Replies: 1

Hello
I set up my shop with a side bar (primary sidebar) which includes attributes of my products. the sidebar is the one under aspect – widget. After updating to the latest version of woocomerce 5.9.3 the sidebar just disappeared on the website, I can still see it on my dashboard, but it just won’t show up on the website. Anyone can help? Thank you

Shop page empty

$
0
0

Replies: 2

Hi,

My shop page is not showing the products. I already deactivated all plugins, update permanent links, cleared cache, checked shop page configuration and catalog visibility but still cant fix it.

Here is the url https://todomerca.ec/tienda/

Any ideas? thanks for the help!

Viewing all 102541 articles
Browse latest View live