1
vote
1answer
45 views

Edit tag cloud widget number

By default, the WordPress tag cloud widget has a set amount of 45 tags to display. This can be seen in the wp-includes/category-template.php file. By default, the WooCommerce plugin which I have ...
-1
votes
0answers
14 views

Woocommerce - Change Product price by php code [closed]

I am using Woocommerce. I edit the file that controls the Single-Product Page (content-single-product.php) How can I set there a function that changes the price (No matter what). Even if I will write: ...
2
votes
2answers
117 views

How to correctly add Javascript in functions.php

I would like to remove some ugly looking arrows that are standard on cart buttons in WooCommerce. To achieve this, I found a tip of adding the following code, which should remove the arrows when the ...
0
votes
2answers
46 views

Adding nofollow to a PHP generated Nav

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly global $wp_query; if ( $wp_query->max_num_pages <= 1 ) return; ?> <nav class="woocommerce-pagination"> ...
-1
votes
0answers
29 views

Enable Woocommerce chart, price and buying functions if only user is specific role, otherwise use as catalog [closed]

I would like to make a e-commerce site that use as catalog for visitors or users that less than specific role capabilities. Eg: if i enable the woocommerce for Editors than editors and above will be ...
1
vote
0answers
146 views

Single Product Navigation within Category for WooCommerce

I'm working on a website for a client who would like to have product navigation on each single product page. The navigation will go through each product within the category and when it reaches the ...
-1
votes
1answer
756 views

How to have a custom display for both woocommerce archive and product-category pages? [closed]

So far Hi there, I understand my question is very closely related to a common question about 'woocommerce'. I have been using a variety of woo hooks, filters and creating copies of original woo ...
-1
votes
1answer
555 views

How to add a second 'place order' button in WooCommerce [closed]

My client would like two 'Place order' buttons on his checkout page (http://www.jobgrandprix.fr/checkout/?set-cart-qty_2652=1). By default, the 'Commander' (his site is in French) button is at the ...
1
vote
1answer
2k views

How to add product in woocommerce with php code

I want to add products with PHP code like below: $post_information = array( 'post_title' => 'new item shop', 'post_content' => 'this is new item shop', 'post_type' => 'post', ...
0
votes
1answer
77 views

Need some help with tweaking a code for woocommerce [closed]

I have this code to show custom text in the categories i choose. <?php if (is_product_category('furnitures')) : ?> <p>This is the text to describe category A</p> <?php elseif ...
0
votes
3answers
538 views

Woocommerce display one random product via php

I am trying to display one random product in my template header. So each time someone visits or refresh there will be a different product displayed in the header. I searched and found this <?php ...
1
vote
0answers
1k views

How to get Woocommerce Variation ID? [closed]

I am trying to create some additional functionality on my Woocommerce backend where I add a custom field to the variations section of backend of Woocommerce. However I cannot for the life of me ...