OFF TOPIC. An e-commerce store plugin. Questions *specific* for this plugin are off-topic.

learn more… | top users | synonyms

-1
votes
0answers
23 views

Login through phone number instead username

I am building a website using Woocommerce.By default the username is the user's email address.I want to provide the users the feature to login through their phone number also. How can i do that? ...
1
vote
1answer
24 views

How do I remove the product thumbnail link from a specific div in Woocommerce? [closed]

I have a section on my front page that displays the top 4 most popular products from my Woocommerce shop. I is located within a div as such: <div id="trending"> <p ...
0
votes
1answer
843 views

How can I display *only* the child category of a product?

I'm currently using the following code to try and display the child category of products:- global $post, $product; $cat_count = sizeof( get_the_terms( $post->ID, 'product_cat' ) ); ?> <h1 ...
4
votes
2answers
75 views

How to update user role without logout

I am working on a wordpress project with the following plugins : Woocommerce Woocommerce product vendors WP Job Manager Wp Job Manager products I am trying to upgrade the user role after adding a ...
0
votes
1answer
18 views

Woocomemrce order and registration fileds to UPPERCASE

I have to transform all the registration fields (Name, Surname, email, State, Address...) to uppercase. I mean no CSS transform, like text-transform: uppercase; but transform in PHP before they go to ...
0
votes
1answer
31 views

How to remove coupon dropdown feature

I want to remove the coupon drop down feature and just have the input field and 'add coupon' button on the checkout page. Does anyone know how I can get rid of the dropdown feature? Thank you in ...
-1
votes
1answer
24 views

Woosidebars adding full page navigation on bottom [on hold]

So, when i add an woosidebar to my woocommerce pages, only with the woocommerce product category widget, it shows it correctly on my right sidebar just like i wanted, but it also adds a search box and ...
1
vote
1answer
33 views

Detect whether a page is a product subcategory page?

How can I detect whether current page is a product sub category page? I've tried with the following but it will always print out "NO" function is_subcategory($category = null) { if ...
1
vote
1answer
16 views

How do I edit pre_get_post for the category the user is currently in?

I've got a Woocommerce site that uses categories and products within those categories but how do I get my search form to only display results of products within the category the user currently is in. ...
0
votes
1answer
45 views

WooCommerce Bookings Plugin Not Saving Order ID

I have built a site using WooCommerce Bookings with an AJAX request that processes the payment, creates and order and lastly creates a booking with the order ID. However, when I send the newly ...
0
votes
0answers
35 views

WooCommerce: Making a loop create divs of categories, with category products inside

I have a php/wp script written which in theory should print a div with a category name, description, and all of its products inside. The code looks like this: <?php $args2 = array( 'taxonomy' ...
-2
votes
1answer
39 views

Woocommerce's add_to_cart function returns false and doesn't add anything to the cart [closed]

I'm working on a Woocommerce SPA (Single-Page Application) and I'm trying to add a product to Woocommerce's cart but it just doesn't work. I'm doing this in a custom plugin. In a function that ...
-1
votes
1answer
20 views

How to get Woocomerce categories count

Is there a short way to get the number of categories in woocomerce shop homepage and also number of subcategories on category page?
0
votes
1answer
18 views

Remove action added through function

A theme I'm using modified a woocommerce that I'd like undo in my child theme. It's been added as shown: function theme_setup(){ remove_action( 'woocommerce_before_main_content', ...
0
votes
1answer
142 views

How to add WooCommerce Add to Cart button in widget?

How can I add a separate WooCommerce widget, with the Add to Cart button and its options, so I can display it anywhere in the sidebar of the product details page?
-1
votes
2answers
57 views

Assign class to Drop Down Selections in WooCommerce Products Custom Fields

I have added a drop down to the WooCommerce Inventory Tab where the user can choose message to show in front end. In functions.php: // Display Fields in Back End add_action( ...
1
vote
1answer
478 views

Identify a Woocommerce page by Wordpress conditional tags

we have a website running on WPMU, and the main site is using Woo-commerce and the sub sites doesn't use that. I use conditional statement in my meta title with following code: <title> <?php ...
1
vote
1answer
65 views

Unhook action from child theme

0 down vote favorite I have decided to use a Woocommerce Storefront child theme called Galleria, when I have previously used the storefront theme I have used the common remove_action to unhook the ...
1
vote
1answer
48 views

How to set a minimum length for username in Woocommerce? [closed]

I need to set a minimum lenght for username in a website that use WooCommerce. In a "standard" WordPress installation (without WooCommerce, I mean) I could use a snippet like this one: function ...
1
vote
2answers
585 views

Remove price from Woocommerce variable product dropdown menu

I'm trying to hidden or remove the price on each variable products inside dropdown menu on a single product page. Please see image attached below. I believe here is the codes that needs to be ...
1
vote
1answer
21 views

Woocomerce language

I have no idea why woocomerce is not changing language. When I change language in wordpress everything is fine, but woocommerce language is not changing, but only in my language (Lithuanian lt_LT), in ...
0
votes
0answers
34 views

Adding a query string to product links

I need to add a query string to the end of the links generated by a [products] shortcode from WooCommerce. Each product appears with three links. The image, the title and the add-to-cart button. I ...
1
vote
1answer
488 views

Woocommerce hidden fields with meta keys and values. how?

Im trying to make a Frontend Publisher work with woocommerce, and need to set three hidden Meta Key fields with values. How do I go about doing that? The meta is: _manage_stock:yes _stock:1 ...
-1
votes
0answers
13 views

Getting the response returned through a script

I'm trying to create a custom payment gateway in Woocommerce. I should send the data in the order from to another website, get the response, and then act according to that response. I want to use ...
0
votes
0answers
7 views

Woo-commerce: Hiding archived products from the front end when logged as admin

With Woo-commerce archived products appear on the front end of the site when a user is logged in to the WP-Admin area. Is anyone aware of way to prevent archived products from being displayed like ...
0
votes
0answers
11 views

How to pass the Shipping tax and set shipping is taxable or not in the WooCommerce order API?

I had passed the order data as below given with shipping tax as zero, And also i am passing the flat rate as shipping method, for the flat rate i have given taxable option as none in WooCommerce ...
0
votes
0answers
14 views

Creating multiple private shop pages with expiry link for each

I am currently working on a Woocommerce Store with more than 500 products. Client wants to have some private shop pages. Let me explain it more broadly, he wants to have different shop page links ...
1
vote
1answer
2k views

Woocommerce displaying product categories and products on custom theme

Am trying to create custom Woocommerce supporting theme in Wordpress. What am facing is regarding the displaying of Product Categories when accessing the main category and 1st level of categories. ...
0
votes
0answers
13 views

bypasss, or generate, download permissions for users with subscriber flag

I've got a small number of users of a legacy site who are subscribers. I can change HTML based on that flag, but I don't want to add download permissions for each user, for each product, if I can ...
0
votes
0answers
31 views

The plugin generated xxx characters of unexpected output during activation

I know this question has been asked 100 times, and I've googled it and tried multiple solutions, but I'm still getting this error. I removed all the white space, tried to encode it in UTF-8 in notepad ...
0
votes
0answers
49 views

Adding read more function through wordpress

First of all. I know wordpress has a read more function but that won't work either. Probably the same issue that's stopping me in the following. So i'm trying to create a read more function on my ...
0
votes
1answer
155 views

How to remove “From:” before variable product price?

How can I remove the "From" text before product price? I'm running the latest version of woocommerce and I've added this snippet of code to the functions.php file to revert pricing style to that of ...
0
votes
1answer
42 views

How to display custom field in woocommerce email orders? [closed]

Am having trouble showing custom field data from a select drop down in the order email form in Woocommerce. The data is showing in the admin page order just not email? add_action( ...
1
vote
1answer
157 views

woocommerce change currency per category [closed]

I am trying to display a different currency on a specific category within my Woocommerce store. Specifically, this category is full of items that can only be purchased through myCred points. The rest ...
0
votes
1answer
781 views

How to show woocommerce login / registration form in modal

I have developed E-commerce Website using Woocommerce Plugin. I would like to show the login/registration form in modal. Is there any way to automatically show the login/registration form when the ...
0
votes
0answers
18 views

WooCommerce Shipping

I have a WordPress site using WooCommerce with bespoke shipping functionality on. All it does is find the users shipping address and works out the distance between the customer and the depot, based on ...
0
votes
1answer
220 views

Delete all per-product attributes in WooCommerce

Is there a method to find & delete most/all attributes for products in WooCommerce when these attributes are unique to each product, that is they don't appear under the Product->Attributes menu? ...
0
votes
1answer
36 views

WooCommerce: Bulk Quantity in Cart

I run a WooCommerce store with three types of packaging; sold individually, sold in bulk of 6 and sold in bulk of 12. These packagings are tagged by a taxonomy called criteria with the terms 6-pack ...
0
votes
0answers
25 views

Restrict access to shop pages for user role subscriber

im realizing an member area with the plugin WP-Members. I have to add an shop in this member area. My problem now is that i have just one user with the role of subscriber to enter the blocked content. ...
0
votes
0answers
17 views

Adding individual item quantity in product archive thumbnail

I have a woocommerce shop which is showing all my products. Each product thumbnail in the product archive page also has ADD TO CART button in it. Clicking the button dynamically updates that product ...
0
votes
0answers
25 views

Function to change text with <br> tags into Unordered List

I've tons of product pages in Woocommerce where product info was bulk imported using CSV file. Now, all these hundreds of pages carry <br> tags for 'features' - which I want to change to ...
0
votes
0answers
43 views

Additional stock options in woocommerce

I found a really useful piece of code in this post: http://stackoverflow.com/questions/26912556/add-stock-option-in-woocommerce/ This code adds additional statuses to the original stock options in ...
1
vote
1answer
64 views

Update custom field values on edit address page woocommerce

I have two custom fields included in the checkout page and also in the edit address page in myaccounts of woocommerce. The problem is the two custom fields 'billing_door' and 'billing_flatname' are ...
0
votes
1answer
31 views

Best Practice - Customise a WooCommerce+Wordpress Templates

To integrate customise HTML/CSS to Wordpress without editing default ready theme template from Wordpress Download HTML5Blank Boiler plate modify/overide boilerplate css with our customise Css Create ...
1
vote
1answer
54 views

Remove the link from the thumbnail and product title on woocommerce

Where exactly in the file structure can I find and edit the markup so that I remove that a href within the thumbnail and product title. I tried searching the template files but can't seem to find it. ...
-2
votes
1answer
39 views

How to get products outside main loop in Woocommerce?

I have this code: add_action('maisvendidos_home', 'maisvendidos_home'); function maisvendidos_home() { $page_id = get_queried_object_id(); $mais_vendidos = explode("\n", ...
0
votes
0answers
29 views

Get WooCommerce Sidebar Layered Nav filters to work with shop page filtered by on sale products

I'm I've successfully got the default WooCommerce Shop page to only query products with an on sale status thanks to this link here http://www.kathyisawesome.com/woocommerce-modifying-product-query/ ...
0
votes
1answer
37 views

/page/ is not working with a custom permalink structure (WooCommerce)

I am running WooCommerce and FacetWP on a WP 4.5 install. I have set the permalink structure of the "Products" to the following, the custom taxonomy is a location based taxonomy. ...
7
votes
1answer
24k views

How to add product in woocommerce with php code [closed]

I want to add products with PHP code like below: $post_information = array( 'post_title' => 'new item shop', 'post_content' => 'this is new item shop', 'post_type' => 'post', ...
0
votes
1answer
422 views

WooCommerce return 404 on category pages

I am trying to set up WooCommerce permalinks to get something like: example.com/shop/ => Shop page listing products example.com/shop/category-name/ => Category page listing products from a category ...