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

learn more… | top users | synonyms

1
vote
1answer
106 views

How to display custom field in woocommerce orders in admin panel?

currently i add a custom billing field in woocommerce by function custom_override_checkout_fields( $fields ) { $fields['billing']['billing_phone_new'] = array( 'label' => ...
1
vote
1answer
44 views

Limiting woocommerce line_total decimal length

I am trying to get line_total woocommerce price, but i just cant figure out how to deal with number of decimals. It is now showing price with 4 decimals like 5.5444$ and i want it to show max 2 ...
1
vote
1answer
121 views

Can I remove WooCommerce main content hook?

<?php /** * woocommerce_before_main_content hook * * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content) * @hooked woocommerce_breadcrumb ...
1
vote
2answers
36 views

Help with some php math in Wordpress

I've made a woocommerce store and I am using a dropshipper - so every product has an price and a trade price for me - which I am importing and storing as a custom field 'trade_price' on the product. ...
1
vote
2answers
229 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 ...
1
vote
1answer
340 views

How to check if a plugin (WooCommerce) is active?

I am trying to modify the head and foot of my WooCommerce pages. I have an if statement that is supposed to target the shop and cart of WooCommerce, but it isn't. If I modify the PHP after the if ...
1
vote
1answer
486 views

Unable to display custom fields on WooCommerce product pages

I've set up some custom fields using the existing 'custom fields' panel on a WooCommerce product page. I'm unable to display these on the front end. My technical knowledge is limited but I've tried ...
1
vote
1answer
153 views

Exclude Empty Child Categories in Menu

I am working in WooCommerce and trying to filter out the empty sub categories. I found this code, which filters out everything "empty"...including my Home page link, About us link, etc. function ...
1
vote
2answers
623 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 ...
1
vote
1answer
553 views

Top level parent taxonomy ID

At the top of a product archive page I am trying to display a list of product categories. The rule should be that the list always shows the direct children of the top level. There are several answers ...
1
vote
2answers
45 views

In WooCommerce I need to modify the thankyou.php page

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 ...
1
vote
2answers
28 views

Following migration from DEV to LIVE, woocommerce can't checkout

I've spent all day on this and I've run out of ideas. https://www.thunderbrook.co.uk I've taken over dev of an old site that was running woocommerce with a Theme by cardinal. I wasn't comfortable ...
1
vote
1answer
256 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
1answer
77 views

Reduce Drop down Menu Width in Wordpress

i have used drop down menu. its have two brands of column one watch another knife. previous watch have 5 column drop down mega menu. i had removed two column. its now showing extra black space. how ...
1
vote
1answer
118 views

How to get term name with link for specific ids

I am trying to display custom category on archive page. $term_id_array= array(1,2,4,50); how to retrieve the term name with link for these term_ids My custom post_type name = product taxonomy = ...
1
vote
1answer
107 views

Filter available WooCommerce payment gateways by role [closed]

I know WooCommerce is not well-received here, because it's not directly related to WordPress, but as support on the WooCommerce forums is just that terrible and people here having proven they're ...
1
vote
1answer
368 views

Issue adding text after short description on product pages Woocommerce [closed]

I am trying to add some text after the short description on woocommerce. I have come up with the following add action but when I use it, it replaces the existing short description text. Is there a ...
1
vote
1answer
310 views

Arranging Product Details on Shop Page

I am attempting to edit my Woocommerce site (locally) and rotate the product cards horizontally. For an example of what I'm trying to do, check out B&H Photo's layout. I'm using Foundation ...
1
vote
1answer
193 views

Default woocommerce placeholder image

So, here is the woocommerce setting that I have. I have three categories: A, B and C. From the backend, I gave category images to each categories. Now, let say I post a product in the category A ...
1
vote
1answer
1k views

Changing the Woocommerce breadcrumb menu [closed]

Currently I making changes to Woocommerce's breadcrumb menu. I’m trying to get it to look like this: <div> <ul class="crumbs"> <li> ...
1
vote
1answer
587 views

Display featured products by category

I have this code in my themes' shortcode to display featured product rating product like this. But I need to get product by category show. Which code do I have to add. Any suggestions? if($type == ...
1
vote
1answer
961 views

woocommerce allow users to select or use avatar

I am working on constructing a ecommerce site that is run by woocommerce and the free woo theme artificer. Standard with the plugins there is a my account page which allows you to put in basic ...
1
vote
1answer
4k views

Problem With Order Item Meta In Woocommerce

I'm following Xatic's tutorial to help me add custom data to products. I've managed to be able to have that data on the cart page. However, it doesn't display in the order page in the admin backend. ...
1
vote
1answer
245 views

Product admin page breaking with too many product variations [closed]

When adding more than 100-155 variations to a variable product our admin page seems to break and loose all it's layout and i'm not able to edit anything to do with the product. Some of our products ...
1
vote
1answer
3k views

woocommerce - How Can I add author metadata for a product? [closed]

Hi I am using woocommerce with Mystile Theme for a book store. How Can I add author taxonomy for a product? I need to set an author for every book I am selling and possibly to search trough, author, ...
1
vote
1answer
28 views

Creating loop within functions.php

I'm using Woocommerce on my website, on the checkout page I've got a custom select checkout field with radio buttons. I'm using this working snippet within my functions.php: /** * Add the field to ...
1
vote
0answers
21 views

How to add WooCommerce Add to Cart button in widget?

How can I add a separate WooCommerce widget, with the Add to Cart button and its options, so I can display it anywhere in the sidebar of the product details page?
1
vote
1answer
32 views

add_filter to modify woocommerce_cart_item_name hyperlink

I would like to override the woocommerce_cart_item_name hyperlink in order to direct the user to my own page when they click on the name of the product in the cart. I do not want to modify the ...
1
vote
0answers
16 views

Woocommerce Postcode/zip two seperate fields (numbers & letters)

A client of mine wants to keep the numbers and the letters of the postcode seperate ex. 4800 AA. Is there a way to do this easily? I've been looking around for some plugins with which i could do ...
1
vote
0answers
29 views

get product title ID and price and product picture woocommerce by cat-id query select mysql

i have query that return categories in woo-commerce like this: SELECT wp_terms.term_id AS id, name FROM wp_terms INNER JOIN wp_term_taxonomy ON wp_terms.term_id = wp_term_taxonomy.term_id WHERE ...
1
vote
0answers
9 views

woocommerce prices location in DB

I'm looking for location of product's prices according to the option which user select in product price. for example ,this woocomerce shop sakala.ir/product/bundle-cashmere-3 has a select which ...
1
vote
1answer
12 views

WooCommerce - Display nested list of all subcategories on archive-product.php

When a user clicks on a product category from the WooCommerce shop page, instead of the default, I need it to look like the below design, the second picture marks what I mean: So basically, I ...
1
vote
0answers
16 views

How to show WooCommerce custom value in product page?

This my website. I just updated WooCommerce today and I lost my customization. With this value I was showing my product weight: and it was showing on the frontend like this: but after ...
1
vote
0answers
29 views

Insert variations via woocommerce api

I want to add variable product via woo commerce API. I successfully added the normal product via node js and php but need some example how to add variable product. I searched in documentation ...
1
vote
0answers
32 views

Create WooCommerce subscription on import CSV order file

I have a WooCommerce WordPress site running, with the upload function of customer / Order / CSV Customer Import Suite (WooThemes). This only uploads my orders & not my subscriptions ( Woothemes ...
1
vote
0answers
27 views

Importing Product Variation Images Swatches

I want to upload several thousand variable products to Woocommerce using the WP All Import plugin. I also want to display product variations using the Color or Image Variations Swatches plugin, which ...
1
vote
0answers
13 views

How to assign a customer to an order?

I have a problem assigning a customer to an order using a php script. Is it even possible? I know, that it is possible to get the customer ID back from the order, but I can't find a way, how to set ...
1
vote
0answers
8 views

Woocommerce Subscriptions: Change Upgrade/Downgrade Link

I'm trying to change the default page used when switching a subscription. The snippet of code below does change the location but it doesn't add the nonce permalink to actually change the plan. Anyone ...
1
vote
0answers
31 views

How can I contact a function inside a plugin's class?

I have a plugin, and it has a some functions inside a class, look like this: class Sat_WC_Order_SMS { ... public function __construct() { $this->instantiate(); add_action( ...
1
vote
1answer
60 views

Remove Woocommerce product link

I'd like to remove the link from the Woocommerce product listings. I don't need the user to see the product detail pages, we are going to use Quick View instead. Anywho, I have been searching and ...
1
vote
1answer
20 views

Set quantity of woocommerce product on page visit

I'm trying to set the quantity of a product on visiting a page. If the product isn't in the basket, the code works fine and adds the correct quantity. However, if I have anything in the basket and ...
1
vote
0answers
20 views

Woocommerce order query parameters IP address

I need to list all orders in a specific date and exclude ordrs from specific ip address. I know how to retrieve the order from a specific date $args = array( 'post_type' => ...
1
vote
1answer
38 views

My new button is in the wrong place

Initially, I was trying to have the "Add to Cart" button change to "Make an Inquiry" based on the condition of availability and whether there was a price inputted, or not. I kind of got the ...
1
vote
1answer
52 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
0answers
28 views

WooCommerce : Integrating SMS API not working

I'm trying to integrate sms api with woocommerce to send the automatic order updates to customer's mobile number which they have entered while placing an order. I've written below code in ...
1
vote
0answers
28 views

Programmatically set parent page for given pages/templates [closed]

I have a WooCommerce theme that I'm working on, and I'm trying to deal with submenus now. I'd like any product page (archive/single product/etc) to have the parent page 'Shop'. That way I can get the ...
1
vote
0answers
15 views

Ad “sort by” to my woocomerce shop page [closed]

I have a question regarding woocomerce, I am quite fresh to it and am not sure if this is done via some settings, or something is missing in my code. I have this piece of code to display my products: ...
1
vote
0answers
24 views

WooCommerce: Restrict users from managing certain categories and products? [closed]

I'm building a book shop marketplace, with 2 supervisors assigned to certain categories and not in relation with each other. How can I restrict certain WooCommerce categories and related products, by ...
1
vote
0answers
27 views

WooCommerce main categories not clickable

When I go to the main page of the shop, the primary categories aren't clickable. Someone else build the site, but couldn't deliver the expected outcome, so I hope you can help. All other categories ...
1
vote
0answers
42 views

Woocommerce cart subtotal showing subtotal double than what it is in the cart [closed]

I'm trying to add some products programmatically using the "init" hook. When I added the following code, the cart items are added correctly. But the subotal is showing double $product = ...