Forum Replies Created

Viewing 15 replies - 31 through 45 (of 46 total)
  • I also have the need to authorize only on some transactions, but other transactions will need to go all the way thru right away. Will the new version do that? In the customer’s shopping cart, one item would be a purchase (payment should go thru right away) and one item would be an equipment deposit (authorize only). Is this possible?

    If you go to this post (http://marketwithmario.com/online-marketing-vs-direct-mail/) and click on the Twitter sharing link at the bottom, the share text is “Online Marketing vs Direct Mail via @marketwithmario http://marketwithmario.com/online-marketing-vs-direct-mail/”

    We would really like via @marketwithmario to appear at the end, after the URL. That seems to be a pretty standard format, but I can’t get it to do that.

    I tried what you suggested above, but the Twitter handle is displayed before the URL. Nothing I try seems to move it after the URL where it belongs. Can you help?

    Thread Starter texins5

    (@texins5)

    No, it only happened once, and everything seems fine now.

    One other thing I think is strange is that I see this message in the WordPress Dashboard:

    Postman: wp_mail has been declared by another plugin or theme, so you won’t be able to use Postman until the conflict is resolved.

    But messages seem to get delivered anyhow. Any idea why that would happen?

    texins5

    (@texins5)

    I’m having the same problem. Did you ever find a fix?

    Thank you, thank you, thank you mossalot! I have been searching on and off for 3 days trying to figure out why my audio would not play. I could see the player, but nothing happened when I hit the play button. I just re-attached the mp3’s using “File URL” and it’s all working perfectly now. What a relief!

    I wish the plugin author would put this in his FAQ’s or something. I’m sure I’m not the only one who’s had this issue.

    Yes, please! Would love to use shortcode!

    Just wanted to throw in my vote for displaying a single board. I would like to feature my pins from one board only. That would be awesome! Thanks!

    I tried to use the shortcode for “products by category slug”

    [product_category category=”” per_page=”12″ columns=”4″ orderby=”date” order=”desc”]

    but nothing shows up on my test page. I definitely do have categories with slugs set up, so I’m not sure what the problem is.

    http://barricadeudt.com/store-test/

    Thread Starter texins5

    (@texins5)

    Also, I did find this for sorting by category, but it seems to take away all the other sort options, and it also messed up the order of my blog posts. Any help would be greatly appreciated.

    Here’s the website I’m working on:
    http://barricadeudt.com

    function order_by_multiple() {
    if(function_exists('is_woocommerce')){
     if(is_woocommerce()||is_search()||is_product_category())    return ' tm.meta_value, post_title';
     }
    }
    function product_order_join($join){
    global $wpdb;
    if(function_exists('is_woocommerce')){
     if(is_woocommerce()||is_search()||is_product_category()){
     $join.= " JOIN " . $wpdb->term_relationships ." tr ON " . $wpdb->posts . ".id = tr.object_id JOIN " . $wpdb->term_taxonomy ." tt ON tt.term_taxonomy_id = tr.term_taxonomy_id AND tt.taxonomy =  'product_cat' JOIN " . $wpdb->terms ." t ON tt.term_id = t.term_id
     join " . $wpdb->woocommerce_termmeta ." tm on tm.woocommerce_term_id = t.term_id and tm.meta_key = 'order'	";}
     }
     return $join;
    
    }
    add_filter("posts_join","product_order_join");
    IF(!is_admin())add_filter("posts_orderby", "order_by_multiple");

    I also found Woo’s snippet for adding some other asc/desc sort options. Maybe there’s some way to add this same thing for sorting by category? I messed around with it, but I only know enough to be dangerous. Does this give anyone some good ideas?

    add_filter('woocommerce_get_catalog_ordering_args', 'custom_woocommerce_get_catalog_ordering_args');
    
    function custom_woocommerce_get_catalog_ordering_args( $args ) {
    	if (isset($_SESSION['orderby'])) {
    		switch ($_SESSION['orderby']) :
    			case 'date_asc' :
    				$args['orderby'] = 'date';
    				$args['order'] = 'asc';
    				$args['meta_key'] = '';
    			break;
    			case 'price_desc' :
    				$args['orderby'] = 'meta_value_num';
    				$args['order'] = 'desc';
    				$args['meta_key'] = '_price';
    			break;
    			case 'title_desc' :
    				$args['orderby'] = 'title';
    				$args['order'] = 'desc';
    				$args['meta_key'] = '';
    			break;
    		endswitch;
    	}
    	return $args;
    }
    
    add_filter('woocommerce_catalog_orderby', 'custom_woocommerce_catalog_orderby');
    
    function custom_woocommerce_catalog_orderby( $sortby ) {
    	$sortby['title_desc'] = 'Reverse-Alphabetically';
    	$sortby['price_desc'] = 'Price (highest to lowest)';
    	$sortby['date_asc'] = 'Oldest to newest';
    	return $sortby;
    }

    This works to sort products by category on the main shop page, but it also changes the order of my blog posts AND takes away the ability for any other sort options, which is a bit of a bummer. Can anyone take a look at this and tell me if there’s a way to tweak it so it works better? Unfortunately I can’t write this stuff from scratch. I have to find something and make it work.

    function order_by_multiple() {
    if(function_exists('is_woocommerce')){
    if(is_woocommerce()||is_search()||is_product_category()) return ' tm.meta_value, post_title';
    }
    }
    function product_order_join($join){
    global $wpdb;
    if(function_exists('is_woocommerce')){
    if(is_woocommerce()||is_search()||is_product_category()){
    $join.= " JOIN " . $wpdb->term_relationships ." tr ON " . $wpdb->posts . ".id = tr.object_id JOIN " . $wpdb->term_taxonomy ." tt ON tt.term_taxonomy_id = tr.term_taxonomy_id AND tt.taxonomy = 'product_cat' JOIN " . $wpdb->terms ." t ON tt.term_id = t.term_id
    join " . $wpdb->woocommerce_termmeta ." tm on tm.woocommerce_term_id = t.term_id and tm.meta_key = 'order'	";}
    }
    return $join;
    
    }
    add_filter("posts_join","product_order_join");
    IF(!is_admin())add_filter("posts_orderby", "order_by_multiple");

    This might work for you:
    Faceted Search

    This plugin works great for searching multiple categories!

    Thread Starter texins5

    (@texins5)

    Thanks! I just took that and modified slightly and put in my functions.php file in my child theme. I was a little worried about modifying the actual plug-in files, and I had already figured out how to remove the sidebar on all WooCommerce pages using a functions.php file, so I figured I could add it to that. Worked great!

    Here’s what I put in my functions.php file, based on your suggestion:

    remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20);

    I think your product page layout will really vary depending on what theme you are using. From what I understand, WooCommerce looks great with some themes and not so great with others. I’m using TwentyEleven. Here’s a link to one of my product pages, if you want to see how that theme looks with WooCommerce:

    http://ultimateshowstoppers.com/wordpress/shop/doorstopper-c34-ss/

    Still working on the site, but it’s getting there.

Viewing 15 replies - 31 through 45 (of 46 total)