Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [woocommerce]

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

0
votes
1answer
23 views

Woocomerce add info after order email prouct item

I'm trying to add some labels after woocommrce order email items. Example: We can do that on cart by using this filter. add_filter( 'woocommerce_cart_item_name', array( $this, '...
0
votes
1answer
18 views

Tracking sales/conversions in Woocommerce using Google Analytics

I need to be able to track conversions/orders in Woocommerce and have tried every free plugin available and none have worked or seem to be able to track sales correctly. Has anyone found a free ...
0
votes
1answer
143 views

WooCommerce - Trigger Checkout Form Validation

I have been looking around for the answer but did not find any. I am creating an iframe payment gateway while the iframe is loaded inside the checkout page. My goal is once the customer clicks on a ...
0
votes
0answers
50 views

Add Product Subtitle to Woocommerce Product Page

Wordpress 5.0.1. Woocommerce 3.5.2 I am building a Wordpress/Woocommerce based Shop page and want to change the standard woocommerce theme logic especially on the Product Page: More specifically I ...
0
votes
0answers
17 views

woocommerce - using product posttype as a product category and pulling product info in with API

Hired to implement a B2B store with wordpress & woocommerce. I am asked to bend woocommerce into what the owner wants. Iwould like to know if this plan is obtainable with woocommerce. 1) The ...
0
votes
0answers
15 views

How Can I display Specific User Pages?

I have a WooCommerce website and it provides some sort of Services. Let's say I sell Custom Videos (Example) and A user buys 10 videos from me. Now I can host it somewhere else (the file link) but I ...
0
votes
0answers
18 views

WooCommerce one time checkout pop up

please help me out fixing this.. I want a BUY NOW button next to ADD TO CART, and when the buy now button is clicked, a pop up showing the product price, and a form to be completed by the user will ...
0
votes
0answers
37 views

Need to refresh page to update Woocommerce cart

I moved the functionality from the Woocommerce cart into a different module, and it works properly, however every time I add a product fee I need to refresh the page for it to take effect. I tried ...
0
votes
0answers
18 views

How to create custom file upload in woocomerce admin panel

to create custom file upload in woocomerce admin panel i am using below code file input is dosplayed but file is not uploaded function PDF_field() { $args = array( 'id' => 'PDF_field', 'label' ...
0
votes
1answer
20 views

How to output woocommerce products to a page, style and modify the html structure

I am a complete noob when it comes to woocommerce so bear with me. I have added 6 products into woo. I have a cart and a checkout page that are using shortcodes to output the php/html to those ...
0
votes
1answer
29 views

WooCommerce how to checkout a product without adding it to the cart

I am trying to implement this in my website: Having a second button on a single product next to the"Add to cart" button, let that button be "Buy now". When the add to cart button is clicked, the ...
0
votes
0answers
73 views

Woocommerce recently viewed products and page caching

I am currently using Hummingbird to cache my pages and I also use the Woocommerce recently viewed products widget. I am currently having to exclude my homepage from caching as when caching is active, ...
1
vote
1answer
22 views

Which naming convention is latest in WooCommerce? [closed]

I'm creating a Woocommerce theme and the classname naming in WooCommerce make me confused. for example: <div class="woocommerce-message woocommerce-message--info woocommerce-Message woocommerce-...
0
votes
0answers
59 views

How to add a special Woocommerce “Buy Now” button?

I wish to add a "Buy now" button on product page, and redirect to checkout page after clicking it but without adding the product into the cart. For example, if there are already products 1 and 2 in ...
0
votes
0answers
4 views

How to link to page with matching posts/products

I feel like I must be really stupid because I've spent so many hours trying to work this out and have got nowhere. I've been working on a plugin which mainly uses AJAX and WooCommerce REST API to ...
2
votes
1answer
39 views

Wordpress codex: apply_filters - clarification on creating a new hook on the fly. How do we use it?

I have read the WordPress Codex on add_filter and apply_filter countless times, but it wasn't until reading woocommerce source code today that something clicked in the way that maybe I don't ...
0
votes
0answers
17 views

Woocommerce change send another email if order total is 0

I want to create a custom email if order total is equal to 0.0. How do I check this condition and prevent to send the default email? I was trying to play around with ...
0
votes
1answer
29 views

Duplicate shipping method logic to another shipping method [closed]

I have a plugin that adds additional shipping method with some intricate logic to it that adds specific checkout fields with API-generated values etc. The thing is that I need variation of this ...
0
votes
0answers
20 views

Product permalink not updating

I want to select default product permalink but not update. After update the setting the product permalink save as custom base. Any one can help me Please...
0
votes
0answers
35 views

Remove product category placeholder image (Woocomerce)

I'm trying to get rid of placeholder product category images on the shop page. Right now I'm using this code to add a .no-image class to products that don't have an image so I can style them ...
0
votes
0answers
66 views

woocommerce wc_get_product is not fetching all the product of particular category

I have created dummy product data with fakerpress and many products were created with "future" status, so I updated the post status to "publish". I wanted to retrieve all the product of selected ...
0
votes
0answers
81 views

Woocommerce html emails are just broken - it automatically adds many “=” characters spread randomly within the code

after many hours of trying to fix this mysterious issue I decided to reach out for help. Thanks to everyone willing to aid me. When I send HTML emails from Woocommerce, those emails are received ...
0
votes
0answers
23 views

Deep level variables woocommerce on add to cart page

Please advise a way or a plugin or a method to assist with building the structure below. I would like an attribute nested within another attribute nested within another attribute for a specific ...
0
votes
1answer
95 views

Add custom attribute to product's HTML to woocommerce cart page

I'm trying to add a data-attribute to WooCommerce's cart page. The cart page populates a table with each row being a product that has been added to the cart. I'm able to add a data attribute into ...
0
votes
0answers
82 views

Change WooCommerce template for PDF - access to custom field

I want to do some modifications to a template of WooCommerce, but I'm rather ZERO in PHP, so that is why I'm asking some guidance so I could perform my small modifications, which I'm sure are not too ...
0
votes
0answers
13 views

Is it possible to have multiple product_tag in a WordPress URL?

I'm trying to create a custom link that combines two product-tags for filtering products that have the product-tag man AND brandname. I'd like to put in the same link the following two example links: ...
0
votes
0answers
92 views

woocommerce axios react

I don't understand why my request to WooCommerce API doesn't work. My usage on react App via axios: First try: return axios.get( 'http://domain/wp-json/wc/v3/products?featured=true', { ...
0
votes
0answers
15 views

Add extra products on add-to-cart action

I'm having some trouble adding extra products on add to cart button is executed. Basically, the user gets a few extra products in the product to choose from, My problem is that the user can still ...
0
votes
0answers
15 views

Comment review not mandatory

I have a star rating system in my web, and I need comments to not be mandatory so that customers can review only using the stars. How can I do that? Thanks!
0
votes
2answers
53 views

How to show Custom Field Value in Woocommerce Shop Page

remove_action('woocommerce_shop_loop_item_title','woocommerce_template_loop_product_title',10); add_action('woocommerce_shop_loop_item_title','fun',10); function fun() { echo 'custom_field_value'; } ...
0
votes
0answers
9 views

WooCommerce: How can I select the catalog_visibility for a product?

I know, as simple as it sounds but I don't get it running: How can I select the product visibility for a product by his id via SQL? This is what I have: global $wpdb; $result = $wpdb->get_col( "...
0
votes
0answers
31 views

Sometimes I am still getting 404 error if I call add_rewrite_endpoint & flush_rewrite_rules on activation / deactivation hook

I need to add a custom tab to my woocommerce my account page, so I followed this article: https://github.com/woocommerce/woocommerce/wiki/Customising-account-page-tabs#creating-new-endpoints /** * ...
1
vote
1answer
15 views

Automatically Update Woocommerce Prices [closed]

I am running on WordPress v4.9.8 using WooCommerce v3.4.2. Recently I've made an Excel spreadsheet which collects competitor's prices for multiple products via query. My target is to follow these ...
0
votes
0answers
21 views

Wordpress wp_set_object_terms() not working fully with WooCommerce

My custom taxonomy (WooCommerce attribute) already exists and I am using the following to add a new term to the taxonomy and associate it with my WooCommerce product: wp_set_object_terms($product_id, ...
1
vote
1answer
80 views

Getting categories id for all products in cart

What I'm trying to do is to take the categories for products which are in the cart. Then check via some conditions what category id is and show different notice. So far I have this /** * Cart ...
0
votes
0answers
13 views

woocommerce - how to add custom field in one page checkout?

I can add custom fields to normal checkout pages of WooCommerce. But our company decided to try Woocommerce One Page Checkout. I wanted to collect additional information by using <input> text or ...
1
vote
0answers
16 views

Send billing info from woocommerce checkout page to paypal checkout form

I have a theme using Woocommerce and PayPal Checkout. The checkout page in my theme has a form to input Billing Address info. My only method of payment is via PayPal Checkout. If a user starts the ...
0
votes
0answers
34 views

Adding additional information to Admin Order Preview

Looking at adding the actual shipping costs of an order to the order preview pop-up. I think we have to use add_action with woocommerce_admin_order_preview_end and maybe even using add_filter to ...
0
votes
0answers
33 views

Woocommerce shows product images in the wrong size

All products in my website have 200x200 featured images. But in catalog images are shown in 750x750 (sooo blurry) instead of 200x200. Source code of catalog page: <img width="200" height="200" src=...
0
votes
0answers
19 views

Woocommerce grouped products, group all the products of a category at the same time

I have a grouped product called Pizzas, and I need to link more than 30 ingredients to this product "Simple products", Woocommerce currently has that option available, one adds three letters in the ...
0
votes
0answers
8 views

promote woocommerce items on another wordpress site

I have multiple related wordpress sites. one of them has woocommerce. is there a way to promote some of those products (maybe identified by category or new or something like that) on one of my non-...
0
votes
1answer
6 views

I want to use a product thumbnail completely different than the product image

I want to use a product thumbnail completely different than the product image. I've tried to search on google but all solutions lead to just customization of thumbnail sizes.
1
vote
0answers
9 views

How to search Woo Commerce products with punctuation in title?

How do I modify the default WooCommerce Product search so that products with punctuation in the title can be found without including the punctuation in the query? For example, if I have a product ...
2
votes
0answers
127 views

Override woocommerce wc-class function

I'm not good in WP and plugins and will need some help here. I've read that is possible to alter some WC core function with filters and action but probably I didn't understand this correctly. I want ...
0
votes
0answers
33 views

Add Search Field Dropdown in Woocommerce Order Search

I am using the following code to limit the fields that woocommerce searches in when you search for an order: /** * Limit woocommerce order search fields. */ function ...
0
votes
0answers
45 views

WooCommerce get products based on the taxonomy

I need to modify the WooCommerce product query because I want to filter the shown products on the shop pages based on the taxonomies for each product. So what I've tried is this here: add_filter( '...
0
votes
0answers
14 views

Add Prefix to Auto Generated Username

Is it possible to add a prefix to the auto generated username in WooComerce at checkout? Thank you
0
votes
0answers
23 views

Woocommerce import products with serialized data

I am creating a Woocommerce shop that makes use of the official Measurement Price Calculator. This plugin seems to store its data serialized in the database as when I export a spreadsheet of products ...
-1
votes
2answers
32 views

WooCommerce - item added to order not actually saved? [closed]

I'm trying to make a plugin that merges two carts into one. I am doing the following: $old_order = wc_get_order($old_order_id); duplicate_line_items($new_order, $old_order); //re-fetch order to ...
0
votes
1answer
6 views

Disable theme WooCommerce template [closed]

Just purchased a premium WooCommerce-read theme. Unfortunately, this theme comes with a /woocommerce folder. How can I disable this templates,without deleting whole folder?