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
1answer
21 views

How to get the particular product quantity in orders in Woocommerce [closed]

I am working on my WooCommerce project and I am sending mail to the customer and in that I am sending the particular product quantity. So, I am not able to get that particular product quantity from ...
0
votes
0answers
10 views

Migrating WordPress + WooCommerce from server to Local

I've been trying fora few day to migrate a WordPress/WooCommerce website from a server (OVH) to local. I've downloaded the latest version of my database from OVH and all the FTP through FileZilla. I'm ...
1
vote
0answers
11 views

Quantity on the product card and subtotal disappear [closed]

I use a Product Add-on, I have a problem with the functioning of the quantity on the product card, when there is no value in the input quantity, the subtotal disappears, how can I fix it so that the ...
0
votes
0answers
9 views

Mix Product and Post in a grid view

Thanks for reading me and in advance for your support in this! I have a wordpress with a woocommerce I wanted to have a grid view of the site and mix Posts and Products but I can't find the theme or ...
0
votes
0answers
15 views

Pre-Fix Order Numbers by User Role [closed]

I currently have orders set with the pre-fix "W" for Wholesale orders to differentiate them from Retail orders. However, we have a few different wholesale roles and I would like to be able ...
0
votes
0answers
15 views

load form billing if there an ajax event

I'm trying to load a form billing in any page when there is an ajax event if the user clicks on button (add to cart specifically). This is the code I'm using: Javascript var refreshMiniCart2 = ...
0
votes
0answers
13 views

WooCommerce - Display Product image and name on Orders page [closed]

I used the solution here (linked below). It works great. However, it glitches when displaying an order containing a product that has since been deleted. Is there a way to modify the code so that on ...
0
votes
0answers
9 views

wordpress + woocommerece when using wordpress pages with woo widgets the filter boxes do not work. why?

I am using the storefront 2020 theme and up to date WP 5.7. if I make a regular WP page and then add a side bar with woo widget filters, it doesn't work to filter any of the results. The page uses the ...
0
votes
0answers
11 views

wp-cron and woocommerce subscriptions killing performance

I wonder if replacing wp-cron by steeing my server cron tasks is going to work. I have disabled cron on a test site i am trying to optimize and the performance increased a lot. Thanks for any ...
0
votes
1answer
31 views

customer specific email attachment

I'm working on a website (client-side in Angular) and basically use WordPress as a “headless CMS” to be able to use useful plugins like “Woocomerce”. Problem: Based on customer input on the website, ...
0
votes
0answers
6 views

How to create and change prices dynamically depend of selected variations on the fly?

I know there is a lot of plugins, paid or free and no one of them is fit to be really dynamic... All plugins i found, for dynamic variations is working fine when you have few variations... (50...100) ...
0
votes
0answers
20 views

How can i solve php upgrade problem

I am using a plugin that works on Woocommerce. While no error occurs on PHP 7.2 (eg 7.3) I get an error like the following in 7.2. The developer team is not helping. How can I resolve this error? ...
0
votes
0answers
10 views

JSON.parse: unexpected character at line 1 column 1 when sending payment request

I'm coding a payment gateway plugin for woocommerce but I'm getting stuck on this error when I send a payment auth request to the offsite company that processes the payments. Once the auth request is ...
0
votes
0answers
9 views

Foreach loop failing in woocommerce email template

I have (for reasons) the need to pull meta data within an email template to check for a value so I can supress the order details table if the value is present. I have this: $order_data = $order->...
0
votes
0answers
23 views

global $product is empty string when passed into function

I'm trying to optimize my functions.php file as I have a Woocommerce site with a bunch of customizations to the theme. Currently, my functions look like the following: add_action('wp_footer', '...
0
votes
0answers
16 views

Are WooCommerce product ID's all unique on a Multisite? Or can they be the same? [closed]

I have a multisite network running WooCommerce which we are hoping to sync with a CRM & Inventory system. All sub-domains of the multisite have unique domain names. The developers of the inventory ...
0
votes
3answers
30 views

How to apply these filters

I bought woocommerce compare plugin. Unfortunately I can't understand how to apply some filters. For example I want to increase compare limit tom 10. How ı can use below filte? apply_filters( ‘...
0
votes
1answer
9 views

Show shipping class in admin order list

I was wondering if there is a way to add the shipping class in the admin order overview in the shipping column? It is displaying the Shipping Adress but I also need the Shipping Class here because I ...
0
votes
0answers
16 views

I need to disable 'woocommerce_hide_out_of_stock_items' when is_admin()

I have woocommerce_hide_out_of_stock_items option enabled, which works well. However, I am using SearchWP engine and I have enabled admin searches for this engine as well. When I search for some ...
0
votes
1answer
23 views

How to upload WP user avatar on woocommerce account page [closed]

I am using WP User Avatar Plugin instead of gravatar for user profile. But gravatar is not working so well. I want to add image upload field on woocommerce account page. How can I do that? Please help....
0
votes
1answer
20 views

Woocommerce Login Redirect to old domain

I move webpage to new domain. change in phpmyadmin _option _> new domain Everything is good but when I click in my account page (woocommerce) link go to old page. How to change this link to stay ...
0
votes
1answer
19 views

Search in 1) Post, 2) Products (woocommerce) and 3) Custom post type or Taxonomy type on a single page

I was hoping to make changes in the search.php file, where I want to display search results from Post, Products and Custom Taxonomy on the same page in three different section. Can anybody help me to ...
0
votes
0answers
19 views

Woocommerce / Product Columns on Shop Loop / Responsive

I'm trying to make the following layout 1 Column / Mobile 2 Column / Tab 3 Column / Desktop I have set up the customizer so that there are two rows, and three columns. This works on desktop, and I can ...
0
votes
0answers
22 views

ajax add to cart button is not working on my Elementor custom widget

I am trying to build a custom Elementor widget, In this widget, I query woocommerce product and add the default woocommerce add to cart hook, but it is not working on the ajax. Do I need to include ...
0
votes
0answers
7 views

Rent or sell product with bundle products [closed]

we need Product Bundles with Rent or sell product option when we select Rent than date option will be show according dates price will be calculated and we select products bundles as well.
0
votes
0answers
20 views

Function to recalculate shipping costs on subscriptions after renewal with Automatewoo

I've got a funky plugin that was custom made that adds a new random product from a group that a customer subscribes to. Problem is, that the shipping doesn't change depending on which product is ...
0
votes
0answers
20 views

Warning: Undefined variable $post in C:\xampp\htdocs\… after PHP upgrade

I use localhost for testing and debugging sites, before making changes to the live site. Because MySQL failed in XAMPP, I had to install XAMPP from scratch. I'm now using PHP version 8.0.3. ...
0
votes
0answers
15 views

Get attribute label on cart page Woocommerce [closed]

Issue/Desired Result I want to get the attribute_label on the cart page of my Woocommerce store, for example, 'Size'. My current code is giving me the slug, for example, 'Attribute_size'. How can I ...
0
votes
0answers
7 views

Querying WooCommerce Membership restricted content

Is it possible to build a query for the following: For members, within the search results, it is required that only restricted content (as specified by the WooCommerce membership addon) is shown to ...
1
vote
0answers
6 views

Admin access for custom user capabilities

I've got a site with a lot of custom user roles and capabilities, and I'm trying to allow users with a new capability 'admin_panel_access` (set up via User Role Editor) to access the admin dashboard. ...
0
votes
0answers
12 views

I want to add a custom select field in a WooCommerce Checkout - and based on the selection, open new text fields to be added

add_action('woocommerce_before_order_notes', 'wps_add_select_checkout_field'); function wps_add_select_checkout_field( $checkout ) { echo '<h3>'.__('Delegates').'</h3>'; ...
0
votes
0answers
6 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
25 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
21 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
20 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() ?>)); }) ...
3
votes
0answers
35 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 ...
0
votes
1answer
16 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 create wysiwyg in general settings of woocommerce [closed]

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
1answer
14 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
1answer
15 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
31 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
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
27 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
9 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
20 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
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 ...

1
2
3 4 5
83