The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [woocommerce]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
2 views

Wordpress SMS API integration without plugin error

i have created a code for WordPress to integrate my custom SMS api.but the API URL works fine when I type it on the URL bar.but when it in the code I think the API URL will not call.so when customer ...
0
votes
0answers
2 views

split order after checkout depending on products vendors (WCFM Marketplace)

I need to split order before thank you page view depending on products vendors for example If the order contains 5 products from different vendors - 2 products from X vendor - 2 products from Z vendor ...
0
votes
0answers
3 views

Add ?piura final url of products generated

I need to add via the functions.php at the end of the parameter ?Piura. Since I am using this code so that all users who have the ?Piura parameter have a special code. The problem is that the url ...
0
votes
1answer
9 views

How to add custom attribute to all outofstock and all instock products automatically?

What I want to achieve is to add the custom attribute "instock" to all in-stock products and "outofstock" for products that out of stock right now. Why? Because I want to add those attributes to ...
0
votes
0answers
3 views

Importing XML data wp_terms WooCommerce conflict

On my Localhost installation I have 3 menus assigned to the specific term ID's. Example: Footer Menu (solutions) - (ID 24) Footer Menu (resources) - (ID 23) Main Menu - (ID 25) After exporting XML ...
0
votes
0answers
6 views

Update / refresh mini cart, after custom AJAX add_to_cart event

I need help In my custom single-product.php template, I added the button public function AddToCartButton() { global $product; if($product->is_type('variable') || $product->...
0
votes
1answer
740 views

How do you search for a post by custom taxonomy?

I'm trying to search for the latest post that has a custom taxonomy attached to it. I've used the Advanced Custom Fields plugin to add a custom taxonomy called 'brand_post_link' which allows users to ...
0
votes
2answers
604 views

merge two query arguments into one WP_Query call

I'm overriding WooCommerce's default search query to include searching by SKU as well. // default search query $query_default_search = new WP_Query( array( "post_type" => "product", ...
0
votes
0answers
8 views

How to duplicate WooCommerce Product Attributes (Taxonomy)

I am searching for at least an hour a plugin which can clone/duplicate a product attribute which is basically a taxonomy. All i can find are plugins which can only duplicate the categories/tags of the ...
0
votes
0answers
9 views

How to vary WooCommerce product prices based on order dates

I want to build a WooCommerce website where the prices of products change automatically based on the date that the product is ordered (e.g. during seasonal periods, weekends/weekdays, etc.) Can this ...
0
votes
1answer
1k views

Multiple quantities with options

I have a medical lens website and I tried to make custom order product in woocommerce. I want 2 options. When the first one is chosen, it hides 2 dropdown lists and shows only 1 drop down list, and ...
-1
votes
0answers
19 views

woocomerce subscription order processing failed

I have Woo Subscription orders enabled. There is on order placed as subscription type. For this customer, the subscription worked well with authorize.net for 6 months but it didn't process on the 7th ...
-1
votes
0answers
13 views

Woocommerce like admin tabs and navigation

I'm working on a WooCommerce addon/plugin and created a custom admin sub page under WooCommerce menu in dashboard. Now I am looking to add tabs and sub navigation as per the Settings page under ...
0
votes
1answer
623 views

How to use a RewriteRule to change endpoint url

I'm using woocommerce and wordpress. I would like to know how to use a RewriteRule to change my url from: /my-account/edit-address/billing to /account/edit-address/billing and load the endpoint page ...
-1
votes
0answers
9 views

Alter shipping cost for order where shipping cost is based on order meta

I know how to dynmically change shipping costs to an extent. I have successfully changed it on the checkout page and also for the final cost that is saved for the order, depending on how I'm ...
1
vote
1answer
766 views

how to get jetpack's infinite scroll to work with woocommerce?

I am trying to get Jetpkack's infinite scroll to work with the WooCommerce product archive template. I have added the following code to my theme, after installing Jetpack, and I do see the sticky ...
0
votes
0answers
6 views

Booking system with pricing rule [on hold]

I am looking for a woocommerce wp-plugin or code that can calculate the final price according to number of booking days as following : $4/day $6/3days $8/5days $11/7days any ...
1
vote
2answers
441 views

Get url of product's images (woocommerce)

What happen when a post (product) didnt have a guid,because it has the same image with another product ? For example: Query1: select guid from wp_posts where post_type='attachment' and ...
0
votes
0answers
7 views

How to filter customer collection using Rest API v2?

Is there any way to filter customer collection by created or modified date using rest API? I have also check this document. But,there's not available any parameter for that.
20
votes
4answers
45k views

How do I delete all UNUSED images from my uploads directory?

I am trying to clean out my uploads folders as they are now starting to take up too much room on my server. I have tried to use plugins to achieve this end such as DNUI and Cleanup Images but these ...
0
votes
4answers
645 views

Woocommerce: Variable Product - get variation name

I want to get the Woocommerce variable product variation name. If, for example, I have a product that is available in different sizes: small, medium and large. Then I would like to print for example "...
-1
votes
0answers
9 views

Can I Move & Enlarge the Item Description in Woocommerce Checkout Page [on hold]

Currently, the Item Description appears very small under the Shipping Options. When the checkout page shows items with different vendors / shipping classes, this might be a bit confusing to the ...
0
votes
0answers
14 views

Conditional Firing of WooCommerce Webhooks [on hold]

Currently working on a subscription-based website and I'm looking for a way to control whether or not the order.created WooCommerce hook is fired based on certain attributes of products in the order. ...
0
votes
0answers
28 views

jQuery - Display product field based on quantity input

I am trying to display a value based on woocommerce quantity input and i'm using the following jQuery script. <script> jQuery(function($){ var form = 'form.variations_form', selected =...
0
votes
1answer
22 views

WooCommerce - Reset quantity input field when variation changes

Is there a way or a plugin to reset quantity input field every time a user changes the variation? I searched but i didn't find something similar or any hook. I tried the following jQuery event but it ...
0
votes
0answers
10 views

Header color issues

I have a transparent header with white text on my homepage which is set site wide. The problem is that my product and category pages are white background so they header gets lost on those pages. Can I ...
0
votes
0answers
13 views

Mobile responsible woocommerce product page

Dear Stackexchange community, I'm currently working on a Woocommerce / Wordpress project and there's something I can't figure out how to do. I couldn't much info online about my issue: When looking ...
0
votes
0answers
20 views

Site infected by link

my store (woocommerce) is blocked by anti-viruses. I found that the following link is added to the footer without my knowledge: <script src = "// minisrclink.cool/1e40c8bd4601a5a5a4.js" async = ""...
0
votes
0answers
13 views

Applying pre-production modifications

I'm working on a wordpress website on a pre-production version that includes several extensions like woocommerce and others. I'm wondering what is a safe solution to apply all the modifications I made ...
0
votes
1answer
591 views

Remove the payment gateways conditionally on woocommerce

if i unset a payment gateway it works in the view page that the payment methods which i unset will hide. but when i proceed to checkout with other payment methods,it shows error "Invalid payment ...
0
votes
0answers
16 views

Change title in backoffice (wordpress + woocommerce)

I need to change the titles in the pages that have to do with woocommerce in the backoffice. I think that it must be a way similar to changing the custom title in the login (as I added the code in ...
1
vote
1answer
421 views

Adding Custom Text Area to WooCommerce Product

Some of the products in my store has quite long descriptions. Therefore I want to use the main Description for just a basic description and add an extra tab for i.e. Technical Specs. I'm using the ...
0
votes
0answers
11 views

show all usermeta under “my account/account details” of woocommerce

I created a lot of custom user meta with a registration form (with help of "user registration" plugin). I would like to allow my users to edit all their "user metadata" when they navigate under "my ...
0
votes
2answers
28 views

How to change this simple code so that it sends the email notification after payment in WooCommerce?

How to change this code so that it sends the email notification after successfully payment in WooCommerce? add_action( 'woocommerce_applied_coupon', 'custom_email_on_applied_coupon', 10, 1 ); ...
0
votes
0answers
11 views

woocommerce product listing issue with owl-slider

I am using WooCommerce shortcode : [product_category category="course"] for listing my products. I wanted the list to be inside a slider (owl carousel - https://owlcarousel2.github.io/OwlCarousel2/) . ...
0
votes
1answer
19 views

How to save one API response to WooCommerce order meta data

Have one custom checkout field email type that validates if the email exists or not in a remote server. I sent JSON data to the remote server with this field. If email exists JSON response typically:...
2
votes
1answer
2k views

Display related products with custom output

I'm trying to display the related products with my custom html output, unfortunately i'm kind of lost on how to do this. The WP_Query below displays the products that are in stock, what i want is to ...
0
votes
0answers
19 views

Why does wc_get_products($arg) return no products when $arg = 'average_rating' => 5.0

As per documentation the this should return all products with a average rating of 5 but we get no products returned even though we have one product with a rating of 5. average_rating Accepts a float:...
2
votes
2answers
2k views

How to hook on a WooCommerce checkout field?

Each field of the default Woocommerce form checkout has this markup: <p class="form-row form-row-first validate-required" id="billing_first_name_field" data-priority="10"> <label for="...
0
votes
0answers
15 views

Woocommerce login not working on the first try

Sometimes the woocommerce login form is not working on the first try, but it is working on the second one. There are no error messages, the POST contains all the necesarry information, and I made sure ...
-1
votes
0answers
13 views

Loop - Adding a variable that keeps accounting for every purchase

I'm aiming to create a variable in the following code, so that every time a purchase is made, it keeps adding a certain value to the given variable. Here's the code: <?php $osszegyultpenz=0; $i=0;...
0
votes
1answer
1k views

Get Woocommerce Subscription Product

I am trying to create a form for customers to fill out after they have purchased a subscription and/or when they return to the site and log in. My site has multiple subscription products and I need ...
0
votes
0answers
13 views

Woocommerce restrict specific zipcodes to place order [closed]

I am build e-commerce website using woocommerce. Now I want to restrict certain zipcodes to place order bcoz we don't deliver the product on that zipcodes. I went to Woocommerce -> Settings -> ...
0
votes
1answer
656 views

Allow users to register on multisite through WooCommerce using the same email address

I'm working on setting up a multisite environment, and have run into the possibility of a user trying to register on the sub-site with the same email address they've used on the main site. I've found ...
-1
votes
0answers
15 views

Some WooCommerce orders getting lost and not appearing in CMS [closed]

Some of my clients WooCommerce orders are getting lost and not appearing in the Orders section of WooCommerce. The client is receiving the notification email that an order has been successfully made ...
0
votes
1answer
28 views

WooCommerce and ACF: How to Redirect Upon Add to Cart - Partially Working Example

I'm using ACF on product pages to select a desired redirect URL after the product is added to the cart. Main use for this is to redirect to custom up sell pages. Example: Product A has the ACF field ...
-1
votes
2answers
795 views

Change WooCommerce registration form/way?

I want to change the registration form of WooCommerce a little bit. I'm fine with the normal form which comes from WooCommerce but I want to add the following fields and functions: If a person enters ...
0
votes
1answer
646 views

How to programatically create a WooCommerce downloadable product?

Is there a way to add, for example, an MP3 file to a WooCommerce product from PHP rather than from the dashboard panel? Looking in the database I see that downloadable_files seems to be a serialized ...
0
votes
0answers
13 views

Shipping on physical products only can't include virtual products

I am just trying to figure out, how can I enable shipping to be calculated on physical products only, not on virtual products. I have a mixture of physical and virtual (downloadable ebooks) products, ...
0
votes
1answer
613 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( '...