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
-1 votes
0 answers
9 views

WooCommerce Plugin for min. order quantity

First of all, I'm sorry if there's a plugin like that and I wasn't able to find it, but I did my research and seems like I couldn't find a working solution for me. The scenario is following: I have a ...
0 votes
0 answers
12 views

Send email to customer with order status "pending payment"

I am trying to send a custom email after 1h to someone who tries to place an order in my store but did not make a successful payment. The code I am using below, but for some reason no email is being ...
0 votes
0 answers
7 views

Woocommerce Conditional Payments [closed]

I'm trying to hide the BACS payment method when the order is less than $500 but the code is not working. I can't find the error. add_filter( 'woocommerce_available_payment_gateways', '...
1 vote
1 answer
1k views

How to add a user custom field into Woocommerce emails?

How do you add a user custom field into Woocommerce emails? This is my code so far in functions.php add_filter( 'woocommerce_email_order_meta_fields', 'custom_woocommerce_email_order_meta_fields', 10, ...
0 votes
1 answer
1k views

Remove Woocommerce product from cart with ajax/fetch

I have a problem with removing products from the cart in Woocommerce and I think it has to do with WC_Cart::remove_cart_item. I only get these error messages: POST http://localhost:3000/esport/wp-...
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 ...
-1 votes
1 answer
902 views

Hide/show specific products for backend users in woocommerce

i have 5 customers who use the same shop in woocommerce. These 5 customers can enter the backend and see there products (but also the products of each other) in the catalog - I want now to hide ...
1 vote
1 answer
998 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 ...
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....
0 votes
1 answer
852 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 ...
0 votes
1 answer
3k views

Register a new user on wooCommerce using Rest API

So, I am building a website in react using Wordpress headless server with WooCommerce plugin. I have found that to create a new customer, you have to use the WooCommerce API: https://woocommerce....
0 votes
2 answers
816 views

How do I programmatically add 'reviews_allowed' to WooCommerce product?

I'm trying to add products using data gathered from a Caldera form. I'm successful in creating the product and adding other attributes, but 'reviews_allowed' is proving to be elusive. $post_id = ...
0 votes
0 answers
11 views

Cant add new Product [closed]

Whenever I try to add a new product I get This page isn’t working 711shoes.com is currently unable to handle this request. HTTP ERROR 500
0 votes
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 ...
2 votes
1 answer
2k views

woocommerce featured products and categories

I am working with woocommerce at the minute, and the design requires to show a number of featured products and categories in a number of different styles. For example one featured product needs to ...
0 votes
2 answers
819 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
0 answers
4 views

"Joined in" or "Member since" displayed on single store page and then using shortcode to add

I'm trying to add the registration date of users (vendors) to my single store page. This would ideally read "member since (date)". I also want to use shortcode so I can apply this manually ...
-1 votes
3 answers
1k views

WooCommerce related products load random posts per page

I'm starting to go a little mad here, I must be missing something obious but I have tried many solutions. My problem: I want to have 6 related products under each product. (Understanding if a ...
0 votes
1 answer
2k views

Set _regular_price 0 if empty in woocommerce product [closed]

anyone suggest me a proper woo commerce filter for set _regular_price = '0' if empty ? i want to display 'Add to cart' button even after price is empty or zero for a product. Thank You
0 votes
1 answer
1k views

How to get product variation price in woocommerce_checkout_create_order_line_item hook

In the hook woocommerce_checkout_create_order_line_item I want to change the item metas in the checkout page for more than one quantity and now I need the variation price to calculate this. function ...
0 votes
1 answer
4k views

How to execute init or woocommerce_init only for checkout page

I am making extra function for my own project. function devsol_customer_login() { if ( is_checkout() ) { ?> <form method="post"> <input type="text" class="woocommerce-Input ...
0 votes
0 answers
6 views

wordpress woocommerce templates did not update?

I have two sites, one sandbox and one live. Woocommerce needs a core updates so I updated all the plugins, WordPress and Woocommerce. In wp-admin->woocommerce->status on my sandbox under ...
0 votes
1 answer
685 views

Add a new view on the Woocommerce account page

I'm working on a custom Woocommerce theme. I've already figured out how to add the Wishlist label to the Woocommerce my account navigation. When you click on the Wishlist navigation item, you go to ...
0 votes
0 answers
15 views

WooCommerce / Elementor change Add To Cart button text and link for variable products

I'm trying to edit the 'add to cart' button on WooCommerce and I'm using Elementor products widget to show them on shop page and other category pages. I need to change the button text to 'Quick Add' ...
0 votes
1 answer
673 views

Integration widget Mondial Relay Js

Could you help me please: I have to integrate the code of Mondial Relay but I do not know where I have to integrate it. Thanks a lot The code is : <!--On charge Google Map API--> ...
0 votes
1 answer
2k views

Checkbox field that add a subscription product and change prices of other products in checkout and cart page

In Woocommerce checkout section, I am trying to add a checkbox that adds an additional subscription product. It is working fine and I took help from here One more requirement is that if there are ...
0 votes
0 answers
18 views

creating a woocommerce template in the full site editor [closed]

i am testing woo 8.3.0 on wp 6.4.1. if i add a single post template, it is applied to all single posts, it doesn’t work for single product. when i choose single product in the template creation ...
0 votes
1 answer
679 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 ...
0 votes
1 answer
2k views

add action save post type and update post meta woocommerce

I want update post meta in product woocommerce when I save o update the product. I write this function (and insert in functions.php) with save_post_NAME_CPT but don't work. add_action('...
0 votes
1 answer
136 views

Woocommerce custom "My Account" Tab - Add Save button

I've added a new tab into my "My-account" page on woocommerce using a hybrid of the following: New Tab: Woocommerce add new tab to account page New Content to tab: Add content to tab I've been ...
1 vote
1 answer
738 views

How to display custom option field in woocommerce orders in admin panel?

Actually this question has already answered as i already checked but i am unable to comment on that question as i am using the same code but in my scenario i am using options field and value is not ...
0 votes
0 answers
6 views

Wocommerce single product custom design with different attributes using drop down

I want to create this type of page for my Woocommerce WordPress how can I create this type of page any plugin free or paid thanks...
0 votes
1 answer
711 views

How to sort WooCommerce products page by latest in-stock items first?

How to sort the WooCommerce products page by latest in-stock items first and all the out-of-stock items to the last? Currently, I'm using a code snippet from "https://www.businessbloomer.com/...
1 vote
1 answer
8 views

How do we ReWrite HTACCESS to point a cat/subcat Product URL, to Cat/ only?

We have a problem where a site has got some odd URLs indexed by Google. This is the incorrect path: example.com/shop/mens/jeans/jean-product/ This is the correct path: example.com/shop/mens/jean-...
2 votes
1 answer
2k views

Can two products with the same name but different category produce unique URLs?

In the permalinks settings I have /courses/%product_cat%. Using WooCommerce I created two different Courses that are named "English", but they have different categories that end up making my urls look ...
0 votes
1 answer
1k views

Woocommerce Membership synchronised accross multisite

I have a WordPress Multisite installed (single domain + subfolders - each instance for a different country - so multiple languages but for now single currency - euro) Users are automatically added to ...
2 votes
1 answer
2k views

How to remove the sub-category from Woocommerce product URL

In permalinks settings the 'Shop Base with Category' /shop/%product_cat%/ permalink setting puts all the hierarchical categories in the url, for example: http:// mystore.com/shop/parent-category/...
0 votes
1 answer
757 views

select2 & selectWoo Not Loading Options

I created a custom select checkout field and the field works great. When I add a selectWoo or a select2 class to it, it functions like a select2 box but says no results found. The html options are ...
0 votes
1 answer
784 views

Check if product variation image is from the variation itself or from the parent

I want to show the product's variation images. However, if there is no variation image, it just shows the parent's image and I wouldn't expect that. At least I would expect an opportunity to check if ...
0 votes
0 answers
22 views

Woocomerce: Php code displayed on Product detail page

I have installed WP 6.4.1, and set up a WooCommerce version 8.2.2 On product detail page I see partial php code. Can someone give me a hint what I am missing here and how to troubleshoot this issue? ...
0 votes
1 answer
1k 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
1 answer
718 views

Display all categories including sub categories under a list ul

This code is displaying only categories, how can I change to also include subcategories. Thanks Thanks, with this code is listing all together, I want that shows like this Category 1 ...
0 votes
2 answers
928 views

How can I display all products from all categories on one page with woocommerce?

BlissCBDWorld.com/store I have a shop landing page that lists all of the categories (don’t mind the rudimentary photoshopped products, I’m changing that 😁). What I want to do is also have a button ...
0 votes
1 answer
2k views

Add a product attribute to permalink in WooCommerce

I have some products with Color attribute. how can I have something like this: http://example.com/shop/category-name/product-title-color/ What should I do make this kind of permalink in WooCommerce.
0 votes
2 answers
2k views

Custom Woocommerce Product Query

I work on a project that shows some travels (depending on the destination category). I try to sort the travels on the start date (var_confirmed_date) but the result is the same as no sorting. Here is ...
-1 votes
1 answer
1k views

Decrease stock quantity when a variation is sold using Woocommerce

I am sure I must be something wrong or omitting the correct way to do it, but each time I sell a variation of my product, the stock decreases for that variation, but the total stock value for the ...
0 votes
1 answer
1k views

Bulk edit orders to 'wc-processing' status

I searched for an answer but couldn't find any. How can I allow bulk edit orders to wc-processing status? Currently I can any other status but this one and it's making the work harder, making me go ...
0 votes
1 answer
1k views

WooCommerce product id as permalink

Currently, the WooCommerce product permalinks is '/product/shoes-3' , '/product/cup-12' etc. How to change product permalinks to only be like /p/product_ID , for example '/p/1122' without using any ...
0 votes
2 answers
1k views

global $product is empty string when passed into function

I'm trying to optimize my functions.php file as I have a Woocommerce site with a bunch of customizations to the theme. Currently, my functions look like the following: add_action('wp_footer', '...
0 votes
1 answer
1k views

Product Category page showing all products

Our WP system uses the following plugins: WooCommerce v3.4.4 WooCommerce Stock Manager v1.2.6 Display Productfor WooCommerce v2.0.19 Sorting WooCommerce Pro v4.0 Salient Theme v7.0.8 Salient ...

1
2 3 4 5
79