Questions tagged [woocommerce]

OFF TOPIC. Questions *specific* for this e-commerce plugin have their own forum at https://wordpress.org/support/plugin/woocommerce.

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

Download pdf after submitting the form on product page

There should be a pop-up form that has to be displayed on the single product pages with the click of a button "Download PDF" and that button should be placed right beside the "Add to Cart" button. ...
0
votes
0answers
7 views

Authorize.Net CIM for WooCommerce is not providing me with Payment Tokens

The Auth.NET WooCommerce gateway is not providing me with any Payment Tokens. That is to say, $order->get_payment_tokens() doesn't seem to be returning any. Am I using get_payment_tokens() ...
0
votes
0answers
11 views

style woocommerce checkout form fields

Is there any way to remove or modify the markup of woocommerce billing and shippings fields? As I can understand I need to use the add_filter function, but I'm not able to figure out how this can help ...
0
votes
0answers
14 views

Variation name in $product->get_name()

On product page there are custom variations displayed so user can select different variations. On cart page after getting product name $product->get_name(), name has variation name|description ...
1
vote
1answer
13 views

Woocommerce get billing state manually

Im modifying the receipts for the email admin notifications with woocommerce filter "woocommerce_email_recipient_new_order" Im conditioning them to the state wich the order is billed. For this there ...
0
votes
2answers
22 views

write custom woocommerce templates and forms

I've started to customize the woocommerce default templates by using the hooks as is suggested on the documentations. I have two question about this aspect, I want to understand if I can write my ...
0
votes
1answer
17 views

Woocommerce product editor does not add br

When I add content to woocommerce product editor, it does not add br (new line), when I push the enter key, so the content on the website is in one line. Any ideas, how to resolve this issue? I ...
0
votes
1answer
15 views

WordPress function for 1 to for many

I have this function: add_filter( 'prdctfltr_show_filter', 'my_hide_filter_on_category_function_jkbg4iu3b' ); function my_hide_filter_on_category_function_jkbg4iu3b() { if ( is_product_category( '...
0
votes
0answers
10 views

Woocommerce Useless Image Requests

My installation is WordPress 5.3.2, Woocommerce 3.8.1, StoreFront 2.5.3, no other plug-ins. I have created one variable product with one image. When my browser hits the product page it asks for three ...
0
votes
0answers
15 views

Bulk delete hundreds of WooCommerce attribute taxonomies

I'm trying to remove all the attribute taxonomies, I used this to remove the products from those attributes, but the taxonomies still exist under Attributes. I have 1,243 I'd like to delete. DELETE ...
0
votes
1answer
28 views

WooCommerce pages looks unstyled

I'm playing with woocommerce to customize the store aspect. I've noticed that If I open a product link, the page looks unstyled. I need to integrate the shop with my bootstrap 4 based theme. After ...
0
votes
1answer
10 views

Get x numbers of a woocommerce category products using Wp_Query

Is possible to show some woocommerce products inside a swiper slider? I want to create a slider that will show some "featured" products on the home page. For now I have a cpt that is achieving this, ...
0
votes
0answers
9 views

How to apply not existing coupon in woocommerce

I am using this code this is working perfectly till checkout. function royal_woocommerce_filter_checkout_for_coupons( $subtotal, $compound, $cart ) { // Your logic to get store credit value for ...
-1
votes
0answers
11 views

Long wait time to solve domain name

I have a problem with my website https://misti.services/, its slow for some reason, all testing tools ( pingdom,gmetrix,webpagetest) shows me that is well optimized, but for some reason it's slow when ...
0
votes
2answers
18 views

customize woocommerce templates and display store on home

I'm making some changes to a custom template for a website that wants to add the woocommerce support to create a little shop. I've followed the instruction to add the theme support to the theme, in ...
0
votes
0answers
13 views

Sending billing details via POST request to an API

I want to send all the billing details from a purchase (working with woocommerce) to an API via POST request. What's the best way/place to do so? I guess that using some sort of hooks inside my wp-...
0
votes
0answers
9 views

How to get product count with categories (or tags) in Single Product WooComerce

i want display number product each category contains on Single Product Woocommerce, like this: I find in meta.php: <?php echo wc_get_product_category_list( $product->get_id(), ', ', '<span ...
0
votes
1answer
23 views

Wordpress Stock Update Programatically

I'm trying to develop a plugin that would update the stock quantity of products to 0 (Out of stock) that are older than X days. The logic that I'm using is: Select products who's modofied date is ...
0
votes
2answers
15 views

How to show variations only which are in stock on shop page in woocommerce?

I don't want to show all attributes that are available, I just need to show those variations value which have stock saved on back-end. Just like I have a variable named sizes, so i want to show the ...
0
votes
0answers
11 views

How to checking for conditions before going to payment page on checkout page

0 I am making a webshop and i have some issue with add_filter. When a customer is on a the checkoutpage, i want to check some condition when customer clicks on place order. Before it go's to the ...
0
votes
0answers
12 views

Update product attribute when add to cart link is clicked in woocommerce [closed]

I have tried to add my custom data as product attribute when add to cart link is clicked. It is working fine when single custom entry is made. The code is as follows add_filter( '...
0
votes
0answers
20 views

How can I change field values of posts before displaying

I have wordpress project with woocommerce. What I'm trying to achieve is to change values before displaying them on the view page. For example depending on session/cookie I want to change the ...
-2
votes
1answer
14 views

Hide price of related products [closed]

I want to hide the prices of related products. I have tried looking around for many solutions to no avail.
0
votes
0answers
16 views

best way to handle subscriptions with a licence?

I have a product with 3 packs: - 14-days trial (user should not have to enter paypal details) - monthly - yearly We used WooCommerce with "WooCommerce Subscriptions" and "WooCommerce Software ...
0
votes
0answers
12 views

Woocommerce Account Funds Plugin not Discounted [closed]

i use Woocommerce Account Funds plugin for user's wallet. https://docs.woocommerce.com/document/account-funds/ but it has a problem. when a user want use his wallet in checkout page for discount, ...
0
votes
0answers
14 views

Add extra cost to shipping method itself in woocommerce

I found the following code from this link: https://stackoverflow.com/questions/52138784/add-a-fee-based-on-shipping-method-and-payment-method-in-woocommerce The code works great if you want to add ...
0
votes
0answers
18 views

Minimum purchase amount, excluding a specific category (Problem: Variation Products)

I have a Problem with a custom code. I want to display an error message if the order amount is smaller than € 15. But i also want to exclude specific product categories from that minimum amount. It ...
-1
votes
1answer
35 views

WooCommerce IF statements not working

I am trying to use the WooCommerce Conditional Tags to only include a template into specific product pages. https://docs.woocommerce.com/document/conditional-tags/ However my statements aren't ...
0
votes
0answers
13 views

How to set different payment options for different products in woocommerce [closed]

is it possible to make different payment system for different type of products in woocommerce?Actually i wanted to avoid cash on delivery for downloadable products.How can i do that?
-1
votes
0answers
13 views

Wordpress insert term include id

I am working with woocommerce category, I want add categories by programmatically include id for it but I don't know how to get it. I have looking for the solution to resolve the problem: Add category ...
0
votes
0answers
23 views

WooCommerce without checkout shortcode

I'm coming from laravel(cool php framework) origin. I understand wordpress flow to some extend. What do I mean? Like in the page that output product detail, I use $product = wc_get_product(); $...
0
votes
1answer
30 views

PHPUnit Testing and woocommerce Constant

I tried to perform a test on the WC_VERSION constant. The main class : class WC_Custom_Variable_Products_Dependencies { /** minimum WooCommerce version required by this plugin */ const ...
-1
votes
0answers
10 views

WOoCommerce website like Fiverr

Is there any way to build GiGs selling website like fiverr using WP + WooCommerce?? I'm using Dokan multivendor and named vendors as sellers I need to open support ticket on order page Ineed to ...
-1
votes
0answers
21 views

How to check if guest has placed an order?

I need to check if a guest has placed an order, then show specified text for him if yes. I know how to search orders by MySQL queries, but have no idea about guests. Any ideas how to identify guests? ...
0
votes
0answers
32 views

Stuck with WooCommerece Payment Method Plugin (custom coded)

I am development a plugin for custom payment method for WOoCommerce, where in "public function result()" function I want to access/get product id which is bought. Below is my code so far but it is ...
0
votes
0answers
21 views

How to set up dynamic purchase pixel in Woocommerce?

my website has products with different prices so I need to configure the facebook pixel to track the total of the purchase. I don't know how to make the code works in my functions.php. I used the code ...
-2
votes
0answers
14 views

Searching for a plugin but not knowing what to search for; or if any solution is available [closed]

I have read the rules on this site and feel my question is valid. I run an online store and every month i am having to add new items for our "on sale" page. last month i completely forgot and ended ...
-3
votes
1answer
14 views

Synch ACF with WooCommerce Billing Fields on First Login [closed]

my registration form is made with WPForms. My Problem is: Because WPForms is not integrated with WooCommerce, I only may store the billing information with ACF (Advanced Custom Fields) during the ...
0
votes
0answers
18 views

Redirect WooCommerce checkout to cart

how can I redirect customers to cart page when they click on checkout link? I found many tutorials to redirect in the opposite sense (cart to checkout) but nothing for my purposes...
0
votes
0answers
12 views

how change add to cart button text and show text with added quantity of product on shop page without page load

function change_button_text( $product_id, $button_text ) { foreach( WC()->cart->get_cart() as $item ) { if( $product_id === $item['product_id'] ) { $itemq = $item['...
0
votes
1answer
16 views

Woocommerce pagination problem- page/2 = 404 solution

this is not much of a question than a solution to a problem that i couldnt find. Problem: On category archive made with custom query i could not get /page/2 to work ( always 404 ). Tried every ...
-1
votes
0answers
16 views

move out reviews tab

I checked many similar questions, but nothing works for me. I am trying to move out the review tabs from the tabs, do not display any tab functionalities, and put next to my product description column....
0
votes
0answers
15 views

Get product price in a different currency using WooCommerce Currency Switcher

I am working on some costume products pages in wordpress and I am having kinda of an issue when outputting the product price, the deal is that I am using a plugin to switch the currency and because I ...
0
votes
0answers
9 views

Woocommerce Backend Search by Title and SKU

Good morning, i'm trying to extend backend product search by using this function without success. This snippet works only in Title and i need to add also in Metakey SKU. I have tried extend by using ...
0
votes
0answers
11 views

select2 & selectWoo Not Loading Options

I created a custom select checkout field and the field works great. When I add a selectWoo or a select2 class to it, it functions like a select2 box but says no results found. The html options are ...
0
votes
0answers
18 views

Woocommerce , how to set billing_address via JS?

I need to have an ability to set internal woocommerce's billing_address variable on a client side via JS, jQuery and then reload page. This move is needed for changing currency values(pls don't ...
-1
votes
0answers
16 views

I need to restrict only one varient of variable product in cart woocomerce [closed]

I need to restrict only one varient of variable product in cart woocomerce . If same product from different variation is added it should remove old one and add new varient add_action( '...
-1
votes
0answers
38 views

Woocommerce - Display CATEGORY stock quantity per variation

I've been trying to get a variation stock quantity list to display in a CATEGORY archive. I know I can get variation stock quantity for a given product, but I've never found how to sum all variation ...
0
votes
0answers
19 views

make 'add-to-cart' buttons into one 'add-all-to-cart' button

What I am trying to achieve is to have one add-to-cart button that will add the selected quantity of multiple products, actually these are tickets, to the cart. The way that this now works not so user ...
0
votes
0answers
12 views

help .. how to update post and clear purchase note?

Want to create a copy of the product on the user click; wp_update_post( array( 'ID' => intval( $clone_product_id ), 'post_title' => $product->get_title(), // ‘post_status' => $...