OFF TOPIC. Questions *specific* for this e-commerce plugin have their own forum at https://wordpress.org/support/plugin/woocommerce.

learn more… | top users | synonyms

1
vote
2answers
38 views

WOO-Commerce translation | Tried it all [closed]

Hope anyone can help me with this problem. I installed WOO-Commerce all great and I set up the language to Dutch ... But as you can see there are still a lot of small things still not adjusted to ...
0
votes
1answer
706 views

How to get the first image gallery of a product in woocommerce in a loop

I want to diplay a product with product image, and when visitor hover that image, will change to first image from product gallery I am using this code to display the image gallery, but displayed all ...
0
votes
1answer
80 views

How to run JavaScript function in WooCommerce checkout?

I'm building reCAPATCHA into my WooCommerce checkout. It is a fairly easy process as I'm using woocommerce_checkout_process to validate the capatcha. However, I have running into one issue. When ...
0
votes
1answer
50 views

WooCommerce pages accessible to logged in members only

I’m building a shop in WooCommerce and wish to restrict access & viewing of the shop to logged in members only. I don’t mind having links to the shop visible (such as in the nav bar), as clicking ...
0
votes
1answer
57 views

Custom search search does not work?

I have a WordPress website with WooCommerce plugin installed. There is one problem that i cannot figure out why do I do not got any search results shown up when I do product search? Website URL with ...
0
votes
1answer
36 views

Can't make product images clickable

I've tried many things and many solutions but i can't make product images clickable. Here's the code: if ( has_post_thumbnail() ) { $images .= get_the_post_thumbnail( $post->ID, 'shop_catalog' ...
0
votes
1answer
303 views

Remove product item from checkout page [Woocommerce]

Is there any way to remove product item from checkout page? Here is code for card page: <td class="product-remove"> <?php echo apply_filters( '...
0
votes
1answer
19 views

Menu's built in the edit theme view do not have active states set when on child pages

have a menu that is pulled in like this: <?php wp_nav_menu ( array('menu' => 'header') ) ?> I am using WooCommerce and when visiting /shop the shop link in the header has the class: ...
1
vote
1answer
307 views

Woocommerce - How to populate custom select field with stored values on checkout page?

I have converted the postcode field in checkout to a dropdown field. Its working fine. $fields['billing']['billing_postcode'] = array( 'type' => 'select', 'label' => __('Locality - ...
3
votes
1answer
181 views

WooCommerce conditional meta query

For this question, I know how to solve it but I am hoping there is a better / faster way to solve it. I have a custom meta query in my product loop that doesn't display my product if the stock is 0, ...
0
votes
1answer
554 views

How to show product SKU on product page

I'm making a website and it seems that product sku is hidden from product page. I have found how to add it to the catalog (shop) page but I need it to show inside the product page. So far, by ...
-4
votes
1answer
115 views

Storefront Child Theme show product attribute [closed]

i'm building a child theme for storefront, how to display the attributes of a product on list product page other than the product name and price? example this list only show product name and price, i ...
0
votes
1answer
123 views

Show recent products first but “sold out last” in query

I am using WooCommerce and would would like to show the "out of stock" products last in the query on the archive page. How can I do that? Currently we are making the newest product show first with ...
0
votes
1answer
78 views

How to set up Custom Post Type archive page as Front page

I've registered a custom post type named portfolio and have coded it's respective archive-portfolio.php file. Now, my requirement is to make this page available to be set as front page. For which I ...
0
votes
1answer
41 views

How can I add an extra WooCommerce hook

In the standard WooCommerce template file content-single-product.php there is a set of hooks that control the way the page lays out in a series of blocks which are called by a series of hooks eg '...
0
votes
1answer
98 views

Woocommerce resize existing product images

We discover that our Single Product images as set in Woocommerce> Setting > Products > Display are set to big. Single Product Image: 500 ×750px xHard Crop I have tested plugin regenerate thumbnails ...
0
votes
1answer
48 views

How to increase execution time out limit in WordPress dashboard?

One of my plugins creates a time out every time I visit the Products admin page in my WooCommerce website dashboard. I can't deactivate this plugin as it's absolutely essential for what we do. Any way ...
1
vote
2answers
86 views

Delete transients in website

We have so many error happen on website (WordPress and Woocommerce) error log and it will show the following error message WordPress database error Deadlock found when trying to get lock; try ...
0
votes
2answers
203 views

How i make a custom sql query for Woocommerce

hello i have an ecommerce with Wordpress + Woocommerce, just yesterday a hacker boy or...i don't know moved all woocommerce products in to the trash.... there are lots of products and default ...
-1
votes
2answers
39 views

Integrate Woocommerce to a custom theme

I have created a custom theme. Now I want to add WooCommerce to that theme but it doesn't work like the way it should. After install of the WooCommerce plugin I followed all provided steps.All pages ...
-1
votes
1answer
68 views

woocommerce Product shortcode create

i am very new wooCommerce and WordPress. programming knowledge not strong yet. but for my project i need to do something. now i want to create custom short code for woocommerce product. i want to ...
0
votes
1answer
134 views

How to update variable product stock status with code

I have the product id:- $posts. Now i have to change product variable variation stock to outofstock using code.I have bellow snippet code but it's not updating the variation stock of the product. so ...
1
vote
1answer
282 views

Woocommerce custom category page with pagination [closed]

I want to create woocommerce category custom template. i am not sure i am doing it the correct way or not. What i did is I edited taxonomy-product_cat.php file. , In my code i am able to get ...
-1
votes
1answer
798 views

woocommerce show cities state as dropdown list

im trying to show a list of cities when the user selects a state on woocommerce, some one have some luck doing this?? I find this code: add_filter( 'woocommerce_checkout_fields' , '...
0
votes
1answer
18 views

Can I have one picture for all sizes in a product with Woocommerce?

I have a hoodie product that comes in 30 different colours. It has 6 different sizes. This creates 180 "products" that I have to click on and set an image for. This seems massively overcomplicated. I'...
0
votes
1answer
36 views

Insert menu into theme location depending on user logged in/out status

I am using the Avada Theme from Themeforest and I have set up 2 menus under Appearances > Menu: menu-logged-in which contains a parent item (My Account) and then several child items; and menu-...
1
vote
1answer
54 views

Translating add to cart woocommerce button [closed]

I am trying to translate add to cart button. I have 2 code snippets from woocommerce documentation here are they: FOR SINGLE PRODUCT - THIS ONE WORKS add_filter( '...
0
votes
1answer
235 views

Change Out of Stock Error Message in WooCommerce Cart

I manage product inventory by manually entering the stock. When I have 2 in stock, but a guest adds 3 to their cart, WooCommerce shows the following error message: I have located the code for this ...
1
vote
1answer
45 views

Woocommerce - Show random product thumbnail from specific product category

I am trying to show random product thumbnails from a specific category. I have this code at the moment but it is not working and will show from all products, how to randomize from a specific product ...
0
votes
1answer
92 views

WooCommerce - Order_itemmeta - Need to add meta_keys to table

I need to add 3 meta values to each order_item to the woocommerce_order_itemmeta table. Any suggestions how to create new meta_keys to be included in the table for all order items?
0
votes
1answer
48 views

Get user created Woocommerce attributes ( taxonomies ) [closed]

On the admin side generating metabox data. function prod_a( $value ){ global $post; global $product; // This === null. Thus the query bellow. $args = array( 'post_type' =>...
0
votes
1answer
61 views

Wordpress custom plugin that uses woocommerce enabled payment gateway for payment

I have a certain special product that I do not want to be listed with other products, nor be added to the cart. I want that specific product to have a fixed customized page where the user can pay for ...
0
votes
1answer
483 views

Woocommerce get the Archive/Category slug of the current category page

I want to get the slug of the current archive page. I have a slider where I want to echo the products that are in this category. After hours this is all I have and it doesn't work... <?php if ( ...
1
vote
1answer
216 views

Editing Header Titles of each details in woocommerce Order Email [closed]

I'm using flatsome theme, woocommerce plugin. On my thank you page I get the bank details, order details and customer details etc. but on customer order email, header TITLES of those details are ...
0
votes
1answer
342 views

WooCommerce - Customer Order History Pagination

I'm trying to implement pagination into WC's customer order history that can be seen on the "My Account" page using woo_pagination(). https://docs.woothemes.com/document/woo_pagination/ The template ...
3
votes
1answer
318 views

display woocommerce all category title on home page

how can i display in my theme all woocommerce category title are custom filed value. example html like bellow <li><a href="#"> <div> <h2>category ...
0
votes
1answer
71 views

Make wordpress pages accessible for Woocommerce logged in users only

I have created one page on my WordPress that I want to set only woocommerce user can view it. That mean they must logged in first to be able to view it. For unregistered user if they try to access to ...
0
votes
1answer
20 views

I want to get product attirbute in the section below

I want to add product brand and weight which i have defined in attribute of product but it am using the <?php $weightvalues = get_the_terms( $product->id, 'pa_weight'); foreach ( $...
0
votes
1answer
85 views

How to add first and last CSS class for Woocommerce layered nav widgets

I need to add first and last ccs class for woocommerce_layered_nav widgets. // Add "first" and "last" CSS classes to woocommerce_layered_nav widgets function widget_layered_nav_first_last_classes( $...
-1
votes
1answer
46 views

Show linked products using wp query and woocommerce

Cannot find any information anywhere about pulling the linked products? I need to create a custom query to load the linked products but could only find related. Any information?
-1
votes
1answer
22 views

Woocommerce 404 after chang default language

After change default language in Woocommerce from Dutch to English I get 404 errors. I also have installed latest version of WPML. 3 Languages are active: EN - NL - DE. When I edit a link to open an ...
0
votes
1answer
280 views

WooCommerce - Hook after Loading Variation in Admin Edit page?

In Product's Edit page, when we click Variations, we will see AJAX loading for all of its variations. Is there a Hook for when it finished? I want to run a script to add some "at-a-glance" ...
0
votes
1answer
23 views

How to edit the header banner in the search page in woocommerce?

When I enter the search page , the link is https://www.travelairy.com/?s=test&post_type=product But at this page the function: $product_taxonomies = get_the_terms($post->ID, $queried_object-...
1
vote
1answer
71 views

creating a custom shop page display on archive woocommerce

Hello guys how are you? i am not that good at developing websites and i need to have more experience. can you guys help me? i had an idea on the screenshot i have on the link below. as you can see i ...
-1
votes
1answer
58 views

My Wordpress site hacked with unwanted popups [closed]

I have a woo-commerce shop on my wordpress but I've been attacked by some kind of hack. As you can see in the image there are lots of popup link on top of my site . How can I clean this ? I do not ...
0
votes
1answer
11 views

Find owner of coupon

I'm attempting to run a function for a user if they have a certain coupon. I'm using the plugin Smart Coupons to generate coupons with prefixes and suffixes. I can get a list of all the coupons in ...
0
votes
1answer
55 views

change product image url in widgets & shop page

I am trying to setup CDN on woocommerce theme. Here's what I have added to the functions.php add_filter( 'woocommerce_single_product_image_html', 'replace_content' ); add_filter( '...
0
votes
1answer
16 views

How can I display one product using WooCommerce

I can't seem to find the function that does this I the API docs of WooCommerce. Is the a function that allows me to display one a couple of products that are under a specific category or tag?
0
votes
1answer
41 views

Append woocommerce category to product title globally? [closed]

I am trying to append the product category to the product title in woocommerce, this needs to be on a global level (so it works everywhere). Ive tried the following code which I thought would work ...
1
vote
2answers
363 views

Call global variable array() in woocommerce child/template

So I have this in my functions file - it defines the products that are not eligible for free shipping. It works everything is fine. //functions.php function my_free_shipping( $is_available ) { ...