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

learn more… | top users | synonyms

6
votes
0answers
488 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
1k 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
45 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
71 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
32 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
115 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
311 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
525 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
38 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
25 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. add_action('...
0
votes
1answer
61 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
168 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
133 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
145 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
95 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
860 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
185 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
362 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
34 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 = 'pjb_product';...
0
votes
0answers
21 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
127 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
129 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
343 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
38 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
29 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 "...
1
vote
1answer
285 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 -...
0
votes
0answers
779 views

country state & city drop down in woo commerce checkout

I am trying to create a dropdown which shows the Country, State and City. Currently woo commerce has the Country---> state dropdown option in billing address but need it for the city as well. Country -...
0
votes
0answers
136 views

Woocommerce “Add cart button” And “Checkout Button”

Well currently I have the default button where you can add to cart, but I want to place right next to that one and before the "Favorite button" another one which one "add to cart and go to checkout ...
0
votes
0answers
50 views

Wordpress magazine subscription service using Groups, Woocommerce, & Issuu. How do I manage customer renewals?

I'm currently trying to figure out the easiest way to handle a new system my client wants my to implement. The client wants to sell an interactive digital form of their magazine on their website (not ...
0
votes
1answer
235 views

How to get the perfect WordPress, WooCommerce, Custom Post Type pretty permalinks?

I would like some clarification on how to achieve the following structure: Posts & Categories domain.com/blog/ - Blog index domain.com/blog/%category%/ - Blog category archive domain.com/blog/%...
0
votes
2answers
391 views

widgets_init actions not fired from functions.php's child theme

I need to add new sidebars for using them accordingly on different pages throughout my shop. I use Woocommerce and my own Storefront child theme. This is a snippet of what is in functions.php file ...
0
votes
0answers
30 views

How to Hide ( or using one image) product images from guests?

I would like to make conditional function but i could not figure out how to make it. Simply, i want to hide product images from not registered users, when they register and then see the product images....
1
vote
0answers
16 views

Woocommerce: quote latest product review

I am looking for a way to display the latest product review in page (not sidebarwidget). Is there a shortcode or line for that? Regards, Louis
-2
votes
1answer
488 views

Use Homepage as “Shop” for Woocommerce

I have a store I'm putting up, and the store itself is located on the homepage. I built my own template to do this and the homepage looks great. However, it looks like I actually have to set a "shop" ...
0
votes
0answers
387 views

How to make AJAX call to custom PHP file in Woocommerce?

I've run into some problem of Woocommerce when I tried to make an AJAX call on Checkout page to my custom PHP file uploaded to my theme's folder. After googling a while, I still don't quite understand ...
0
votes
1answer
214 views

Cannot save values to custom fields for variations on Woocommerce 2.4.6

I'm having trouble setting up custom fields for variations on Woocommerce. I followed this very helpful tutorial to get the ball rolling, and everything worked well enough except that my values for ...
0
votes
0answers
215 views

Trying to execute a “Save Product” command in WooCommerce through a PHP script

I've been looking for a solution for several days without success, hope you guys can help me with that. I developed a script to import Products into WooCommerce for a client which specific attributes ...
0
votes
0answers
31 views

Checking if text from product 2 is equal to product 1

I am using Woocommerce product addons to allow users to upload a pdf file when ordering 2 products. I would like the following logic to be applied when both items are in the cart. If filename (...
0
votes
0answers
137 views

Add post meta to search in admin of a custom post type

I am using woocommerce in a wordpress theme and I can't get the search functionality in the admin to include a meta value of 'shop_order' custom posts type. I've been trying to modify the following ...
1
vote
0answers
24 views

WooCommerce - display category X first

I have 4 categories in my WooCommerce store: Cat1 Cat2 Cat3 Cat4 Is it possible to list them (in asc order) on the shop page as: Cat3 Cat1 Cat2 Cat4 ie, show Cat3 first, then the other ...
1
vote
2answers
491 views

Order by rating not works in wp_query

I need to sort my products by rating in a wp_query loop: this is my code: switch($ordering){ case 'default': $meta_key = ''; $order = 'asc'; $orderby = 'menu_order title';...
0
votes
1answer
717 views

Automatically add attributes to woocommerce product?

I'm trying to make WooCommerce automatically add some attributes to a product when it's created. I'm trying to find the right hook to start with, so far the only one that seems correct is '...
0
votes
0answers
31 views

WooCommerce Auto Export Blank CSV

I have an auto export emailing a shipping company everyday. They would like to receive a CSV everyday even if there isn't a product sold that day. Is there a way to auto export a blank CSV if there ...
0
votes
0answers
19 views

“Restore original Size” bug

When I click "Restore original Size" the image delets and I get the "image not found" icon. I start getting this error after last update. UPDATE: This bug only found when editing main product image ...
0
votes
0answers
112 views

Display categories name of product on product page in wordpress

How to display categories name of product on product page in wordpress (Woocommerce)
0
votes
1answer
143 views

Adjust Price Display for Variable Product in Woocommerce [closed]

I want to adjust the price display for a variable product so that instead displaying as something like "$10.00-$12.00" it will display as "$10.00 or $12.00" -- essentially replacing the ndash with an "...
0
votes
0answers
97 views

Woocommece Variable Product Dropdown hide other two dropdown [closed]

I am using wordpress woocommerce.Here i have question about variable product for woocommece.Here in woocommerce initially all drop down options load.Now is this possible to load it based on first ...
1
vote
0answers
253 views

add_filter hook redirect view cart button in woocommerce

In my current multilanguage wp project I'm trying to redirect the user from the checkout (which is in the current language choosen by the user) via "view cart"-button to a translated cart page. ...
0
votes
1answer
31 views

get_posts $args won't accept array as one of the criteria?

The goal is to list attachments underneath a WooCommerce product, using the tags from that product. Everything works fine if I manually enter the tags at 'product_tag', but when I try to use an array $...