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

learn more… | top users | synonyms

0
votes
0answers
9 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 ...
-1
votes
3answers
710 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
155 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
57 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
63 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
269 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
62 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
36 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
65 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
258 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
159 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
420 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
48 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
0answers
148 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? ...
3
votes
1answer
361 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
302 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 ...
0
votes
1answer
1k 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 ...
1
vote
1answer
77 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
1answer
455 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', ...
0
votes
1answer
89 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%. ...
0
votes
0answers
81 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
42 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
0answers
129 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
50 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
0answers
24 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
26 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
30 views

Wodpress Drop down menu Width reduce [closed]

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 ...
1
vote
1answer
129 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 ...
0
votes
0answers
61 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
54 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
0answers
31 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 ) { ...
0
votes
1answer
390 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
1answer
163 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 ...
1
vote
2answers
433 views

WooCommerce change category url and product base

I want to display the url's like this: for Category: /webshop/categories/hoodies/ for products: /webshop/categories/hoodies/test-product how is this possible without giving me 404 not found ...
0
votes
0answers
28 views

Woocommerce Subscriptions to X Amount of Product Downloads

Trying to add a subscription option to a Woocommerce site, that allows a subscriber n number of downloads for any products within a type of product class. We're setting up a subscription option so ...
0
votes
0answers
34 views

how to print variables in wordpress 4.3?

A few months ago I wrote a little woocommerce plugin that does some curl requests. So far so good just that a few days ago I updated my Wordpress to 4.3 and Woocommerce to 2.4.5. Now I can't var_dump ...
0
votes
0answers
328 views

Adding Image Gallery Metabox on Custom Post Type Wordpress

I have a custom post type, and I want the users to add multiple images or attachments aside from the featured image. I want to achieve something like this, I got this from the woocommerce products: ...
0
votes
1answer
335 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 ...
0
votes
0answers
469 views

Woocommerce ajax checkout submit

So, in woocommerce, when a product is purchased, the user is redirected to "review-order" page. I am tying to make it so that the "review-order" page is instead shown by ajax on the product page ...
0
votes
0answers
168 views

Remove Sidebar from Specific Product Category “Slug”, “not all” | Wordpress Woocommerce

My question is, Can i remove the sidebar only for particular URLs of my side. If the url is like below - remove the side bar and make the page full wridth ...
0
votes
0answers
58 views

WooCommerce - How to add a new page to the checkout process?

I found plenty of options/plugins to streamline the checkout process. I want to include an additional step in my checkout process. When a customer is in the cart overview page and clicks on continue ...
0
votes
0answers
295 views

Woocommerce pagination not working

So, I have following woocommerce product loop with pagination. When the next button is hovered over, I can see that the href is example.com/page/2. However, when the button is clicked and page is ...
3
votes
1answer
303 views

How to create a custom order status in woocommerce!

I've tried the below code to create custom status. add_action( 'init', function() { $term = get_term_by( 'name', 'shipped', 'shop_order_status' ); if ( ! $term ) { wp_insert_term( ...
0
votes
0answers
23 views

Catalog/Archive page products and adding weight choice per product-all items are added to cart

I am using the following code to create a choice of quantity on my catalog/archive page with over 40 products. It looks close to what I try to achieve. Unfortunately, when I change 1 item, the cart ...
0
votes
1answer
110 views

woocommerce list product by id

i have product cat with id=5 and have 10 product i show list 5 product by id as $args = array( 'post_type' => 'product', 'posts_per_page' => 5, 'product_cat' => 5 ); $loop = new ...
0
votes
1answer
393 views

WooCommerce Link to Product Category

I'm creating a template for archive-product.php page in WooCommerce. I would like to have 3 boxes and link each to a different product category. How do I get dynamic link to each product category ...
0
votes
0answers
56 views

woocommerce shortcode modification

I would like to modify a Woocommerce shortcode. I would like to make a copy of it in my own functions file. So far everything I've tried hasn't worked. The shortcode I would like to modify is the ...
0
votes
0answers
87 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
808 views

woocommerce - how to get product link by id

i have 2 product_cat Product cat 1 id : 6 Product cat 2 id : 8 in my index how to get product cat link with id or slug as: <a href="Product cat 1 (link)">Product cat 1(name)</a> <a ...
0
votes
1answer
273 views

WooCommerce - Adding Product Attributes to CSV Export

I'm trying to customize the WooCommerce CSV Export plugin to add additional columns for two standard product attributes ("fund" and "appeal code"). I'm able to add the actual headers, but can't get ...