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

learn more… | top users | synonyms

0
votes
3answers
2k views

Woocommerce display one random product via php

I am trying to display one random product in my template header. So each time someone visits or refresh there will be a different product displayed in the header. I searched and found this <?php ...
0
votes
1answer
208 views

How to update billing_email when user_email is updated [closed]

I'm trying to achieve two way synchronization between user_email and billing_email (the key for woocommerce emails). So far, I have it working that when a customer edits/updates their billing email ...
0
votes
1answer
5k views

Remove 'product' & 'product-cateogory' from url - woocommerce [closed]

I'm using WooCommerce for a shopping site and it is adding slug or base to the urls. For instance: http://dev.unwaveringmedia.com/8dim/product-category/all-party-supplies/ ...
0
votes
3answers
3k views

Woocommerce - Change Variable Product Add to Cart to behave like external product using Custom Field (link) [closed]

I am importing affiliate products via XML into Woocommerce. Due to products having variations if I use the External/Affiliate product type I get repetition of product on my front end (eg. same product ...
0
votes
1answer
915 views

HTML in WooCommerce settings

I need to append a default text block to each product description (same text for each and every product) in WooCommerce. So I've created simple plugin which adds new settings field as rich text editor ...
0
votes
0answers
8 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__ ...
0
votes
0answers
10 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
14 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
0answers
6 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 ...
0
votes
0answers
10 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
1answer
22 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
0answers
16 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
9 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
9 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
10 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
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
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 ...
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
12 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
4 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
23 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
12 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
7 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
19 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
22 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
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( ...
0
votes
1answer
30 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
19 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
16 views

Transferring the use of a woocommerce plugin to another plugin [closed]

I have bought a WooCommerce plugin called 'WooCommerce Product Reviews Pro' for the review system of my products. This plugin comes under the product section of woocommerce. I have also a plugin ...
0
votes
0answers
56 views

WooCommerce 2.4.5 Bugs

Has anyone suddenly started experiencing unusual bugs such as product tab & product variation issues? Recently the majority of my client websites have updated to WooCommerce 2.4.5 which has both ...
0
votes
0answers
22 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
15 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
22 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 ...
0
votes
0answers
5 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
0answers
37 views

Woocomerce adding items to cart from a share cart url? [closed]

I think I need help in here, Im not really sure if I need to set the session manually or it will set automatically while adding items to woocommerce cart, lets consider the following: ...
0
votes
1answer
23 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
32 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
15 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
12 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
32 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 ...
0
votes
0answers
12 views

TinyMCE editor for woocommerce product attribute

I am creating a custom product attribute by a use of a plugin, but there is a problem that it outputs a simple textarea. What I need is either a TinyMCE editor or some simple editor with a possibility ...
0
votes
0answers
11 views

Show pagination and exclude category

So, I am trying to show items from a specific category in the woocommerce: Here is what I have so far: <?php $args = array( 'post_type' => 'product', 'posts_per_page' => 10, 'product_cat' ...
0
votes
0answers
6 views

Cart only updates every second page load. What am I missing?

$id = 2321; $qty = 2; global $woocommerce; $woocommerce->cart->add_to_cart($id, $qty); I'm getting the id and quantity from $_GET values, then do $woocommerce->cart->add_to_cart($id, $qty); ...
0
votes
0answers
17 views

Shop title and Homepage Duplicate Issue

I have a woocommerce site with a shop page template as my home page. I'm also using the Yoast SEO plugin. However, I'm getting a duplicated title issue for: domain.com and domain.com/shop The title ...
0
votes
0answers
35 views

woocommerce - Multiple meta query not working

Any help on why this multiple meta query is not working is greatly appreciated, both meta_query arguments have been tested independently. I'm looking for bringing Featured products as well as Best ...
0
votes
0answers
18 views

I want to create new product field for woocommerce and then integrate with dokan multivendor plugin?

I want to create another new field like product short description in woocommerce and then i want to integrate that field with dokan multi vendor plugin to make it available for sellers on dokan ...
0
votes
0answers
12 views

Copy woocommerce country select field to another page

I'm trying to copy the billing_country select field on woocommerce checkout to another page. Specifically the edit details section of the payment summary page. I would like my customers to be able to ...
0
votes
3answers
40 views

How to allow customers to input a text as a product variation *and* charge per character?

I'm looking for a way in Woocommerce to add a product variation for customers that will allow them to put in their name/custom word(s) up to a certain character limit and the additional price will be ...