Skip to main content

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
1 answer
841 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
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 vote
2 answers
2k 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
0 answers
5 views

Assembly Options at checkout

I want to add Assembly options at the checkout page like this https://imgur.com/a/WrzWCiO Anyone knows how to do it without plugin? Thanks
2 votes
1 answer
3k 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 ...
1 vote
1 answer
2k views

Woocommerce Update Order Notes Date

I have a specific requirement to update a woocommerce order note date, please reference below image to see what i would like to change. The problem im facing is the below code will crash my server ...
0 votes
1 answer
683 views

Getting in an exception for get product detail by id in woocommerce REST api

I need to create an order in woocommerce REST API I have tried following code require('../wp-blog-header.php'); header("HTTP/1.1 200 OK"); header("Status: 200 All rosy"); ...
0 votes
2 answers
1k 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
0 answers
16 views

Change filter id into slug

I have a link like this when filter products by taxonomy "brand" domain.com/shop/printer/?brand_id=10 I'm trying to change the link to domain.com/shop/printer/product-brand-name/ how can ...
1 vote
2 answers
2k views

Hook to use when customer placing order [closed]

Currently I am using woocommerce_thankyou action to run a function that creates an order at a third party service. However, sometimes customers don't return to the Thank You page after visiting our ...
2 votes
1 answer
21 views

Custom Search Function in WordPress Returns No Results

I'm trying to integrate a custom search function in my WordPress site where an external API is used to determine search results. The function is supposed to retrieve a list of post IDs from the API ...
0 votes
0 answers
11 views

WooCommerce auto-create account and email login details after payment [closed]

I want my WooCommerce website to automatically create a customer account after payment and send an email with the username and password to the customer, and given link.
0 votes
0 answers
14 views

Apply Woocommerce coupon after custom discount in the cart or checkin [closed]

In my child theme functions.php I added a custom code to calculate dynamic discounts based on my client needs. What I am not able to do is, when a fixed price coupon (let's say fixed price on cart) is ...
0 votes
1 answer
854 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
2k views

How to set acf color field as background color to product category

I have set an acf color picker field for woocommerce product category. I would like to set this color as a background to the category name that I've printed on the product page. I've tried to set the ...
0 votes
1 answer
766 views

woocommerce: when adding or removing items to cart , it takes cart a few seconds to read changes?

I have the most simple cart page . [woocommerce_cart] that is it. when I add products to pages and view cart it shows the cart empty , afew refreshes (after afew seconds) the cart populates . when ...
0 votes
1 answer
1k 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
18 views

WooCommerce: Custom dropdown for variation selection

In WooCommerce, I have an attribute called License Type. This attribute has 2 terms: Single Site License Multi Site License With the above, I'm trying to create a custom select dropdown, where the ...
0 votes
1 answer
1k views

Pseudo class :before don't working in a specific button

Currently, i'm building an ecommerce and a small button was running with pseudo class :before suddenly stopped working.The site run WP with Divi and Woocomerce. I wish the bellow code back to run: ....
0 votes
1 answer
762 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
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
0 answers
8 views

I am having a problem with fetching product data in the Gutenberg block editor

const allProducts = useSelect((select) => { return select('core').getEntityRecords('postType', 'product', { per_page: -1, _embed: true, }); }, [postPerPage, orderBy, order]); console.log(...
0 votes
1 answer
2k views

How to add a fixed shopping cart button on the bottom of the page?

How to add a fixed shopping cart button at the bottom of every page, so that it becomes very easy for the mobile users to view the cart. I'm using woocommerce.
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
1k views

Hook for Woocommerce checkout fields

I need to add some info after each required fieds in Woocommerce checkout form. I'm using Wordpress 6.2.2 and WooCommerce 7.3.0 With this code I can add my info, but not for all required fields, e.g. '...
0 votes
1 answer
901 views

Customize the "Available for back order" text for specific variation

In Woocommerce, on the product page, i want to customize the "Available for back order" text for specific variations (size L and XL). So when a customer selects size L or XL, the "Available for back ...
0 votes
1 answer
17 views

Could WP ERP be the right software for a dropshipping business? [closed]

I am planning to resell wine through WooCommerce and will be handling most sales via cold calls, requiring manual order entry into the CRM. I need a solution that integrates WooCommerce, a fulfillment ...
0 votes
1 answer
751 views

WooCommerce - Get products from category right before deleting category

I am using this hook -- add_action( 'delete_term_taxonomy', array( $this, 'before_product_category_deleted' ) ); -- to do something before a product category is deleted. In that function, I am trying ...
0 votes
1 answer
2k views

Woocommerce Theme Reviews / Comments

Ok so i'm creating a Wordpress theme and i'm at the point where i'm trying to get a list of the reviews but the default comments_template() HTML isn't how I need it. I don't have a /comments.php ...
0 votes
2 answers
783 views

Order again Woocommerce inside View Order

Im using this function to add button "Order again" in actions function cs_add_order_again_to_my_orders_actions( $actions, $order ) { $payment_method = method_exists($order, 'get_payment_method') ?...
2 votes
1 answer
4k views

is_shop doesn't work for woocommerce [closed]

I want to hide WooCommerce breadcrumb in only WooCommerce archive page. And i want to display it in single product. So i write this code in functions.php: if(is_shop()) { remove_action('...
0 votes
0 answers
12 views

_sold_individually value change when add to cart

I have wordpress setup with woocommerce. Now I have set the option Sold individually to yes check the screenshot But when I click on the add to cart button of that product and check the value again ...
0 votes
1 answer
3k views

Widget logic using woocommerce product category

orry my question was not clear. I have different category and sub-category.Each categories has sub categories ie. car-cosmetic -cream -soap household -cleaner -etc. I would like to display the ...
0 votes
1 answer
2k views

Updating usermeta from login redirect to billing address

I'm setting up a site with woocommerce login from frontend. I want to take the customer directly from there to registering billing address. Then I want to fill in the billing first and last names ...
0 votes
1 answer
2k 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 vote
0 answers
226 views

Multiple Billing forms in WooCommerce (one billing form per product) [closed]

I'm building a travel site and I want to add this custom function to the WooCommerce checkout form: when a user adds 3 packages to his cart, I want to have 3 sets of Billing details (complete with ...
2 votes
2 answers
953 views

How To add custom radio boxes to WooCommerce Billing page and change total price by this field? [closed]

Lets say i need to add custom radio fields ( company or person ) at the top of the form to the billing for. And if the visitor checks person they should pay 21% Tax and they select company that is ...
0 votes
1 answer
689 views

Show menu order field in quick edit

I had created a custom field using ACF in a quick edit. A field is showing where a user has to update the menu order of the product. When you see the product details page by clicking the edit button ...
0 votes
1 answer
2k views

Put data in my-account/view-order/id/ page

Is ther a filter or an action to put information after order status information just before "Order Details" title? I found 'woocommerce_view_order' action, but it puts all at the bottom of the page.
0 votes
1 answer
15 views

How to display customer email within the meta order data box

On the order details page, i’d like to display the customer email in a distinct div in raw format and add a little copy-to-clipboard jQuery plugin like on the attached screenshot I played around with ...
0 votes
1 answer
8k views

How to get the WooCommerce product variation image

I am building a WooCommerce theme but I’m having trouble getting the featured image to change when the user selects a product variation. I have set different featured images for each variation on the ...
1 vote
2 answers
2k views

How to handle Woocommerce API credentials

I'm currently working on an Angular app with a headless Wordpress as a backend. I'm trying to figure out a way to integrate E-Commerce into that and WooCommerce seams the be the way to go. I'm working ...
0 votes
1 answer
1k 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:...
0 votes
1 answer
998 views

Getting the date_diff function return the difference in days

I've been trying to build a feature to count the days it takes for products to be sold. We are selling unique items on behalf of our customers so it's good to know for reporting and product management ...
0 votes
2 answers
5k views

woocommerce_email_recipient_new_order not triggered

I'd like to customise the recipient of a new order in WooCommerce. According to the documentation and various examples I can do this like so: function wc_change_admin_new_order_email_recipient( $...
0 votes
1 answer
824 views

Use Product Attribute in conditional tag

I have the following code which adds the price next to each variation: //Add prices to variations add_filter( 'woocommerce_variation_option_name', 'display_price_in_variation_option_name' ); ...
0 votes
1 answer
2k views

How to change the product short description for each product with PHP?

Do you have any idea how to change the short description? What is the meta key that is used in order to assign a specific value to the short description? if I want to change the price I use: ...
0 votes
2 answers
266 views

WordPress Development Workflow

Hello WP DEV Community, I understand this question has been asked ad nauseam... I'm trying to customize a development workflow (WordPress + WooCommerce) that allows me to develop locally (to speed up ...
0 votes
1 answer
19 views

Woocommerce products permalink based on SKU

I use this code in Wordpress (Woocommerce) to change products link: function jpb_custom_meta_permalink( $link, $post ){ $post_meta = get_post_meta( $post->ID, '_sku', true ); if( empty( $...

1
2 3 4 5
79