Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [woocommerce]

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

0
votes
0answers
4 views

update ACF user metas programmatically

I use woocommerce where I have a custom hidden field on checkout page which is populated by a survey. Each user has some user metas created over ACF and I would like to add this hidden data to ACF. ...
0
votes
0answers
4 views

Change WooCommerce template for PDF - access to custom field

I want to do some modifications to a template of WooCommerce, but I'm rather ZERO in PHP, so that is why I'm asking some guidance so I could perform my small modifications, which I'm sure are not too ...
0
votes
0answers
9 views

How to add a inbuild block using a code?

How I can add an inbuilt block using the code directly to the Dashboard??? Is there any function?? or code which add a block, for example, shortcode block.
0
votes
0answers
9 views

Product adding to cart without variation being selected first

We have the woo side cart added, when a customer clicks on an item it automatically adds to the cart even before they select the size or colour, how can we stop it from doing this. It will even add ...
0
votes
0answers
7 views

Is it possible to have multiple product_tag in a WordPress URL?

I'm trying to create a custom link that combines two product-tags for filtering products that have the product-tag man AND brandname. I'd like to put in the same link the following two example links: ...
0
votes
0answers
16 views

woocommerce axios react

I don't understand why my request to WooCommerce API doesn't work. My usage on react App via axios: First try: return axios.get( 'http://domain/wp-json/wc/v3/products?featured=true', { ...
0
votes
0answers
6 views

connect woocommerce custom field to wp user meta upon customer registration

I'm adding a custom field on my woocommerce registration that actually saves customer IG usernames by using this code below placed on my child theme's function.php file: function ...
0
votes
0answers
5 views

Order selector when using woocommerce products shortcode [on hold]

If I display products with shortcode like this: [products category="edesitok" pagination="true" limit="12" columns="3"] there is no sort order selector on the top of the list (for visitors) like "...
0
votes
0answers
12 views

How to limit which information about a product is returned by wc_get_products (WooCommerce)?

My current code uses wc_get_products to return all published products that are instock: $wc_products = wc_get_products(array( 'status' => 'publish', 'stock_status' =...
0
votes
0answers
14 views

Help to arrange attribute product in right order in woocommerce

I have a WooCommerce website where I want to sell shoes, but I have a strange problem. The attributes are set randomly and don't fit the order set in attribute custom order. I have this function which ...
0
votes
0answers
13 views

Add extra products on add-to-cart action

I'm having some trouble adding extra products on add to cart button is executed. Basically, the user gets a few extra products in the product to choose from, My problem is that the user can still ...
0
votes
0answers
12 views

Comment review not mandatory

I have a star rating system in my web, and I need comments to not be mandatory so that customers can review only using the stars. How can I do that? Thanks!
0
votes
1answer
12 views

How to show Custom Field Value in Woocommerce Shop Page

remove_action('woocommerce_shop_loop_item_title','woocommerce_template_loop_product_title',10); add_action('woocommerce_shop_loop_item_title','fun',10); function fun() { echo 'custom_field_value'; } ...
0
votes
0answers
7 views

WooCommerce: How can I select the catalog_visibility for a product?

I know, as simple as it sounds but I don't get it running: How can I select the product visibility for a product by his id via SQL? This is what I have: global $wpdb; $result = $wpdb->get_col( "...
0
votes
0answers
17 views

Error on Wordpress site: “an error occurred while processing this directive”. Have debug.log output available

Hope someone might be able to shed some light on this one. The error is very generic and seems quite unpredictable. Happens on some page loads, not others, and when it does, if you refresh a few times,...
0
votes
1answer
13 views

Shop Manager role cannot edit pages using WPBakery Page Builder

I'm using both WPBakery Page Builder version 5.4.7 and Woocommerce version 3.5.1 on a site I'm working on. Even with the settings enabled for the Shop Manager role to access and use the Visual ...
0
votes
0answers
8 views

Sometimes I am still getting 404 error if I call add_rewrite_endpoint & flush_rewrite_rules on activation / deactivation hook

I need to add a custom tab to my woocommerce my account page, so I followed this article: https://github.com/woocommerce/woocommerce/wiki/Customising-account-page-tabs#creating-new-endpoints /** * ...
1
vote
1answer
11 views

Automatically Update Woocommerce Prices

I am running on WordPress v4.9.8 using WooCommerce v3.4.2. Recently I've made an Excel spreadsheet which collects competitor's prices for multiple products via query. My target is to follow these ...
0
votes
0answers
10 views

Trying to edit Product page /w Woocommerce, Fatal Error appears

I try to edit my product page, but this error appears: Fatal error: Out of memory (allocated 116916224) (tried to allocate 603392 bytes) in /home2/~/public_html/wp-includes/class.wp-scripts....
0
votes
0answers
13 views

Wordpress wp_set_object_terms() not working fully with WooCommerce

My custom taxonomy (WooCommerce attribute) already exists and I am using the following to add a new term to the taxonomy and associate it with my WooCommerce product: wp_set_object_terms($product_id, ...
1
vote
1answer
40 views

Getting categories id for all products in cart

What I'm trying to do is to take the categories for products which are in the cart. Then check via some conditions what category id is and show different notice. So far I have this /** * Cart ...
0
votes
0answers
6 views

Chinabrands with woocommerce

I'm not good in this so i would like to ask if there is any option to sync woocommerce orders with Chinabrands. I want to automate the process for Dropshipping.
0
votes
0answers
14 views

How to add orders manually to woocommerce [on hold]

I'm working on a website for a customer who gets orders from call center ( runs ad on TV). The call center receives the customer info on the phone and sends them to him by the end of the day. Right ...
0
votes
0answers
5 views

Woocommerce: Allow Offers and Purchases While Hiding the Add to Cart Button

I have only basic knowledge of wordpress/web development and need some help. I am developing a woocommerce site for a family member that sells very pricey items (think $20,000 or more). I want to ...
0
votes
0answers
6 views

woocommerce - how to add custom field in one page checkout?

I can add custom fields to normal checkout pages of WooCommerce. But our company decided to try Woocommerce One Page Checkout. I wanted to collect additional information by using <input> text or ...
1
vote
0answers
14 views

Send billing info from woocommerce checkout page to paypal checkout form

I have a theme using Woocommerce and PayPal Checkout. The checkout page in my theme has a form to input Billing Address info. My only method of payment is via PayPal Checkout. If a user starts the ...
0
votes
0answers
10 views

Adding additional information to Admin Order Preview

Looking at adding the actual shipping costs of an order to the order preview pop-up. I think we have to use add_action with woocommerce_admin_order_preview_end and maybe even using add_filter to ...
0
votes
0answers
7 views

How to handle 1000's of variations? [on hold]

I have a custom made suit site. Where user get to choose from fabric range to collar style etc. But I am stuck in variations. If I have 100 fabrics, 5 collar styles and button colors which are only 3 ...
0
votes
0answers
8 views

Getting Subcategories of specific category and display subcategories in the li tag

I use this code to display the main categories of my woocommerce store Now, I want to display the subcategories of that category using the category name my code <?php function ...
0
votes
0answers
9 views

Woocommerce shows product images in the wrong size

All products in my website have 200x200 featured images. But in catalog images are shown in 750x750 (sooo blurry) instead of 200x200. Source code of catalog page: <img width="200" height="200" src=...
0
votes
0answers
9 views

Woocommerce grouped products, group all the products of a category at the same time

I have a grouped product called Pizzas, and I need to link more than 30 ingredients to this product "Simple products", Woocommerce currently has that option available, one adds three letters in the ...
0
votes
0answers
6 views

promote woocommerce items on another wordpress site

I have multiple related wordpress sites. one of them has woocommerce. is there a way to promote some of those products (maybe identified by category or new or something like that) on one of my non-...
0
votes
0answers
11 views

Pagination not working correctly

I wrote a query like this: $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; $q = new WP_Query( array( 'post_type' => 'product','posts_per_page' => 15,'paged' => $paged) )...
0
votes
1answer
6 views

I want to use a product thumbnail completely different than the product image

I want to use a product thumbnail completely different than the product image. I've tried to search on google but all solutions lead to just customization of thumbnail sizes.
1
vote
0answers
8 views

How to search Woo Commerce products with punctuation in title?

How do I modify the default WooCommerce Product search so that products with punctuation in the title can be found without including the punctuation in the query? For example, if I have a product ...
2
votes
0answers
53 views

Override woocommerce wc-class function

I'm not good in WP and plugins and will need some help here. I've read that is possible to alter some WC core function with filters and action but probably I didn't understand this correctly. I want ...
0
votes
0answers
40 views

How to customize buttons on single page product

I am trying to add a second button called "pay online" on a single product page with the Custom Fields Plugin, but I am getting this error/output: ?> You can also see the problem following this ...
0
votes
0answers
14 views

Retrieve Admin Settings WooCommerce

I have created a plugin in WooCommerce and in the front end I save a businesssID and password. How do I retrieve those settings in the backend? I have tried this. $this->form_fields = array( '...
0
votes
0answers
29 views

Add Search Field Dropdown in Woocommerce Order Search

I am using the following code to limit the fields that woocommerce searches in when you search for an order: /** * Limit woocommerce order search fields. */ function ...
0
votes
0answers
11 views

VAT Number in WooCommerce Emails - if empty dont't show

Is it possible that the NIP label and company name will not be displayed in the e-mail if the customer does not provide them. I use this code: add_filter( 'woocommerce_email_order_meta_keys', '...
0
votes
0answers
19 views

WooCommerce get products based on the taxonomy

I need to modify the WooCommerce product query because I want to filter the shown products on the shop pages based on the taxonomies for each product. So what I've tried is this here: add_filter( '...
0
votes
0answers
12 views

Add Prefix to Auto Generated Username

Is it possible to add a prefix to the auto generated username in WooComerce at checkout? Thank you
0
votes
0answers
10 views

Woocommerce import products with serialized data

I am creating a Woocommerce shop that makes use of the official Measurement Price Calculator. This plugin seems to store its data serialized in the database as when I export a spreadsheet of products ...
-1
votes
2answers
24 views

WooCommerce - item added to order not actually saved?

I'm trying to make a plugin that merges two carts into one. I am doing the following: $old_order = wc_get_order($old_order_id); duplicate_line_items($new_order, $old_order); //re-fetch order to ...
0
votes
1answer
6 views

Disable theme WooCommerce template

Just purchased a premium WooCommerce-read theme. Unfortunately, this theme comes with a /woocommerce folder. How can I disable this templates,without deleting whole folder?
0
votes
0answers
18 views

Parse woocommerce_wp_textarea_input [on hold]

I have a textarea in admin which looks like this woocommerce_wp_textarea_input( array( 'id' => 'json', '...
0
votes
0answers
29 views

Woocommerce 'order_by' random with 1 hour seed refresh

I need my woocommerce products to display randomly. My products are actually people and the random element is so different people get seen on the first page so no-one is favoured. So, I have ...
0
votes
0answers
11 views

Show item on shop as per user vehicle what he mention his profile as a default search [closed]

i want shop page show as default item based on user vehicle what he mention in his account setting. here is account setting page http://hius.tsm.team/my-account/edit-account/ this is shop page in ...
0
votes
1answer
18 views

Woocommerce postage question? [closed]

Quick question if I have a flat rate of £5.00 for postage lets say and I want to charge customers £10 if the value of the basket is over £25.00. Can this be done and if so what are the calculations ...
0
votes
0answers
15 views

How to add AND condition in woof- product filter in woocommerce [closed]

I have added AND condition for multiselect in woof-product filter plugin by following code which has been provided in the FAQ of this plugin, But its not working for me. Please suggest me how to add ...