jeudi 1 janvier 2015

Woocommerce product page not showing product images [on hold]


Hello folks Happy New year to all.


I have uploaded 3-4 images in woocommerce product page but all images are not showing at a time it needs to click on next image button arrow to load next image,


I want all images to show at a time below the featured image.


Take a look here http://ift.tt/1yaJUHb





How can show all Contributors' Posts


When Contributor add new post in my site, and i approve it,


The problem is when any user click in Contributor name to sho all post of this Contributors. Its show me 404 error.


So i need way to show all Contributors' Posts in online page.





Loop through pages with specific template


I would like to know how I can loop through pages with a specific template name. I have several pages where the admin can select a template name of SALE. I want to display all content with this template name via the loop.


Any ideas are much appreciated!





Add variables to all permalinks in site


I need to add variables to all links in my site based on a condition.


So all permalink in a page that met my condition (in specific category or whatever) : http://ift.tt/1K3KRES or http://ift.tt/1zAqsyX would be http://ift.tt/1K3KREU and http://ift.tt/1zAqpTC


How can i do that?





Add custom menu link to Parent drop menu (Page Attributes)


if it possible to add custom menu link to parent drop menu in page?


i am using custom menu link as parent item in menu (without really link).


i have create this link using: Appearance -> Menus -> my menu -> Add custom link.


i don't want that parent item will link to some page and that why i have create custom menu link.


the problem is that everytime i create new page i cant select the custom menu link from the drop down menu(parent page) in page


enter image description here





add privacy using bp_activity_add()


I want to select privacy when I am adding my new activity. I am using bp activity privacy plugin and it is working well. But what i want is that when i click on a button, I add an activty to the activity stream which is right now working pretty well. Now i want to select this new activity privacy at the time when I fill my random form and click save button. that save button is creating my new activity right now.



function onclick()
{
// Get current username and display name.
$current_user = wp_get_current_user();
$getDisplayName = $current_user->display_name;
$getUserName = $current_user->user_login;

// Get current url.
//$current_url = home_url( add_query_arg( NULL, NULL ) );

// url except page name.
global $wp;
$current_url = add_query_arg( $wp->query_string, '', home_url( $wp->request ) );

bp_activity_add( array(
'action' => '<a href="' . $current_url . '/members/' . $getUserName . '/">' . $getDisplayName . '</a> Added new activity',
'content' => $getDisplayName.' has added an activity',
'component' => 'simplepress',
'type' => 'new_forum_post',
'primary_link' => $current_url.'/exercise-log/',
'user_id' => get_current_user_id()
));
}




mercredi 31 décembre 2014

Woocommerce- How to limit the orders (admin side order listing) with respect to vendor?


I am using the Woocommerce Vendor Stores plugin along with WooCommerce so that I can add the multiple vendor functionality to the woocommerce store. But the problem right now is a vendor should be able to see his orders only (now he can see every orders). A vendor is a user with a role "vendor" created by the plugin. Every products listed by the vendor will be show in his particular store. Basically a store is a term with a term taxonomy "shop_vendor" .enter image description here


Can someone please tell me how to achieve this (limiting the orders with respect to the vendor)