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

learn more… | top users | synonyms

0
votes
1answer
2k views

WooCommerce New customer email Hook? [closed]

I've created a sign up page for new customers to create an account. This is working fine but I would like to hook into WooCommerce customer_new_account inside ...
0
votes
2answers
513 views

How do we exclude multiple pages (like opposite of is_page)

Scenario I have a following customized format for the website with Woocommerce. <?php if(is_shop()) {?> There are certain css styles, JS options used for this particular page <?php } ...
0
votes
2answers
670 views

Use meta boxes inside an archive page template for Woocommerce

I'm creating my own Wordpress theme, and I'm trying to make it compatible with Woocommerce. I understand pretty much everything about theming woocommerce, including copying the template files and ...
0
votes
1answer
2k views

Woocommerce include custom stylesheet after woocommerce styling [closed]

After the upgrade to WC 2.1.2 my styling seems to be overruled by the standard WC styling. Is there a way to overrule the standard WC styling without using solutions like using the !important or other ...
0
votes
3answers
2k views

Wordpress Comment Box on woocommerce product page [closed]

can we activate same comment widget on woo-commerce product page which WordPress gives on post or pages. actually i want other users should be able to comment on others comment which is not allowed in ...
0
votes
1answer
5k views

Setting an attribute as variation in woo commerce via php [duplicate]

I have a front-end form I am creating to allow users to publish a variable product to my shop from the front end with predefined attributes and variations. I have found this very helpful question: ...
0
votes
1answer
51 views

Results not being printed

I am trying to run the following code, which i got from the site but i don't see any output.When i do print_r($product) only then i get array back. $args = array( 'post_type' => 'product', ...
0
votes
1answer
46 views

WooCommerce Bookings Plugin Not Saving Order ID

I have built a site using WooCommerce Bookings with an AJAX request that processes the payment, creates and order and lastly creates a booking with the order ID. However, when I send the newly ...
0
votes
1answer
30 views

Change Woocommerce languange on a multisite install

I have been trying to figure this out but seems that there is no way to do it, and I don't want to use WPML, I have been using it and it's super heavy and buggy. So, the question is ... Is there a ...
0
votes
1answer
65 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
24 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
38 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
50 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
1answer
60 views

How to set up Custom Post Type archive page as Front page

I've registered a custom post type named portfolio and have coded it's respective archive-portfolio.php file. Now, my requirement is to make this page available to be set as front page. For which I ...
0
votes
1answer
31 views

How can I add an extra WooCommerce hook

In the standard WooCommerce template file content-single-product.php there is a set of hooks that control the way the page lays out in a series of blocks which are called by a series of hooks eg ...
0
votes
1answer
29 views

How to increase execution time out limit in WordPress dashboard?

One of my plugins creates a time out every time I visit the Products admin page in my WooCommerce website dashboard. I can't deactivate this plugin as it's absolutely essential for what we do. Any way ...
0
votes
1answer
27 views

Customizing WooCommerce

I'd like to customize something in woocommerce. Here is the example: I've added some categories in woocommerce (Product Categories). For example, there are two categories like "SALE" & "New ...
0
votes
1answer
90 views

Display File Types For Woocommerce Downloadable Products On Product Page

I offer downloadable products with woocommerce and each product is allowed to have multiple files. I would like to display the file types/formats on the product page so users know what each product ...
0
votes
1answer
81 views

Woocommerce Register Error

Before posting this question i have tried solution posted here https://support.woothemes.com/hc/en-us/articles/202828575-Redirect-to-a-custom-page-after-logging-in I need to redirect user at specific ...
0
votes
1answer
120 views

Get product link

I want rating from customers by sending mail after order is completed. If customer will click link on mail for review it should redirect to same current product page of my site. How do I do this. I ...
0
votes
1answer
185 views

Getting Wordpress database error Deadlock

I keep getting errors like the following: [29-Dec-2015 03:06:14 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE ...
0
votes
1answer
427 views

WooCommerce return 404 on category pages

I am trying to set up WooCommerce permalinks to get something like: example.com/shop/ => Shop page listing products example.com/shop/category-name/ => Category page listing products from a category ...
0
votes
1answer
52 views

How to change layout of shop page in wordpress? [closed]

Currently I am working on shop page. And according to the design I have to insert a banner after 4th product and after 7th product and I have 3 products in each row and Banner's size is equal to the ...
0
votes
2answers
43 views

Change permalink for custom_post_type using custom_post_meta (woocommerce)

I would like to replace the permalink for all products in a woocommerce/wp installation with a custom link, if it set in a custom_post_meta. The custom_post_meta is setup and working fine. From all I ...
0
votes
1answer
124 views

Multi-vendor with custom shop site for each vendor

What is the best way to create a multi-vendor site that allows user to register as a vendor and not only this but it provides the vendor a new custom shop web-site which he/she can customize by ...
0
votes
2answers
134 views

Use WooCommerce function in other Wordpress plugin

I am currently trying to make a plugin which updates the stock count of my WooCommerce products. So I wanted to access the wc_update_product_stock function, but an error got returned instead. Code ...
0
votes
1answer
116 views

WP_Query for products always returns empty

I have a simple following logic: $args = array( 'post_type' => array('product'), 'product_cat' => 280, 'posts_per_page' => 3 ); $category_posts = new WP_Query( $args ); ...
0
votes
1answer
118 views

WooCommerce set a min order price for a single country

I'm trying through this code to set a minimum price for orders: // Set a minimum dollar amount per order add_action( 'woocommerce_check_cart_items', __NAMESPACE__ . '\\spyr_set_min_total' ); ...
0
votes
1answer
92 views

Change WooCommerce add_to_cart Button Text?

I am trying to change the add_to_cart button text for all products based on category. For category 'course' with ID 330, I would like the button to read 'Register'. For all other products, I would ...
0
votes
1answer
125 views

Woocommerce custom Plugin in wordpress [closed]

I want to access the ID of the product currently being displayed on the page. I am trying to do this in a separate custom plugin. I have tried global $post and global $product and get_the_ID() methods ...
0
votes
1answer
65 views

Which Multi-language option for Wordpress is best from an SEO and Woocommerce perspective?

I am wanting to set up an English and German version of a site for selling products and using content marketing. So I will be doing key word research in both languages. There will be a lot of ...
0
votes
1answer
98 views

Woocommerce purchase date [closed]

I am creating a membership site with Woocommerce and need to display how long is left on the membershop, I am guessing I need to do a DB query to get it, but is there a function I have missed that ...
0
votes
1answer
453 views

UWooCommerce - add cart discount programmatically?

I need to develop a plugin that applies a discount to the cart if x number of products have been purchased. Could someone point me in the direction of the code/API I need to use. Can find nothing ...
0
votes
1answer
771 views

How to add a special Woocommerce “buy now” button?

I wish to ADD a "buy now" button on product page , and redirect to checkout page after clicking it but without adding the product into cart. For example, if there are already products A,B in the ...
0
votes
2answers
119 views

Strip string from $_product->get_title() to get a cleaner mini-cart

I am using a customized mini-cart.php file, in which there is this line of code: $product_name = apply_filters( 'woocommerce_cart_item_name', $_product->get_title(), $cart_item, ...
0
votes
1answer
308 views

Woocommerce Mandatory Field on Shipping Details

I am trying to add a Phone Number mandatory field to the Shipping Details page of the Woocommerce checkout but it should only be mandatory if an alternative shipping address is selected. Woocommerce ...
0
votes
1answer
667 views

Automatically add attributes to woocommerce product?

I'm trying to make WooCommerce automatically add some attributes to a product when it's created. I'm trying to find the right hook to start with, so far the only one that seems correct is ...
0
votes
1answer
29 views

get_posts $args won't accept array as one of the criteria?

The goal is to list attachments underneath a WooCommerce product, using the tags from that product. Everything works fine if I manually enter the tags at 'product_tag', but when I try to use an array ...
0
votes
1answer
97 views

Change Meta Title seperator and remove on homepage

I'm trying to change the character which is used as a seperator in my page title. At present it is in the format Site Name - Page Title However I would like to change this hyphen to a pipe ...
0
votes
1answer
75 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
1answer
2k 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 ...
0
votes
1answer
119 views

Woocommerce Product attribute not imported with wordpress Importer [closed]

I used the WordPress Importer plugin and successfully imported all content but woocommerce product attributes are not imported. Tried a few different tests, and few different servers. Same result. ...
0
votes
1answer
49 views

Remove sale signs from site in branded? [closed]

I recently developed a Wordpress site, it's developed with Woocommerce plugin. Here is my site link. It's showing sale sign top of the every brand. How to remove it?
0
votes
1answer
84 views

WooCommerce “Checkout Now” button [closed]

Okay so I want to add an additional button to the single product page that says "Checkout Now". This checkout now button should go directly to the checkout page, not the cart page (like the regular ...
0
votes
1answer
104 views

Using Cookie Data For WP_Query Loop

I'm trying to retrieve data set in a cookie and use this to run a query. I've set the cookie in functions.php like so; add_action( 'init', 'resultsCookie' ); function resultsCookie() { ...
0
votes
1answer
608 views

Woocommerce change prices for a certain country [closed]

I want to change the prices (e.g for switzerland CH) and add an amount to all the prices.. I have this for my functions.php, but it does not work... add_action( 'woocommerce_change_price' ); ...
0
votes
1answer
278 views

Woocommerce hook on address field change [closed]

I need to add/update shipping cost to the cart widget based on address field entered/changed. Is there any Woocommerce hook which would let me update 'Local Delivery' value after address field is ...
0
votes
1answer
352 views

WooCommerce print subcategory of product

I am using Wordpress with Woocommerce, I am on the detail page of the product content-product-single.php. I created several "sub" and I have to print ONLY subcategories associated with that product. ...
0
votes
1answer
984 views

How to trigger WooCommerce order complete email?

I want to be able to trigger the WooCommerce order complete email at a different stage in the WooCommerce checkout process. So I've disabled WooCommerce order complete email from the backend and am ...
0
votes
1answer
312 views

Adding “reply-to” in the email [closed]

So, I am trying to add "reply-to" in the order email using the billing_email Here is what I have so far but the code is not written well and I am not sure how to change it. Here is the original: ...