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

learn more… | top users | synonyms

0
votes
0answers
37 views

Cannot override price in cart using 'woocommerce_before_calculate_totals' hook

I have created a custom product type in woo-commerce. And extended the WC_Product class as below. class WC_Product_wfpb extends WC_Product{ var $wfpb_sprice; var $wfpb_onproduct; var $wfpb_oncart; ...
0
votes
0answers
19 views

Woocommerce Product Pages, Hooks, changing page layout

I'm trying to rearrange the layout of the product listing below. I'd like the short description to appear next to the product image, rather than below it. Now I know I need to change the hooks in the ...
0
votes
0answers
24 views

Add a custom field inside product description metabox in woocommerce

I would like to add a custom field in a meta box(Product short description) in woocommerce. The metabox is already built but I can't find a way to add an extra field to that metabox. This is the ...
0
votes
0answers
23 views

Woocommerce admin product list extended search

I need to search in product custom fields on admin product listings. The code I am using: Problem that this search only on custom field and now can't find by title or description... what can you ...
0
votes
0answers
38 views

Not able to access wordpress posts using REST API

I am working on mobile application for my website. I am able to access the URLs from postman client but when i try to access the same using my mobile app client then i am getting 401. I have using ...
0
votes
0answers
22 views

Wordpress using get_term to retreive slug not working as expected

Im using the below code to try and get the slug for the current category and the parent category. Ive managed to get as far as getting the currently cat slug but the parent displays in readable text ...
0
votes
0answers
26 views

Custom query filter not working on woocommerce category page

I am trying to make custom filter for my woocommerce website. Everything is working fine in the shop page, but when I go to the archive page the filters are not working. I am recording each filter ...
0
votes
0answers
16 views

Recognizing Paypal IPN sessions

When doing WP Plugin development, is there a way to recognise a Paypal IPN session? With gateway sessions that are all processed during the user session, wc_get_current_user() will be populated, as ...
0
votes
0answers
38 views

Cast woocommerce events date meta_value with wrong format in WP_Query

I'm using woocommerce events plugin to sale tickets in a client site. The client wants to display the next 3 events after today in the home page. I have created this code: $args = array( '...
0
votes
0answers
12 views

Woocommerce view-order 404 error

Our customers can't see their order by the link on there profil page. They've got an 404 error. Permalinks have been refresh. No cache plugin on the website. No custom template for these part in my ...
0
votes
0answers
42 views

WooCommerce: Making a loop create divs of categories, with category products inside

I have a php/wp script written which in theory should print a div with a category name, description, and all of its products inside. The code looks like this: <?php $args2 = array( 'taxonomy' =&...
0
votes
0answers
46 views

Adding a query string to product links

I need to add a query string to the end of the links generated by a [products] shortcode from WooCommerce. Each product appears with three links. The image, the title and the add-to-cart button. I ...
0
votes
0answers
19 views

How to pass the Shipping tax and set shipping is taxable or not in the WooCommerce order API?

I had passed the order data as below given with shipping tax as zero, And also i am passing the flat rate as shipping method, for the flat rate i have given taxable option as none in WooCommerce ...
0
votes
0answers
16 views

Creating multiple private shop pages with expiry link for each

I am currently working on a Woocommerce Store with more than 500 products. Client wants to have some private shop pages. Let me explain it more broadly, he wants to have different shop page links ...
0
votes
0answers
34 views

The plugin generated xxx characters of unexpected output during activation

I know this question has been asked 100 times, and I've googled it and tried multiple solutions, but I'm still getting this error. I removed all the white space, tried to encode it in UTF-8 in notepad ...
0
votes
0answers
21 views

bypasss, or generate, download permissions for users with subscriber flag

I've got a small number of users of a legacy site who are subscribers. I can change HTML based on that flag, but I don't want to add download permissions for each user, for each product, if I can ...
0
votes
0answers
59 views

Adding read more function through wordpress

First of all. I know wordpress has a read more function but that won't work either. Probably the same issue that's stopping me in the following. So i'm trying to create a read more function on my own....
0
votes
0answers
21 views

WooCommerce Shipping

I have a WordPress site using WooCommerce with bespoke shipping functionality on. All it does is find the users shipping address and works out the distance between the customer and the depot, based on ...
0
votes
0answers
37 views

Restrict access to shop pages for user role subscriber

im realizing an member area with the plugin WP-Members. I have to add an shop in this member area. My problem now is that i have just one user with the role of subscriber to enter the blocked content. ...
0
votes
0answers
21 views

Adding individual item quantity in product archive thumbnail

I have a woocommerce shop which is showing all my products. Each product thumbnail in the product archive page also has ADD TO CART button in it. Clicking the button dynamically updates that product ...
0
votes
0answers
25 views

Function to change text with <br> tags into Unordered List

I've tons of product pages in Woocommerce where product info was bulk imported using CSV file. Now, all these hundreds of pages carry <br> tags for 'features' - which I want to change to ...
0
votes
0answers
95 views

Additional stock options in woocommerce

I found a really useful piece of code in this post: http://stackoverflow.com/questions/26912556/add-stock-option-in-woocommerce/ This code adds additional statuses to the original stock options in ...
0
votes
0answers
34 views

Get WooCommerce Sidebar Layered Nav filters to work with shop page filtered by on sale products

I'm I've successfully got the default WooCommerce Shop page to only query products with an on sale status thanks to this link here http://www.kathyisawesome.com/woocommerce-modifying-product-query/ ...
0
votes
0answers
10 views

Can't display tag cloud by widget

I want to display tag cloud products and to use the widget of woocommerce - Tags products. Tags isn't displayed even though they are added to the 90% of the products. Tested on other sites and work ...
0
votes
0answers
16 views

Remove WooCommerce menu_order_count action

Trying to remove the action that adds the processing order count to the WP Admin menu with the following but the count remains in the menu: remove_action('admin_head', array('WC_Admin_Menus', '...
0
votes
0answers
62 views

Woocommerce Product Add-ons - Auto-select first option

The agency I work for are trying to get a client's website to auto-select the first option on the maintenance packages for their products. Currently, we are using an if statement within a foreach. ...
0
votes
0answers
53 views

Changing a theme's search function to only show results from woocommerce?

I am very new and trying to learn as I go. I bought a premium theme from themeforest, without checking the functionality of various pages. Tried their support with no solution offered. Now I am ...
0
votes
0answers
12 views

Check If WooCommerce Product Downloadable From Edit Screen

I'm creating a plugin for WooCommerce and I want the metabox to show only when the "downloadable" checkbox is clicked. Are there any conditionals for this when dealing with the edit page of the ...
0
votes
0answers
83 views

Move Woocommerce Variation Price

On the single product page of WooCommerce, I would like to move the woocommerce-variation-price under the product title. I came across the following snippet... but I can't seem to find the ...
0
votes
0answers
17 views

Loop through author and edit post tags

I'm setting up a 'free marketplace' for a friend based on wordpress and a woocommerce theme (makery). Each user has his own shop and products. Both the shop and products are custom posts that belong ...
0
votes
0answers
85 views

Hidden products included in search result count and pagination

I have this website I'm building: http://olivinelife.wpengine.com/ but I'm having an issue. If you use the search bar in the header to search for "Square" it brings back 5 results but says there are ...
0
votes
0answers
79 views

Adding product image to woocommerce through rss feed?

I'm trying to migrate thousands of products to woocommerce. I made a research and had success, using the code from this page here -> How to add product in woocommerce with php code. Unfortunately ...
0
votes
0answers
27 views

Adding a parent category, and re-assigning existing products to that parent category

I'm using Woocommerce. I have around 500 existing products, assigned to categories such as "t-shirt" "socks" "shoes". I want to put all of these under a parent category named "clothing", but the ...
0
votes
0answers
37 views

Cloning terms for an attribute

I am trying to duplicate terms for a product attribute. I was able to set up a "Clone" link from my previous question. I can successfully clone the attribute, but I am having trouble assigning ...
0
votes
0answers
63 views

How to add a description of the shipping method, woocommerce?

How to add a description of the method of delivery. Like payment methods Is it possible to add textarea in the admin panel for editing shipping method? Thank you
0
votes
0answers
37 views

how to refresh woocommerce products

i have a bunch of products in woocommerce that i had to export and fix and then re-import. Everything seemed to go smoothly except for 1 thing. Each of the prouducts had a Advanced custom field ...
0
votes
0answers
41 views

Customize add to cart

I have created a page of getting custom values from the customer but the process will be taken place in steps like select lesnes click next select product frame click next so all the information ...
0
votes
0answers
88 views

Adding functions into WooCommerce Checkout Procedure breaks order confirmation

I'm pulling my hairs out over this issue. I run a plugin named YITH Vendors which allows for individual vendors to be created in a WooCommerce shop. It offer the functionality to have vendors register ...
0
votes
0answers
38 views

How to retrieve referrer tag, and save in custom fields for each WC order?

I need to save the traffic source of each order for my Woocommerce store because I need to know what internal page or external website had resulted in that order. I'll need this for customer service ...
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
46 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
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
20 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
0answers
51 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
0answers
124 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
77 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 ...
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
0answers
91 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 ...