Questions tagged [woocommerce-offtopic]

OFF TOPIC. PLEASE CLOSE THIS QUESTION. Questions *specific* for this e-commerce plugin have their own forum at https://wordpress.org/support/plugin/woocommerce. Click the "Learn More" link below for useful links such as Support and Developer Docs.

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

Widget logic - hiding widget from sidebar on category but it still shows on product page in that category

I am using widget logic version 5.10.4, WordPress v 6.5.2, and WooCommerce v 8.7.0. I am trying to hide a widget on a category page, and the product pages within that category. I have tried the ...
1 vote
0 answers
16 views

not saving the WC_Session_Handler session and removing the product from the cart session in WooCommerce's custom rest api

I have spent almost two days on this problem. I want to write a dedicated REST API for WooCommerce that removes a product from the user's shopping cart. I delete the product, but unfortunately the new ...
0 votes
1 answer
3k views

Woocommerce REST API not considering discounts and coupons

I am trying to create an order on my WooCommerce store from my mobile application using the REST API v2. The order is created successfully but I can't find any solution to the following issues. I ...
0 votes
1 answer
3k views

How to add custom text field inputs for attributes in backend?

I wanted to have custom text input fields with the attribute name already defined for the products. Since this is not natively possible in Woocommerce I have added a custom text input field for one of ...
2 votes
2 answers
803 views

Outputting an array of term meta values in a custom WooCommerce tab?

Forgive me – my Wordpress/PHP skills are hilariously rudimentary, so I may not use the correct terminology. I have added a custom tab to the WooCommerce single product page and need it to display a ...
0 votes
1 answer
2k views

How to select the first product variant as a default?

I have products on woocommerce with 5 variants and I am trying to set the first variant as a default so when visitors/customers browse product pages they would see the first variant pre-selected. I ...
0 votes
1 answer
1k views

Custom Registration Fields woocommerce

Hi I am trying to make a custom Registration page for woocommerce, till validation it works fine but when i am trying to insert the data in database nothing happens. this is the sample code i am using ...
0 votes
1 answer
1k views

How to edit wc_get_template_part for archive products

I want to set a custom style for displaying prices on sale in woocommerce archive page. I could do that in single-product.php file but in archive page its just wc_get_template_part( '...
0 votes
1 answer
718 views

How to get total gross revenue for current month in the woocommerce dashboard status widget

I need to show gross sales for the current month in woocommerce status widget in admin dashboard. Currently it shows net sales amount I need to change to gross sales amount.
0 votes
1 answer
706 views

How to use decimal in quantity fields in WooCommerce for certain categories?

I found the code what I want to use on my woocommerce shop, but I want to use it only for certain categories from my shop. Can someone explain how I can do it? // Add min value to the quantity field (...
0 votes
2 answers
2k views

Bypass wp_safe_remote_get()?

I have a PHP(Laravel) application that pushes data to WooCommerce through the WooCommerce REST API, everything works except for images. I was able to pin this down to wp_safe_remote_get() and $args['...
1 vote
1 answer
18 views

Custom Captcha validation on the registration form issue

I made myself a custom CAPTCHA SUM type and it's working , however even if I add the right sum, my customer will not be created, not sure why and how to debug this. Here is my code: The wp-content/...
1 vote
4 answers
5k views

Execute JavaScript in WordPress Hook

I want to execute a JavaScript code when someone place order on my Woocommerce site i googled and find this action hook add_action( 'woocommerce_checkout_order_processed', 'function_name', 1, 1 ); ...
0 votes
1 answer
735 views

Is it ok to 301 redirect product-category pages to custom pages?

I would like to create a custom page in my wordpress, with a custom design and export all the products from a certain category there. However, breadcrumbs from woocommerce will point to the old/normal ...
0 votes
0 answers
10 views

WooCommerce Attribute Mapping

How to accomplish searching by Make and Model with data added as attributes? Basically I am facing this, I have a website for motorcycle parts and all the data is added as attributes so I have ...
0 votes
0 answers
6 views

Woocommerce Email Billing Label display [closed]

i want to change the display of the email that is sent to the customer on a new order. i would like to add the descriptive labels to the Billing and shipping address information Currently : 131 232 ...
1 vote
2 answers
1k views

Hide product categories and taxonomy terms in menu if empty

I've been researching this and had no luck so far. I have a WooCommerce store with a main menu showing product categories (product_cat) and brands (yith_product_brand) which is a custom taxonomy. I ...
0 votes
1 answer
2k views

Woocommerce Related Product by 2 taxonomy

I need to change related product by taxonomy and if taxonomy didnt have enough product, display rest of it from other taxonomy. I have 2 taxonomy; product_tag and product_cat. Sometimes products in ...
2 votes
2 answers
1k views

Show post page only if the user has bought a specific product

I'm having troubles with Woocommerce. I need to sell videos. I've created virtual products with a link to a different post for each (no download as I prefer to embed the video on my website and to use ...
0 votes
0 answers
9 views

Custom cart counter breaking checkout process [closed]

H owdy, I'm having an issue where my custom cart counter code is causing the payment fields on a checkout to "dim" and become unusable (the payment interface is reduced in opacity and no ...
0 votes
1 answer
903 views

How to send an automatic email to a custom field in Woocommerce order meta 2 weeks after a product is bought

I am using woocommerce to build a website where people can post gigs (products) and people interested in those gigs can pay to contact who posted the gig. I have a custom field called customer_email ...
2 votes
1 answer
2k views

How to delete all customer user account that haven't placed a single order?

Recently I've had an influx of spam users registering on my Wordpress website and I am trying to delete them all if: they have a "Customer" role haven't placed at least one order before As I could ...
0 votes
2 answers
886 views

Is there a reason to put a product in both the Child and Parent Categories?

I have a few product Parent Categories with Child Categories. Is there a difference if I place the products in both the Child and Parent Categories, or if I just place it in the Child Category? In ...
0 votes
1 answer
2k views

How can I update the price when someone enters postcode or zip code in woocommerce checkout page?

So, I am working with my custom plugin in which I need to get zip code or postcode on woocommerce checkout page and add my additional price and be done with the payment. I tried using AJAX, which get ...
0 votes
1 answer
960 views

How to sort products by price ASC and place all no price products to the end? (Woocommerce)

I have such trouble, tried a lot of solutions, but nothing worked for me. I need to show all 'no price' products in the end of catalog, when I am sorting products by price ASC in Woocommerce.
0 votes
1 answer
3k views

Change WooCommerce Image Size in One Product CAtegory

I have one Product Category that needs to have 300 x 300px uncropped thumbnail images. All of the other products have 300 x 300px, cropped thumbnails. This would be on the Shop page and the Category ...
-1 votes
2 answers
1k views

How to disable the "Upgrade or Downgrade" button in "My account" of WooCommerce Subscriptions

I have a Wordpress/WooCommerce webshop and I use WooCommerce Subscriptions. I want to disable the "Upgrade or Downgrade" button in My account > My Subsccriptions for users which have a specific user ...
0 votes
2 answers
882 views

Placing Lock Icon on WooCommmerce "Place Order" Checkout Button (WordPress 'ignoring' Changes...)

Trying to do something I thought would be relatively simple. Here is the default woocommerce "Place order" button <button type="submit" class="button alt" name="...
0 votes
1 answer
1k 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 vote
1 answer
2k views

PayPal Express on product page in WooCommerce - doesn't seem to work on product page?

I'm trying to work out why the PayPal Express Checkout doesn't work on my page. I have had to disable it for the moment (as it's a live site), but you can see the page here: https://steampunkjunkies....
1 vote
1 answer
1k views

Include woocommerce custom field value in front-end search result

currently the search result only showing all the woocommerce default product field (product title, category, tag, .etc). I've add a new custom field inside the woocommerce product using this code ...
0 votes
1 answer
874 views

show wc_add notices on particular page in woo commerce custom plugin development

I am new WordPress plugin development. I am working on a plugin where I create a custom cart page like the woo commerce cart. And I add wc add notice when an item removes from the cart page it shows a ...
0 votes
1 answer
9 views

Display List of Products With Missing Attribute?

I've searched and searched but have not been able to find an answer to this, so thank you in advance for your help! I am wanting to display a list (in the Admin portal, on the Products page) of all ...
0 votes
1 answer
716 views

Forgot password flow does not work, getting email with a link but after clicking link it's not working

Forgot password does not work, getting an email with a link but after clicking the link it's asking to fill email in again instead of being able to fill in a new password. I am using the WooCommerce ...
0 votes
1 answer
742 views

cannot create product attribute (taxonomy) and add terms on the same execution

I have the following functions to create a global product attribute and populate it with terms based on data from an API. protected function getOrCreateAttribute($slug, $name) { $...
0 votes
1 answer
753 views

Check if any available product has specific attribute

How can you check if there are any products with a specific product attribute in the shop? I could query (eg. with wc_get_products()) all products and check if they (or their variations) are in stock ...
0 votes
3 answers
1k views

Format decimals of get_price_html

One of the stores I manage is currently facing a bug that is not solved yet by WooCommerce, regarding rounding prices introduced without tax. So far one of the temp fixes that work is changing the ...
0 votes
1 answer
732 views

Remove Stripe Woocommerce Credit Card Icons (and replace with image)

Trying to remove all of the Stripe credit card svg icons from the credit card option on the Woocommerce checkout page. I see this: https://docs.woocommerce.com/document/stripe/#section-39 But that ...
1 vote
0 answers
28 views

PHPWord and DOMPDF: PHP Fatal error: Uncaught Error: Class "Dompdf\Dompdf" not found

I'm trying to convert docx to PDF on woocommerce hook woocommerce_checkout_update_order_meta and I've tried to make .docx from template and it worked well, but now I have to convert the docx to pdf ...
0 votes
0 answers
15 views

Football kit management system in WordPress

I am new to StackOverflow and familiar with the possibilities of WordPress and the plugins that come with it. Have build my fair share of WooCommerce websites with all the necassery plugins. The ...
1 vote
1 answer
5k 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
1 answer
1k views

How to add woocommerce product price filter widget to other page

I had actually customise page ( which totally override by Attribute page template type), And I want this page attche woocommerce widget "Filter product by price" As I add shortcode: [...
0 votes
1 answer
1k views

How to update permalink programmatically?

After activating my plugin I should go to settings -> permalinks and click on the Save button to make custom endpoints ( for my-account page ) work. How can I do it programmatically? ( I used ...
1 vote
1 answer
722 views

WooCommerce - How can I make single product gallery show two images on the slider at once?

I want to display two images in the single page product gallery slider at once like the photo below. I use woocommerce and I can't seem to find any plugin that supports this. Please help!
0 votes
2 answers
9k views

Removing Product from Woocommerce checkout page using Ajax

I have added remove button for products in the checkout page. The code - function add_delete( $product_title, $cart_item, $cart_item_key ) { if ( is_checkout() ) { /* Get Cart of the ...
1 vote
3 answers
2k views

Add text specifically to order-proceessing-email in WooCommerce

I am trying to add some text to the customer-order-processing email from WooCommerce, and it should ONLY be added in this particular email and ONLY if chosen payment method is Paypal. I have come so ...
0 votes
2 answers
861 views

Show the parent taxonomy by creating shortcode in woocommerce?

How would I create a shortcode to show the parent taxonomy in woocommerce? My product categories should be like: - Food -- Fruits --- Healthy Fruits --- Organic Fruits -- Meat --- Pork --- ...
0 votes
1 answer
1k views

Display product thumbnail in Woocommerce email notifications

I've overridden Woocommerce template file email-order-details to display the product thumbnail in customer's email: <?php echo wc_get_email_order_items( $order, array( // WPCS: XSS ok. ...
1 vote
1 answer
1k views

In WooCommerce product archive, how can you also set the quantity to be added to cart by typing, instead of just by using +/-?

As it stands right now, in WooCommerce 3.5.1, at product archive (the /shop page), if you use the +/- buttons to set a quantity before clicking "Add to cart", all is fine. But if you try to actually ...
0 votes
1 answer
734 views

How to change lost password email text using custom plugin wordpress?

In wordpress, i want to add one extra parameter(ABC) in lost password link with key (lost password email text). I have added many hooks. add_action( 'password_reset', 'password_reset_hook', 10, 2 ); ...

1
2 3 4 5
79