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

learn more… | top users | synonyms

0
votes
0answers
13 views

Multiplying shipping cost

My site is selling a monthly box of which you can order a 3, 6 or 12 month subscription, but the total price is collected up front through woocommerce. I would like to also be able to multiple the ...
0
votes
0answers
45 views

Create custom post type and content of custom post type display in a single product page of woocommerce

Code to create custom post type is here and it's working: $args = array( 'labels' => $labels, 'description' => __( 'Description.', $this->plugin_name ), '...
0
votes
1answer
27 views

Update order status based on condition

I've created a custom field Customer Level for users, and I've also created a custom order status autoprocess. Now I want to auto-process orders based on customer level: add_action('...
0
votes
1answer
71 views

WooCommerce custom loop pagination on front page

I'm having custom page template that I use as front page of my theme. In that page i have section which lists woocommerce products using custom loop. I want to insert next posts pagination to that ...
0
votes
0answers
29 views

WooCommerce account page link

I want to have a link to mysite.com/my-account get_permalink( get_option( 'woocommerce_myaccount_page_id' ) ) This code gives me that url. Except when I'm on page mysite.com/my-account/change-...
0
votes
0answers
10 views

Woocommerce variants CSS targetting issue

When a user is not logged in, they will not see certain things. I've accomplished this with a php/css hack in header.php <?php if (!is_user_logged_in()): ?> <style> ....
0
votes
0answers
39 views

Woocommerce, insert attributes with php

I've created a php program to dynamically insert products into the Woocommerce library. I've some problems with the attributes of my products, I've two php variables. $attribute->titleIt - It ...
0
votes
0answers
18 views

Alter Cart Contents for Specific Product Type in WooCommerce?

With this code I can alter the price for all products in the cart. add_action( 'woocommerce_before_calculate_totals', 'add_custom_price' ); function add_custom_price( $cart_object ) { $...
0
votes
1answer
102 views

Clicking on disabled 'add to cart' button

I have a button in Woocommerce, which is to add to the cart. It will sensibly only add to the cart if the relevant options have already been chosen. Until then, the button is disabled: <button ...
0
votes
1answer
91 views

How to get the original price of the product in woocommerce?

I have created the code to loop through the product list and display the price $args = array( 'post_type' => 'product', 'posts_per_page' => 100, 'product_cat' => 'hot-deals'); $...
0
votes
1answer
26 views

How to create a custom page in woocommerce?

I would like to create a blank page, which is used to list out the product by the category , so far I have found some code like this: $args = array( 'post_type' => 'product', '...
0
votes
1answer
57 views

How to change Woocommerce breadcrumbs content?

I want to customize the breadcrumbs directly from PHP. Some of the pages are generated dynamically and do not exist in the database, therefore i must automatically put them in the breadcrumbs with ...
0
votes
1answer
48 views

Self-cancelling orders when using WooCommerce and Stripe

Unpaid order cancelled – time limit reached. Order status changed from Pending Payment to Cancelled. I've got two clients who have reported getting this on random orders recently. Both stores are ...
0
votes
1answer
130 views

Wp_query WooCommerce products

I'm currently developing an e-commerce store using Wordpress and WooCommerce. I'm planning on creating a basic product filtering system and was wondering if it's possible to wp_query the results shown ...
0
votes
0answers
116 views

Woocommerce: Custom Price Calculation in Variation based on number of pages per book

I am developing a website were you can make and sell your own book. The Product layout needs some specific features that force me to use Product Variations and using the standard Attributes: so far, ...
0
votes
0answers
76 views

Woocommerce own single product page

I change permlink to '/produkt/%product_cat%/%post_id%' and my link looks like produkt/komputery/80/product-name/ - okey It is working. But for tests I change function ...
-1
votes
1answer
30 views

Single product link in woocomerce

I want to change my product link from produkt/produkt-name to produkt/category/subcategory/product_id/product-name/?myvariableParsedByJson Please give me any tips how to do it?
0
votes
0answers
15 views

Where wordpress try to find php file for site?

I have installed woocommerce. When I open site host.eu/product/category/something else `host.eu/product/sth' Where wordpress try to find .php file to run this page? add_rewrite_rule('^product/([^/]*...
0
votes
1answer
27 views

Custom Taxonomy is disabled on Edit page

I created a custom taxonomy that it is being used for the product post type of woocommerce. For some reason when you go to the edit screen it is appearing disabled. This is the code that I'm using ...
0
votes
0answers
85 views

How can I display products from an external API on my Woocommerce (WordPress plugin) based site?

I have a created a new eCommerce store using WooCommerce WordPress plugin. Now, I want to display products from an external site using their API. I've got access and required authentication to their ...
-1
votes
1answer
89 views

woocommerce related products by specific categories [closed]

I am looking for a way to alter the related products functionality to relate one category of products with another. For example: I have 4 categories: Spoons, Cups, Bowls, Straws. When you select a ...
-1
votes
1answer
201 views

Create new product with woocommerce REST API with javascript (clientside)?

Is it possible to create new products in woocommerce using its API with javascript from clientside? I tried this for getting all products: endpoint: https://localhost/wpShop/wc-api/v2/products?...
0
votes
1answer
51 views

WooCommerce: Adding Order Item Meta Data That's Hidden

I was under the impression that if you add an underscore to your meta_key, it would be hidden from the Admin and subsequently the Order Receipts, etc. But, mine are showing? I don't understand what's ...
1
vote
1answer
71 views

How to Get WordPress custom post data in WooCommerce product meta panel?

I have created one custom post in WordPress and also created one custom panel in Woocommerce product attribute panel. Now, How I can display all the content of WordPress custom post into the ...
-1
votes
1answer
26 views

Woo-Commerce new order email no style attached

This one is baffling me, but when a new order is created the email is sent to the customer and a new order email is created but none of the order details are being sent see image: I've gone through ...
1
vote
1answer
122 views

Adding a Clone link to product attributes - post_row_actions() filter, or how to override a Class question

I have a request to be able to duplicate a product attribute in WooCommerce. Think: duplicating a product (with already existing functionality), or plugins that allow you to duplicate a post. However,...
0
votes
1answer
127 views

Change Woocommerce Product Categories Widget 'Title' based on Product Category

I'm looking for a way to change the widget title of Woocommerce Product Categories Widget based on the category I'm viewing. Category 1 -----> Display Title of Widget for Category 1 - Sub ...
0
votes
1answer
290 views

Assign template to edit address form, billing and shipping (woocommerce)

By default, woocommerce has endpoints for editing billing and shipping addresses. You just have to go to my-account/edit-address/billing/ or my-account/edit-address/shipping. What I want is to use a ...
0
votes
1answer
185 views

WooCommerce dynamic price by quantity

I use plugin WooCommerce Dynamic Pricing Display to show calculated price by quantity on product page. Problem is that css styles don't load for my block product-count-price from style.css...I have ...
0
votes
1answer
57 views

How add body_class from wp_termmeta

I need to assign a class to the body for woocommerce categories. What I've done: // add the fields when the term is created add_action( 'product_cat_add_form_fields', 'add_product_cat_class_field', ...
0
votes
0answers
29 views

Add tags to kses_post array parameter

I think I butchered the title but (code below) I am trying to wrap some tags around whatever is written in the $message array, is there a way to do that? Also, is there an easy way to change the $...
0
votes
0answers
63 views

How to create a coupon in the database?

I added over 1000 coupons (schedule ones) in the database. I had one line in wp_posts and several wp_postmeta tables per coupon. To add, I've saw how a coupon was represented there and I've made ...
0
votes
0answers
17 views

woocommerce recent products without certain category

I'm using WooCommerce and MyStile (Theme) Let's consider that I have following categories: Fruits Cars Electronic Software Now on my homepage I want to show the new Products, but only of the ...
0
votes
0answers
43 views

Different template for different category in woocommece

I have two categories in woocommerce One is astrology and Other is numerology. Be default, Woocommerce call archive-product.php for category archive page, but I want to show different layout for each ...
0
votes
0answers
45 views

Woocomerce update variation sale price in functions

i need to write simple code that changes sale prices automatically. Got a lot of products, and sometimes we got promo for one variation of the specific product. Basically, what my codes does its ...
0
votes
0answers
29 views

Private post hidden from Admin too

I have a strange problem. I am running a woocommerce site with several levels of privileges/roles. I wanted to reserve a group of products for specific users and was anticipating modifying the user ...
0
votes
0answers
18 views

How can I manually set an order for specific category in Woocommerce?

I have a shop page in Woocommerce where I manually put the order number through the product page. This is fine when they view the entire collection. What I want to do is set a second order number for ...
1
vote
2answers
33 views

WOO-Commerce translation | Tried it all [closed]

Hope anyone can help me with this problem. I installed WOO-Commerce all great and I set up the language to Dutch ... But as you can see there are still a lot of small things still not adjusted to ...
0
votes
1answer
383 views

How to get the first image gallery of a product in woocommerce in a loop

I want to diplay a product with product image, and when visitor hover that image, will change to first image from product gallery I am using this code to display the image gallery, but displayed all ...
0
votes
1answer
55 views

How to run JavaScript function in WooCommerce checkout?

I'm building reCAPATCHA into my WooCommerce checkout. It is a fairly easy process as I'm using woocommerce_checkout_process to validate the capatcha. However, I have running into one issue. When ...
0
votes
0answers
38 views

Query/load only WooCommerce shop categories into a custom landing page?

I want to reuse the WooCommerce shop-categories in a custom grid landing page, but without the product images, as I am using custom images to make the grid wall. What is the best way to do this? ...
0
votes
0answers
87 views

Woocommerce only show attributes for specific category

I can't work out how to do this. I want to list the pa_country attribute terms for a 'wine' category in the sidebar. I can list all the 'pa_country' attribute terms for all categories, but that is ...
0
votes
0answers
111 views

Add conditional field to woocommerce checkout

I added a few fields to the woocommerce checkout form in my theme. I want to change the list of fields based on the selected value of a select field, e.g: if the user selects "Private" as the customer ...
0
votes
1answer
45 views

WooCommerce pages accessible to logged in members only

I’m building a shop in WooCommerce and wish to restrict access & viewing of the shop to logged in members only. I don’t mind having links to the shop visible (such as in the nav bar), as clicking ...
0
votes
1answer
51 views

Custom search search does not work?

I have a WordPress website with WooCommerce plugin installed. There is one problem that i cannot figure out why do I do not got any search results shown up when I do product search? Website URL with ...
0
votes
1answer
31 views

Can't make product images clickable

I've tried many things and many solutions but i can't make product images clickable. Here's the code: if ( has_post_thumbnail() ) { $images .= get_the_post_thumbnail( $post->ID, 'shop_catalog' ...
0
votes
1answer
190 views

Remove product item from checkout page [Woocommerce]

Is there any way to remove product item from checkout page? Here is code for card page: <td class="product-remove"> <?php echo apply_filters( '...
0
votes
0answers
71 views

I want to show products based on post tags

Id like to get WooCommerce products on the blogpage (single.php) by tag whereas the tag is the same as the blogpage. The idea is when users read the text, they get related products based on tags from ...
0
votes
1answer
19 views

Menu's built in the edit theme view do not have active states set when on child pages

have a menu that is pulled in like this: <?php wp_nav_menu ( array('menu' => 'header') ) ?> I am using WooCommerce and when visiting /shop the shop link in the header has the class: ...
0
votes
0answers
32 views

Get option selected programmatically

I am building a theme options page which will auto activate WooCommcerce. The users will also import demo content which will contain WC pages like Cart, Checkout, My Account and Shop. In the theme ...