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

How to implement my product variations/attributes in my contact form 7 email?

I'm working on a website that is using woocommerce and yith to add product variations. When the customers wants to buy something, he will have to choose between some product attributes, like the size, ...
sorrow's user avatar
  • 1
0 votes
0 answers
11 views

WP-CLI delete customers in bulk

I have a staging site and need to give an access to developers. So, I have to delete all customers just in case. I have below command. But I feel there should be better command. Can you advise? wp ...
Burak's user avatar
  • 1
0 votes
0 answers
8 views

How to add icon to WooCommerce add to cart button

in woocommerce, I want to add an icon from the iconify library to the add to cart button of my site I made some attempts, but I did not get the desired result. I used WooCommerce hooks, but this icon ...
MahmoodZamaniNemati's user avatar
0 votes
0 answers
9 views

How can I get the product permalink on the WooCommerce shop page?

I have tried several times to get the product permalink on the WooCommerce shop page, but I have a strange problem, the link appears in the Elementor editor, but not on the shop page. protected ...
Denis's user avatar
  • 1
0 votes
0 answers
10 views

Apply coupon after taxes on woocommerce

I have a woocommerce website where prices are configured and displayed without taxes, it is usings coupons but the coupon value is applied to the total before taxes on the checkout and I would like to ...
Isisky's user avatar
  • 1
0 votes
0 answers
9 views

Styling made on archive page product images applies to product images on cart header block and on cart page but should not

I am trying to give my product images a uniform height without changing the intrinsic size of the images. I have achieved it with the styling below: .attachment-woocommerce_thumbnail{ ...
Udiolvosuzuatsun's user avatar
0 votes
0 answers
8 views

Is possible affiliate product link as target blank? [closed]

Is possible affiliate product link as target blank? It doesn´t show function ns_open_in_new_tab($args, $product) { if( $product->is_type('external') ) { // Inject target="_blank&...
Laurapnunez's user avatar
0 votes
1 answer
12 views

How do I add an address type in woo commerce? [closed]

I need add billing address , shipping address , Product Installation address in check out page. In woo commerce billing address , shipping address is there as default options. How can I add third one ...
Itsmer's user avatar
  • 1
0 votes
0 answers
13 views

$order ->get_checkout_Payment_url() not echo right checkout url [closed]

it working fine on the localhost but I facing the issue when I am going to live domain and hosting. the_post(); // create a custom order if(isset($_GET['submit'])): $mail = $_GET['...
saikat mondal's user avatar
0 votes
0 answers
12 views

Thumbnail appearing small, not reflecting what is set in elementor

I have a strange issue that is occurring on my site and after plenty of googling I have not been able to find the answer hence my post here. The first screenshot is when I go to edit the page within ...
karnage's user avatar
0 votes
0 answers
11 views

Woocommerce payment after owner updates shipping

I have the following (very stupid) scenario: I am building an ecommerce website based on Woocommerce and my client insists (although i have even threatened to not take the assignment) that the users ...
Jim Bantanis-Kapirnas's user avatar
0 votes
0 answers
16 views

WooCommerce Order Sync via Custom REST API Endpoint Failing

I have a WooCommerce website with a specialized plugin that syncs orders to a delivery company. This plugin adds a button next to each order in the orders table, which, when clicked, triggers a sync. ...
TheSwiss's user avatar
0 votes
0 answers
7 views

Show WooCommerce product tab in one category, not all

On our WooCommerce WordPress product page, I was able to remove the 'Additional Information; tab with the following code: add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 ); ...
Spacejams's user avatar
0 votes
0 answers
14 views

Sort Woocommerce Products with Numbered Titles Numerically

I have a woocommerce shop with many products all of which have numbered titles from 1-3000 and the problem is, the alphabetical sorting is leaving me with an order like this: 1, 10, 11, 12, 100 and so ...
Hangman's user avatar
0 votes
0 answers
7 views

add top and bottom content in edit page custom taxonomy woocommerce

On the categories edit page, you can see the box titled top content and bottom content. By adding content inside, you can categorize content at the top or bottom of the page. I created a custom ...
Rohit's user avatar
  • 1
0 votes
0 answers
12 views

How to avoid double add to cart AJAX Add to card Woocommerce?

I have a code which lets me add to card with products AJAX on single product. The problem is that the action "add-to-card" is triggered twice and I get two notifications, two products get ...
Dariusz's user avatar
0 votes
0 answers
6 views

get available brand attribute in woo commerce shop page, category page

I used below code to display the brands in shop page, product category page's sidebar. function custom_register_brand_taxonomy() { $args = array( 'hierarchical' => true, 'label' ...
Shankar S Bavan's user avatar
0 votes
0 answers
19 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
7 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
43 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
7 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
9 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
6 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
13 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
17 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
58 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
14 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
50 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
  • 66
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
10 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
22 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
12 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
22 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
4 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
30 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
12 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
39 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
9 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
28 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
24 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
38 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
17 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
18 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
18 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
33 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
20 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
220 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
34 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

1
2 3 4 5
79