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

learn more… | top users | synonyms

0
votes
1answer
51 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
25 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
25 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
2answers
174 views

In WooCommerce I need to modify the thankyou.php page [closed]

In the thankyou.php template there is an action showing the section marked in red in the image. The problem is the caption/title "Our Bank Detals" should be above the description not beneath. The ...
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
74 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
66 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
95 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
158 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
302 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
43 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
106 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
104 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
102 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
98 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
86 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
109 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
589 views

How to get product count with respect to categories in WooComerce

Hi I want to display all the categories of products in a loop to display them in category menu along the numbers of products each category contains. Some thing like that so far I have done this to ...
0
votes
1answer
59 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
89 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
361 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
645 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
111 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
262 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
606 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
27 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
85 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
71 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
1k 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
111 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
941 views

How to delete woo commerce order pragmatically? [closed]

I am trying to delete an order from database i was tried using bellow function but this is not working.can any body tell me how to delete an order from db using order id. <?php ...
0
votes
1answer
48 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
76 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
995 views

WooCommerce - Create Products Programatically [closed]

I'm writing a plugin that will automatically import products via JSON API. I need to programatically create/update products. I did a research and it seems everyone is using wp_insert_post() and ...
0
votes
1answer
97 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
549 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
241 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
339 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
859 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
294 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: ...
0
votes
2answers
178 views

How to add category and subcategory in WordPress custom code?

I create custom plugin for import categories. now i have categories array from api.but when import categories into my wordpress woo commerce means not working. My code is given below. public ...
0
votes
1answer
475 views

WooCommerce -> wc_enqueue_js not working [closed]

I have a plugin that was using a deprecated function add_inline_js. I've changed it for wc_enqueue_js but it's not working. What I'm doing wrong? $woocommerce->wc_enqueue_js( file_get_contents( ...
0
votes
1answer
103 views

How can I selectively insert a header for my shop page in woocommerce? [closed]

I use a this line of code in my sites in order to change my header (and hence my css) depending on what template I'm using: <?php include ('otherHeader.php'); ?> however, with woocommerce ...
0
votes
1answer
450 views

Trying to disable slider for WooCommerce price filter [closed]

I'm currently working on an e-commerce site that uses WooCommerce, and the client wants to change the price filter from the existing range slider to the two inputs. By default, WooCommerce creates it ...
0
votes
1answer
217 views

Custom Taxonomy Select Menu: Setting default option value?

I'm creating a series of select drop down menus that pull data from various taxonomies. I got this PHP script working for a WooCommerce attribute of color: function get_color_dropdown($taxonomies, ...
0
votes
1answer
559 views

How to execute a javascript function just before saving a woocommerce post or a post?

I am working on this project and I am trying to execute a jquery or javascript just before saving the post, I have tried the following: function do_something_with_a_post($id) { ...
0
votes
1answer
131 views

What happens in the database when you link variations in woocommerce? [closed]

I have a program that sends products to the woocommerce backed website. I succesfully have it sending single products but variable products are only 90% of the way there. When I send it I create the ...
0
votes
1answer
2k views

How to get_template_part using AJAX?

I'm currently on the Woocommerce archive-product.php template file (say shop page or product category page). On the click of the post (or product), a GET query is added to the title of the same page, ...