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

learn more… | top users | synonyms

0
votes
0answers
5 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
15 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
1answer
19 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
1answer
2k views

How to check if woocommerce is activated in theme

I'm creating a theme with woocommerce which has the following: <ul> <li> <?php if ( is_user_logged_in() ) { ?> <a href="<?php echo ...
0
votes
1answer
9 views

Outputting subcategory title AND items on Category page

When a user clicks on a category, if there is a subcategory, I want it to appear in an h2 and then the items below it. For example: Click on shirts See Hanes in title, then items HA101, HA102, ...
0
votes
0answers
4 views

Search for WooCommerce theme with product groups

In wp 4.3 I used Storefront theme for WooCommerce, but I would like something different theme: something with category grouping ( all products are in different groups and I want possibility to select ...
0
votes
1answer
11 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
7 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 ...
0
votes
0answers
14 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
0answers
12 views

How to build an woocommerce aggrement page by using customer information (address, name etc), item and total price

How to build an woocommerce aggrement page by using customer information (address, name etc), item and total price. My aggrement page will be different and unique for each customer with these ...
0
votes
0answers
7 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
0answers
14 views

Tax not displayed correctly in email

The tax of 21% is displayed correctly in the frontend The price of the product is: €12.95 incl Tax When i receive a confirmation in the mail the price displayed is: €10.70 So that is the price excl ...
0
votes
0answers
11 views

Any reason why not to use woocommerce_cart_calculate_fees in a page template?

I know that generally functions and add_action() would go in functions.php or a plugin rather than a page template, but I have a situation where I would like to use a function like the one below ...
1
vote
1answer
1k 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
16 views

PrettyPhoto doesn't work using data-rel=“prettyphoto[iframes]”

I am doing a payment method for Woocommerce and I found something strange. In the description of payment method I have a link: <a href="'.plugin_dir_url( __FILE__ ...
1
vote
2answers
13k views

How to get WooCommerce Product Category Link by ID?

WooCommerce's product categories are a custom taxonomy called product_cat. In a function I'm writing, I'm using get_categories with the taxonomy parameter set to product_cat. Everything works fine and ...
0
votes
0answers
14 views

WooCommerce Subscriptions: Only apply shipping cost to sign up fee, not recurring total

I'm attempting, in WooCommerce Subscriptions, to only apply the shipping total to the sign up fee and NOT the recurring_total. I followed this forum post from the developers, ProsPress, on how to ...
0
votes
1answer
20 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', ...
-2
votes
0answers
9 views

Woocommerce get new order id on subscription renewal

I have Woocommerce subscriptions with the Stripe Gateway setup and working. Each time I manually test a scheduled renewal it saves a new order id for the renewal however I can't find a way to access ...
0
votes
0answers
14 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
0answers
16 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 ...
0
votes
1answer
25 views

Woocommerce get category image full size

i'm trying to get the full size image of my category products. $prod_categories = get_terms( 'product_cat', array( 'orderby' => 'name', 'order' => 'ASC', ...
1
vote
0answers
25 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 best way (in terms of backward compatibility and code quality) to get ...
1
vote
1answer
19 views

WooCommerce product option without tax

I have got a new request from client. Basically he wants to add an additional charge to his products. This charge is tax exempt, but the product itself has a tax class. The charge should be shown as a ...
1
vote
1answer
24 views

Reduce Drop down Menu Width in Wordpress

i have used drop down menu. its have two brands of column one watch another knife. previous watch have 5 column drop down mega menu. i had removed two column. its now showing extra black space. how ...
0
votes
0answers
7 views

How to change Woocommerce product id for recurring subscription

so we have different product ids for each month during a 12 month subscription. I looked in the database and noticed when a recurring payment runs it pulls the original order in the subscription from ...
-1
votes
0answers
61 views
+100

Custom thumbnail for product in cart

I am developing a plugin and programmatically adding a product to the cart. In the same time, I want to have a custom thumbnail during the checkout, based on some of the client's input. So far, I've ...
0
votes
1answer
42 views

Invalid shipping method, WooCommerce [on hold]

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 ...
0
votes
0answers
11 views

How can i show the brand name in wishlist? [on hold]

How can i show the brand name in wishlist page? I am using woocommerce and i have installed woocommerce brand plugin also to show brands of each product. I have a website of watches, so each product ...
0
votes
0answers
17 views

Product Category Page in Full Width

Initially the Product Category page is divided into Content Area (70% width) Side Bar Area (30% width) I have removed the side bar area using function.php. However the content area is still in 70%. ...
-1
votes
0answers
10 views

How to force woocommerce to have same price for all countries? [on hold]

I am creating a shop and I am using woo-commerce and I want to have same price for all country users . currently,when user selects a country ,product price changes ,I have set US dollar as default and ...
0
votes
0answers
12 views

How can I move the Woocommerce Sort button to a widget in the Shop Sidebar?

How can I move the Woocommerce Sort button to a widget in the Shop Sidebar? I don't see any options to do this even within plugins, which is confusing to me. It seems a great place to have it - above ...
0
votes
0answers
10 views

How do I get all the code in the woocommerce archive product template into a single line of code or single function?

I am trying to use the Pay Per View plugin by WPMUDEV. I have spoken with their support team about how to protect the category archive loop with a pay per view system. The trouble is that their pay ...
0
votes
2answers
514 views

WooCommerce: Can't change / style button colors

I'm trying to change the colors of my buttons from a default reddish color to something more pink. So I go to my child theme and insert the following code: .woocommerce a.button.alt, ...
-3
votes
0answers
13 views

how to add required field woocommerce [on hold]

i want user to upload an image before checkout i want to add upload file in cart page it must be required he cant continue to the checkout page before he uploaded when i put the code in edit ...
0
votes
0answers
11 views

How to write WooCommerce get_term_link URL to produce desired URL

I am new to WooCommerce development. I am working with this line in content-product-cat.php: <a href="<?php echo get_term_link( $category->slug, 'product_cat' ); ?>"> I would like to ...
0
votes
0answers
9 views

Get stock from another store for a WooCommerce store [on hold]

I want a help! I am reseller of other stores, and as the store grows it becomes hard to manually update inventory. I have a custom field _url_font that I fill with product source address. I wanted ...
0
votes
0answers
29 views

Woocommerce sort by rating [on hold]

I'm using Storefront to develop my site and i need to sort the products by rating at a specific part (using WP_Query). I tried without success the following code in my $args: $args = array( ...
4
votes
1answer
4k views

How do I delete all UNUSED images from my uploads directory?

I am trying to clean out my uploads folders as they are now starting to take up too much room on my server. I have tried to use plugins to achieve this end such as DNUI and Cleanup Images but these ...
0
votes
0answers
12 views

WooCommerce Product Quantity Modifier

Right so I am bashing my head against the desk at the moment trying to think of a way to get this to work. I am using a custom theme, with WooCommerce and the WooCommerce Measurement Price Calculator ...
0
votes
1answer
293 views

Blank search results on custom search

I have a custom search with the following line of html in the form: <input type="hidden" name="post_type" value="product" /> This correctly appends: &post_type=product to the search query ...
0
votes
0answers
13 views

Importo product with xml into woocommerce

I need to import the products in Woocommerce, this is the xml that I need to import <product> <ID>00800064</ID> <NAME><![CDATA[MASTURBATORE A FORMA DI BOCCA ...
1
vote
0answers
9 views

Drop down multi column menu Width reduce

I have developed wordpress website using Woo commerce plugin and I have created multi column menu drop down menu. My Site Link Url: Site URl In my Site I have watch brands, knife brands and also ...
1
vote
0answers
7 views

Wodpress Drop down menu Width reduce [on hold]

I have developed Wordpress site using Woo commerce plugin and i have created drop menu. this My site take Looks at this My site LInk In my Site Have only watch brands and knife brands some unwanted ...
0
votes
0answers
7 views

WooCommerce: Cross-sell show un catalogued products [on hold]

I want to show a product as a cross-sell product, but not in my catalog. It seems there is a filter that removes un catalogued product from the cross-sell list. Can anyone help me remove it?
0
votes
0answers
15 views

Show product category in order email

requesting help with woocommerce... when customer orders something he receives an e-mail and owner of the shop receives an email too. There is the name of a product customer has bought. I want to add ...
0
votes
0answers
15 views

Qtranslatex redirect error

I m using qtranslatex for woocommerce. On load im trying to redirect the user to the shop page , instead of the home page, but it shows an error , the page says, too many redirects and the link has a ...
0
votes
1answer
26 views

What is the code to get the download link for a product in WooCommerce?

I'm trying to add the direct download link of a product to a button, but I'm stuck. What I tried is this <a href="<?php echo $product->downloadable_files; ?>">Download</a> ...
0
votes
0answers
5 views

Unable to add custom field in woocommerce in email

I have created two custom fields in woocommerce as follow : add_filter( 'woocommerce_billing_fields', 'custom_woocommerce_billing_fields' ); function custom_woocommerce_billing_fields( $fields ) { ...
-1
votes
0answers
15 views

Woocommerce set single city to sell to

In Woocommerce settings, if "sell to specific countries" is selected as single country, the checkout page shows the country and there is no option to select/change that. How is it possible to achieve ...