JovanaV
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Shopera] Move price on product category/shop pageYou need to delete
position:relative;on
body .container ul.products li.product .product-image.After that add this:
position: absolute; bottom: 0;to your
.woocommerce ul.products li.product .product-image span.price, .woocommerce-page ul.products li.product .product-image span.pricespan element.Regards.
Forum: Themes and Templates
In reply to: [Twenty Sixteen] Centering content between 710px and 909px?Hello,
You need to add !important to margin-right.
Like this:margin-right: 7.6923% !important;Regards.
Forum: Themes and Templates
In reply to: [Shopera] Move price on product category/shop pageHello,
Have you installed the Woocommerce plugin?
Could you please provide me your URL?Regards.
Forum: Themes and Templates
In reply to: How can i change CategoryHello clubvindenforum,
You can add this function in your child theme functions.php:
function postsbycategory() { // the query $the_query = new WP_Query( array( 'category_name' => 'your_category_name', 'posts_per_page' => 10 ) ); // The Loop if ( $the_query->have_posts() ) { $posts .= '<ul class="postsbycategory">'; while ( $the_query->have_posts() ) { $the_query->the_post(); if ( has_post_thumbnail() ) { $posts .= '<li>'; $posts .= '<a href="' . get_the_permalink() .'" rel="bookmark">' . get_the_post_thumbnail($post_id, array( 50, 50) ) . get_the_title() .'</a></li>'; } else { // if no featured image is found $posts .= '<li><a href="' . get_the_permalink() .'" rel="bookmark">' . get_the_title() .'</a></li>'; } } } else { // no posts found } $posts .= '</ul>'; return $posts; /* Restore original Post Data */ wp_reset_postdata(); } // Add a shortcode add_shortcode('categoryposts', 'postsbycategory');And to show recent posts by categories on home page, paste the shortcode [categoryposts] in the post content area.
Cheers,
JovanaVForum: Plugins
In reply to: [WooCommerce] Hide add to cart button using cssI’m not sure if you understood me. Change your theme to default one, for example twenty fourteen or twenty thirteen, and paste code in that particular theme functions.php file.
I just tested it and it works.Forum: Plugins
In reply to: [WooCommerce] Hide add to cart button using cssPlease check out code in one of WordPress default theme.
Forum: Plugins
In reply to: [WooCommerce] Hide add to cart button using cssHi,
You can use this function to remove “add to cart” button from you Shop page:
function remove_loop_button() { remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 ); } add_action('init','remove_loop_button');Add this to your theme function.php file.
Regards
Forum: Plugins
In reply to: [WooCommerce] How to fetch product tags?Hi,
You can do it by using WP function:
$terms = get_terms( 'product_tag');More documentation about function can be found here: http://codex.wordpress.org/Function_Reference/get_terms
Regards
Forum: Plugins
In reply to: [WooCommerce] Safe to change customer usernames without loosing orders?Hi,
Easiest way is to duplicate website and DB locally and test it. 🙂
Forum: Plugins
In reply to: [WooCommerce] Custom order statusHi,
You can add this code to your theme function.php and replace “Awaiting shipment” with desired custom order status.
function register_awaiting_shipment_order_status() { register_post_status( 'wc-awaiting-shipment', array( 'label' => 'Awaiting shipment', 'public' => true, 'exclude_from_search' => false, 'show_in_admin_all_list' => true, 'show_in_admin_status_list' => true, 'label_count' => _n_noop( 'Awaiting shipment <span class="count">(%s)</span>', 'Awaiting shipment <span class="count">(%s)</span>' ) ) ); } add_action( 'init', 'register_awaiting_shipment_order_status' ); function add_awaiting_shipment_to_order_statuses( $order_statuses ) { $new_order_statuses = array(); foreach ( $order_statuses as $key => $status ) { $new_order_statuses[ $key ] = $status; if ( 'wc-processing' === $key ) { $new_order_statuses['wc-awaiting-shipment'] = 'Awaiting shipment'; } } return $new_order_statuses; } add_filter( 'wc_order_statuses', 'add_awaiting_shipment_to_order_statuses' );Cheers
Forum: Plugins
In reply to: [WooCommerce] Get Cart Total in a VariableYou can use this function instead:
http://docs.woothemes.com/wc-apidocs/source-class-WC_Cart.html#2016-2029
Forum: Plugins
In reply to: [WooCommerce] Get Cart Total in a VariableCan you tell me what you want to achieve?
You’re welcome.
Forum: Plugins
In reply to: [WooCommerce] Get Cart Total in a VariableHello,
As you can see from documentation: http://docs.woothemes.com/wc-apidocs/source-function-wc_cart_totals_order_total_html.html#227-250 function
wc_cart_totals_order_total_html()is returning void , which means you can’t use it conditionally.Regards
Forum: Plugins
In reply to: [WooCommerce] Woocommerce lightbox product images doesn't stay centeredHello,
To fix that enter the images with the same size and they will be centred.
Regards,
JForum: Plugins
In reply to: [WooCommerce] Featured Products Only in Shop PageHello,
To achieve that add new page named Featured Products or you can use whatever name you want and set this shortcode:
[featured_products per_page= "9" columns="3"]Here are the official docs:
If you want exactly your page with featured products to be called “Shop” make sure that “Shop” isn’t selected here:
WooCommerce -> Settings -> Products -> Product Archive / Shop page
Regards