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

learn more… | top users | synonyms

8
votes
2answers
33k views

Hide prices and checkout functionality in woocommerce

I know this question might be too broad, but I'm looking for a bit of direction. My client has a woocommerce store with 30-40 products. For whatever reason they do not want to sell online anymore, ...
2
votes
4answers
18k views

Changing Woocommerce Product Description [closed]

I've been changing the way that the Single product page looks. I've moved a few things about by hooking into Woocommerce and also editing the css. Out of the box the single product page shows the ...
8
votes
3answers
33k views

How do I get WooCommerce to automatically recreate pages? [closed]

I had to uninstall WooCommerce plugin (I deleted the tables it created as well) and now I reinstalled the plugin and I doesn't automatically recreate the WooCommerce Pages. Am I stuck having to ...
7
votes
3answers
79k views

How to Display Product specific to a category with WooCommerce Plugin? [closed]

I'm using plugin Woocommerce to do shop online. I have many categories for example shoes, clothes and so on. How can I display the products of specific category? I see such product loops of on the ...
2
votes
1answer
2k views

Edit tag cloud widget number

By default, the WordPress tag cloud widget has a set amount of 45 tags to display. This can be seen in the wp-includes/category-template.php file. By default, the WooCommerce plugin which I have ...
0
votes
2answers
688 views

Hide a Menu Item on Login

I am using the following code to hide a menu item when a customer is not logged and show it when a customer is logged in. .hide-item-not-login{ display: none !important; } .logged-in ...
-5
votes
1answer
551 views

WooCommerce Total # orders [closed]

total number (#) of orders, maybe create the function in functions.php and call it in a shortcode anywhere in page. I just don't want to update it.
7
votes
1answer
24k views

How to add product in woocommerce with php code [closed]

I want to add products with PHP code like below: $post_information = array( 'post_title' => 'new item shop', 'post_content' => 'this is new item shop', 'post_type' => 'post', ...
7
votes
4answers
11k views

How do I delete all UNUSED images from my uploads directory?

I am trying to clean out my uploads folders as they are now starting to take up too much room on my server. I have tried to use plugins to achieve this end such as DNUI and Cleanup Images but these ...
-1
votes
1answer
12k views

Add custom variable to cart content [closed]

I have added a custom variable in the product detail page and I can pass the custom variable value into add to cart function. public function add_to_cart( $product_id, $quantity = 1, $mmCentre, ...
1
vote
1answer
917 views

woocommerce - get_image_size() deprecated [closed]

Today I've updated my woocommerce plugin and get a fatal error on: $woocommerce->get_image_size( 'shop_catalog_image_width' ) I'm using it in a hook function to get the placeholder width: ...
1
vote
2answers
6k views

Make WooCommerce pages accessible for logged in users only

I have a website using WordPress, and an e-commerce using WooCommerce. I would like my shop (and all its pages) to be seen by logged in users only. Via the User Access Manager plugin, I have denied ...
3
votes
2answers
4k views

Display Category Thumbnail and links in Woo commerce

I would like to display my categories with a thumbnail in woocommerce. I am able to list the child terms as a link but i would like to add additional content. I have added the code below in which I ...
2
votes
2answers
2k views

Save Custom Fields for Variations Product

Currently I am using WooCommerce for WordPress and trying to add custom fields for Variations Product. After did some researches, I found some code and tried to modify it. This is my full code : ...
1
vote
2answers
429 views

Hide a menu-item and its submenus and display a 'Log in' link if the user is logged out

I need, somehow, to enable that when you logout, that 'My Account' item is getting hidden from the navbar, and instead it displays a 'Log in' link. The item 'My Account' also have submenus with the ...
3
votes
0answers
9k views

How to get Woocommerce Variation ID? [closed]

I am trying to create some additional functionality on my Woocommerce backend where I add a custom field to the variations section of backend of Woocommerce. However I cannot for the life of me ...
2
votes
1answer
986 views

WooCommerce Always Include Shipping Information in Checkout [closed]

I have virtual products in my store but I still want to collect the shipping information from my customers so that I can mail them a card at the end of the year. But a cart with virtual products ...
1
vote
1answer
92 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. ...
1
vote
1answer
123 views

Editing Header Titles of each details in woocommerce Order Email [closed]

I'm using flatsome theme, woocommerce plugin. On my thank you page I get the bank details, order details and customer details etc. but on customer order email, header TITLES of those details are ...
1
vote
1answer
135 views

Taxonomy , subtaxonomy,child taxonomy of a product woocommerce

Hi i need to get the main taxonomy and sub taxonomy of a product in woocommerce . i know how to get taxonomy details .123 is product id . $terms = get_the_terms(123, 'product_cat'); I know how ...
1
vote
1answer
43 views

Insert Featured image from Feed

I am importing products through a feed programmatically as follows: $request = wp_remote_get('myapiurl'); $response = wp_remote_retrieve_body( $request ); // decode the json $json = ...
1
vote
1answer
357 views

How to set value/term of a Woocommerce attribute text field in admin panel?

I am developing a plugin which is supposed to auto-fill the attributes text field. There is a URL text field where user enters URL, on focus out I trigger a AJAX call through which I am able to save ...
1
vote
0answers
37 views

Drop down multi column menu Width reduce

I have developed wordpress website using Woo commerce plugin and I have created multi column menu drop down menu. My Site Link Url: Site URl In my Site I have watch brands, knife brands and also ...
1
vote
1answer
195 views

How to solve suspected memory issue in custom WordPress loop?

I have written a plugin that adds a "Where did you hear about us?" question to the WooCommerce checkout page and shows the results (as a simple horizontal bar chart) in a wp-admin page. The plugin ...
1
vote
1answer
2k views

How do you access the Product Short Description in a WooCommerce email template? [closed]

I would like to output the Product Short Description beneath the product name inside the order items table inside WooCommerce emails. I think I know where to place code inside the email template file, ...
1
vote
2answers
3k views

How does Wordpress redirect to WooCommerce shop page? [closed]

I'm creating a plugin for WooCommerce, it needs a parameter in the url of shop page like this http://domain/wp/shop/?param=value. It worked fine until I set the shop page as front page, when I access ...
1
vote
1answer
922 views

Add sku to product url woocommerce [closed]

I want to make url's with the following structure: www.mywebsite.com/wordpress/product/postname-sku for example: wordpress/product/apple-ap01 Is this possible? And also tell if this done with ...
1
vote
2answers
763 views

WordPress Displaying Thumbnails Vertically

WordPress is displaying my thumbnails vertically and VERY LARGE. Specifically it's displaying WooCommerce product page thumbnails vertically and VERY LARGE. Can't seem to figure out why or what piece ...
0
votes
0answers
10 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
1answer
97 views

woocommerce method to preview new order email,avilable hook

(1)I need to alter the new order email in woocommerce and need to see the preview . For to alter the content i create woocommerce/emails/admin-new-order.php inside theme folder .But when i preview ...
0
votes
0answers
192 views

Woocommerce - Send billing details to email

I'm new to wordpress and woocommerce and I'm trying to send the details of anyone making a purchase on my site to an email script I have. I've done some research and it seems the best way to do this ...
0
votes
1answer
115 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
93 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
0answers
148 views

How to remove custom post type slug & taxonomy-base from URL in WordPress

I am using woo-commerce I have bellow code to remove the post type "product" slug from url and it works fine. Product url = http://example.com/product/product-name/ to Product url = ...
0
votes
1answer
6k views

Display featured products through custom loop in woocommerce on template page

I was wondering if someone could help me out. I would like to display 6 featured products from my woocommerce store on my home-page.php template. After some researched I found that the right way to do ...
0
votes
1answer
10k views

Woocommerce registration page [closed]

So...I just found out that the shortcodes for the login and registration pages are now removed from Woocommerce.... I know the forms are inside "My account" page, but I need a link in the menu to ...
0
votes
3answers
2k views

Custom Woocommerce image size [closed]

Woocommerce has three built in image sizes. But since there are more than three different container sizes, some images always get stretched or squeezed. Hence image quality and page speed suffer. ...
0
votes
1answer
992 views

Add .html to Woocommerce permalinks

I'm redesiging a site for a client using Wordpress and WooCommerce and I need to add .html to all the woocommerce permalinks so they don't lose any SEO ranking when we go live with the site. Does ...
0
votes
1answer
595 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
3k views

woocommerce - products by category slug? [closed]

good morning, I need to display the shop base page in a category layout,meaning first show all the products from category A and beneath it all the products from category B and so on.. I trying to use ...
0
votes
0answers
261 views

Update all posts in one go

I've just used the woocommerce CSV uploader to add 1000+ products to an online store. However the products only appear in the store after they have been updated - And it has to be from the main edit ...
-2
votes
2answers
71 views

Woocommerce linking variations

So I have this array (just taking an example, it's dynamically built up): $v_values = array( array("C1","C2"), array("F1","F2") ); $v_name = ...