2022 Developer Survey is open! Take survey.

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
1 answer
17 views

Fatal error on wordpress order update [closed]

Since a while we're experiencing some trouble when updating orders on our wordpress environment. This is the error log from wp-cron.log PHP Fatal error: Uncaught Exception: Invalid order. in /home/...
user avatar
  • 111
0 votes
0 answers
6 views

how to add customer code to woocommerce emails? [closed]

I would like to add the customer code (ID) into WooCommerce emails ("new order" email template). Which PHP code snippet do I need to use? Many thanks! EDIT I recently found this topic: https:...
user avatar
  • 13
0 votes
0 answers
7 views

Dynamically added custom fields not displayed on WooCommerce email notifications

I have a different kind of scenario then the typical custom fields (I suppose). I am not getting custom values (fields) from user in the form rather I have an implementation which adds: ColorName ...
user avatar
0 votes
0 answers
10 views

Can't hide product attributes with css on WooCommerce Product Page

I'm having a problem in one site that I am making with wordpress/woocommerce, on product page I want to hide Size and Color from that section, unfortunately I did not succeed.
user avatar
0 votes
0 answers
10 views

Modify WooCommerce used to get all orders in dashboard

The existing WooCommerce orders table in the wp-admin dashboard orders the results by the date the order was made, but I want to modify the query to order by date and also by the shipping method of ...
user avatar
  • 101
0 votes
0 answers
15 views

Woocommerce - Add additional item if some item wants to be added to the cart?

Is there a way for me to force the user to select one from a variety of products into the cart when they try to add a specific item to the cart? So lets say I have a Product like a blank USB and the ...
user avatar
0 votes
1 answer
20 views

Hook "wp_trash_post" executing multiple time in case of bulk trash products

I am currently using hook wp_trash_post to trigger my custom API when a WooCommerce Product is trashed. This is working fine for the case of single trash. But, in case of Bulk trash this event is ...
user avatar
0 votes
1 answer
19 views

Updating product image

I have been having this problem recently, I want to update quite a few product images on my website with updated versions. I save the image with the exact same name and upload via FTP to my server, to ...
user avatar
  • 1
0 votes
0 answers
15 views

Store category and product category not related when I use plugin of dokan in wordpress [closed]

I noticed that on the Dokan plugin, the store categories and product categories are not related, in other words, if a seller chooses a store category for example Electronics; when adding products to ...
user avatar
0 votes
0 answers
11 views

Automated Cart Update With Alert Box Each Time

New To PHP and, I am currently attempting to create a plug in that creates an alert box every time the quantity in a cart is changed. So far I have successfully implemented updating the cart ...
user avatar
0 votes
1 answer
16 views

Add a class to WooCommerce error message with specific text [closed]

I want to add a class to the WooCommerce error message <li> element which contains specific text. The problem is that when the page loads, this element does not exist, since it only appears when ...
user avatar
  • 101
0 votes
1 answer
17 views

How to replace WooCommerce Product Gallery Trigger icon using PHP/CSS? [closed]

How can I modify the hook to change the glass icon to zoom? Or is there a way to do that via CSS avoiding replacing content via JS?
user avatar
0 votes
1 answer
25 views

Product count in archive page Title in WooCommerce [closed]

How to show in the archive page TITLE, the number of products, in WooCommerce? Thanks!
user avatar
  • 1
0 votes
0 answers
8 views

WooCommerce Subscriptions: Hide one variation subscription

Woocommerce subscriptions | All Products for WooCommerce Subscriptions Does anyone know if there's a way to disable the subscribe option for a specific product variation? i.e. product with 2x ...
user avatar
0 votes
0 answers
14 views

Contact form 7 send product PDF after submit

We are trying to display a cf7 form on woocommerce product pages, where users can submit the form and receive a pdf file related to the product (either as an email file attachment, as a link in the ...
user avatar
0 votes
0 answers
9 views

Output product category link from WP_Query

I have a WP_Query that outputs products from given Product category name. For each product list I would also like to link to the category of that product, but I'm not sure how. My query: <?php $...
user avatar
0 votes
0 answers
8 views

WooCommerce Email Customization - button at bottom of email [closed]

I know to get to the emails I need to go to wp-admin > WooCommerce > Settings > Emails but I can't seem to find where I can edit the button that says "Impressed by our service? Leave a ...
user avatar
0 votes
0 answers
9 views

Add sub variations in product page

Is there any way to add specific variations switches in woocommerce sites. Suppose I want to create a phone cover/case website. When user selects a design, it will ask for phone brand. Like iPhone, ...
user avatar
0 votes
0 answers
4 views

Split in 2 columns add to cart button and variable forms

I'm struggling to separate variation form from the add to cart button in 2 columns. Here is what I need: The data inside the squer comes from a third party plugin called "TM Extra Product ...
user avatar
0 votes
0 answers
16 views

How to make WooCommerce payment method field optional?

Here is my current code on a plugin. /** * Field Validation. */ public function payment_process() { if ( 'woo_bkash' !== $_POST['payment_method'] ) { return; ...
user avatar
0 votes
1 answer
42 views

How to Get Category Name When Export Products

I'm writing an export plugin for WooCommerce. I want to print the product categories and subcategories in separate columns while exporting the products in the plugin I developed. My code is as below. ...
user avatar
0 votes
0 answers
16 views

Broken link additional images after moving server

Recently we moved the website of our client to a new server, and in doing so the links to almost all the images were broken. I've been able to fix the majority of them, but somehow in the woocommerce, ...
user avatar
0 votes
0 answers
12 views

Change reminder email date to 14 days before

I want to send the reminder email for a booking (from the Woocommerce Booking plugin) 14 days before the activity instead of the default 1. I have found the following code online and added it to wp-...
user avatar
0 votes
0 answers
22 views

Woo commerce product quantity wise SKU

In woocommerce i have multiple readymade garment VARIABLE product all have multiple variations with size and colour, I want now variations stock wise SKU field Suppose I have variations of t-shirt ...
user avatar
0 votes
1 answer
10 views

Where is this text in a wordpress email coming from? Want to change/remove

I vaguely remember adding this text somehow ("Thank you for trying our product. We hope it brings you joy.") during some late night coding session. However, I've since forgot and want to ...
user avatar
  • 3
0 votes
1 answer
18 views

Woocommerce inventory [closed]

I'm working on woocommerce project and I need to check inventory status via external API before I create order. It is a cash register system in physical store that I can't change. I'm using ...
user avatar
  • 23
0 votes
0 answers
6 views

Woocommerce custom taxonomy filtering

Hey guys here's the situation: We have a woocommerce site hooked up with woocommerce product filters - the filter works perfectly on category pages, however, we have a custom taxonomy template for ...
user avatar
0 votes
1 answer
30 views

How To Use do_shortcode with WooCommerce One Page Checkout

I'm trying to use the WordPress do_shortcode function for the WooCommerce One Page Checkout Plugin which uses shortcode like this: [woocommerce_one_page_checkout template="product-table" ...
user avatar
  • 35
0 votes
0 answers
16 views

Add starts rating in woocommerce product comment from backend

I collect reviews from different websites and I would like to be able to add them manually to my products in woocommerce, how can I add the star rating from the back office over the text? in the ...
user avatar
0 votes
0 answers
63 views

Woocommerce. Get a list of products in the current category on the archive page and product page

I'm trying to create a small code that will display a list of discounted products that belong only to the category of products that the user is on, that is, if the user is on the clothing category ...
user avatar
0 votes
0 answers
17 views

Images not uploading on product page of woocommercr

Images on showing on product page and also on all product list. Product image not showing enter image description here
user avatar
0 votes
1 answer
13 views

Display list of only specific tags on product

Good afternoon, I know I'm doing this wrong, looked at all the other questions but can't get it figured out. I have a tag list with images assigned that are displayed in a separate area of my site. I ...
user avatar
0 votes
0 answers
13 views

Woocommerce Variable Product Dropdown for Custom Shop Template

I'm building out a custom shop template and I'm trying to achieve something like this. Where the user can choose the product variation in the dropdown, choose quantity, and click add to cart without ...
user avatar
0 votes
0 answers
16 views

How to access WC()->cart in CF7 hook wpcf7_special_mail_tags

I have created a page that allows users to request a quote based on Cart contents, in the wpcf7 hook wpcf7_special_mail_tags() I want to get the cart contents and return the output (cart items), but ...
user avatar
0 votes
0 answers
17 views

Change the "Register" headline in Woocommerce

I want to change the Register text on the "My account" page. But I cant figure out how to do it.
user avatar
0 votes
0 answers
13 views

Override une fonction dans une class Woocommerce

Bonjour, Voilà WooCommerce récupère le numéro de téléphone de mes clients pour l'adresse de facturation mais pas pour l'adresse de livraison... Vu que j'utilise un ERP qui se base sur l'adresse de ...
user avatar
0 votes
0 answers
22 views

How to display customer mobile number in woocommerce customers page

I'm unable to display the customer phone number in https://www.example.com/wp-admin/admin.php?page=wc-admin&path=%2Fcustomers. is there any function to do this.
user avatar
0 votes
1 answer
26 views

Cannot read properties of undefined (reading 'firstChild') using photoswipe in product page

<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true"> <div class="pswp__bg"></div> <div class="...
user avatar
0 votes
0 answers
18 views

How to work Woocommerce pagination inside shortcode?

I have a shortcode that shows the orders history placed by user. It works, however I have pagination with WP_Query which is not working. When I click on any page number the same page is reloaded, the ...
user avatar
  • 101
0 votes
1 answer
29 views

How to get woocommerce orders with get_posts method in a shortcode

I'm writing shortcode which must show all orders placed by current user. I followed this two guidee to get them: https://www.businessbloomer.com/woocommerce-easily-get-product-info-title-sku-desc-...
user avatar
  • 101
0 votes
0 answers
11 views

Need to check if user has completed a woo commerce payment

I am newbie at php. I am trying to check if user has a payment token or some other value that confirms they have made payment. I want to redirect the page if the payment status is empty 9they have not ...
user avatar
  • 1
0 votes
0 answers
11 views

What to do if images are not displayed in mob. versions of the online store on wordpress?

Everything has changed in the computer. Same in the code. When I open the mobile version with F12, there are no images in the thumbnails and in the code there are old links to images that are not ...
user avatar
  • 1
0 votes
1 answer
33 views

How to sort WooCommerce products page by latest in-stock items first?

How to sort the WooCommerce products page by latest in-stock items first and all the out-of-stock items to the last? Currently, I'm using a code snippet from "https://www.businessbloomer.com/...
user avatar
0 votes
0 answers
15 views

I want a simple dropdown for locations in woocommerce

I want to have multi locations for pickup. I want it no where in site, only in checkout when someone click pickup at local pickup, then this dropdown appear. And also it go in emails etc and so on. I ...
user avatar
  • 1
0 votes
0 answers
22 views

Getting hundreds of spam orders in WooCommerce with failed stripe payment

The day before yesterday, I got an enormous amount of spam orders coming in by the minute. By the time I blocked the IP and email that the customer registered with, there had already been 3800 orders ...
user avatar
0 votes
0 answers
17 views

Custom fields values not being created

I made a form for vendors to submit bicycle infos for selling in the website, it creates a new woocommerce product but some taxonomies values are not being created, as you can see in image below. ...
user avatar
0 votes
0 answers
14 views

woocommerce remove coupon link does not work

Woocommerce remove coupon link does not work in custom cart page: Here is code my Code: <div class="report-text-cntr-cart row mr-0 ml-0 <?php echo ( WC()->customer->...
user avatar
  • 13
0 votes
0 answers
12 views

WooCommerce (Bookings) + AddOns not always calculating correctly the total

I have WooCommerce, Bookings and Product AddOns installed and have a random bug/issue when a visitor chooses an option with a product. The total is not always correct on the checkout page, sometimes ...
user avatar
  • 125
0 votes
0 answers
3 views

How to integrate e-transfers with checkout in WooCommerce

I'm trying to set up a WooCommerce store up here in Canada, however the - ahem - product I'm trying to sell will prohibit me from taking credit card payments (it's in a sort of legal grey area). What ...
user avatar
  • 3
0 votes
0 answers
21 views

WP_Query for woocommerce products with a pattern as a post_title

I am trying to make a wp query for woocommerce products. This will be implemented for a search bar, so the consumer can search for a desired product. My first go was this: $args = array( 'post_type'...
user avatar

1
2 3 4 5
78