Questions tagged [woocommerce-offtopic]

OFF TOPIC. PLEASE CLOSE THIS QUESTION. Questions *specific* for this e-commerce plugin have their own forum at https://wordpress.org/support/plugin/woocommerce. Click the "Learn More" link below for useful links such as Support and Developer Docs.

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

How can I hide the Orders on the admin side of Woocommerce?

In my Woocommerce shop I don't want to see some orders in the backend. Only individual orders should be hidden. In the front end I always do this with the element Picker and CCS display: none but that ...
0
votes
0answers
10 views

Wordpress Custom Cart [closed]

hello guys i have a created a wordpress site and i am using rest api to display the products n categories in my app in that i have created a custom cart php file where i am getting the productid n ...
0
votes
0answers
7 views

WooCommerce doesn't display product-categories [closed]

At the moment I'm working on two wordpress websites which are owned by a friend of mine. Both of those websites use woocommerce as a shop. Both websites display the same content and products. The only ...
0
votes
0answers
20 views

How to take user to a specific page through a quiz on wordpress

I need to take the customer to a specific page based on the options he selects when he takes a quiz. The pages are pre-made, I only need to redirect the quiz results button to a specific different ...
0
votes
0answers
10 views

change woocommerce language [closed]

I want to change the language of woocommerce language. like add to cart. my cart and all the other things. i use a lot of plugins like gtranslate. loco translate and wpml but not get any result. ...
0
votes
0answers
9 views

Pricing conditions in WooCommerce [closed]

I want the price of a product to be fixed until a user select a weight and than the price will be calculated by the option he chose. See image for example Basically sell product by quantity or weight ...
0
votes
0answers
13 views

Show custom field if it exists, and show different in woocommerce category [closed]

I want show woocommerce category custom field content if it exist, and show something different if not. I fount this code and it works for posts. How can I change it to work for woocommerce categories?...
0
votes
0answers
3 views

Change add to cart button to contact us - WooCommerce [closed]

I have made an webshop using woocommerce for a client. But now the client wants to stop selling the products via the webshop but instead wants people to contact him. So we still want to use ...
0
votes
0answers
11 views

Prevent saving address WP user [closed]

I have a multistore where the users login on the wordpress login, not the myaccount from woocommerce. the reason for this is to prevent the users to login to the other sub sites. these users can place ...
0
votes
0answers
5 views

FlexSlider is not working on custom taxonomy page

I'm trying to create a custom taxonomy page where woocommece products load through jQuery Ajax after 30 to 40 seconds. Due to which flexslider is not working on products. Any Solution???
0
votes
0answers
10 views

woo commerce change the word shipping to delivery (Gutenberg woo commerce block) [closed]

Hi every one let me try to explain this. PLEASE NOTE: i use the woo commerce block plugin (for the cart and checkout pages to replace the original shortcode) i want to change my instances where the ...
0
votes
0answers
16 views

How can i show SKU under product title [closed]

I tried solution found from here but that didnt work. I added the code snippet to the functions.php but that didn't work.
0
votes
0answers
22 views

Change the URL of an image from wp_get_attachment_image_src for Product Posts based on Category

I would like to change the URL of an image from wp_get_attachment_image_src for Product Posts based on their Category, for example: If a product post is in product category 1, this will be it's image ...
1
vote
1answer
20 views

Change the URL of an image from wp_get_attachment_image_src except in the frontpage

This is the code I used that is working, but I want it to work only on product posts and not on the frontpage. function alterImageSRC($image, $attachment_id, $size, $icon){ $image[0] = 'http://...
0
votes
0answers
14 views

How to add php variable inside wc_enqueue_js('jQuery') function?

wc_enqueue_js(' jQuery("img:not([title!=\"\"][title])").each(function() { jQuery(this).attr("title", jQuery(this).attr(<?php get_the_id() ?>)); }) ...
0
votes
0answers
8 views

Woocommerce - Product Variation Preorder price [closed]

Im kinda new to woocommerce dev and haven't developped in PHP for ages. I implemented Preording on my Woocommerce store using this : // Admin Variation custom fields add_action( '...
3
votes
0answers
31 views

Is it safe to delete from db orphaned posts i.e. whose post_parent no longer exists?

I inherited a couple of WP + WooCommerce shops with roughly 30,000 products for sale each, and a wp_postmeta which is over a million lines. The former webmasters ran away. In an effort to clean up old ...
-1
votes
0answers
11 views

Hide shipping methods for specific shipping class in WooCommerce [closed]

I tried combine, slug and array from this and this question, but have some problem. add_filter( 'woocommerce_package_rates', 'hide_shipping_method_based_on_shipping_class', 10, 2 ); function ...
0
votes
0answers
4 views

WooCommerce plugin for discounts by brand? [closed]

I'm looking for a WooCommerce plugin that would allow creating discounts based on brand (for example "5% off for all products of brand X"). Aside from that, the plugin also needs to: Allow ...
0
votes
0answers
6 views

My total checkout is not the same than my total cart [closed]

i'm trying to create an estimate form plugin on wordpress using woocommerce. I'm able to get the total price of my form on my cart but not on the checkout page. The value "prix" diseappear ...
0
votes
0answers
10 views

Woocommerce: free shipping from certain amount and coupons applied [closed]

in our woocommerce store we have flat_rate shipping set to 4.95€ and free_shipping if order amount is > 45€. Now, if a customer has a cart with - let`s say 48€ - he does not have to pay shipping ...
0
votes
0answers
8 views

Woocommerce logic of hide payments and shipping method based on shipping classes [closed]

Found something similar to what I need here and here but there were difficulties in combining and building the correct logic. In the screenshot below you can see what kind of logic I wanted to set.
0
votes
1answer
9 views

Show menu order field in quick edit

I had created a custom field using ACF in a quick edit. A field is showing where a user has to update the menu order of the product. When you see the product details page by clicking the edit button ...
0
votes
0answers
15 views

How to display Woocommerce cross-sells in single product tabs [closed]

I'm trying to display cross sells using the following function: woocommerce_cross_sell_display(); This function is part of Woocommerce default functions, and it suppose to work. Meanwhile I receive ...
0
votes
0answers
12 views

How to create wysiwyg in general settings of woocommerce

I've created textarea in genreral settings tab with this code and it works, no problem add_filter( 'woocommerce_general_settings', 'add_msg_in_general_settings' ); function ...
0
votes
0answers
9 views

How to fetch related products for single product page [closed]

quite new to e-commerce and it’s been a real headache at times 🤯. I’ve managed to get most of what I want displayed and styled for the single product page using elementor and some Jetwoobuilder ...
0
votes
1answer
13 views

Why does my loop breaks the css below?

<?php /** * My Orders - Deprecated * * @deprecated 2.6.0 this template file is no longer used. My Account ...
0
votes
0answers
7 views

Top Bar dynamic Login Name disappear

When i login in my website and go to my homepage website, the admin bar and the disappear and the user name disappears too, and this only happens if my website in online. On localhost this bug does ...
0
votes
0answers
5 views

Override of woocommerce content-single-product in divi child theme [closed]

I am using the Divi theme with WooCommerce and have created a child theme for Divi. I have customized the colors, layout, etc. and all pages/posts/product archives look correct, but when I go to a ...
0
votes
0answers
6 views

Add notice onto products in a certain category [closed]

I'm trying to use the following code in functions.php to add a custom notice wc_add_notice( __('Insert Message Here'), 'error' ); But I only want the notice to show on products within a certain ...
0
votes
1answer
14 views

How to hide metaboxes in WordPress Admin on WooCommerce “Add Product” page - Remove side sortables for a specific user role

How do I hide certain metaboxes in WordPress Admin screen options for specific user roles? For example, I allow the user role "Store Vendor" to access the WordPress admin to upload their ...
0
votes
0answers
10 views

Woocommerce - Disable “Add to Cart” button (not hide), and add additional button with features [closed]

I need to customize the "add to cart" buttons offered on my website. Here is the desired scenario. Product A has not been released for purchase on our website. The "Add to Cart" ...
0
votes
0answers
26 views

Trouble getting all line items from woocommerce order

So I have this that returns the order data The issue I have is is that I am only getting the first line item not all of them in my array I am also doing some other work with the data for the results ...
0
votes
0answers
16 views

How to edit woocommerce default Catalog page?

I want my WooCommerce shop page to look like this image right here: https://imgur.com/FHdxJmZ So far, I got to this point where I got 2 buttons with plugins, the price and name edited with CSS like so:...
0
votes
1answer
22 views

Variant Item SKU as Product Code

I am working on a new website for my company. We have products with variations. each variation have its own SKU number. When we select the product, the correct item is displayed in the cart with ...
0
votes
0answers
14 views

Custom My Account tab isn't working when Home Page is My Account page

I have used the code snippet to add the custom my account page: /** * Register new endpoint to use inside My Account page. * * @see https://developer.wordpress.org/reference/functions/...
0
votes
0answers
13 views

How to change a simple product to a variable product? [closed]

I already have a product which is 'simple' I need to change it to a 'variable' product in order to add attributes and variations. How do I do this? Using Wordpress and WooCommerce
0
votes
0answers
18 views

Combine change Email Wordpress and woocommerce emails template

I use this plugin for customize woocommerce emails. But unfortunately I found out that it does not change the standard Core Wordpress emails. For example if client want change email in account details,...
0
votes
1answer
15 views

Make downloadable ebook read online without download option

My site has downloadable ebooks only (all pdf, sometimes epub together). Now I want to disable/hide the download button after purchase; instead, a 'read' button to let customers read online, ...
0
votes
1answer
18 views

get_the_post_thumbnail_url does not return anything if image size is set

I want to display the post-thumbnail image in the header using get_the_post_thumbnail_url() with defined size, however if I am using it without specifying the size, like get_the_post_thumbnail_url() ...
0
votes
0answers
8 views

Default product image by user role

I would like to replace the default product gallery and the default product thumbnail if user have VIP user role. The vip thumbnail and gallery images are in 2 ACF fields: vip_thumb vip_gallery Now ...
0
votes
0answers
18 views

What is the best approach to rebuild product category tree completely?

I have a pretty large hierarchical list of product categories (almost 300) which I need to rebuild from scratch. Once the category tree is completed, I need to re-assign all existing products (more ...
0
votes
0answers
32 views

Problem with showing more than 2k variations [closed]

I have product with 2430 variations (don't ask is it necessary, contact lenses have a lot of variations, and shop owner insist in one product). In front end, all possible variations are loaded in ...
0
votes
0answers
13 views

Woocommerce add products to cart

Is there a way to add a product to woocommerce cart without passing the product ID? So I have a DB with products and I do not want to import these products to woocommerce products in backoffice. Can I ...
0
votes
0answers
21 views

How to Add “parent category description” in Woocommerce sub category page if there is no description available for child category

In Woocommerce, I have around 6 categories and there are many subcategories in each parent category. Mostly, the description for the subcategory is the same as the parent category except for a few ...
0
votes
0answers
7 views

Custom woocommerce product table shortcode [closed]

I am trying to write some custom code that goes in the functions.php file to create a shortcode that will display a list of products in a chosen category. Everything seems to work but there is a ...
0
votes
1answer
14 views

Get thumbnail URL for Woocommerce Product Tag

I am using this plugin https://woocommerce.com/products/custom-product-tag-image/ To add thumbnail images to my product tags. I'd like to display a that list of tags with their accompanying images. I'...
0
votes
0answers
10 views

Custom script/iframe after “Add to Cart” in WooCommerce for every product

I need to add a custom script/iframe for each product on a WordPress/WooCommerce site. I want it to show after the "Add to cart" button. I know I can use WooCommerce Hooks to perform this ...
0
votes
1answer
24 views

Send email notifications to a defined email address depending if a product in order has a specific TAG [closed]

I looking to send new order woocommerce email notification to two diferent emails depending if a product in the order has a specific TAG or not. So far what I came up with was the following: //Custom ...
0
votes
0answers
11 views

Update shortcode when changing varients

With WooCommerce when you change the attribute options to select a variant, the Price and Stock amounts are updated via Ajax. I am currently using a shortcode on the single-product page where one of ...

1
2 3 4 5
83