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

learn more… | top users | synonyms

0
votes
0answers
123 views

Add post meta to search in admin of a custom post type

I am using woocommerce in a wordpress theme and I can't get the search functionality in the admin to include a meta value of 'shop_order' custom posts type. I've been trying to modify the following ...
1
vote
0answers
21 views

WooCommerce - display category X first

I have 4 categories in my WooCommerce store: Cat1 Cat2 Cat3 Cat4 Is it possible to list them (in asc order) on the shop page as: Cat3 Cat1 Cat2 Cat4 ie, show Cat3 first, then the other ...
1
vote
2answers
429 views

Order by rating not works in wp_query

I need to sort my products by rating in a wp_query loop: this is my code: switch($ordering){ case 'default': $meta_key = ''; $order = 'asc'; $orderby = 'menu_order ...
0
votes
1answer
598 views

Automatically add attributes to woocommerce product?

I'm trying to make WooCommerce automatically add some attributes to a product when it's created. I'm trying to find the right hook to start with, so far the only one that seems correct is ...
0
votes
0answers
30 views

WooCommerce Auto Export Blank CSV

I have an auto export emailing a shipping company everyday. They would like to receive a CSV everyday even if there isn't a product sold that day. Is there a way to auto export a blank CSV if there ...
0
votes
0answers
19 views

“Restore original Size” bug

When I click "Restore original Size" the image delets and I get the "image not found" icon. I start getting this error after last update. UPDATE: This bug only found when editing main product image ...
0
votes
0answers
88 views

Display categories name of product on product page in wordpress

How to display categories name of product on product page in wordpress (Woocommerce)
0
votes
1answer
129 views

Adjust Price Display for Variable Product in Woocommerce [closed]

I want to adjust the price display for a variable product so that instead displaying as something like "$10.00-$12.00" it will display as "$10.00 or $12.00" -- essentially replacing the ndash with an ...
0
votes
0answers
73 views

Woocommece Variable Product Dropdown hide other two dropdown [closed]

I am using wordpress woocommerce.Here i have question about variable product for woocommece.Here in woocommerce initially all drop down options load.Now is this possible to load it based on first ...
1
vote
0answers
206 views

add_filter hook redirect view cart button in woocommerce

In my current multilanguage wp project I'm trying to redirect the user from the checkout (which is in the current language choosen by the user) via "view cart"-button to a translated cart page. ...
0
votes
1answer
27 views

get_posts $args won't accept array as one of the criteria?

The goal is to list attachments underneath a WooCommerce product, using the tags from that product. Everything works fine if I manually enter the tags at 'product_tag', but when I try to use an array ...
0
votes
0answers
338 views

Update Woocommerce Cart Total with variable (having trouble)

Goal (project I'm working on): I'm trying to make Woocommerce more like an invoicing tool so my client. To do this I am using Advanced Custom Fields plugin [ACF]. This is a big customization of the ...
0
votes
0answers
198 views

Woocommerce Permission denied in C:\wamp\www\wp\wp-admin\includes\file.php

I am trying to download few images to set the thumbnails for Woocommerce products, but it throws error when i connect with a particular ISP. I have tried by changing the net connection with other ...
0
votes
0answers
51 views

Remove redundant meta title separator on home page

On all of my pages I have the site name, a separator character and the page name. However on the homepage it simply states the site title with no page name, however the separating character is still ...
0
votes
1answer
83 views

Change Meta Title seperator and remove on homepage

I'm trying to change the character which is used as a seperator in my page title. At present it is in the format Site Name - Page Title However I would like to change this hyphen to a pipe ...
0
votes
2answers
1k views

woocommerce: how to use wc_create_order with subscription product

I want to create a new order programatically. This code works well with simple product, $product = get_product($product_id); $order = wc_create_order(); $order->add_product( $product ...
2
votes
1answer
55 views

Over write plugin templates

Is that possible for overwriting a plugin templates via making a folder in theme file and copy the file in that folder and altering the content [both folder and file name have the same name as ...
0
votes
0answers
26 views

Get list with all product categories 5 layers

I know this is a very bad example but i want to exmpain it simple My woocommerce product categories is like category1 -category11 --category111 ----category1111 -----category11111 -category12 ...
0
votes
0answers
41 views

Rename field labels for post in Admin Panel

My client wants to be able to upload a product datasheet file (PDF) for each product (we are using woocommerce). As the 'product Short Description' field allows media to be uploaded and to link to ...
-1
votes
1answer
103 views

Which template file to edit to edit homepage in Mystile [closed]

The homepage I'm using is not a static page, and I'm currently trying to add a content slider to it using master slider. I'm not too sure which file the homepage takes on as it's template, so I'm not ...
0
votes
1answer
289 views

“Trying to upload files larger than” error will not go away

I have a woocommerce setup for virtual products. All products are around 10MB and uploaded fine. I do however keep getting the following error show up when browsing the store: Trying to upload files ...
0
votes
0answers
165 views

woocommerce: how to use wc_create_order with bundle product

I want to create a new order programatically. This code works well with simple product, $product = get_product($product_id); $order = wc_create_order(); $order->add_product( $product , 1 ); ...
0
votes
1answer
58 views

Get Non-Paginated Index of Post in Paginated Query

I want to number "product" post types according to their position in their archive. Currently, I have tried to do this by creating a counter variable $count and incrementing it in the loop in my ...
0
votes
1answer
62 views

Woocommerce: Any way to list all products *without* a specific attribute?

We're going back through an existing site and adding attributes to the products, but we need a way to verify that every product has gotten them. Is there any method or function call that will give ...
0
votes
1answer
359 views

Upload file to product page via admin panel

My client wants to be able to upload a product datasheet file (PDF) for each product. At the moment I simply upload the PDFs to the server and add HTML to link to them in the 'product Short ...
0
votes
0answers
21 views

Find the page template that is being used [duplicate]

I have a website using woocommerce and I need to customize its login form, however the file in the path /mytheme/woocommerce/myaccount/form-login.php seems to be ignored. How do I know the path to the ...
0
votes
1answer
200 views

Users credentials and syncing from third party with WooCommerce

I am trying to build a web store for a client who has already had a mobile app. the mobile app team would like to sync user's password as they update it both on the mobile app and the web store. ...
0
votes
0answers
51 views

Access to Payment Gateway Configuration Data in another plugin WooCommerce

I'm trying to get configuration's data from a Payment Gateway. But I just checked that there is a field in wp_options "woocommerce_nameofgateway_settings" and it's serialized. Is there a easier way ...
0
votes
0answers
23 views

How can I run a multi language WordPress site in two folders in one install?

I would like to achieve something like this: www.site.com/en www.site.com/fr A single WordPress installation but it is translated into French and English and also the theme support, posts and ...
0
votes
1answer
217 views

Get post from custom post type order by two taxonomies

In woocommerce i want product by brand (ORDER BY A-Z) with specific custom taxonomy. I have two taxonomies product_cat and product_brand. I did some code to reach my goals but the problem is i have to ...
0
votes
0answers
281 views

Add new shipping method or change shipping rate manually

I'm trying to add a new shipping method to my Woocommerce suite. Basically I'm trying to apply two different Shipping rates to an order depending on their user role. I'm using Flat Rate as one of ...
0
votes
0answers
41 views

Woocommerce reusing 1 attribute text values for as much as 10

I am new to Woocommerce And I have set up a variable product (selling healthy meals in a bundle of 5, 7 and 10 that and menu changes on weekly basis) and for each text attribute value as much as ten ...
1
vote
0answers
254 views

The remote server returned an error: (404) Not Found [closed]

I received an error when I tried to get all product details from WooCommerce API. I installed WooCommerce, created API keys and enabled the REST API. I wrote C#(3.5) code like below. Step1: Created ...
0
votes
0answers
11 views

What is the earliest hook you can piggyback on to check terms/taxonomy for a collection view?

I am attempting to set up some conditional logic based on whether or not get_the_terms( $post->ID, 'product_cat' ) has the term 'Photographs' in it. Currently I'm using the wp hook, but that ...
0
votes
3answers
1k views

Add CSS class to add-to-cart button, Woocommerce [closed]

Im looking for a way to add a custom class to the add-to-cart button on the single-product.php page in Woocommerce. I have tried the following without any result: Copy whole woocommerce-folder from ...
0
votes
0answers
191 views

Add relation OR to product attribute filtering

I have a WooCommerce shop, where products can be filtered by product attributes. On the frontpage a i have a filter, where i build url queries. So if i choose to filter by eg. "Artist name" and ...
0
votes
0answers
74 views

Make thumbnails in woocommerce replace the main image instead opening fancybox

If you disable fancybox in Woocommerce settings, you still get a tab opened when you click on the images. The only thing that i am getting to work is to hide the fancybox from the main image. When i ...
0
votes
0answers
117 views

Run function on “Place Order”

I'm building a custom checkout, that uses steps, like those used on Apple. http://www.formisimo.com/blog/wp-content/uploads/2013/09/Apple-stage-one.jpg When an input field is marked as invalid, I ...
0
votes
1answer
371 views

Creating products using a REST API

I want to build a wordpress website which will have a lot of products (for beginning 0.5 million). Therefore, an third part API will be used to create the woocommerce products. However, i'm confused ...
0
votes
1answer
96 views

Check if value exists before saving

I added an extra registration field: function wooc_extra_register_fields() { ?><p class="form-row form-row-first"> <label for="billing_cpf"><?php _e( 'CPF', ...
1
vote
2answers
42 views

Help with some php math in Wordpress

I've made a woocommerce store and I am using a dropshipper - so every product has an price and a trade price for me - which I am importing and storing as a custom field 'trade_price' on the product. ...
0
votes
0answers
88 views

Is there a way to always have “Add to Cart” button showing and selecting Default Variation?

What we are noticing is that customers are complaining that it takes too much time to go to each product page and select a variation and then return to the store page to go through the rest. I am ...
1
vote
1answer
338 views

How to set value/term of a Woocommerce attribute text field in admin panel?

I am developing a plugin which is supposed to auto-fill the attributes text field. There is a URL text field where user enters URL, on focus out I trigger a AJAX call through which I am able to save ...
0
votes
0answers
265 views

Generate auto seqential ID number when a new user is registered

First off I found this solution to what I would like to do: generate an auto incremented id number when a new user is registered It is almost there but I would like to extend the functionality a ...
-1
votes
1answer
598 views

Disable woocommerce PLACE ORDER button if user selected products that are not available for international delivery

In my woocommerce site, I list both products that are available for shipping to India as well as International destinations. Am assigning a only-india shipping class to certain products so as to mark ...
0
votes
1answer
69 views

print script on wordpress header after user registered

I should attach javascript snipet after user is registered on my wordpress site, i user the user_register hook like this do_action('user_register', $user_id ); add_action('user_register', ...
0
votes
1answer
195 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? ...
4
votes
1answer
648 views

How to add a new endpoint in woocommerce

Im using woocommerce for a website and where the client sells software. One of the options I have to add is request a license button on my account page. I already have the function that does this in ...
1
vote
0answers
522 views

Get Woocommerce variations order / sorting

As I can see the order of the variations on a variable product is done via the "menu_order" data of the variation. What is the most efficient way (in terms of backward compatibility and code quality) ...
0
votes
1answer
2k views

Invalid shipping method, WooCommerce [closed]

I am stuck with a issue and am not being able to solve it. I did check the other questions and did other research but I didn't find proper answers this. When shipping is enabled and I try to ...