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

learn more… | top users | synonyms

0
votes
1answer
30 views

Pagination adds product to cart Woo-Commerce

In my WordPress Woo-Commerce theme when a product is added to cart from shop page its added into the cart with a url e.g /shop/page/3/?add-to-cart=149 and when I switch to another page using ...
0
votes
0answers
32 views

WooCommerce make the top variation field clickable but the other field variations not clickable

Basically, I am creating a booking system with woo commerce, and I currently have the variations set up so that there are start time, start date, end date, teacher, sessions and experience level. The ...
0
votes
0answers
22 views

ACF field get blank

Create a custom field. Its kind of datepicker and field name is start_date It is used in a spesific Wocommerce product category. Then I want to use in my WooCommerce single theme. So put this code in ...
0
votes
0answers
97 views

Adding number of items in cart at the beginning of the <title> tag using Javascript

I'm working on a WooCommerce site and I'm trying to add the number of items in the cart, inside of the <title> tag. The thing is: I've been looking for all over the place where the ...
0
votes
0answers
132 views

Cannot login in Wordpress even after changing hash password in phpmyadmin

An hour ago I changed the password of my Head Admin user. But after this I was not able to login anymore. So I have tried to reset the password in PHPmyadmin with the md5 encoding and even with this ...
0
votes
0answers
37 views

add hook after woocommerce_after_short_description

I am trying to show the WooCommerce tabs AFTER the woocommerce_after_short_description, but it replaces it. why? // Removes tabs from their original loaction remove_action( ...
0
votes
0answers
81 views

Woocommerce variable product doesn't save the field data

I'm trying to make this post meta into variable product meta, but it doesn't save the data! I changed `// Meta add_action( 'woocommerce_product_options_general_product_data', array( $this, ...
-1
votes
1answer
267 views

Facebook Pixel + WooCommerce + AJAX = Confusion

I am trying to add a Facebook Pixel (tracking) to the WooCommerce Add to Cart button, using: <script> fbq('track', 'AddToCart'); </script> The problem is that when a user clicks on Add ...
0
votes
1answer
262 views

WooCommerce duplicate sub categories and product slugs

I'm building a website that allows you to hire or buy a product. I've set up the following product categories in WooCommerce: Hire Buy Is it possible to have the same sub-category slug under each ...
-2
votes
1answer
50 views

Many variations, best practice?

I think i'm doing something wrong with variations on Wooocommerce My online shop is for clothes. Some products like jeans have a lot of variations Example (attribut, term): Color: Blanc, Bleu ...
0
votes
2answers
302 views

Re-order Woocommerce single product and echo div around moved & duplicated Woocommerce hooks

How do I wrap a div around the actions in the code below? PHP in functions.php file: remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 ); add_action( ...
0
votes
1answer
111 views

Woocommerce custom Plugin in wordpress [closed]

I want to access the ID of the product currently being displayed on the page. I am trying to do this in a separate custom plugin. I have tried global $post and global $product and get_the_ID() methods ...
0
votes
0answers
99 views

get_the_ID Wrongly Getting Child Category ID

I have WooCommerce product categories with parent and its child categories. The get_the_ID() function on the parent category seems to wrongly retrieve one of the child category ID's. How can I ...
0
votes
1answer
66 views

CPT or Custom Table for Repository of Serial Numbers

My app allows users to purchase products from a WooCommerce store. But I need to attach a serial number (cannot be generated on the fly) to each product, depending on type, size and design. The ...
0
votes
0answers
180 views

Display Woocommerce Orders for specific author

I tried finding lot of options and used lot of functions so far in my woocommerce theme but i am unable to find any solution for this issue. This platform is my my only hope so far. What I want? I ...
0
votes
0answers
18 views

wp_set_object_terms being undone

I am trying to set some object terms on a Woocommerce product when it is saved. My code is as follows. add_action('set_object_terms', 'update_attributes_after_save', 99, 3); function ...
0
votes
0answers
167 views

Dynamic attachment WooCommerce Follow-Up Emails

I am using the WooCommerce Follow-Up Emails plug-in for my clients website. With this plug-in, I send a e-mail directly after the order has been finished, containing a custom template with WooCommerce ...
0
votes
0answers
400 views

Show variation images in custom WooCommerce template

I have created a custom template for single products, but the images are not changing according to variations, such as default WooCommerce functionality. <div class="variation_images"> ...
1
vote
0answers
211 views

Woocommerce Custom Loop

I am trying to create a custom loop page to display a list of products so instead of using woocommerce_get_template_part('content', 'product'); which work I copied the template code so i could ...
0
votes
0answers
186 views

WooCommerce order bulk edit with custom hooks in function.php

I'm working on a Wordpress site with WooCommerce. I have to implement some additional functions, one of them is some simple operation after marking the order completed. I use ...
0
votes
0answers
143 views

Display Woocommerce Sale Price product Only with filteration?

$q->set('post_type','product'); $q->set( 'page_id', 198 ); $q->set( 'page', '' ); $q->set( 'pagename', '' ); $meta_query = array( array( 'key' => '_sale_price' ) ); ...
0
votes
1answer
107 views

Modify WooCommerce email shipping text value

I'm attempting to use the 'woocommerce_order_shipping_to_display' filter to show 'Free' in the WooCommerce email table when no shipping charges will be incurred. In the image, I'm trying to get the ...
0
votes
1answer
603 views

How to get product count with respect to categories in WooComerce

Hi I want to display all the categories of products in a loop to display them in category menu along the numbers of products each category contains. Some thing like that so far I have done this to ...
0
votes
0answers
116 views

Wordpress | Woocommerce custom registration form

I would like to ask whether it is possible to create the registration with the only code that is sent to the user's mail after form submitted, I'm not sure how to do properly. for example : The ...
5
votes
0answers
364 views

WP/WooCommerce REST API cart/checkout/order [closed]

Since the WordPress Rest API is getting merged into core and WooCommerce extended their API as well I stared to wonder how it would be possible to build an entire eCommerce website with it. When you ...
0
votes
1answer
911 views

Integrate WooCommerce theme with a Wordpress theme [closed]

I have some questions about WooCommerce theme's integration into an existing Wordpress theme: Is it possible to integrate a WooCommerce theme into an existing Wordpress theme? Should I make my theme ...
0
votes
0answers
42 views

Woocommerce variable filter form not working

I created a custom variable filter for woocommerce, but when i submit a form its doesn't work... Not filtering a variable selected product. (Show all product on shop page). Thanks for any help! ...
0
votes
1answer
59 views

Which Multi-language option for Wordpress is best from an SEO and Woocommerce perspective?

I am wanting to set up an English and German version of a site for selling products and using content marketing. So I will be doing key word research in both languages. There will be a lot of ...
0
votes
0answers
28 views

Woo commerce add_to_cart_text function not overriding and displaying text

I have a custom product class extending WC_Product. When I go to a product with the selected product type the add_to_cart_text function is not used and displaying what I have. The file is included ...
0
votes
1answer
89 views

Woocommerce purchase date [closed]

I am creating a membership site with Woocommerce and need to display how long is left on the membershop, I am guessing I need to do a DB query to get it, but is there a function I have missed that ...
0
votes
1answer
261 views

WooCommerce - Redirect to a product after login

I found myself in a spot of bother: I have a page with an eBook you can read from the browser, access to which I sell through the WooCommerce. The idea is incredibly simple: on the front page is a ...
0
votes
1answer
367 views

UWooCommerce - add cart discount programmatically?

I need to develop a plugin that applies a discount to the cart if x number of products have been purchased. Could someone point me in the direction of the code/API I need to use. Can find nothing ...
0
votes
0answers
30 views

Send email to different users depending on the field selected in woocommerce?

So, I've been searching high and low and I don't know if this is possible, but I figure this is the best place to try and see.. I have a checkout field added to my checkout page in woocommerce. It ...
0
votes
0answers
21 views

wpmu_new_user hook not firing

I have a WP Multisite setup with woocommerce on each of the sites. I am trying to hook into wpmu_new_user to send customer info to our CRM when they register at the checkout. ...
0
votes
1answer
54 views

Order Woocommerce Products by Latest Reviewed

In my Woocommerce site, I have: [recent_products per_page="16" columns="4"] which as the shortcode infers, orders products by the most recent. If I wanted to order my products by the ones latest ...
0
votes
1answer
146 views

Problem with hidden products on woocommerce

I'm dealing with a common problem for what I saw. When I hide "Out of stock" products, they keep counting on the pages. For example: I show 24 items per page, if 10 are out of stock and I hide them ...
0
votes
0answers
111 views

Get single woocommerce product loop item by id

Is it possible to get the product loop item by id similar to this output <?php echo do_shortcode('[product id="123"]'); ?> but just the li and not with the div.woocommerce and ul.products ...
0
votes
2answers
113 views

Show pop up message for specific categoryies

i have 2 categories that have book in adult, So i need when any user open this category to show him pop up message like :- The content you are about to view are of a mature matter. Please be advised ...
0
votes
1answer
24 views

How to display Woocommerce catagories

I want to display woocommerce products catagories in my wordpress sidebar theme. what is the code for it ?
0
votes
1answer
67 views

Custom action not working in Woocommerce

I've created a custom action in woocommerce in order to rewrite the breadcrumbs function and put it in another place into html, but it didn't work. Firstly, I removed the original Woocommerce ...
0
votes
1answer
654 views

How to add a special Woocommerce “buy now” button?

I wish to ADD a "buy now" button on product page , and redirect to checkout page after clicking it but without adding the product into cart. For example, if there are already products A,B in the ...
0
votes
0answers
170 views

Pre-populate Woocommerce Order items with fees in admin

I cannot seem to get this down, I only have experience with editing Woocommerce templates and not anything in /includes/. The goal: Add 5 empty fees in the Woocommerce Order details admin area ...
1
vote
1answer
292 views

Attach PDF to Woocommerce email

Hello WP Stackexchange! I'm running a woocommerce shop, and i need to attach my terms and conditions pdf/link to the email that my customers receive when they buy a product at my shop. Is there any ...
0
votes
1answer
31 views

Declaring a new woo commerce product type i get this error

Warning: Missing argument 1 for WC_Product_PJB::__construct() class WC_Product_PJB extends WC_Product { public function __construct( $product ) { $this->product_type = ...
0
votes
0answers
20 views

Counter variable resets before script is finished

I am working on a script for a client (a bookstore) that will upload their inventory to their WordPress database. They are using WooCommerce, and the upload file contains approximately 17,000 records. ...
0
votes
0answers
89 views

Override Wordpress Timber Template locations for Woocommerce

I need to overwrite the page template locations for Woocommerce using timber Wordpress. To change the location for the twig files was no problem. All page Templates are stored in the theme root ...
0
votes
2answers
112 views

Strip string from $_product->get_title() to get a cleaner mini-cart

I am using a customized mini-cart.php file, in which there is this line of code: $product_name = apply_filters( 'woocommerce_cart_item_name', $_product->get_title(), $cart_item, ...
0
votes
1answer
263 views

Woocommerce Mandatory Field on Shipping Details

I am trying to add a Phone Number mandatory field to the Shipping Details page of the Woocommerce checkout but it should only be mandatory if an alternative shipping address is selected. Woocommerce ...
0
votes
0answers
34 views

Selective WooCommerce Payment Gateways

If a user is not logged in, Im preventing them from selecting Invoice/Cheque payment leaving only PayPal as an option. function wdm_disable_cod( $available_gateways ) { //check whether the user is ...
0
votes
0answers
27 views

Customize theme, woocomerce registration, What hooks to use?

I'm using this theme http://wp.contempographicdesign.com/wp_automotive_2/ for a project and now the clients want more specific changes 1.- The user needs to have a subscription plan in order to post ...