selvendran p
Forum Replies Created
-
Forum: Plugins
In reply to: Credit Card Payments in WordPressOkay thanks for you suggestion
Forum: Plugins
In reply to: How to add a product via frontend in woocommerce?Hi martinjesus,
The plugin not store the product category correctly. Because the plugin made by only the post type categories. But woocommerce uses the product_cat as taxonomy. so we need to store our selected category.
So need to add some code in the wpuf-add-post.php file at after
if ( wpuf_get_option( 'allow_cats' ) == 'on' ) { $post_category = $_POST['category'];
Add the code below
$subCategory = get_term_by( 'slug', $cn, 'product_cat' ); $mainCategory = get_term_by( 'id', $subCategory->parent, 'product_cat',ARRAY_A ); $parid = $mainCategory['parent']; $tid = $mainCategory['term_taxonomy_id']; $mid = $mainCategory['term_id'];
Then use this $parid , $tid, $mid to set post term.
Forum: Plugins
In reply to: How to add a product via frontend in woocommerce?Yes renegadesk
That is correct. If you want to display product categories you need to edit this file wpuf-add-post.php in plugin at the line
wp_dropdown_categories( 'show_option_none=' . __( '-- Select --', 'wpuf' ) . '&hierarchical=1&hide_empty=0&orderby=name&name=category[]&id=cat&show_count=0&title_li=&use_desc_for_title=1&class=cat requiredField&exclude=' . $exclude );
Replace with
wp_dropdown_categories( 'show_option_none=' . __( '-- Select --', 'wpuf' ) . '&hierarchical=1&hide_empty=0&orderby=name&name=category[]&id=cat&show_count=0&taxonomy=product_cat&echo=1&&title_li=&use_desc_for_title=1&class=cat requiredField&exclude=' . $exclude );
Forum: Plugins
In reply to: How to add a product via frontend in woocommerce?ok well renegadesk,
The first thing is the plugin have the short code to display add post and edit post and list post pages. you should follow that to display you pages to add product and edit products.
And also the plugin support the custom post type.
so for example you goto create a page, name like “Add product” and put the short code in that page as
[wpuf_addpost post_type=”product”]Now you go to add post via front end and go to check in admin. your added content displays under the woocommerce products.
Forum: Plugins
In reply to: How to add a product via frontend in woocommerce?Yes renegadesk,
Am ready to explain that. Am waiting for some one asking to me. because now am busy with another work..
Forum: Plugins
In reply to: How to add a product via frontend in woocommerce?oh ok ok nice. I have completed the progress with adding products Via front end.
Forum: Plugins
In reply to: How to add a product via frontend in woocommerce?Hi renegadesk
You need to customize that free plugin. The plugin displays the default post category. So that you want to change the code to list you product category.
Forum: Plugins
In reply to: How to add a product via frontend in woocommerce?Hi GideonKimani
Am searching this in very long and lost my time to find a correct answer.There is no plugins and extensions. But Finally i am decide that am going to use wp-user-frontend plugin to upload the product from front end.
https://www.ads-software.com/extend/plugins/wp-user-frontend/But need to customize this plugin as your wish to upload product.
Any help reply me.Thanks
P.SelvendranForum: Plugins
In reply to: [WooCommerce] 500 Internal Server Error when I activate WoocommerceWoocommerce Internal Server Error.
It is a must that all the woocommerce pages need to be set in admin. If you set all the pages the Internal Server Error will be Fixed. Thank you for the tips.
Selvendran
Forum: Fixing WordPress
In reply to: An error occurred – -32300:transport error – could not open socketHi
DEFINE(‘WP_XMLRPC_URL’, ‘https://www.mysite.com/xmlrpc.php’);
DEFINE(‘WP_USERNAME’, ‘*****’);
DEFINE(‘WP_PASSWORD’, ‘*****’);
require_once(“wp-includes/class-IXR.php”);
$rpc = new IXR_Client(WP_XMLRPC_URL);
$status = $rpc->query(“system.listMethods”); // method name
if(!$status){
print “Error (“.$rpc->getErrorCode().”) : “;
print $rpc->getErrorMessage().”\n”;
exit;
}Am using this, That is solved my problem
Thanks to stackoverflow for helped me..Forum: Fixing WordPress
In reply to: An error occurred – -32300:transport error – could not open socketHi
I have solved my problem to change my code…