Forum Replies Created
-
AuthorPosts
-
HADIParticipant
@imacocokara, there was some small error in the code at the first post. See post #32882 where i corrected the code. The ‘if’ conditional should be ( $wcv_enable_wrap == ‘yes’ )
HADIParticipant@imacocokara, I use the below code to save the checkbox changes.
function save_gift_enable ($post_id){ if ( ! empty( $_POST[ 'wcv_custom_product_gift_wrapper_enable' ] ) ) { update_post_meta( $post_id, 'wcv_custom_product_gift_wrapper_enable', 'yes' ); } else { update_post_meta( $post_id, 'wcv_custom_product_gift_wrapper_enable', '' ); } } add_action ('wcv_save_product','save_gift_enable');
HADIParticipantoh, sorry forgot to inform back in the thread, i managed to found the solution myself yesterday. Thanks anyway!
HADIParticipantQuick questions, firstly, can the ‘Now’ paypal adaptive payments be done when ‘Instant Pay’ checkbox is ticked?
Secondly, can the ‘Now’ paypal adaptive payments be done in Sandbox mode? I just tried it in Sandbox mode and I got error with it. Is it because I’m in Sandbox mode or it’s cause of some error?
HADIParticipantHi, possible to wrap both the label and field/checkbox of each of them in the variation drop down? Easier for us to hide ’em using css. As example, your current HTML for variable virtual in /public/forms/partials/wcvendors-pro-product-variation.php;
<input type="checkbox" class="checkbox variable_is_virtual" name="variable_is_virtual[<?php echo $loop; ?>]" <?php checked( isset( $_virtual ) ? $_virtual : '', 'yes' ); ?> /> <label><?php _e( 'Virtual', 'wcvendors-pro' ); ?></label> </div>
Maybe because I’m a noob, but I can’t figure out how to hide that specific ‘Virtual’ label. So maybe if you put <div class=”virtual_variabl”></div> in between it or something, it’s easier to hide it.
OR…. Maybe make the (related )files as template? Easy for us to delete away what we don’t want without css or worst, touching the core code (like what I’m doing).
HADIParticipantYeah, that actually is my understanding all along. but i would just like to confirm it. In my working life, ‘do not make assumption’ is my motto (because i’ve faced many problem because of assumption). Thanks!
HADIParticipanthaha. That’s quite a brutal piece of honesty. I’ll do it manually for now the updating. Thanks anyway!
HADIParticipantHi Ben, i’ve done the curl ssh and i get the full website. Checked #1 and #2 also is OK for me; no warning of license not activated and i’ve tried force checking the update couple of times already before I even started this thread.
My ‘License Key Status’ is still ‘Deactivated’ but there is green tick at the sides of License Key and License email field box though.
Oh, I’m still on v1.3.2, I would like to resolve this issue first, then update using the automatic feature.
HADIParticipantDone that already before this. Still the issue is there.
HADIParticipantNevermind, I’ve figured it out. It had something to do with incorrect input at the social account part of the setting (i just put vendor name at the facebook social input). Things are working well now.
HADIParticipantOk, i would like to explain again my issue here. When vendor press ‘Mark Shipped’ in their Dashboard’s Order table, customer will get 2 emails;
– An email with header “Your order has been shipped”
– An email with header “A note has been added to your order” with “{Vendor name} has marked as shipped.” as the note.Looking at “class-wcvendors-pro-order-controller.php” of the latest v1.3.2 WCVendors Pro, the function ‘mark_shipped()’ at line 514 shows that (from my understanding) a ‘WC_Email_Notify_Shipped” email will be triggered and a note of “Order marked shipped” (which will also send an email; a ‘note added’ email) will be added once vendor has clicked the ‘Mark Shipped’ in their dashboard.
Am I right here in the understanding of the ‘mark_shipped()’ function?
If my understand is right then, what I’m asking is whether there’s a way to disable ‘add note’ when vendor has marked shipped. I don’t want to disable the WC’s ‘add note’ email because I still want customers to get email for any notes that’s been added by vendor for whatever reason. Am I making any sense here?
HADIParticipantHello? Any help here?
HADIParticipantYes, i’m running latest free & pro.
May I know replicate how?
HADIParticipantAfter some Googling and tweaking, I’ve managed to get it! I add the below code to a newly created header-shop.php (something that is called upon by Woocommerce’s archive-product.php) in the root of my child theme.
<?php $vendor_shop = urldecode( get_query_var( 'vendor_shop' ) ); $vendor_id = WCV_Vendors::get_vendor_id( $vendor_shop ); $vendor_name = WCV_Vendors::get_vendor_shop_name( $vendor_id ); $site_name = get_bloginfo( 'name' ); if ($vendor_shop) { echo '<title>'.$vendor_name.' – '.$site_name.'</title>'; } ?>
The code was added in between the
<head></head>
in that header-shop.php file. My header-shop file is basically the same as the header.php file in my child/parent theme, but with the above code added ofcourse.HADIParticipantWell, im mostly going to pay my vendors manually by bank tranfer as well. On the record keeping side in wordpress backend of my site, i created custom post type for each vendors with necessary banking details in it. I’ve made my own commission paying system in there as well. Everytime i made bank tranfer, I’ll fill some details (amount, tranfer reference no! etc) in a custom metabox field, and when saved, it’ll automatically minus amount of commission due. This required lots of programming (and a new custom database table!) and workaround from wcvendors own native system. What I’m trying to say is, it’s possible but need a lot of work. And all of it made possible to integrate because of them wcvendors’ guys awesome fully loaded with action coding!
HADIParticipantI’m having a problem with the gift wrap enable checkbox here. I can check and save it. However, when I uncheck and save it, it is still checked afterwards. Anybody else having this issue?
oh yeah, I’ve updated a bit the function for this as below;
function wcv_enable_gift_wrap ($post_id) { $wcv_enable_wrap = get_post_meta( $post_id, 'wcv_custom_product_gift_wrapper_enable', true ); $wcv_gift_wrap_cost = get_post_meta( $post_id, 'wcv_custom_product_gift_wrap_price', true ); if ( $wcv_enable_wrap == 'yes' ) { update_post_meta( $post_id, '_is_gift_wrappable', $wcv_enable_wrap ); update_post_meta( $post_id, '_gift_wrap_cost', $wcv_gift_wrap_cost ); } elseif ( $wcv_enable_wrap == 'no' ) { update_post_meta( $post_id, '_is_gift_wrappable', $wcv_enable_wrap ); } }
The if argument used to be with only ‘=’ which caused the gift wrap to be enabled when changes is saved no matter you check the enable box or not. So, when changed to ‘==’ instead, it behaves as it should, only enabled when checked. And also i added the update_post_meta when box is unchecked, so that the gift wrap option can be off when you uncheck the enable box in product edit form. But as I said above, i’m having trouble to keep the box unchecked when saved. Anybody having this issue as well?
HADIParticipantYup, what I did is actually i rewrote the category for product edit.
I add the below code to function.php;
function single_select_category($object_id) { WCVendors_Pro_Form_Helper::select2( apply_filters( 'wcv_product_categories', array( 'post_id' => $object_id, 'id' => 'product_cat[]', 'taxonomy' => 'product_cat', 'taxonomy_args' => array( 'hide_empty' => 0, ), 'label' => __( 'Category','wcvendors-pro' ), ) ) ); }
Then i add
<?php single_select_category($object_id ); ?>
just below the<?php WCVendors_Pro_Product_Form::categories( $object_id, true ); ?>
in product-edit.php.oh, and don’t forget to delete that
<?php WCVendors_Pro_Product_Form::categories( $object_id, true ); ?>
line in product-edit.php, or u’ll get 2 category selection drop down in the product edit form.HADIParticipantHi, still related to my development of this code, based on the code from the link here, and from the line of code;
function my_wcv_commission_rate( $commission, $product_id, $product_price, $order )
The variable $order here, may I know is it order id? Do i have to do something like
$order_var = new WC_Order ($order);
first to use it for example to get the payment method like$gateway = $order_var->payment_method;
?Or I can straight away use it to get the payment method like
$gateway = $order->payment_method;
? Thanks!HADIParticipantoh silly me, its in the Pending Vendor user grouping page where the button will appear on hover! Sorry about that.
btw, I noticed that if you ‘Deny’ the pending vendor application, the user role would automatically changed to ‘subscriber’. Any way to change that to the role ‘customer’ instead without touching the core plugin file? I found the file and line that may able me to change that, but ofcourse I don’t want to touch the core plugin files.
HADIParticipantI do believe it’s possible. Just change the input type to radio, add the prices options that you want and use the same id (wcv_custom_product_gift_wrap_price). I think either Ben’s or Jamie’s gist page at github have example of various type of input for the product form.
HADIParticipantHi, if i change the commission by using the ‘wcv_commission_rate’ filter, will anything that’s being input in the commission field at the settings page be ovewritten?
Should include about passing shipping fee to vendor when writing the filter function?HADIParticipantIn the WC vendors Free changelog list, there is this, ‘* Added: New commission function for payment gateways’. May I know what this means?
HADIParticipantnoob question here, how can i use that code made by Laurie up here? If I understand correctly, this would construct some sort of shortcode to show the products sold by vendors that user followed. How does the shortcode look like? Thanks!
HADIParticipantGreat to hear that. Hope you’ll manage to do it in future update!
HADIParticipantHi, I’m not sure if it’s possible, but can I change the status data in the ‘Recent Orders’ table of ‘My Account’ page to follow vendor’s ‘Shipped’ status (the table in vendor dashboard’s ‘Order’s page).
HADIParticipantOh, did you just add the option #2 recently? I think I didn’t saw it when I add some shipping providers last time. But anyway, done using option #2 and all is well as I wanted! Thanks!
HADIParticipantThe gist link is great! lots of code i might use later. but unfortunately, I couldn’t find the one to remove couriers from the drop down option for the shipping tracking. Can you help me out with a little bit more details please? the only way I know is editing the core files which are not good since update will clean up that modification.
Thanks in advance!
HADIParticipantOh, now I know! Thanks!
Ps; any estimation on when next version of pro coming up? I’m waiting for the pending vendor ‘bug’ fix so that i can read vendor applicants filled in info before approving them to be vendor.
HADIParticipantSo, i managed to write some codes to only select 1 category per product without touching the core files.
However, the issue I face now is that the drop down box always shows the 1st category (in alphabetical order). When I save the product, the product does show (in single product page) the category that I selected. But in the product edit page, the category only show the 1st category.Here’s the code that I add in my function.php file;
function single_select_category() { WCVendors_Pro_Form_Helper::select2( apply_filters( 'wcv_product_categories', array( 'post_id' => $object_id, 'id' => 'product_cat[]', 'taxonomy' => 'product_cat', 'taxonomy_args' => array( 'hide_empty' => 0, ), 'label' => __( 'Category', 'wcvendors-pro' ), ) ) ); }
I then add
<?php single_select_category( ); ?>
in product-edit.php file in my child theme folder. Can anybody help me figure out what I’m missing here?I did try adding
'value' => esc_attr($cat_value),
below the ‘taxanomy’ line. but still doesn’t fix it.Anybody can help? Thanks!
HADIParticipantGreat to hear that! Thanks for ur great support!
HADIParticipantHi, so… does that mean that I have to approve the vendor first (change user role from ‘Pending Vendor’ to ‘Vendor) for me to be able to see the info details that vendor applicants fill in the signup form? Would you be making some changes on future updates so that admin can read those details first before approving them as vendors?
Or maybe, can you guide me to some sort of code where I can make those details appear in ‘Pending Vendor’ accounts as well?
Oh, also i noticed that there isn’t any email out to vendor applicant to tell them that their application has been approved. Any chance that you may add this in future version? Version 1.3 perhaps? I’m trying to find code that maybe I can use to trigger email out to vendor applicant once their applicant is approved but not yet found it. Perhaps can you guide me to some website/article about it?Thanks!
HADIParticipantWhat i was describing was applying as a a test vendor. I’ve filled up the signup form and submitted. But when as admin, i can’t view those filled info when open up that Pending Vendor user setting page. I’m on latest v1.2.2 right now.
HADIParticipantHi, for users in ‘Pending Vendor’ user role, i don’t see any information that was filled in vendor signup form like ‘Seller info’. Do you mean that I have to approve the vendor first (change user role to ‘Vendor’) before able to view those info?
HADIParticipantoh, the error pop-ups n goes as it will it seems. haha. most probably coz of http://www.wcvendors.com issue as u said. thanks though!
HADIParticipantHi, anybody can help me out with this?
HADIParticipantI would like to add something for Marketica. As per latest version that I got as per today, it’s not fully compatible with WC Vendors Pro yet. It’s fine with WC Vendors Free. But when activating Pro, from what I can see now;
– At Vendor store page
– the banner layout suddenly becomes different with the circle user icon dissapear
– the white space below banner suddenly dissapear
– the sorting dropdown feature suddenly dissapear
– At individual product page
– ‘seller info’ tab dissapear
– ‘more from this seller’ product listing at bottom dissapear
– At product catalogue, the ‘by [vendor]’ wording change a bit, still there but changed design & positionI’ve contacted them about this, they haven’t respond to me yet.
Btw, any idea Ben why all those issue happening?
-
AuthorPosts