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
0answers
8 views

Sort by price woocommerce by ID post_meta

There is an additional field in Posts (id_product), when using WP_Query I want to sort posts by meta _price (id_product). How do I do this? If I try to do so: $query->set( 'meta_key', '_price' ); ...
0
votes
0answers
14 views

Wordpress Filtering Woocommerce Structured Data

0 I'm figuring out a filter but can't be figure :) Just want to change PrimaryImageOfPage value with an og:image value in CollectionPage for Taxonomies. It may be that I have to use ...
0
votes
0answers
8 views

need to add custom field in more products

Hi i'm gonna be completely honest idk shiz for code i just need this to work on my site, there's a category of products that i want to have this custom field how can i code it to do that?, this is the ...
0
votes
0answers
11 views

Sharing specific post types between sites

I'm working with woocommerce and we would like to be able to share coupons between sites on a multisite network. So for example you have a coupon that gives you a $5 off that's valid at both Shop A ...
0
votes
0answers
12 views

Pagination in woocommerce - Limiting page-numbers

The below code is displaying pagination as follows - 1 2 3...6 7 8 9 > Whereas I just want to display - 1 2...8 9 > Basically I just don't want the pagination to be more than a line if I have ...
0
votes
0answers
7 views

How do I set the “draft” status for a product without an image?

I need all products in woocommerce that do not have an image to have a status instead of "published" draft. How can this be implemented using functions.php?
0
votes
0answers
6 views

Custom column for woocommerce memberships plugin

I want to add a custom column (user ID) to the Woocommerce Memberships plugin. Check the image, I want to add it somewhere in this table. How I can do that? Thanks in advance.
0
votes
0answers
15 views

Customize or change error message from capability

I have a woocommerce set up that allows certain people to edit an order, unless the status of the order changes to make sure they don't revert status of an order that's in processing to something that'...
0
votes
0answers
11 views

Remove Product Variation's Images When Deleting a variation [closed]

I want product "variation images" to be deleted when a variation is deleted. I found a code but it only works when deleting whole product & deletes all product images while i only want ...
0
votes
1answer
22 views

Two Filter Issue

I've noticed that on certain pages, two filters appear in the top right. One is styled properly (the bottom one), and the other isn't. I'd like to remove the top one (which isn't styled properly). Is ...
0
votes
0answers
18 views

Change “Read More” text on category pages

I'm trying to change the "Read More" text that appears on category pages when you hover over any product. I'd like it changed to "Shop Now". I've tried using several different CSS ...
1
vote
0answers
9 views

How to edit wc_get_template_part for archive products

I want to set a custom style for displaying prices on sale in woocommerce archive page. I could do that in single-product.php file but in archive page its just wc_get_template_part( '...
0
votes
0answers
9 views

How add synonyms to wordpress/woocommerce search

I'm trying to find a way to manually add a way for people to search one term, and for that term to search another term as well. For example, if someone searched "bathing suits" I want ...
0
votes
0answers
25 views

How to put a onclick function to cart icon to slide in cart details?

I'm a newbie to coding and im trying to work on my online website. www.serendib-batik.com I already have a plugin that opens a "Slidein Cart" when a customer adds items to cart.(pls check ...
0
votes
0answers
12 views

Display user role in order details (woocommerce) [closed]

I'd like to display the user role for a customer in the backend woocommerce order details section of a recent purchase. It would only be visible on the backend, for admin purposes. Preferred, but not ...
0
votes
0answers
8 views

php woo echo active price of a variation [closed]

i am trying to figure out, how to get the price of the currently selected variable product; neither of these work. they either display min, Max or the html version "from xxx": global $...
0
votes
0answers
11 views

Pre tag space removal [closed]

I use wordpress, Divi, WooCommerce, and I am having extra spaces at the top my product pages. I am being told there are pre tags showing up on the pages. I do not know how to remove them or prevent ...
0
votes
0answers
18 views

Add different class for each attribute on a woocommerce product [closed]

I'm trying to add a class to each woocommerce product attributes to style them differently. This is what I have now: <td class="woocommerce-product-attributes-item__value"> <p&...
0
votes
0answers
27 views

Woocommerce category page: display Products before Subcategories [closed]

I looked for a solution for hours but I can't figure out how to do it... I have categories that, at the same level, have both products and subcategories. So, as expected, woocommerce display them on ...
0
votes
0answers
4 views

coupon field in cart and check-out page only type be uppercase letters

coupon field in cart and check-out page only type be uppercase letters what I mean is when the customer type his code it only type uppercase letters even if his caps were off?
0
votes
0answers
4 views

How to limit multiple variation products order quantity per order? [closed]

I have 10 items in a balloon weights category 3 of those items are variation products, I want to put a max order quantity of 12 per order of any combination of those 3 variants as long as it does not ...
1
vote
1answer
21 views

How to stop activating a plugin and show admin notice when dependent plugins minimum version is not met

I have a plugin which is dependent on another plugin, in this case WooCommerce. How can I stop the activation of my plugin and display an admin notice with download link of the dependent plugin, if ...
0
votes
1answer
13 views

Unable to pull in custom product attribute in shortcode

I have this code working directly on a page. But when I try to add it to a shortcode in the function.php it is not working. It will not pull in the author (or the date). <?php //LIST ALL ...
0
votes
0answers
7 views

Mandatory/Required checkbox isn't working [closed]

I have added custom terms and conditions via function.php with required checkbox. The problem is that the checkbox isn't really required and I can click on Place order and won't get prompt/notice that ...
0
votes
0answers
12 views

PHP function for horizontal Woocommerce thumbnails and badges

I am looking for a PHP-function which checks if the product thumbnail is a specific size (in this case horizontal layout). If so, it should display the Woocommerce-badges (New, Sale, Featured ...) on ...
0
votes
0answers
11 views

run wc_get_orders() in none wordpress cron job

I need to run a cron job not using WordPress built in cron functionality. Basically, I need to get all the orders and send some email. I've set up my cron on the server it runs at the desired interval,...
0
votes
1answer
16 views

How do I know if the user is a customer?

I'm using Woocommerce and Dokan latest version. I need to check if the user is a customer of that vendor. In this way, I will show the customer some information about that product or seller. First I ...
0
votes
0answers
6 views

Move “delivery or click & collect” option on top of the checkout page

I'm working on a Wordpress / WooCommerce website. I'm using the WooCommerce Delivery Slots by Iconic to manage the delivery and click & collect slots. I'm trying to move the option of choosing the ...
0
votes
0answers
7 views

Woocommerce - Select options disappeared from product summary

Downgrading/updating plugins didn't solved the problem. Variations select appears in sticky cart panel (placed in the bot of the screen, appears after scrolling down), but disappeared summary. Here is ...
0
votes
1answer
25 views

echo something inside a shortcode

I'm a frontender, so i'm not so used to work with php. But I need to solve something. I'm adding a shortcode within the single-product template, and inside this shortcode, I need to echo the slug from ...
0
votes
0answers
9 views

Woocommerce - Product Color Selection with Photo [closed]

is the plug that selects the color with the photo? (there may be a fee). as in the example:
0
votes
0answers
9 views

Submit a form and save data to custom post type in woocommerce

I am wondering how can I send the data submit in WS FORM to a tab in WooCommerce Frontend Manager the tab have his own php but the site is multivendor. wsform gave this action config im triyng using ...
0
votes
0answers
9 views

Transfer post categories along with the posts to woocommerce categories & products

I'm seeking of a way to convert post categories and posts associated to them, to WooCommerce products and categories. What is the best way to do it? Thanks in advance!
0
votes
0answers
16 views

Switch to user link shortcode

I am using the User Switching plugin in order to allow sales agents to place an order on behalf of a customer. I have a page called My Customers which uses toolset to return a list of their customers. ...
0
votes
0answers
7 views

Use custom fields in checkout to asign membership to another new user

Go ahead that at best I want to invent the wheel and there is some solution that has not yet occurred to me. I am trying with every possible combination and I am certainly very clumsy because I am not ...
0
votes
0answers
13 views

How to add more than one ACF tab in Woocommerce

I am using the Advanced Custom Fields plugin (free version). I have two ACF tabs made up, and I can use the following code to successfully add an ACF tab to all Woocommerce product pages, but I would ...
0
votes
1answer
15 views

Make order notes field at woocommerce checkout only viewable on front end by Admin level user role

I have a snippet of code that allows me to hide the order notes field at checkout for all users (logged in or not) but wanted to ask if someone has written a snippet that hides the same field from ...
0
votes
0answers
16 views

Woocommerce shop page showing blog posts

For some reason the /shop/ url is showing the blog posts and blog posts archive template. There isn't a page-shop.php in the theme, only the woocommerce/archive-product.php and woocommerce support is ...
0
votes
1answer
22 views

Is there a way to get customers logged out without calling wp-login.php?

I am using woo-commerce. The logout URL is different which includes 'customer-logout'. In reality it again redirects to 'wp-login.php' to make logout process successful. My question is, when Woo-...
0
votes
1answer
34 views

WooCommerce change Tax Class programmatically when Recalculating an existing Order [closed]

I'm hoping someone can't point me to what I am overlooking. CIRCUMSTANCE: We have some unique business logic whereby a custom user meta field affects the appropriate tax class. We have three customer ...
1
vote
1answer
37 views

How can I send the mail once?

I am working on a marketplace plugin. If the vendors do not accept the order within the date range I set, the order will be cancelled. For this, I have determined a time period of order date +3 days. ...
0
votes
0answers
10 views

Just show the coupon input filed and button on the checkout page

I want the coupon field on the woocommerce checkout page to be like the image. No toggle button, no dropdown, and no text. Just the input field with a placeholder "Coupon code" and the "...
-1
votes
0answers
8 views

How to add custom search field in woocommerce [closed]

I'm trying to add a search field, on the products page, as seen on this site: https://www.netseals.it
1
vote
0answers
7 views

PHP - Extend Wordpress Woocommerce Revenue Analytics with custom field

i'm familiar with wordpress plugin development and use of hook and filters. By the way i'm encountering a big lack of documentation about what i write on the title. The need is to implement a new &...
0
votes
0answers
25 views

Privacy checkbox is disappeared in Woocommerce

I am having a problem that is giving me headaches. I am implementing a store with Woocommerce, Elementor, Crocoblock and Hello Elementor theme. I used the Code Snippets plugin to add a checkbox for ...
1
vote
0answers
13 views

Looping Products -> set downloads [closed]

I'd like to make a php-script setting downloads name+url to woocommerce products. Being so easy, I can't find a reason having no result: <?php wp_head(); $args = array( 'post_type' => '...
1
vote
0answers
24 views

How to display the result of a custom metabox in the frontend [closed]

I created a custom metabox for the same woocommerce products, but I would like the community's help so that this metabox appears on the front end. fuctions.php add_action( '...
0
votes
0answers
13 views

How to only display the third product category child level from one parent of the current Product? - WooCommerce

I would love to find the answer to this one! My WooCommerce Product Category Tree looks like this: Domaines -Domaine1 --Cuvee1 --Cuvee2 --Cuvee3 -Domaine2 -Domaine3 Vins -Rouge -Blanc -Rosé Cépages -...
1
vote
0answers
10 views

Woocommerce rewriting custom price display? [closed]

I'm having an issue changing Woocommerce product archive / shop page pricing display. We're (still) using Woocommerce 4.8.0 and WordPress 5.7.1. Here's what I am trying to do... This shop carries ...
0
votes
0answers
25 views

apply_filter and add_filter conflict

I have a woocommerce website and I use "ProductX - Gutenberg Product Blocks for WooCommerce" to create a product slider. I need to change the add to cart button to include step quantity for ...

1
2 3 4 5
80