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

WooCommerce change only price of variation instead of whole product

In WooCommerce I currently have one item I wanted to have listed with the lowest price and a suffix. For this I am using the following code. function cw_change_product_html( $price_html, $product ) { ...
0
votes
0answers
9 views

Custom category taxonomy links for woo-commerce products

I am needing my woocommerce meta/taxonomy links to output in a specific way, the following code is pretty much the closest I have found/gotten: $taxonomyName = "product_cat"; $parent_terms = ...
0
votes
0answers
11 views

How to make WooCommerce multiple filter with custom meta fields

I'm trying to create a big filter for shop page and can't find anything about this. I created some meta fields for product data inside general by hooking inside ...
0
votes
0answers
6 views

Why does array intersect does not want to accept incremented variable?

I have few arrays, that I want to compare. Each of these arrays has common element, that function has to return as another array. The problem is, that current function works, but still throws an ...
0
votes
1answer
19 views

Woocommerce List categories with Image thumbnail

I installed WooCommerce 4 and I am trying to list out all the categories with thumbnails. Can I achieve it by a plugin or widget? Or I have to write the codes by myself? The thing I want to achieve ...
0
votes
0answers
9 views

Update WooCommerce Product's Price From Remote Programatically

Is That Possible to Update Product Price And In-Stock Status In WooCommerce DataBase Programatically? We Need To Read This Info(Price,...) From A Remote DataBase And Insert Into WooCommerce DataBase. ...
0
votes
0answers
11 views

woocommerce payment gateway callback not firing

I am struggling making a woocommerce gateway for cofidis. This institution needs that I post via form a set of variables and after confirmation is made, it sends back, via get a set of variables ...
0
votes
1answer
6 views

Redirect user to cart page when add to cart button is clicked

I am working on WooCommerce. When the user fills the detail and clicks on add to cart button, a user does not redirect to the cart button. A notification shows at the bottom “[NAME OF THE PRODUCT] has ...
0
votes
0answers
27 views

WooCommerce REST API Capability

I have a main site with WooCommerce on it. I have a custom plugin (Remote Sites) that I want to have people register and purchase free product (No credit card) on. Is this possible via WooCommerce ...
0
votes
0answers
6 views

Swap WooCommerce product catalog ordering dropdown with buttons?

I'd like to swap the standard WooCommerce dropdown for ordering the product catalogue using buttons, yet no Google search for an easy method of doing this (or a plugin) has been fruitful. I'm using a ...
1
vote
1answer
17 views

Hide account tab to certain users

Hi there i was wondering if it was possible to hide the "Wholesale Ordering Form" to users who are not logged in as Wholesaler, we have made it so other user roles cannot access this section but ...
0
votes
0answers
21 views

One WooCommerce Store to multi distributor sites

I have two Stores on WooCommerce, Store A and Store B. I want to fetch products and categories to store B from store A so that store B is a sub store of store A, I cannot use MultiSite because store ...
0
votes
0answers
4 views

Woocommerce shipping options not changing checkout total

I am working with woocommerce at the moment, I have created a child theme off of storefront, and I notice that when I change the shipping option to once that has a price the total order price does not ...
-1
votes
0answers
5 views

change product featured image programatically

Hi i want chage the product featured image through api call. after calling API i get the URL and I want to set the URL as featured image .. I am using that function.. add_filter('post_thumbnail_html',...
0
votes
0answers
18 views

Output custom woocommerce category and tag links

Im trying to output woo commerce categories and tags in a kind of specific way, I want to essentially create a list of child categories and tags in a similar style to how woocommerce does ...
0
votes
0answers
13 views

different product choices inside each slide

I'm tryin to figure out what could be the best way to obtain this result: https://www.vistaprint.it/mascherine/ A slider, where every slide has a different series of woocommerce products The "...
0
votes
0answers
13 views

Don't want to charge payment for backorders in woocommerce

I have allowed backorders on some of my products. What I want is, that the customer is not charged for backorders and it is placed in pending or on hold until I confirm it manually, and then payment ...
0
votes
0answers
9 views

Allow user / attendee to change their chosen event on website themselves using The Event Calendar

My client wants to let his users change which event they'll attend, and pay a small fee. For example, they go to the website and click on 'Reschedule.' They fill in their email and see a list of the ...
0
votes
0answers
6 views

woocommerce checkout Getting Gateway timeout issue, Order placed, user created but never got the success message

On the checkout page when I click on pay button loader keeps on loading for approx 5-6min. and after that, I got a message Gateway timeout. In the meantime, the user is created, the order is created ...
0
votes
0answers
4 views

Custom mega menu with Woocommerce product category

I have a category named "Grocery" in menu. In Mega menu I would like to display its 2nd and 3rd level categories. By using the following code I was able to display its 2nd level categories but kindly ...
0
votes
0answers
5 views

Woocommerce display different product per page only for a specific category

global $wp; add_filter( 'loop_shop_per_page', 'lw_loop_shop_per_page', 30 ); function lw_loop_shop_per_page( $products ) { if ( $wp->query_vars == /category-url/) { $products = 30; return ...
0
votes
1answer
10 views

How to show notice alert only on product dashboard page?

I want to remind to my plugin users that the plugin is enabled but only on product page (dashboard), i've came across the $pagenow global variable: global $pagenow; $pagenow != 'post.php'; // This ...
0
votes
1answer
4 views

Using zip code to display custom data in Admin Order Details

So I am just trying to display which area of the city a postal/zip code is located in for each order. I have managed to pull all the correct data and thought I add it sorted out until I realized the ...
0
votes
0answers
8 views

Pass Category Name, Description and Photo into variables to pass to jQuery

Currently I'm trying to get the category description by ID so that I can use it in jQuery. I'm finding jQuery will only let me use echo $variablename and not the usual echo that can display the ...
0
votes
1answer
14 views

How to add (and change the font of) the short product description to order page and customer's new order e-mail [closed]

I'd like to add the short product description to the e-mail that is sent to the customer when a new order is confirmed. I've added the following via a code snippets plug-in: add_filter( '...
0
votes
0answers
5 views

Category list popup

I have my products categorized by the name of the cities. I want to show a popup to select the city i.e category when someone visits my shop page. Kindly Help
0
votes
0answers
15 views

What is the best way to add large JSON to cart item / order?

I have a pretty large (up to 3000 key, value pairs) javascript object generated on the product page and I somehow have to add it to the cart item data (or any other way to make it accessible for every ...
0
votes
0answers
16 views

Woocommerce Rest API: woocommerce_product_invalid_image_id

Woocommerce version: 4.1.0 I am trying to create a product with categories and images via the API but I get this error : {"code":"woocommerce_product_invalid_image_id","message":"#0 is an invalid ...
0
votes
1answer
20 views

How to create a plugin with automatic update?

I'm developing a plugin and would like to know how do I send automatic updates to it? Do I have to use webhooks for this? The plugin will be for private use, it will scan the website to remove ...
0
votes
0answers
37 views

How to restrict access to wordpress upload by specific user

I've added this to the downloads.php in woocommerce my account: <?php $current_user = wp_get_current_user(); $file_for_client = get_field('upload1232423', $current_user); if( $file_for_client ) :...
0
votes
0answers
6 views

display all product categories in an existing menu item

Is there a way to place all the product categories in an existing menu item by using this snippet ? Create a Custom menu item fetched by Product Categories and Sub Categories The idea is, I have a ...
0
votes
0answers
13 views

Including products in matching categories in search results

Is there a way of including products from matching categories in search results without using a heavyweight plugin ? This seems so simple and I'm not getting very far! I'm trying to alter the way ...
0
votes
0answers
12 views

Bulk discount on product with id

I am trying to program a bulk discount in my Woocommerce. For now I have this <?php add_action( 'woocommerce_before_calculate_totals', 'jop_bulkdiscount_on_ids', 9999 ); function ...
0
votes
0answers
50 views

WooCommerce - Creating Products with Multiple Attributes, but selecting them 1 at a time

I am trying to create a product with multiple "Add to Cart" buttons. Each button would add to the cart a quantity for a variation of the product. For example, our shop will be selling masks. The ...
0
votes
0answers
3 views

How to add a slide toggle to the Woocommerce-Layout__Activity-Panel area in the orders admin page

Similar Post, different hook: Woocommerce add custom button to backend order table I'm wanting to add a slider up the top of the Orders page in Woocommerce Admin. Here's a picture: Where do I find ...
0
votes
0answers
14 views

Update Woocommerce shipping cost when ajax request is made

I have google autocomplete api on my address field in checkout page and embeded map with polygons as delivery zones. Each zone has it's own delivery cost which also depends on order's total cost. When ...
0
votes
0answers
7 views

Woocommerce duplicate images on images rearrange via api

When images in product gallery are rearranged via the API in Woocommerce then duplicate images are created with the new order. The old ones are left there unattached and the Media folder gets bigger ...
0
votes
0answers
14 views

How to add product thumbnail on orders list on backend?

I added product thumbail on cart with this function getCartItemThumbnail( $img, $cart_item ) { if ( isset( $cart_item['image'] ) ) { return '<img src="' . $cart_item['image'] . '" /&...
-1
votes
0answers
8 views

Jquery not working in code, but working in console cart page pop up

Jquery not working in woocommerce cart page. I have made the pop up product on cart page and displayed some products. Now selecting the quantity but it's not working. But when i am running the jquery ...
0
votes
0answers
15 views

Woocommerce API REST search by multiple keywords

0 I am working on a page for search Woocommerce products with the REST API. But I have a question about how I can search on keywords. Product 1: Milkshake vanille / apple Product 2: Milkshake If I ...
0
votes
0answers
8 views

Woocommerce new order notofication on Admin Panel

The description of woocomerce says that by default a notification about a new order goes to the admin panel, it is, but notifications appear only after a reboot, is it possible to make a notification ...
0
votes
0answers
5 views

How to add Inquiry button only in one WC Product

I want to add an inquiry button only for one WC product but here add that in all products. Someone can help with this? add_action( 'woocommerce_single_product_summary', 'inquiry_button', 30 ); ...
0
votes
0answers
11 views

How to hide shipping zones for a certain category in WooCommerce?

Essentially I'm trying to hide some shipping zones for a certain category Any help will be greatly appreciated. Maybe Helpful- I used this code to Hide other shipping methods if the free shipping is ...
0
votes
0answers
6 views

How can I display Variation Swatch Name on top of each Swatch for Woocommerce ,instead of showing on tooltip

I wanted to add Variation Swatch Name on Top of each Swatch instead of showing inside tooltip. Please can anyone help
1
vote
0answers
13 views

Viewing checkout page removes fees from mini cart

I customized the mini cart to show a breakdown of fees (discounts) to the customer. This works however if you visit the checkout page, which also uses ajax to load cart totals, when its done loading, ...
0
votes
0answers
22 views

WooCommerce Change Catalog Product Title Link to External Product

I'm trying to figure out how do I change the product title link to link the external/affiliate product. Right now I have set up a code that works but only changes the thumbnail link to the external/...
-1
votes
0answers
17 views

WooCommerce rest api hook for variation product to show min/max price

Description Woocommerce rest api return price 0 in variable products if the ‘Default Form Values’ not set in product settings Expected behavior Get the min or max price even if the Default Form ...
0
votes
2answers
108 views

Woocommerce Multisite global search how to mod ajax function?

I created an installation of my multisite ecommerce to differentiate the men's and women's departments. Often, however, it happens that in the men's department they do research related to women's ...
0
votes
2answers
19 views

Add_rewrite_endpoint doesn't work with post name permalink structure

I am adding a "Conversations" endpoint so that it appears in my account in woocommerce add_action( 'init', array($this, 'custom_endpoints') ); function custom_endpoints() { add_rewrite_endpoint( '...
-1
votes
0answers
9 views

Order Calendar for WooCommerce not working

I've installed Order Calendar for WooCommerce plugin in my wordpress site. put shortcode [order_calendar] in my test page. but no calendar shows in frontend. here is my test page. Thanks for your ...

1 2
3
4 5
74