Quantcast
Channel: Clan VPS Host » woocommerce
Browsing all 195 articles
Browse latest View live

Overwrite function plugin wordpress

I would like to modify a function contained in woocommerce. This is my edited function (woocommerce/includes/wc-order-functions.php): function wc_get_order_statuses() { $order_statuses = array(...

View Article


WooCommerce – Adding shipping fee for free user plan

I am using WooCommerce and with Paid Memberships Pro free plugin. On the web site we have 2 plans (a free plan and a paid plan): Free users can buy 1 item each month, Paid users can buy 4 items each...

View Article


How do I change code of a Single Product page

So I want to add a FAQ under SOME products. Normally I would probably just change the code in the single-product.php. But then I would change every single prodcut page to the same, right? And since I...

View Article

woocommerce: run function when stock is updated

I have a custom field in my products, that needs to be updated through a function, whenever the stock in any of the variations change. Are there hooks for this? If so, which ones and what is their...

View Article

Enabling permanently review checkbox option for all WooCommerce products

I would like to enable review checkbox permanently for all existing products and for newly added products too. I have looked in WooCommerce settings, but thats not possible. I have search over...

View Article


Adding subcategory to existing category Woocommerce WordPress

is there any way to give a category that already exists an sub-category in Woocommerce in WordPress using php? Like.. For example I have the Category "Fruit" and I want to create a sub-category called...

View Article

Use WooCommerce Gateway Externally

I've created a REST application that uses the WooCommerce REST API. I want to process credit cards through the WooCommerce gateway. As far as I can tell, I can't just send the credit card number and...

View Article

change base url email notifications in WordPress/woocommerce

I am loading a woocommerce shop (https://domain.webshop.com) via an iframe in a website (https://www.domain.com). When a user registers the info is stored on the shop's domain and an email is sent out...

View Article


Login fails in first attempt each time in wordpress

I have wordpress ecommerce website. When i am trying to login to any account first time whether it is customer account or admin account it shown invalid address: your email address. But when i try to...

View Article


Show left sidebar on mobile in Woocommerce/WordPress

This is driving me crazy, but I can't manage to make the left sidebar visiable on mobile devices. Can anyone provide me with a CSS code that will do the job? I would really appreciate it! URL to the...

View Article

How to redirect only for products of a given date

I have some products published on 24 october 2014how can I check the date of product and then change add to cart link for this product? I have this code in foonctions.php: add_filter(...

View Article

Add user on UrBackup server after order on Woocommerce site

I have wordpress site with woocommerce shop and Im selling among others UrBackup client accounts on my server. Do you have any idea how to automatically add UrBackup user after order in woocommerce?Or...

View Article

WordPress, Woocommerce with Storefront. PHP Code displayed below the footer

I am not sure where to look for this. When in preview of the theme, or logged as admin, everything is fine. But when I am not logged, as an average user, there are a couple of lines of PHP code...

View Article


Ordering clothing sizes in woocommerce

I'm using woocommerce function $product->get_attribute( 'pa_size'), which gives me some string (I guess) like "L, M, S, XL". How can I order them accordingly to the size (S, M, L, XL)? I've benn...

View Article

Woocommerce get product price by id in simple page

I need to a php file that can show a product's price by id. I have tried doing this with this code in a "price.php" file with this content: I'm sure that something that links this with wp is missing,...

View Article


Change orders status maid with cheque payment method to processing status

I need to make WooCommerce push payments made by check into the "processing" status rather than the "on hold" status. I tried the snippet below however it doesn't seem to have an effect. Here is my...

View Article

Need help writing an SQL query for a select statement

I need help with an SQL query. I want to show lines from my test_related_orders table where the current user id equals the user_id in my test_related_orders table and where order_unlock_time (from my...

View Article


How to fetch all the woocommerce products from the database using php

I am trying to fetch all the products of the woocommerce from the database using php.. But it is not giving me the list of all products <select Name='choose'> <?php $args = array( 'post_type'...

View Article

Displaying shipping zip code in the Orders list Admin -> Woocommerce -> Order

How can I display the shipping zip code associated to order in the Orders list view? Is there a hook that is available to include the shipping as an item in the individual order row?Thank you. //add a...

View Article

Url Redirection Help Required

I am using WordPress and Woocommerce. It is generating these ridiculously long URLs: http://digital-dev.co.uk/a3m/shop/products/portable-stands/portable-counters/ I would like to alter it so that it...

View Article
Browsing all 195 articles
Browse latest View live