Forum Replies Created
-
AuthorPosts
-
March 16, 2017 at 4:51 pm in reply to: get value of default shipping cost from wocommerce options #59256Nataliia VernyhoraParticipant
@CAKECOMPARE
Hi Stefan!
I’m struggling with the same issue, tried different options, but still can’t figure out how to show admin Shipping rates on a product page in case when a vendor forgot to add a shipping rate. Do you have any ideas about this?March 2, 2017 at 2:52 pm in reply to: Vendor can choose between Flat rate and Table rate shipping #58028Nataliia VernyhoraParticipant@FERVOUS
Thanks for your answer Anna!
Yes, we use that functionality, but I wanted to try to activate the dropdown with choice exactly on each Vendor’s dashboard.
When I add both methods for vendor, extending code, the country table rate always have the priority. If flat rates are filled and a country table rate is empty, on a product page and cart page there is a note:
There are no shipping methods available.February 2, 2017 at 2:10 pm in reply to: Custom Tab on Product add dashboard save info Problem #54963Nataliia VernyhoraParticipantThanks afor your answer. We decided to reduce the functionality we were going to add, because it broke the logic and was very embarrassing
Nataliia VernyhoraParticipantOh, thanks Yasa! I used wrong variable!
It worked! Thanks a lot!Nataliia VernyhoraParticipantHi guys!
And how do you use this value to show bank name from input _wcv_custom_settings_bankname on pages?
In my case I use the value from input on product page:
echo '<p>'.$custom_bank_information.'</p>'; // I get empty data here
This is my function for bank:
function store_bank_details( ){ if ( class_exists( 'WCVendors_Pro' ) ){ $key = '_wcv_custom_settings_bankname'; $custom_bank_information = get_user_meta( get_current_user_id(), $key, true ); //instead $value as example shows // Bank Name WCVendors_Pro_Form_Helper::input( array( 'id' => $key, 'label' => __( 'Bank Name', 'wcvendors-pro' ), 'placeholder' => __( 'First Bank', 'wcvendors-pro' ), 'desc_tip' => 'true', 'description' => __( 'Your local bank name', 'wcvendors-pro' ), 'type' => 'text', 'value' => $custom_bank_information, ) ); } }
-
AuthorPosts