Questions tagged [woocommerce]

OFF TOPIC. Questions *specific* for this e-commerce plugin have their own forum at https://wordpress.org/support/plugin/woocommerce.

Filter by
Sorted by
Tagged with
0
votes
0answers
17 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
0answers
10 views

WooCommerce custom role not working

I am trying to add WooCommerce product adding/editing capabilities to the Yoast SEO Manager role, however all it does is add the WooCommerce menu icon to that user role, and not the products tab, so ...
0
votes
0answers
13 views

How To Add Banner Ads Between Posts With Wordpress/Kadence/Ads Inserter

I have a website that currently inserts banner ads on the front of my woocommerce website after the 6th product (between rows 2 and 3) and after the 12th product (between rows 4 and 5). This location ...
0
votes
1answer
10 views

edit URL of search result

i have wordpress website with sailent theme i have default search in header the result of search is http://www.example.com/?s=colagen while "colagen" is the key that type it in search but ...
0
votes
0answers
10 views

woocommerce_after_calculate_totals not working to update cart item price

what I am trying to achive is if user adds a particual product in cart its price should change to zero Here is the simple code snippet which I am using to update cart item price but add_action('...
0
votes
0answers
9 views

Saving woocommerce_custom_product_text_field to DB

I found and customized function to make a custom order of products on FE by using custom meta. We have one problem. We can see default data in BE of every product but it becomes visible on FE only ...
1
vote
1answer
31 views

Woocommerce: How to remove page title from storefront theme homepage

I have been searching online for this and everywhere I go it says to put the following into your functions.php function remove_title_from_home() { remove_action( 'storefront_homepage', '...
0
votes
1answer
11 views

WooCommerce Stripe Test mode

So I've been integrating WooCommerce with Stripe checkout and set everything up correctly, but when it comes to paying I get this response after hitting 'Place Order': No such customer: '...
0
votes
0answers
14 views

Woocommerce action scheduler events without wp-cron

Hey I just need to verify is their any possibility of adding woocommerce action scheduler events to be trigger from automate without using wp-cron? Is wp-cron to be execute is need active site? What ...
0
votes
0answers
12 views

Get WooCommerce product child categories from parent category

I am trying to display all child categories from the parent categorie. This is my code so far: function woocommerce_display_categories($atts, $content = null) { $prod_categories = get_terms( '...
0
votes
0answers
24 views

Woocommerce Costom Prices and Prices Discounts not working

In my woocommerce store the product's price depends on some conditions, for this reason I use this: add_filter('woocommerce_product_get_price', 'custom_price', 0, 2 ); add_filter('...
0
votes
0answers
9 views

How to Upload images to a custom folder in upload folder using media uploader

I’m creating a plugin for a customer that will add woocommerce products from images (images currently added via FTP) in a custom folder. The user also wants to be able to create a new folder each ...
-1
votes
0answers
88 views

(T_NS_SEPARATOR) fuction issue on my site [closed]

function wc_get_container() { \Psr\Container\ContainerInterface { return $GLOBALS['wc_container']; } I'm facing an error in this code but i don't know what is that
0
votes
0answers
6 views

How can I subtract Regular price cost price and show it in label or text field?

How can I subtract Regular price cost price and show it in the label or text field?
0
votes
0answers
13 views

removing description tabs - single product page - breaks footer

I would like to only dispaly the gallery & short despcription on the single product page. Using: add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 ); function ...
0
votes
0answers
10 views

wp&woocommerce img sizes clash in footer

I have two images in my footer.php, they are hard coded and shall stay that way: <img src="<?php bloginfo('template_directory')?>/img/logo.png" height="30"> is an ...
0
votes
0answers
12 views

Woocommerece subscription retry fail payment

I need help understanding. How i need to approach the payment retry process for fail payments. For the moment i will just using. add_action( 'woocommerce_scheduled_subscription_payment_'.$this->id, ...
0
votes
0answers
20 views

Duplicate the “Orders” list on Admin Page

Im trying to generate a duplicate page "edit.php" of the post_type "shop_order" beacuse i want the normal one from woocommerce and a custom one to add my code and columns. ...
0
votes
0answers
14 views

limit pending payment in WooCommerce

I want to limit pending payment in WooCommerce. If someone has for example 1000$ pending payment then he will have for example 24 hours to pay. otherwise, I want to restrict him to add a new product ...
0
votes
1answer
16 views

I'm getting error Ultimate WooCommerce Filters

I Get an error when I want to add color or size in this plugin Error Details An error of type E_ERROR was caused in line 18 of the file /home/scrubers/public_html/wp-content/plugins/color-filters/...
0
votes
0answers
20 views

Woocommerce Variation product added twice to cart

I added in my theme custom ajax function add to cart. Just same like instruction $product_id = apply_filters( 'woocommerce_add_to_cart_product_id', absint( ($_POST['variation_id']) ? $_POST['...
0
votes
0answers
12 views

Send Mail when coupon code is applied and order is successful

i tried with code below to send mail when coupon code is applied, though my requirement says when the order is successful and coupon code is applied it should send mail. add_action( '...
0
votes
1answer
16 views

Do not show sub categories in the loop on archive-product.php

Currently, the site I am working on uses archive-product.php to load the Woocommerce product loop and with it, load the content-product.php template part. However, in my loop, if there are ...
-1
votes
0answers
23 views

In my mobile view I want woocommerce My Account links to open in a new page

In the Image above, I have a wallet plugin (Terawallet). As it can be seen that on my account section the content appears at the end of the page for the clicked link(In this case wallet). How can I ...
0
votes
0answers
13 views

Woocommerce Search perform “like” query

I have a search box on woocommerce site and it seems to only find products if the searcher enters the keyword exactly so if they search for Kola bottles it will not find it as the title is "cola ...
0
votes
0answers
28 views

Woocommerce: add custom metadata to order item admin page

Please tell me! I added a checkbox to the line for order item in admin order page, that informs that the product was put in the order add_action('woocommerce_admin_order_item_headers', '...
0
votes
0answers
9 views

Dropdown for attribute

I have a product that only includes one attribute, so I can show it by default: add_action( 'woocommerce_before_add_to_cart_form', 'single_unique_variation_ui', 10 ); function ...
0
votes
1answer
17 views

when product out of stock single page show button notify woo-commerce

when product out of stock single page show notify woocommerce, i am doing this code but showing button only archive page, i want to show single page any one help for code https://imgur.com/dKmlKgM ...
0
votes
0answers
15 views

WooCommerce Variable Product Remove Add To Cart for specific variation

I'm trying to disable or replace the add to cart button for a single variation of a variable product. I sell audio beats and offer different license options for each single beat. The product is set up ...
0
votes
0answers
6 views

How to redirect a customer in to a specific page based on past selection

I have a multisite and I am running woocommerce in it.My primary site is a selection site where the user has to select his particular zone after clicking or choosing the button he will be redirected ...
0
votes
0answers
16 views

WooCommerce - Change variable product image when only one attribute is selected

I'm aware that Woo questions are supposed to be off-topic here, but I've asked this question to WooCommerce support and they suggested that the only way to achieve what we're after is with custom ...
0
votes
0answers
15 views

Woocommerce Billing Form not saving User Name or Phone Number?

I have a custom checkout that we've built as part of the theme for a site we are building. When the user presses update to update the shipping or billing address, it wont save the user's first and ...
0
votes
0answers
15 views

Google Analytics gtag code messes up woocommerce cart & login

I'm having this issue where this code provided by google analytics gtag, added with either wp_head() or wp_footer() or a GA plugin: <script async src="https://www.googletagmanager.com/gtag/js?...
0
votes
0answers
66 views

Woocommerce: Create dropdown field and filter items of it by categories in cart

I created a cutom field for the Woocommerce check out page with several items: add_filter( 'woocommerce_after_order_notes', 'haendler_location_checkout_field' ); function ...
0
votes
1answer
12 views

How to remove the Sub category product URL Woocommerce

Default URL http:// mystore.com/parent-category/child-category/product I want to remove anything between parent-category and product so my urls look like: http:// mystore.com/parent-category/product ...
0
votes
0answers
10 views

Custom order details text not displayed in Woocommerce App (works in browser)

My script is working fine on desktop (in browser), properly displaying text below shipping details. All green lights. The issue is when viewing orders from within the WooCommerce application - doesn't ...
0
votes
2answers
22 views

How can Get list of order id in woocommerce in frontend

I need to show all order from wp-admin into the frontend, I try but not work with me. Code is: global $woocommerce, $product; $args = array( 'post_type' => 'shop_order', '...
0
votes
0answers
8 views

Variation percentage price calculated on basic price Woocommerce

I am going to have a lot of products on my shop and each going to have multiple variations. I would like to make a solution which will calculate regular price for variation based on basic price. So ...
0
votes
0answers
12 views

How can I enable the search by product tags for woocommerce martfury premium theme's default search?

I am using WooCommerce Premium Theme for my Client to design and develop his site. My client wants to show the products on the theme's default search bar by typing in product tags too. So, how can I ...
0
votes
1answer
16 views

Woocommerce redirection product_name -> product_cat/product_name

First, the product url was /product_name. But the boss wished to change it to product_cat/product_name. Where product_cat is the primary category. So the plugin Premmerce has been installed and the ...
0
votes
0answers
13 views

change login url and redirect users to current page

If a user wants to submit a comment it redirects user to wp-login-url instead of my woocommerce shop login page. I found my first part answer in this question Change “logged in” link in (you must be ...
0
votes
3answers
63 views

How to give each category name its own ACF background color?

I'm building a webshop, and started to configure the product loop on the shop archive page. I display the product category related to every product, and I would like to set to the categories to have a ...
0
votes
0answers
7 views

is it possible to display specific sidebar menu for specific category pages

I want to display specific sidebar menu for specific category pages. like when an user click on different categories than sidebar menu display according to the click category of primary menu.
0
votes
1answer
16 views

Woocommerce product query not working in other WPML languages

I am trying to hide all Woocommerce products from a specific product category on the main shop archive page (products only visible when a customer goes to the specific category archive). The following ...
0
votes
0answers
23 views

change the url of search result

I want to change the URL of the search result. My search result is www.exemple.com/?s=col. The col is the text that types it in the search bar but the product layout result looks ugly. I want the ...
0
votes
0answers
15 views

Redirect based on Cookie leads to Error after WooCommerce payment

I want to make sure every user does only get access to my webshop after visiting the home page. Therefore, the home page sets a cookie setcookie('mycookie', $value, 0, "/", "mywebsite....
0
votes
0answers
9 views

No Results in WooCommerce Product Search

When I try to create a grouped product, I type the field which searches for products but I am getting no results even though I should. After looking at the request made from the API with this URL: ...
0
votes
0answers
8 views

Is it a good idea to host Gatsby generated static pages in a Wordpress sub folder to add a customize sign up process with Wordpress APIs?

I'm trying to build a very unique signing up process for a existing WooCommerce website, I built the theme for this website, and realized there are a lot of limits for the normal WooCommerce checkout. ...
1
vote
1answer
8 views

Javascript / Ajax Error After Migrating To New Domain Name

I have migrated a client's site from their old spammy domain to their new domain that better represents their business. However, since the move, there seems to be some kind of Javascript/Ajax issue. ...
1
vote
0answers
23 views

change wp_login url and redirect users at the same time

i use woodmart theme for my woocommerce shop. but in mag(weblog) page if a user want to submit a comment it redirects user to wp-login-url instead of woodmart login page. i found my first part answer ...

1 2
3
4 5
80