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

learn more… | top users | synonyms

0
votes
1answer
32 views

Can't make product images clickable

I've tried many things and many solutions but i can't make product images clickable. Here's the code: if ( has_post_thumbnail() ) { $images .= get_the_post_thumbnail( $post->ID, 'shop_catalog' ...
0
votes
1answer
194 views

Remove product item from checkout page [Woocommerce]

Is there any way to remove product item from checkout page? Here is code for card page: <td class="product-remove"> <?php echo apply_filters( '...
0
votes
0answers
71 views

I want to show products based on post tags

Id like to get WooCommerce products on the blogpage (single.php) by tag whereas the tag is the same as the blogpage. The idea is when users read the text, they get related products based on tags from ...
0
votes
1answer
19 views

Menu's built in the edit theme view do not have active states set when on child pages

have a menu that is pulled in like this: <?php wp_nav_menu ( array('menu' => 'header') ) ?> I am using WooCommerce and when visiting /shop the shop link in the header has the class: ...
0
votes
0answers
32 views

Get option selected programmatically

I am building a theme options page which will auto activate WooCommcerce. The users will also import demo content which will contain WC pages like Cart, Checkout, My Account and Shop. In the theme ...
1
vote
1answer
194 views

Woocommerce - How to populate custom select field with stored values on checkout page?

I have converted the postcode field in checkout to a dropdown field. Its working fine. $fields['billing']['billing_postcode'] = array( 'type' => 'select', 'label' => __('Locality - ...
0
votes
0answers
48 views

Only show WooCommerce product notices

I have a loop in my header that will check the notices and only show them if they are not an error message. This loop is inside a div which is aiming to show e.g. "Product X added to cart" as a pop ...
3
votes
1answer
121 views

WooCommerce conditional meta query

For this question, I know how to solve it but I am hoping there is a better / faster way to solve it. I have a custom meta query in my product loop that doesn't display my product if the stock is 0, ...
0
votes
0answers
43 views

Woocommerce extra shipping charge for specific product

i have a product1 with id =1 I need to add extra shipping charge for product with id=1 Current Shipping settings : Flate rate is enable cost is 20 Freeshipping is enable with minimum order amount ...
1
vote
0answers
90 views

Custom Fields for Variations in Product Attribute Table [closed]

I have successfully been able to follow Remi's tut on how to add custom fields for variations. I have also been able to add in additional rows for the "additional info" table in the tab. I ...
0
votes
0answers
14 views

woocommerce - setting different variations in different tabs

In Woocommerce, I am trying to figure out how to reorganize the layout of my variations. I would like to set different variations in different tabs. Can this be done? If so, how do I go about doing ...
0
votes
1answer
316 views

How to show product SKU on product page

I'm making a website and it seems that product sku is hidden from product page. I have found how to add it to the catalog (shop) page but I need it to show inside the product page. So far, by ...
0
votes
0answers
68 views

Woocommerce - Adding text count of a textarea to a variation of a product

I have a textarea that is a variation of a product in Woocommerce. As the user types, I have the JS output the character count. I am wondering how I can send this count to woocommerce to be added as ...
-3
votes
1answer
100 views

Storefront Child Theme show product attribute [closed]

i'm building a child theme for storefront, how to display the attributes of a product on list product page other than the product name and price? example this list only show product name and price, i ...
0
votes
1answer
94 views

Show recent products first but “sold out last” in query

I am using WooCommerce and would would like to show the "out of stock" products last in the query on the archive page. How can I do that? Currently we are making the newest product show first with ...
0
votes
0answers
29 views

How products can be ordered (orderby) in WooCommerce cart

The code below creates a product, which is automatically added to the WooCommerce cart. How can I make an "orderby" with these products, which is created with this code? Example: If I create a ...
0
votes
0answers
20 views

Auto assign WooCommerce pages upon install & activation

I want the my theme imported WooCommerce pages be auto selected/assigned upon plugin install & activation for my account, cart and checkout. I have removed the onboarding wc setup with this ...
0
votes
0answers
212 views

Woocommerce - change price of a variation product programmatically

I have a product that has a variation called 'Width'. It is predefined at a certain price from woocommerce plugin. I want this Width variation to change based on what the user inputs so I need to ...
0
votes
0answers
24 views

Woocommerce different categories and wrong permalinks

I have a category called "Foods" set up. It includes two sub-categories "Dry foods" and "Wet foods". Each of them includes a "Brand" subcategory. When I'm adding products to Foods/Dryfoods/Brand/...
0
votes
0answers
43 views

Woocommerce relative fonts causing https error

If you view this website and view the console you will see the following errors: Mixed Content: The page at 'https://www.creamcornwall.co.uk/' was loaded over HTTPS, but requested an insecure font '...
0
votes
1answer
71 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
36 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
0answers
18 views

Show “Parent Term / Term” in Edit Product Attributes tab - Multiple terms with same name

I have a WooCommerce site which needs to use the same term name in different parent terms under a given attribute. It has to be done this way because of the in-house infrastructure being that way. ...
0
votes
0answers
181 views

Add custom fields from Woocommerce Attributes in check out page

I've added some custom fields, using ACF, for attributes in Woocommerce. So when you add an attribute you can add some more info. I achieved to show them in the product page but I can't find a way to ...
0
votes
1answer
77 views

Woocommerce resize existing product images

We discover that our Single Product images as set in Woocommerce> Setting > Products > Display are set to big. Single Product Image: 500 ×750px xHard Crop I have tested plugin regenerate thumbnails ...
0
votes
1answer
34 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 ...
1
vote
2answers
72 views

Delete transients in website

We have so many error happen on website (WordPress and Woocommerce) error log and it will show the following error message WordPress database error Deadlock found when trying to get lock; try ...
0
votes
2answers
171 views

How i make a custom sql query for Woocommerce

hello i have an ecommerce with Wordpress + Woocommerce, just yesterday a hacker boy or...i don't know moved all woocommerce products in to the trash.... there are lots of products and default ...
0
votes
0answers
19 views

How to clear WooCommerce cart on page visit?

I'd like to clear the cart every time a user visits a certain page, i.e.: www.example.com/clearcart I'm using this code (in my theme's functions.php) in order to get the job done, but unfortunately ...
0
votes
2answers
32 views

Integrate Woocommerce to a custom theme

I have created a custom theme. Now I want to add WooCommerce to that theme but it doesn't work like the way it should. After install of the WooCommerce plugin I followed all provided steps.All pages ...
-1
votes
1answer
54 views

woocommerce Product shortcode create

i am very new wooCommerce and WordPress. programming knowledge not strong yet. but for my project i need to do something. now i want to create custom short code for woocommerce product. i want to ...
0
votes
0answers
29 views

Problem to add subdomain to woocommerce website

As I read all questioner about my problem but couldn't find exact solution. 1) I have hosted my woocommerce website on www.mydomain.com. 2) Domain name is purchased from GoDaddy.com where I have ...
0
votes
0answers
45 views

Fatal error: Call to undefined function wc_format_decimal() in class-wc-meta-box-product-data.php on line 996

I Get this error when trying to add a new product. If I refresh the products page, the new product will show up. I can make changes to the product information but the price never updates. It just ...
0
votes
0answers
32 views

woocommerce checkout keeps reloading for logged in customer

So when a user in not registered goes to checkout page when he sees a option to create account when he does and adds another product to while being logged in and proceed to checkout the checkout page ...
0
votes
1answer
89 views

How to update variable product stock status with code

I have the product id:- $posts. Now i have to change product variable variation stock to outofstock using code.I have bellow snippet code but it's not updating the variation stock of the product. so ...
1
vote
1answer
189 views

Woocommerce custom category page with pagination [closed]

I want to create woocommerce category custom template. i am not sure i am doing it the correct way or not. What i did is I edited taxonomy-product_cat.php file. , In my code i am able to get ...
0
votes
0answers
28 views

Force WooCommerce product type to be virtual / downloadable?

I'm customizing a WooCommerce store that will only be selling downloadable / virtual products. I need to change the default type of products to downloadable/virtual, so when the admin adds a new ...
-1
votes
1answer
601 views

woocommerce show cities state as dropdown list

im trying to show a list of cities when the user selects a state on woocommerce, some one have some luck doing this?? I find this code: add_filter( 'woocommerce_checkout_fields' , '...
0
votes
0answers
40 views

WooCommerce - My Account - jQuery not working?

I've add some pagination to the my account page to paginate the order history. Everything works great except when I click the "Edit Account" tab the navigation bar I created for the order table is ...
0
votes
0answers
69 views

How can I use the Woocommerce REST API for Subscriptions

I have found documentation for the Woocommerce REST API:http://woothemes.github.io/woocommerce-rest-api-docs/#introduction but it does not support subscriptions. How can I use the API to check ...
0
votes
0answers
19 views

Woocommerce - layout for variations possible?

I am wondering how is it possible to change the layout of the variations and variation fields from Product Add-ons extensions? They are automatically displayed as a 1 column grid with each row as a ...
0
votes
0answers
18 views

function to add radio inputs that set custom fee

I'd like to add a custom fee to orders, and have that custom fee be chosen by the customer. So, under the 'Add to Cart' button, there should be a few radio inputs with set dollar amounts. By ...
0
votes
0answers
49 views

Way to target parent product category and all sub children

This might be a weird question but I have the following if... statement: if ( is_product_category ( array( 'parent_category', 'child_category', 'child_category', 'child_category ) ) ) { I am ...
0
votes
0answers
44 views

jQuery hover events within Ajax loaded div

I've built a custom theme for a WooCommerce site I am working on. I have recently added the Advanced AJAX Page Loader plugin to load all elements within the #content div. I am now having 3 issues. ...
0
votes
0answers
80 views

WordPress database error Deadlock found

My website become slow due to this issue. WordPress database error Deadlock found when trying to get lock; try restarting transaction for query DELETE FROM wp_options WHERE option_name LIKE '...
0
votes
0answers
79 views

Custom Password Complexity

How can I go about changing the built-in password complexity? Using latest wordpress and woocommerce. When a user goes to register with a password, they are shown a password meter and can only ...
0
votes
1answer
17 views

Can I have one picture for all sizes in a product with Woocommerce?

I have a hoodie product that comes in 30 different colours. It has 6 different sizes. This creates 180 "products" that I have to click on and set an image for. This seems massively overcomplicated. I'...
0
votes
0answers
106 views

Adding metadata about a product attribute in WooCommerce

I'm trying to create a apparel store where each product (variable product) has a brand/designer associated with it. I can store the name of brand/designer as a product attribute. However I want to ...
0
votes
1answer
33 views

Insert menu into theme location depending on user logged in/out status

I am using the Avada Theme from Themeforest and I have set up 2 menus under Appearances > Menu: menu-logged-in which contains a parent item (My Account) and then several child items; and menu-...
0
votes
0answers
129 views

Woocommerce Cart and Minicart add total save

I want to add field near subtotal that total saving dependent on $product->regular_price - $product->sale_price is equal to $discount then total of all the $discount will show up near the ...