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
50 views

Canonical Tag Issue with Dual Product URLs in WooCommerce & Yoast SEO

I recently noticed an issue with the URL structure of my products on my WooCommerce site. Specifically, each product has two versions of URLs, illustrated as follows: https://www.example.com/main-...
Mighty's user avatar
  • 1
0 votes
0 answers
10 views

WooCommerce Checkout - Validate User Role

I'm facing a challenge with WooCommerce's checkout process. I use the "B2B for WooCommerce" plugin to differentiate between regular and B2B clients. I have two product categories "...
helio's user avatar
  • 1
0 votes
0 answers
91 views

JSON error on checkout with WooCommerce Payments

A WooCommerce site I manage has recently started having issues with credit/debit card payments through WooCommerce Payments. Every single payment fails with the following message: In the Inspector, I ...
Infobahn's user avatar
0 votes
0 answers
8 views

WooCoomerce: cannot change menu color on the woocommerce pages only

I have a problem with the transparent header. While it looks good on the main pages, in the shop, cart, and checkout pages of WooCommerce, the transparent header doesn't work because the menu items ...
Mary's user avatar
  • 1
0 votes
0 answers
10 views

How to modify username before logging in?

I know a solution exists for Wordpress admin from this Stack Exchange question: Change username before login However, while this works for logging into Wordpress directly, I am trying to use it for ...
Harish Prabhakar's user avatar
0 votes
0 answers
39 views

separating column the variations from the add to cart button woocommerce

I'm using the "Worldmart" theme and I'm trying to separate the variations of the "Add to Cart" button. I'd like to have the variations displayed in column 1 and the "Add to ...
Eduardo's user avatar
0 votes
0 answers
14 views

I just want to change my wordpress theme but the problem is with woocommerce . the site is live

I just want to change the theme of my wordpress ecommerce site. because the old developer who built this site used a lot of custom code and 45+ plugins. and as a result, the site speed is very slow (I ...
Aakash Kumar's user avatar
0 votes
0 answers
29 views

Save changes on WooCommerce Admin Settings

I want to get the form data on save changes button for validation. I used WC_Admin_Settings::save_fields( $settings ); to save the form fields where $settings have username and password text arrays ...
Abhinav Yadav's user avatar
0 votes
1 answer
178 views

Custom fields in the billing address section woocommerce

I have added custom fields in the billing address in Woocommerce checkout page, this works fine. Now I would like to show these custom fields inside the "billing address" box in the email ...
LesCa's user avatar
  • 21
1 vote
0 answers
42 views

Problem with "is_user_logged_in()" and woocommerce (Code for custom media upload for each author.)

I'm sorry for my english... I am using the following code to create separate media directories for each author.. ( Thanks to https://wordpress.stackexchange.com/a/400352/220907 ) function ...
Andrei Ka's user avatar
0 votes
0 answers
16 views

Sort WooCommerce categories automatically into friendly-looking tree

have a problem, I've uploaded bunch of products into WooCommerce store via XML file. Something like 45,000 products and xml didn't had certain category for every product, instead it had meta tag with ...
Tim P's user avatar
  • 1
0 votes
0 answers
125 views

woocommerce_checkout_order_processed hook priority not working between plguins

I have a website with 2 plugins that use the woocommerce_checkout_order_processed hook. Plugin 1 uses the hook with priority 10 like so: add_action('woocommerce_checkout_order_processed', [$this, '...
odedta's user avatar
  • 76
0 votes
0 answers
10 views

Limit the content cappabilities for user roles of subscriptions

I need guide to builld a subscription page payed by monthly having (bronce,silver,gold) subscriptions as a roles users. the bronce role can create and edit one an only (1 template page ) that page ...
piero.figeri's user avatar
0 votes
0 answers
17 views

Customize product card Up-sell on Woocomerce

I changed the product cards to also show the category and short description of the product but I can't show it in up-sell products. this is the code i used function category_single_product(){ $...
LesCa's user avatar
  • 21
0 votes
0 answers
31 views

Change WooCommerce Product Permalink Structure

According to my suppliers they want the local site and the international site to have the same product URL's just different domain. However my site is built on WooCommerce and there's is a custom PHP ...
Alex Moura's user avatar
0 votes
0 answers
15 views

Show the value of the custom field of the order on the My Account Front-end page

I would like to show the value of the custom fields filled during the order also in the frontend my account page. This is the URL of the location: https://example.it/my-account/view-order/860/ I would ...
LesCa's user avatar
  • 21
0 votes
0 answers
23 views

block the cart to a product without blocking the quantity

I'm creating a course site where it is possible to register and pay via Woocomerce, I need to block the possibility of adding multiple courses (products) to the cart but leave the possibility to ...
LesCa's user avatar
  • 21
0 votes
0 answers
9 views

woocommerce new order alert on a specific non admin page

I'm relatively new to WordPress but have basic understanding of how it works; I have a page where non admins can see woocommerce orders, I want to trigger a popup on this page when there is a new ...
petey's user avatar
  • 1
0 votes
0 answers
83 views

Woocommerce Reviews tab not showing on single product page

On the website sagajackets.com, the Woocommerce Reviews tab is not visible on individual product pages. The website is currently using the Shoptimizer theme. To address this issue, the website owner ...
Aadii Mughal's user avatar
1 vote
1 answer
15 views

Resending woo-commerce order emails from frontend

I am trying to create a simple shortcode [resend_woo_emails]. This shortcode will create a form with a dropdown with all email classes, an input field for cc emails, and another input field for ...
Joy's user avatar
  • 31
0 votes
1 answer
44 views

Add another user role based on a defined input field in Wordpress (Woocommerce)

for a WooCommerce shop, the roles customer and corporate_customer are primarily used. As soon as a customer registers and enters a tax number in their billing address in the optional field (ID: ...
Johannes's user avatar
1 vote
0 answers
20 views

Login Forms Display on Checkout Page When Already Logged In

My client has a site that was built by another developer. When on the CHECKOUT page, the pay shows the LOGIN and REGISTER forms, even when the user is already logged in. Logging in again does nothing ...
Augusta J.'s user avatar
0 votes
1 answer
140 views

How to get default variation ID (woocommerce)

I need to create an additional "Add to Cart" button on the product page. In a simple product there is no problem with this. It is more difficult in a product with variants. To create such a ...
patryk siuta's user avatar
0 votes
0 answers
38 views

manipulate price of the product using AJAX

my goal is to be able to dynamically manipulate price of a product using its parameters (= inputs from the form, e.g. quantity). When the customer changes a parameter, the price will be recalculated ...
yanzi's user avatar
  • 1
0 votes
0 answers
13 views

Adding Product Categories to Product Categories pages

I am trying to add product categories side bar to my product categories pages An example of my current setup. On my shop page I have a little product categories section that displays all the product ...
Michael Davids's user avatar
0 votes
0 answers
50 views

How to do SEO friendly filters urls?

I have a WordPress website. It uses Woocommerce. All products are loaded and attributes are created. When the user opens the catalog page and selects the filter values, there are problems with the URL....
Artm's user avatar
  • 1
0 votes
0 answers
18 views

a page of my site not indexing by search console

i have a top rank product that from today i noticed that the page is missing from google search result . then i have tried to request manually index the page. after some days there is no chance. i ...
sajad's user avatar
  • 101
0 votes
0 answers
20 views

how to hide failed order cancel button on wordpress?

In failed order, there are tow actions showing, view and cancel in which the "Cancel" button has no use. Please tell us how to hide this cancel button.
Manjeet Sire's user avatar
0 votes
1 answer
21 views

Optimizing or rewriting core queries

I am new to customizing WordPress and plugins core functions so I have a questions. Query monitor says I have a duplicate query that is executed like 13-14 times. The query in question is: SELECT ...
milenmk's user avatar
  • 113
0 votes
0 answers
43 views

How to add field new in account bacs in woocommerce?

i was looking for a way to add a new field to woocommerce bank account info, my theme has no child theme and i put my code in functions.php I found the solution but it doesn't work. function ...
Le Xuan Phat's user avatar
-1 votes
1 answer
66 views

How can I display the category descriptions below the category name using a functions.php filter?

How can I display the category description below the category name by modifying the theme functions.php with a filter?
msch382's user avatar
0 votes
2 answers
401 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. '...
Pekkonen's user avatar
0 votes
1 answer
104 views

How do I display WooCommerce products in my query to rows of 3?

I have created a WooCommerce search plugin. It fetches products, however it only displays the products as one per row. How can I amend my query to display 3 products per row? Here is the function: ...
SavPhill's user avatar
  • 118
0 votes
0 answers
72 views

additional fields based on the quantity of products selected

I have to make a site to sell course enrollments and to do so I'm using woocomerce. both single people and companies who will make multiple registrations for their employees will enroll in the courses,...
LesCa's user avatar
  • 21
0 votes
1 answer
115 views

Add custom ID to WooCommerce product tab

I've created a custom product tab in my functions.php - it looks like this: add_filter( 'woocommerce_product_tabs', 'custom_description_tab' ); function custom_description_tab( $tabs ) { global $...
WPTricksDK's user avatar
0 votes
0 answers
24 views

Custom product pricing and fee not reflecting in order

Here is what we are trying to achieve: Condition A: If user is from ZA, then the price should be X + 15% of X = 1500 Condition B: If not ZA, then it should be just 1500 The calculation on the checkout ...
mad2kx's user avatar
  • 162
0 votes
0 answers
44 views

change product menu dropdown with checkbox and external product variable creation

I'm trying to change the attributes menu of a variable product of woocomerce, I would like to change the dropdown menu into a checkbox menu, but there is nothing in the settings to change it. Is it ...
LesCa's user avatar
  • 21
0 votes
0 answers
19 views

WordPress Cron Job not importing products

I think this issue is related to WordPres Cron System , because the function runs fine without cron but it doesn't work as expected when run via cron , please have a look : https://wordpress.org/...
rawaha johns's user avatar
0 votes
0 answers
31 views

Redirect add to cart url if user tries to add to cart a WooCommerce Subscription (all variations) that they already have?

I have a link like: https://example.com/checkout/?add_to_cart=1&variation_id=2 The option to Limit Subscriptions to just one active subscription is on (https://docs.woocommerce.com/document/...
Johnny Walker's user avatar
0 votes
0 answers
52 views

Shipping method set/unset in checkout based on custom radio button selection

How can I achieve this. I have two custom radion button in checkout page, based on that radion button selection, I would like to set/unset available shipping method. Let say we have 'pickup' and '...
Al Amin Ahsan's user avatar
0 votes
0 answers
108 views

How to do a Ajax call once an order is received in WordPress WooCommerce

I want to trigger an Ajax call when I received an order. Also, I want to add that Ajax calls as a database record. Here is my code in the functions.php file. add_action('...
user2584538's user avatar
0 votes
1 answer
60 views

Add text below WooCommerce short description if metabox value is true

For WooCommerce I have a custom metabox that sets products to unavailable if ticked. The code below removes the add to cart button if a product is set to unavailable: // Remove add to cart button if ...
Dvaeer's user avatar
  • 619
0 votes
0 answers
9 views

Show previous product category when entering subcategory with last level - Woocomerce

For example : A A.a A.b A.c A.c.1 A.c.2 A.c.3 Currently I am displaying the child product categories of the current parent product category. I want to show previous subcategories when entering ...
duyrom's user avatar
  • 1
0 votes
0 answers
31 views

Wordpress Woocommerce Multisite user registration error

I am a multisite user, when woocommerce is installed and a user tries to register a new account they receive an error: "Error: Cannot create a user with an empty login name." See the below ...
Jibble Shorts's user avatar
0 votes
1 answer
86 views

How to set product category base the same as shop base in WooCommerce?

I'm using WooCommerce on a WordPress. I would like my products and product categories to have the same url base. E.g. www.example.com/shop/product-category www.example.com/shop/sample-product Using ...
Paweł's user avatar
  • 1
0 votes
0 answers
117 views

WooCommerce product image dynamically

what would be a neat way to dynamically change product pictures based on URL request? Eg. /product/item?id=2&option=1 I want to display a cat as the main product photo, and for /product/item?id=2&...
Konstantin Ilinov's user avatar
0 votes
0 answers
15 views

Mandatory Fields For WooCommerce Products Before Publishing

I have a B2B WordPress (WooCommerce) website where vendors are salespeople are able to upload their own products to their accounts. I am looking at making a couple of the fields "mandatory" ...
Nic Moore's user avatar
0 votes
0 answers
41 views

How to create different templates for woocommerce single-product.php?

I am learning Wordpress development. I have 3 products that I want to add to my woocommerce store. By default woocommerce store comes with a basic template for all products. But I want to make every ...
Frankie's user avatar
  • 11
0 votes
1 answer
122 views

High-Performance Order Storage conflict action `manage_shop_order_posts_custom_column`

I use this to add an Ordered Products column right after the Date column (fits nicely there). Each product is also linked to it's proper edit page. Look like this: This is my code to do this: // -----...
vanloc's user avatar
  • 125
0 votes
0 answers
152 views

How to display pagination for WooCommerce products

I have written this code to display WooCommerce products <div class="products-container container mb-4"> <div class="products-filter-section mt-3"> <?php ...
younes's user avatar
  • 1

1
2
3 4 5
79