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

Securing custom rest API endpoints with public access from PWA

I'am trying to implement a headless woocommerce based PWA on ionic angular stack. I'am now accessing the woocommerce rest endpoints by using client id and secret. To make it more secure iam writing ...
0
votes
0answers
11 views

how to add share buttons below any image inside the post?

I have a function of sharing buttons which i have added in function.php of my theme using filter hook,Now I want to hook same function below the image of my post(not featur image),which filter hook ...
0
votes
0answers
10 views

Shop Category Pages missing <h1>s

My website is using Future Life theme and Woo Commerce. On the shop product category pages, it doesn't display the category name and there are no <h1>'s ../nothing to make a <h1>. Does ...
0
votes
1answer
28 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
1answer
27 views

How do I add filter with woocommerce categories?

I have created a loop that displays products, however I have ran into a problem when trying to filter them. I have added in tax_query because that is how to filter the search with taxonomies(based on ...
0
votes
0answers
5 views

Restrict access to product details view

I have woocommerce products -books for children and i need when payment done - display this book in my account and restrict access - full - audio, video, text, if payment not passed - access closed. ...
0
votes
0answers
22 views

How to override product short description category wise

I want to display a specific product short description per category: if any product\s belong to category X then display in the product short description XX if any product\s belong to category Y then ...
0
votes
1answer
15 views

How do I make my terms for each product display via foreach loop? (woocommerce)

This is my current loop to display my products via woocommerce. When I do print_r($category_array); It returns the array, but when I try to use a function to call it so I can do what I want to with ...
0
votes
1answer
12 views

show wc_add notices on particular page in woo commerce custom plugin development

I am new WordPress plugin development. I am working on a plugin where I create a custom cart page like the woo commerce cart. And I add wc add notice when an item removes from the cart page it shows a ...
0
votes
0answers
19 views

Add session data using add_filter()

I'm a little new to this and learning still. I have several forms that collect data from a user. This data must then be displayed in an extra field on the shipping page of Woocommerce. I use ...
1
vote
0answers
31 views

How to incluide custom field in WooCommerce email using placeholder

I want to use the custom fields that I can create into the order post in WooCommerce but using placeholders. As you know, into the email settings of WooCommerce, where you can edit the email body, it ...
0
votes
0answers
25 views

Change / Alter Product Category Link with Page Link

I'm using this snippet to alter a specific Category link with Page Link and its working well : function wpa_alter_cat_links( $termlink, $term, $taxonomy ) { if( 'category' == $taxonomy && ...
0
votes
1answer
41 views

Display WooCommerce product attribute on shop page

I am trying to show the attribute of Applications with the word Applications in front of the items that it echos. The code is working for me to echo the items out but I need it so that it only shows ...
0
votes
0answers
34 views

How to export only custom taxonomies for each post in CSV/JSON format?

I have one wordpress website running with 100+ products (woocommerce) and i had to export & import the products into another wordpress website. However, products have custom taxonomies that were ...
1
vote
2answers
67 views

'profile_update' hook alternative for WooCommerce user meta data

I am trying to get all user details (including WooCommerce meta data) in a function that is called with user_register and profile_update hooks. This is the simplified code: function get_all_user_data($...
0
votes
1answer
20 views

Why is my WordPress login credentials missing, but work with WooCommerce?

I have a constant issue where my login credentials are not found when trying to enter WordPress.org. Password reset option is not possible as my username and email address is not found. Yet, I am ...
0
votes
1answer
26 views

Changing wordpress/woocommerce notices default message to other languages (text)

Hi I'm kind of new to WordPress and right now I'm changing the notice message with filters and overwriting them inside functions.php. like this: add_filter('woocommerce_lost_password_message', ...
1
vote
0answers
20 views

invalid menu item when upgrading to WordPress 5.5

I have a site with WooCommerce, Storefront and a child theme. When I upgraded the site to WordPress 5.5.1 a page menu item called "Product Categories" says it is invalid. I am uncertain what ...
1
vote
1answer
45 views

WooCommerce Product Page css

I'm new to Wordpress/WooCommerce and I'm trying to do something I thought would have been simple. The very basic WooCommerce Single Product page has the Product Attributes, they all appear under one ...
0
votes
0answers
20 views

Set form field cookie and submit to checkout field - Not storing cookie

I'm having difficulty with the following code in that I'm adding it to code snippet plugin but I am unable to see the cookie being set in the developer tools after the form has been submitted. My ...
0
votes
0answers
13 views

Enter product size/weight by cubic volume (m3)

I am creating an online store where all of my products will be shipped on pallets. The cubic volume of the product will define how many pallets each order will be shipped out on. I don’t have the ...
0
votes
1answer
24 views

How to retrieve a Menu Name by Menu Location with ACF fields

What WordPress function can be used to retrieve a Menu Name using the Menu Location as parameter?
0
votes
0answers
14 views

woocommerce order-tracking page-There has been a critical error on your website

Only load WooCommerce scripts on shop pages and checkout + cart + order-tracking javascript woocommerce order-tracking page-There has been a critical error on your website. add_action( '...
0
votes
0answers
28 views

Extending woocommerce admin product search with custom fields

I have added several custom fields to my Woocommerce products using ACF Pro. I need to be able to search for custom fields values while using search box in the backend Products list page. Any help on ...
0
votes
0answers
8 views

Product categories in url

I have following product categories in my app. Women -> Outerwear When I go to outwear category. Current URL is following foo.com/outerwear But I want to: foo.com/women/outwear how can I do it? ...
0
votes
0answers
15 views

How to Autocomplete addresses for WooCommerce

Google Address Autocomplete For WooCommerce empowers the users to experience in autofill billing and / or shipping address fields. It is easy and fast, helping to get results for a specific country; ...
1
vote
0answers
16 views

How can I apply_filters from inside a function?

I have this function in theme-child/functions.php that shows a different total value in cart depending on the category of the chosen product: add_filter( 'woocommerce_calculated_total', '...
0
votes
0answers
9 views

WooCommerce Checkout Fields

I'm trying to remove the shipping-country field. This is the code.. add_filter( 'woocommerce_default_address_fields' , 'custom_override_checkout_fields' ); function custom_override_checkout_fields( $...
0
votes
0answers
31 views

Change woocommerce order status by database change

I have a dropshipping client who uses Delphi in his company. He connected his system to my wordpress database and can read and write it. The WordPress site runs on a windows server. How can I make ...
0
votes
1answer
67 views

WooCommerce display price before add to cart [closed]

I'm trying to make the WooCommerce product price display before the "add to cart" button, however, I cant seem to get the price to display. Here is the code I'm using in my functions.php ...
0
votes
0answers
26 views

How can i insert the data of the subscription renewal order using “woocommerce_subscription_renewal_payment_complete” hook

I have a custom table in my DB and I need to insert the product_id, user_id & order information to that table on the time of subscription renewal payment using the hook "...
0
votes
0answers
10 views

How to remove Calendar on Woocommerce Category Pages

I'm using Woocommerce. On my Category pages, there is a calendar. How do I remove it? Of note is that as a Category, it is not a page I can edit directly using Elementor. when I go to the admin ...
0
votes
0answers
10 views

Cost efficient way of pre-loading cache on server

So I've been struggling with my woocommerce site and its loading time since it has a lot of content the loading time is very slow for anyone to be interested in waiting for it to load. I was told that ...
0
votes
2answers
68 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 ...
0
votes
0answers
17 views

Creating custom Woocommerce attributes

I am trying to create custom Woocommerce attributes. I already read a lot of answers everywhere, and my code is support to work, but not What I understand is if I want to create a new attribute, first ...
0
votes
1answer
114 views

WooCommerce is_product_category() not working

I'm trying to add text to the product short description by category. So for example, for all Cake Toppers, I want to add to the bottom of the short description to show "This is a cake topper"...
0
votes
0answers
11 views

Manual rate for custom currency

I have code custom currency for woocommerce but how to execute code for manualy rate price compare to usd for the new custom currency. For example I insert my product price with usd, then the product ...
0
votes
1answer
25 views

Add two custom product type

Hello i'm trying to add two custom product types, if i only add one everything works fine but when i add the other custom i get a crtic error, what im doing worng, this is the code that im using ...
0
votes
1answer
12 views

How to get product category ID based on post?

I want to show certain images on product pages based on the category ID. How can I achieve it on the product page?
0
votes
1answer
33 views

Woocommerce Product page add on checkbox and price

There is a website where we use WooCommerce infrastructure. I have products for which I use variations, and I want to make variations like the sample site below. When the customer selects the x option ...
0
votes
0answers
13 views

Replace woocommerce single product featured image with a file

I have a file like this: https://www.overnightmountings.com/gemfind/library/Images_And_Videos/85159/85159.video.white.mp4 I want to replace woocommerce single-product page featured-image with a file ...
0
votes
0answers
5 views

I need to import my table's data into woocommerce product table data so I can sell them [duplicate]

I am making a multivendor plugin and for this, I am using a simple custom database table to store user's product information so they can sell. Now I need to know how to import my custom data tables ...
0
votes
1answer
35 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
0answers
20 views

Share User data and account login across subdomains

Lets say I have a domain: domain.com and 2 subdomains: sub1.domain.com and sub2.domain.com sub1.domain.com is a woocomerce site. and sub2.domain.com is a blog site. How do I manage all users for all ...
0
votes
1answer
50 views

How can I find related learndash course id from woocommerce product object?

I have woocommerce integrated with LearnDash. Now I am trying to get the selected course (related course) from the woocommerce product object or any other way (by woocommerce product id). There must ...
0
votes
0answers
10 views

Show notice to user based on User Meta

I need to show a site notice / elementor pop up (ideally render a shortcode) to specific users based on what User Meta they have. To be more specific, the user needs to activate their account (link ...
1
vote
0answers
21 views

Get and insert order email address to the PHP template inside HTML text

I broke my head trying to solve the following case. I have a WooCommerce admin-new-order.php PHP template I want to customize. All I want is to add the order email address to the top of the email body ...
0
votes
0answers
95 views

WooCommerce undefined variable “notices” for AJAX Add to Cart button

I'm currently developing a website with WooCommerce. I'm using AJAX for the "Add to cart" button on the Product page. In debug mode I have this message when a user add a product to his cart: ...
0
votes
0answers
15 views

WooCommerce Programmatically reset customer password

I'm building a mobile app and need a way to reset the user password through the REST API and I found a hook call woocommerce_customer_reset_password but not working for me it doesn't send the reset ...
0
votes
1answer
34 views

Set dynamic Options array in woocommerce_form_field

So I have the following code: /** Add custom fields to user / checkout - Date + Venue */ add_action( 'woocommerce_after_order_notes', 'my_custom_checkout_field' ); function ...

1
3 4
5
6 7
82