Forum Replies Created
-
AuthorPosts
-
Arvid ViderbergParticipant
Hi @ben, was there ever an update for this problem? My vendors are still getting wrong commission in their emails. 🙂
Arvid ViderbergParticipant@ben I know, however, my dev site is currently down. I’d gladly try to reproduce it, but I have no site to test it on. 😛
Arvid ViderbergParticipantWell.. uhm. I’ve disabled the international shipping completely. The products that were ordered had both free shipping and a national shipping set. My dev site is not up yet, so I can’t replicate it easily. Is it possible to do it on your dev site? 🙂
Arvid ViderbergParticipantI see, how do I get the vendor ID?
$vendor_id
?Arvid ViderbergParticipantI’ve tested this on a vendor product that has a city set. It doesn’t show anything however..
<h2>Shipping</h2> <?php $test = get_post_meta ( $post_id, '_wcv_store_city', true ); ?> <p> <strong>Shipping from:: </strong> <?php echo $test; ?> </p>
Arvid ViderbergParticipant@ben Not very fantastic at PHP, really.. Which post id should I use? 🙂
This is what I got so far:
<?php $test = get_post_meta ( int $post_id, string $key = '_wcv_store_city', bool $single = false ); ?>
Arvid ViderbergParticipantJust out of interest…
How much bandwith and webspace is included in your hosting Ben? And where is the server located? 🙂Arvid ViderbergParticipantThanks Ben, but I’m not sure how to change the line..
<strong>Shipping From: </strong> <?php echo $countries[ strtoupper( $store_city ) ]; ?>
? 🙂Arvid ViderbergParticipantArvid ViderbergParticipant1. You can enabale/disable your key on any site at any time. So no problem there.
2. Yes, you can still have wc-vendors pro on your dev site, as a lot of people would like to test on local sites before going live. 🙂Arvid ViderbergParticipantThis should be in the following template:
/templates/dashboard/quick-links.phpArvid ViderbergParticipant@ben Yeah, but my vendors doesn’t really find their way to their account.. But hooking into the registration would be awesome, thanks! 🙂
Arvid ViderbergParticipantRegarding the background, you can change it by changing the following classes. Give it a try! 🙂
Note: You might need to use the !important attribute on some of the classes.This one changes the main background:
.wcv-navigation ul.menu.black{ color: #fff !important; }
This one changes the link attributes:
.wcv-navigation ul.menu.black li a{ color: #777; background-color: #eee !important; }
And this one changes when you hover over the links:
.wcv-navigation ul.menu.black li a:hover{ color: red; }
Arvid ViderbergParticipantI see, but wouldn’t it be awesome to hook it into woocommerce name(since it already exists)?
I’ve managed to add the name-fields in the template, but I can’t get it to save both paypal-address and name using the same submit button..
Perhaps this is more of a stackoverflow question, hehe. 🙂Arvid ViderbergParticipant@ben, I think you misunderstood. I’m looking to add the name in the payment tab. Can’t be that hard since the name is already integrated in woocommerce, right?? :p
Print below.Arvid ViderbergParticipantBump 🙂
Arvid ViderbergParticipant@ben I can’t get it to translate through Poedit. But thanks! Now I found the string for emails as well 😀
Arvid ViderbergParticipant@ben anything to keep those sweet new updates coming 😉
Arvid ViderbergParticipantYes, that is possible to remove in wc-vendors settings.
At the left side panel:
Woocommerce->Wc-Vendors->Products and disable the types that you do not want. 🙂Arvid ViderbergParticipantThat sounds kinda heavy.. Maybe I’ll just let that one go for a while.. 😉
Arvid ViderbergParticipantAdd this code to your themes functions.php:
add_filter ('wcv_product_sold_individually', 'remove_individual'); //Checkruta 3, butik function remove_individual() { $foo = array( 'post_id' => $post_id, 'id' => '_sold_individually', 'wrapper_class' => 'show_if_simple show_if_variable', //'label' => __( 'Sold Individually', 'wcvendors-pro' ), 'desc_tip' => true, //'description' => __( 'Enable this to only allow one of this item to be bought in a single order', 'wcvendors-pro' ), 'type' => 'hidden' ); return $foo; }
Arvid ViderbergParticipant@Conscious Crafties Yes! The new lines are:
/wp-content/plugins/wc-vendors-pro/public/forms/class-wcvendors-pro-store-form.php
row 785/wp-content/plugins/wc-vendors-pro/public/forms/class-wcvendors-pro-product-form.php
row 1177Arvid ViderbergParticipant@ben Yeah, but then the customer won’t get any ordernotes. I simply want to disable the ordernote ONLY when order is marked as shipped. 🙂
Arvid ViderbergParticipantThe “Order marked shipped.” phrase when a vendor has marked their order as sent in the frontend does not translate.
Arvid ViderbergParticipant@ben Great as always, thanks!
Arvid ViderbergParticipant@ben Sounds great! 🙂
Arvid ViderbergParticipant@ben Just out of curiosity, where do you find the tickets? 🙂
Arvid ViderbergParticipant+1 for this “bug”. Is there an easy fix for this @ben? 😛
Arvid ViderbergParticipantIf you’re referring to the “add product” button you can style it using custom css and modifying the following class, for example:
.wcv-button{ color: #ffffff !important; text-decoration: none !important; }
Arvid ViderbergParticipant@honey This filter will hide all of the international shipping. 🙂
add_filter ('wcv_product_shipping_fee_international', 'ta_bort_internationell_frakt'); //Internaionell frakt, produkt add_filter ('wcv_product_shipping_fee_international_qty', 'ta_bort_internationell_frakt'); //Checkruta 1, produkt add_filter ('wcv_product_shipping_fee_international_disable', 'ta_bort_internationell_frakt'); //Checkruta 2, produkt add_filter ('wcv_product_shipping_fee_international_free', 'ta_bort_internationell_frakt'); //Chckruta 3, produkt add_filter ('wcv_shipping_international_fee', 'ta_bort_internationell_frakt'); //Internaionell frakt, butik add_filter ('wcv_shipping_international_qty', 'ta_bort_internationell_frakt'); //Checkruta 1, butik add_filter ('wcv_shipping_international_free', 'ta_bort_internationell_frakt'); //Checkruta 2, butik add_filter ('wcv_shipping_international_disable', 'ta_bort_internationell_frakt'); //Checkruta 3, butik function ta_bort_internationell_frakt() { $fraktArray = array( 'id' => '_shipping_fee_international', //'label' => __( 'International shipping fee', 'wcvendors-pro' ), //'placeholder' => __( 'Change to override store defaults.', 'wcvendors-pro' ), 'desc_tip' => 'true', //'description' => __( 'The cost to ship this product outside your country.', 'wcvendors-pro' ), 'type' => 'hidden', 'value' => $value, 'class' => 'wcv-disable-international-input', 'wrapper_start' => '<div class="all-50 small-100">', 'wrapper_end' => '</div></div>' ); return $fraktArray; }
December 29, 2015 at 5:48 pm in reply to: Shipping and return policy showing up in all settings tabs #19479Arvid ViderbergParticipant@ben Turns out this was just an error caused by my functions.php when trying to remove the “disable national shipping”-checkbox. And the “add product/coupon” buttons on the dashboard seem to have been added as a new feature of wc-vendors? 😉
December 28, 2015 at 6:05 pm in reply to: Shipping and return policy showing up in all settings tabs #19407Arvid ViderbergParticipantAlright. May I ask what you changed since the release of 1.1.3? Everything worked fine by then. 🙂
So I can give them a hint. 😉December 28, 2015 at 5:59 pm in reply to: Shipping and return policy showing up in all settings tabs #19405Arvid ViderbergParticipantYes, they are indeed problems of Flatsome, sadly.. 🙂
I made few edits on the post, maybe you answered to fast :pHowever, can there be a fix for this? Would be sad if I were stuck on 1.1.3 forever just because upgrading breaks Flatsome. 😉
December 28, 2015 at 5:54 pm in reply to: Shipping and return policy showing up in all settings tabs #19400Arvid ViderbergParticipant@ben Switching to storefront fixes the issue. However, I can’t switch back from Flatsome now when my clients are used to it 😛
I tried upgrading to 1.1.5 and deleting my current templates, but that didn’t help. Also, when adding a new product, all fields(including cross-sells, shipping etc) are shown on all tabs.
Also, add product and add coupon shows up in the main dashboard tab.A fix asap would be appreciated 🙂
Arvid ViderbergParticipant@digitalchild Is there an easy way to style the ul list on the custom code you provided?
Happy holidays to you and Ben! 🙂
Arvid ViderbergParticipantYou can hide with filter if you want to. It will still show some whitespace on the page though.
add_filter ('wcv_vendor_paypal_address', 'hide_paypal'); function hide_paypal() { $store_id = WCVendors_Pro_Vendor_Controller::get_vendor_store_id( get_current_user_id() ); $new_paypal = get_post_meta( $store_id, '_wcv_paypal_address', true ); $old_paypal = get_user_meta( get_current_user_id(), 'pv_paypal', true ); $value = ( '' != $new_paypal ) ? $new_paypal : $old_paypal; $bankArray = array( 'id' => '_wcv_paypal_address', //'label' => __( 'PayPal Address', 'wcvendors-pro' ), //'placeholder' => __( '[email protected]', 'wcvendors-pro' ), 'desc_tip' => 'true', //'description' => __( 'Your PayPal address is used to send you your commission.', 'wcvendors-pro' ), 'type' => 'hidden', 'value' => $value ); return $bankArray; }
Arvid ViderbergParticipant@honey You can change this by yourself, either with a translation tool like Poedit, or by changing the template.
December 17, 2015 at 7:03 pm in reply to: Fatal error: Call to undefined function when installing #18741Arvid ViderbergParticipantSolved it by using the code from here. 😛
Arvid ViderbergParticipantIf you try using the storefront theme, are you still having the same issue?
Arvid ViderbergParticipant@sgroup what theme are you using?
Arvid ViderbergParticipant@ben As others seem to have the same problem, I’m pretty sure this is not my bad.. 😀
Arvid ViderbergParticipantGreat news Jamie! 🙂
For those interested in changing the coupon code:
/wp-content/themes/YOUR-THEME/woocommerce/cart/cart.php
Row 152.
<input type="text" name="coupon_code" id="coupon_code" value="" placeholder="<?php _e( 'COUPON TEXT GOES HERE', 'woocommerce' ); ?>"/>
Arvid ViderbergParticipantHm.. Very weird indeed… What could be the cause of this? I’m using flatsome as theme, could it be interfering?
Arvid ViderbergParticipantGreat, thanks for the update Ben! 🙂
Arvid ViderbergParticipantIn the vendor dashboard under orders, the order list shows if the order has been shipped or not.
This is not updated when an order is sent.
Also, in admin panel under orders, there is still an ‘X’ next to ‘vendors shipped’.Arvid ViderbergParticipantHi Karen, here’s a fix that I used. It is not recommended as it will break when updating wc-vednors pro. But it gets the job done. 🙂
/wp-content/plugins/wc-vendors-pro/public/forms/class-wcvendors-pro-store-form.php
Comment out row 600/wp-content/plugins/wc-vendors-pro/public/forms/class-wcvendors-pro-product-form.php
Comment out row 1164Arvid ViderbergParticipantGreat! Will the next update be soon or will it wait until the great update in mid-january? 🙂
Arvid ViderbergParticipantI’ve managed to hide the international shipping and setting it to 0. However, there is till som ‘whitespace’ where the labels are supposed to be. Is there a way to hide them completely so the whitespace disappears? @digitalchild
add_filter ('wcv_product_shipping_fee_international', 'internationell_frakt_alltid_0'); function internationell_frakt_alltid_0() { $value = 0; $fraktArray = array( 'id' => '_shipping_fee_international', //'label' => __( 'International shipping fee', 'wcvendors-pro' ), 'placeholder' => __( 'Leave empty to disable.', 'wcvendors-pro' ), 'desc_tip' => 'true', //'description' => __( 'The cost to ship this product outside your country. Leave blank to use your shipping defaults, or 0 for free shipping.', 'wcvendors-pro' ), 'type' => 'hidden', 'value' => $value ); return $fraktArray; }
Arvid ViderbergParticipant@digitalchild Pretty please! 🙂
Arvid ViderbergParticipantIt adds a note to the order but it doesn’t actually update the order as sent. Same with your dev boxes?
I have no idea were to look for a fix for this problem 😛 -
AuthorPosts