Questions tagged [woocommerce]

2

votes
3

answer
86

Views

Order products by nearest locations

I want to order products by nearest locations after a location is entered in a search form. I use the Google Maps from ACF to assign location to products and the field is called 'address'. I have also Google places autocomplete for my form and the ACF google maps radius search plugin. My form redire...
Jeff
3

votes
1

answer
40

Views

Loading in noconflict doesn't appear to be working

I've got a WooCommerce website and I'm just starting to fiddle with a few things. I've made a small floating menu with the logo that appears on scroll, but I'm having trouble with noconflict. It doesn't appear to be working. When someone enters their card number at checkout I get a warning to enter...
John Cook
0

votes
1

answer
932

Views

How to add Phone no field in enquiry form of woocommerce product page [closed]

I have added Quick enquiry form to woocommerce product page. but it contains only Name,Email, subject & enquiry option. Take a look here http://demo.hashkart.com I want to add exta field called phone no. in this form Please suggest me solution for this or any extra plugins.
hashkishor
2

votes
1

answer
15

Views

Get custom email placeholder value in WooCommerce email content

I've created my own email class in WooCommerce. Because I need a custom parameter in my email content, I've added a placeholder with this custom parameter to the wc email trigger function: public function trigger( $order_id, $firstname, $lastname, $order = false ) { $this->setup_locale(); if ( $orde...
Mr. Jo
0

votes
1

answer
583

Views

Set programmatically product sale price and cart item prices in Woocommerce 3

This is the continuation of : Set product sale price programmatically in WooCommerce 3 The answer works, however once a user adds the product to cart, the old price still shows up on checkout. How to get the correct sale price on cart and checkout pages for cart items? Any help is appreciated.
Marcus Christiansen
0

votes
2

answer
392

Views

Wordpress Woocommerce 2nd sql database connection issue

I have just transferred a backup of a WordPress site to a new domain. I loaded all of the sites files using FTP and I connected the main database (called boxedsco_master.sql) to the new site's database using phpMyAdmin. The new prefix for the databases is 'boxeipxy_' rather than 'boxedsco_'. I also...
Peter Kirkwood
0

votes
1

answer
496

Views

Woocommerce newProduct() Taxonomy is Not Working

Can you show me what I'm doing wrong? My code to add a new product to Woocommerce looks like this right now: function newProduct( $idERP, $titulo, $conteudo, $preco, $precoDesconto, $sku, $peso, $comprimento, $largura, $altura, $estoque, $variacoes, $categorias ){ global $woocommerce; $titulo = utf8...
3

votes
1

answer
594

Views

Display additional information in cart page instead of checkout page

I created an eCommerce using the plugin woocommerce. I need to get a few information from user before checkout, so used the WooCommerce Checkout Manager plugin and its working.But this is displaying the additional information in checkout page.I need it to display it in cart page so that the user ca...
Melvin
0

votes
3

answer
8.1k

Views

WooCommerce checkout 'internal server error' fail to load ?wc-ajax=checkout

Our WooCommerce Site produces an error on Checkout. This was not fixed when I updated to the latest WC version. The only thing that changed between it working and the error is the version of WordPress... The error is in checkout after you submit your payment info (credit card, using Authorize.net) y...
Anne Stahl
0

votes
1

answer
790

Views

A Blank WooCommerce Checkout Page

I am using WooCommerce in conjunction with the Ark theme (a third-party theme) on our WordPress website. Things were working perfectly up until the last week or so when I noticed the issue of the checkout page being rendered as a blank page. This error can be replicated through these series of step...
Jesse Obiri-Yeboah
-2

votes
1

answer
1.2k

Views

How to set woocommerce checkout form values to empty

I am using Woocommerce plugin for a WordPress site. But when as user I checkout I can see form populated with last user's details. How to set form entries to blank in Woocommerce. Please help. Fields are pre-populated with last user's detail. Is there a way to avoid this?
Mudassar Hashmi
0

votes
2

answer
63

Views

Form fields not working on checkout page for mobile view in woocommerce

I am trying to setup a WooCoomerce website and everything works fine on desktop view. But form fields are not working on checkout page for mobile view in woocommerce. They used to work previously so I guess this might be an issue with the WooCommerce update some days back , I don't remember if I did...
coderakki
0

votes
2

answer
122

Views

Woocommerce: Invalid argument supplied for foreach() in class-wc-product-variable.php file

I'm creating a type of variable product customized for my theme, I've managed to appear in the dropdown of product data and that can be saved without causing conflict. The problem is that seeing the product in frontend gives me the following error: Warning: Invalid argument supplied for foreach() in...
Jesús Magallón
0

votes
1

answer
106

Views

Woocommerce checkout ajax long delay when change of billing address

I have a woocommerce site. When you change the billing address in checkout woocommerce uses ajax to update the shipping cost in the order totals. However it has recently taken a long time for this process to happen. Like 15 seconds. When I checked the Network tab in chrome DevTools and look at th...
Luke Seall
1

votes
1

answer
1.9k

Views

Woocommerce Grouped Products with Individual “Add To Cart” Button

I am trying to achieve the following: On the grouped product detail page a Add to Cart button for each Individual item, also for each item the Individual price must be listed. I have seen the following can be done but i need to get it working in a grouped product; Adding Woocommerce Add to Cart But...
Phillip
-1

votes
1

answer
1.2k

Views

WooCommerce add to cart button only

So, I am creating a custom shop with Woocommerce where products are on Woo, but single product page is created as a regular page instead of Woocommerces one template. Is there a way for me to insert somehow only add to cart button related to a certain product to any page? I thought of just using [p...
11

votes
1

answer
568

Views

How to show different sizes on select of particular PRODUCT in Woocommerce

In Woocommerce, Single product page I have used the 2 different sizes, one for top and other for pant. If the user wants to select pant only pant size select box will show and if the user selects the top size only top size will show and if the user wants to buy the full product both pant and top siz...
2

votes
1

answer
2.2k

Views

WooCommerce: Pre-select and restrict to one state and city on checkout

I'm setting up a store that only sells to one city. I'm trying to figure out how I can restrict the city option to a pre-filled field. I've already limited the country and using the following code in my functions.php: add_filter( 'default_checkout_country', 'change_default_checkout_country' ); add_f...
AliIshaq
5

votes
1

answer
789

Views

Wordpress replace plugin function with own one

I use woocommerce plugin in my WordPress site. In the plugin there is function widget(), I want to call my own function, so when site loads, instead of plugin function public function widget($args, $instance) my function will be called. I think it should be done with add_filter, by I can't find o...
4

votes
4

answer
10.2k

Views

Disable WooCommerce SKU on Product Page

I have a WooCommerce store and I don't want to display the SKU on any single product page. Looking at their code, I found this filter: /** * Returns whether or not SKUS are enabled. * @return bool */ function wc_product_sku_enabled() { return apply_filters( 'wc_product_sku_enabled', true ); } and I...
Adam
2

votes
1

answer
126

Views

WooCommerce update version 3.0.x breaks site -

I updated to WooCommerce version 3.0.x from version 2.6.x and my site strangely stops loading correctly. I get the message: 'Object of class WC_Product_Variable could not be converted to string' the source of the error is a line in the woocommerce/includes/wc-product-functions.php file $value = u...
isk
2

votes
1

answer
43

Views

Can't get Products div align in Mobile View with CSS

I am trying to fix mobile view for ProductList on the main page with CSS. I couldn't get div work in mobile view as I chose to show two products in mobile view . The live link will show all the properties for CSS and Div code. Thanks.
Shazia Nusrat
4

votes
1

answer
463

Views

Sanitize custom checkout fields data in WooCommerce

Following the WooCommerce checkout fields customization docs: Customizing checkout fields using actions and filters I have added a custom field to woocommerce checkout page, through functions.php. I'm worried if I have to sanitize user input for that custom field? I think it doesn't need sanitiza...
t0r
2

votes
5

answer
1.6k

Views

Existing eCommerce Framework vs custom eCommerce solution for Scalability [closed]

We are planning to start an ecommerce startup and are evaluating scalability options for choosing between (PrestaShop/WooCommerce/OpenCart) or our own custom ecommerce solution. We have thought of the following optimization techniques for scalability: 1) CDN for static resources. 2) Load balancer fo...
Kanishk Dudeja
2

votes
2

answer
4.7k

Views

Woocommerce Remove Coupon Section from Checkout Page

I am trying to remove the 'Have a coupon' section that sits at the top of a Woocommerce checkout page (/checkout). I would like to keep the coupon section on the Cart page, so I can't completely disable coupons, but would like it removed on the checkout page. Any help would be greatly appreciated.
Wes Asbell
2

votes
4

answer
7.8k

Views

Disable add to cart redirection

Now, hitting the 'add to chart' button on the archive page will add product to cart, but will also redirect custommer to the page of certain product, and I am trying to disable any redirection after hitting 'add to cart' button. I want custommer to stays at the same page where he has been before hit...
Moo
2

votes
2

answer
7k

Views

WooCommerce new order action - get order information

I am using this to create a new function in my functions.php file add_action( 'woocommerce_new_order', 'create_invoice_for_wc_order', 1, 1 ); function create_invoice_for_wc_order() { } it is to execute some custom code when a new order is placed, how can i get the order information (ordered produc...
charlie
2

votes
1

answer
1.5k

Views

How to display custom sidebar in specific WooCommerce category?

I have specific question about WooCommerce plugin. I am using WooCommerce Product Categories widget to show category menu on the left sidebar. On my website I have a category for special offers (which contains some subcategories and products) and I want other categories to be hidden from Woocommerc...
ghosthunter
2

votes
2

answer
763

Views

Unset product tabs for specific product categories in woocommerce

I am using the code coming from this answer: Hiding tabs only for some products in WooCommerce single product pages Here is that code: add_filter( 'woocommerce_product_tabs', 'conditionaly_removing_product_tabs', 98 ); function conditionaly_removing_product_tabs( $tabs ) { // Get the global product...
MSK Ibias
2

votes
1

answer
10k

Views

How can I Customize woocommerce “My Account” page?

I'm making an online shop page with Woocommerce. When someone go to 'My Account' page to see their recent ordering history or shipping address, My Account page always shows useless welcome message page (which named Dashboard) and customers have to click additional buttons to see useful information...
Bad Dobby
2

votes
2

answer
3.6k

Views

Woocommerce custom checkout field based on country

I have an ecommerce webiste using woocommerce In the checkout page I need to activate a custom required field 'Codice Fiscale' if the billing country is set to 'Italy', otherwise that extra field must be removed The code in my child theme functions.php is add_filter( 'woocommerce_checkout_fields' ,...
Fabio Besana
4

votes
2

answer
8k

Views

How do I retrieve a JSON of all WooCommerce data on any Wordpress page?

I want to set up a WooCommerce shop for a WordPress site (which I've never done before by the way). However, I do not want to use any type of WooCommerce generated pages. What I want is to add/remove products (along with all other relevant product data), create categories, subcategories etc.. using...
Sprout Coder
8

votes
8

answer
18.2k

Views

How do I change button text from “Choose an option” in Woocommerce?

How would I go about changing this PHP code to to change Choose an option based on the id of the select element in the Woocommerce plugin for WordPress? I believe I have found the correct PHP file in wc-template-function.php but my lack of PHP skills is holding me back. Here is what I have so far: i...
jfoutch
5

votes
3

answer
9k

Views

How can I list best selling products in woocommerce

I would like to consider best-selling product in this loop :
Mr Yar
4

votes
1

answer
611

Views

Provide custom registration fields in Woocommerce edit profile My account page [duplicate]

This question already has an answer here: Adding an additional custom field in Woocommerce Edit Account page 1 answer I am developing an e-commerce site in Wordpress using woo-commerce plugin, where I have added few additional fields in registration form like mobile number,gender and so on.How do I...
Tarunya .R
5

votes
1

answer
5k

Views

Get the order id from the current user orders In WooCommerce [closed]

Here is the situation. I have a woocommerce site used as a marketplace. I'm selling games on it, for some the purchaser receive a steam key. For that I'm working on a key attribution system, so by going on a page, the key will be attributes to the user. For that, I want to check all orders made by...
Mathieu Roux
2

votes
1

answer
3.2k

Views

Woocommerce - can't add to cart as a guest using Quick Order One Page Shop?

Using the plugin @ http://products.solvercircle.com/woocommerce-one-page-quick-shop/quick-shop/ It seems like if I'm logged in as a regular user in the admin, I can add items to the cart fine. If I add to cart as a guest however it does the ajax request and returns a '1' but the item is never added...
meder omuraliev
2

votes
1

answer
586

Views

Add Woocommerce Temporary product

Help Needed: Is it possible to make a user-generated temporary product to be added to cart in WooCommerce? I'm trying to transfer a non-wordpress website to WordPress, but the site already has a sophisticated e-commerce system that the client doesn't want to change it. What basically happens is a vi...
Tina
2

votes
1

answer
3.7k

Views

WooCommerce display price on add to cart button for external products on product page

I'm trying to add the price to the add to cart button on the product details page for external products [£100 Buy Now] instead of [But Now] hoping the achieve a similar modification to the one asked question here: WooCommerce display price on add to cart button single-product/add-to-cart/external....
mac4media
7

votes
2

answer
2k

Views

WooCommerce: How to retain checkout info when client leaves then comes back?

Is there a simple way or a plugin to retain checkout information entered by the client after he/she leaves and comes back? This plugin retains 'fields information for customers when they navigate back and forth' however it has quite a lot of recent bad reviews so I don't think I'll use that for prod...
drake035