Forum Replies Created
-
AuthorPosts
-
patrickParticipant
1. Relist button not available in frontend for vendors in Wc vendors pro.
Theres old posts here saying they were working on it, but I dont think it ever happened. I hope there is news about this, as its really an important feature
2. cant see in finished auctions in vendor panel in frontend
These only show if there paid for. That time between end of auction and payment is like a blackhole
patrickParticipant?
patrickParticipantcan i password protect it?
patrickParticipantAhhhh, very nice, Much appreciated
patrickParticipantThis cant be that hard to answer.
On the Vendor application, the “State” field is a normal text field.
On the admin the state field is a drop down menu.
Due to the above no state imputed information on the vendor app does not makes it to the admin side.
patrickParticipantThis might help you. I have an auction only site and used the code below. The time input doesnt work, you have to copy and paste the time stuff from the wcvendors auction bridge
<?php /** * The template for displaying the Auction only Product Edit form * * Override this template by copying it to yourtheme/wc-vendors/dashboard/ * * @package WCVendors_Pro * @version 1.3.9 */ /** * DO NOT EDIT ANY OF THE LINES BELOW UNLESS YOU KNOW WHAT YOU'RE DOING * */ $title = ( is_numeric( $object_id ) ) ? __('Save Changes', 'wcvendors-pro') : __( 'Add Simple Product', 'wcvendors-pro'); $product = ( is_numeric( $object_id ) ) ? wc_get_product( $object_id ) : null; // Get basic information for the product $product_title = ( isset($product) && null !== $product ) ? $product->post->post_title : ''; $product_description = ( isset($product) && null !== $product ) ? $product->post->post_content : ''; $product_short_description = ( isset($product) && null !== $product ) ? $product->post->post_excerpt : ''; $post_status = ( isset($product) && null !== $product ) ? $product->post->post_status : ''; /** * Ok, You can edit the template below but be careful! */ ?> <h2><?php echo $title; ?></h2> <!-- Product Edit Form --> <form method="post" action="" id="wcv-product-edit" class="wcv-form wcv-formvalidator"> <!-- Basic Product Details --> </div> <hr /> 'hidden', 'id' => 'product-type', 'value' => 'auction' ) ) ); ?> <!-- Price and Sale Price --> <?php WCVendors_Pro_Product_Form::prices( $object_id ); ?> <!-- SKU --> <?php WCVendors_Pro_Product_Form::sku( $object_id ); ?> <!-- Private listing --> <?php WCVendors_Pro_Product_Form::private_listing( $object_id ); ?> <!-- Shipping rates --> <?php WCVendors_Pro_Product_Form::shipping_rates( $object_id ); ?> <!-- Auction Fields --> <!-- Item Condition --> <?php WCVendors_Pro_Form_Helper::select( apply_filters( 'wcv_simple_auctions_item_condition', array( 'post_id' => $post_id, 'id' => '_auction_item_condition', 'class' => 'select2', 'label' => __( 'Item Condition', 'wc_simple_auctions' ), 'desc_tip' => 'true', 'description' => sprintf( __( 'The condition of the item you are selling', 'wcvendors-pro-simple-auctions' ) ), 'wrapper_start' => '', 'wrapper_end' => '', 'options' => array( 'new' => __('New', 'wc_simple_auctions'), 'used'=> __('Used', 'wc_simple_auctions') ) ) ) ); ?> <!-- Type of Auction --> <?php WCVendors_Pro_Form_Helper::select( apply_filters( 'wcv_simple_auctions_auction_type', array( 'post_id' => $post_id, 'id' => '_auction_type', 'class' => 'select2', 'label' => __( 'Auction Type', 'wc_simple_auctions' ), 'desc_tip' => 'true', 'description' => sprintf( __( 'Type of Auction - Normal prefers high bidders, reverse prefers low bids to win.', 'wcvendors-pro-simple-auctions' ) ), 'wrapper_start' => '', 'wrapper_end' => '', 'options' => array( 'normal' => __('Normal', 'wc_simple_auctions'), 'reverse'=> __('Reverse', 'wc_simple_auctions') ) ) ) ); ?> <!-- Proxy Options --> <?php WCVendors_Pro_Form_Helper::input( apply_filters( 'wcv_simple_auctions_proxy_bidding', array( 'post_id' => $post_id, 'id' => '_auction_proxy', 'label' => __( 'Enable proxy bidding', 'wc_simple_auctions' ), 'type' => 'checkbox' ) ) ); ?> <!-- Auction Start Price --> <?php WCVendors_Pro_Form_Helper::input( apply_filters( 'wcv_simple_auctions_start_price', array( 'post_id' => $post_id, 'id' => '_auction_start_price', 'label' => __( 'Start Price', 'wc_simple_auctions' ) . ' (' . get_woocommerce_currency_symbol() . ')', 'data_type' => 'price', 'wrapper_start' => '', 'wrapper_end' => '' ) ) ); ?> <!-- Auction Bid Increment --> <?php WCVendors_Pro_Form_Helper::input( apply_filters( 'wcv_simple_auctions_bid_increment', array( 'post_id' => $post_id, 'id' => '_auction_bid_increment', 'label' => __( 'Bid increment', 'wc_simple_auctions' ) . ' (' . get_woocommerce_currency_symbol() . ')', 'data_type' => 'price', 'wrapper_start' => '', 'wrapper_end' => '' ) ) ); ?> <!-- Reserve Price (note the keys are reserved not reserve, as is the auction developers code) --> <?php WCVendors_Pro_Form_Helper::input( apply_filters( 'wcv_simple_auctions_reserved_price', array( 'post_id' => $post_id, 'id' => '_auction_reserved_price', 'label' => __( 'Reserve price', 'wc_simple_auctions' ) . ' (' . get_woocommerce_currency_symbol() . ')', 'data_type' => 'price', 'wrapper_start' => '', 'wrapper_end' => '' ) ) ); ?> <!-- Buy it Now Price --> <?php WCVendors_Pro_Form_Helper::input( apply_filters( 'wcv_simple_auctions_buy_it_now_price', array( 'post_id' => $post_id, 'id' => '_buy_it_now_price', 'label' => __( 'Buy it now price', 'wc_simple_auctions' ) . ' (' . get_woocommerce_currency_symbol() . ')', 'data_type' => 'price', 'wrapper_start' => '', 'wrapper_end' => '' ) ) ); ?> <?php WCVendors_Pro_Form_Helper::input( apply_filters( 'wcv_simple_auctions_start_date', array( 'post_id' => $post_id, 'id' => '_auction_dates_from', 'label' => __( 'From', 'wcvendors-pro-simple-auctions' ), 'class' => 'wcv-datetimepicker', 'placeholder' => __( 'From…', 'placeholder', 'wcvendors-pro-simple-auctions' ). ' YYYY-MM-DD', 'wrapper_start' => '', 'wrapper_end' => '', ) ) ); ?> <?php WCVendors_Pro_Form_Helper::input( apply_filters( 'wcv_simple_auctions_end_date', array( 'post_id' => $post_id, 'id' => '_auction_dates_to', 'label' => __( 'To', 'wcvendors-pro-simple-auctions' ), 'class' => 'wcv-datetimepicker', 'placeholder' => __( 'To…', 'placeholder', 'wcvendors-pro-simple-auctions' ). ' YYYY-MM-DD', 'wrapper_start' => '', 'wrapper_end' => '', 'desc_tip' => true, ) ) ); ?> <?php WCVendors_Pro_Product_Form::form_data( $object_id, $post_status, $template ); ?> <?php WCVendors_Pro_Product_Form::save_button( $title ); ?> <?php WCVendors_Pro_Product_Form::draft_button( __('Save Draft','wcvendors-pro') ); ?> </div> </div> </form>
patrickParticipantThank you
patrickParticipantStill hoping for an answer to this
patrickParticipantThe first part goes in product edit, the second in functions. You can manipalate were it displays on the product page by using woocommerce_product_meta_start or woocommerce_single_product_summary
patrickParticipantYou might be able to modify this
ADD MORE SELLER INFO
Added vendor detials on order page including phone and email.
Detials:https://www.wcvendors.com/help/topic/vendors-details-in-order_details_customer-php/From: Create child pages from:
wp-content/plugins/woocommerce/templates/order/order-details.php
wp-content/plugins/woocommerce/templates/order/order-details-customer.phpTo:
rtheme/woocommerce/order/order_details.php
rtheme/woocommerce/order/order_details-customer.php)Added this code to order_details-customer.php:
<!-- datos del vendedor --> get_items() as $item_id => $item ) { ?> user_email; $vendor_name = WCV_Vendors::is_vendor( $vendor_id ) ? sprintf( WCV_Vendors::get_vendor_sold_by( $vendor_id ) ): get_bloginfo( 'name' ); $vendor_phone = get_user_meta($vendor_id, 'billing_phone', true); $vendor_details = ' Vehicle: ' . $product_name . ' Seller: '.$vendor_name . ' Email: ' . $vendor_email . ' Phone: ' .$vendor_phone; echo $vendor_details; ?> <!-- /datos del vendedor --> And added this code to order_details.php: <?php wc_get_template( 'order/order-details-customer.php', array( 'order' => $order, 'item' => $item ) ); ?>
patrickParticipantThank you for your great service
patrickParticipantAhh, thanks!
patrickParticipantThank you for looking into it. I thought I was going mad. I need to make multiples of these, but it is weird changing the ID makes it not work, hopefully there’s a work around. Ill try the new code you posted and repost here an update.
Thanks againpatrickParticipantThank you for your reply. I did more testing, the exact code above, does work, with or without the “2” works.
But when I try to customize it then it no longer works. I have looked at the above working code and my code for hours and cant see were im messing up.
Below is both the correct code, and my code. Can you look and see were im off? I just cant find it.
NOTE: For some reason the wrapper start and end doesnt show up here when i copy and paste, but is in my code
//* THE WORKING CODE FOR PRODUCT EDIT WCVendors_Pro_Form_Helper::select( array( 'post_id' => $object_id, 'id' => 'wcv_custom_product_condition', 'class' => 'select2', 'label' => __( 'Product Condition TEST', 'wcvendors-pro' ), 'placeholder' => __( 'Please specify if your product is NEW or USED', 'wcvendors-pro' ), 'wrapper_start' => '', 'wrapper_end' => '', 'desc_tip' => 'true', 'description' => __( 'Is your Product New or Used?', 'wcvendors-pro' ), 'options' => array( 'new' => __( 'New' ), 'used' => __( 'Used'), 'nwot' => __( 'New Without Tags' ), ) ) ); //*MY NON WORKING CODE FOR PRODUCT EDIT WCVendors_Pro_Form_Helper::select( array( 'post_id' => $object_id, 'id' => 'wcv_custom_green_light', 'class' => 'select2', 'label' => __( 'Green Light', 'wcvendors-pro' ), 'placeholder' => __( '', 'wcvendors-pro' ), 'wrapper_start' => '', 'wrapper_end' => '', 'desc_tip' => 'true', 'description' => __( '', 'wcvendors-pro' ), 'options' => array( 'yes' => __( 'Yes' ), 'no' => __( 'No'), ) ) ); //*THE WORKING CODE FOR FUNCTIONS add_action('woocommerce_single_product_summary', 'wcv_product_condition'); function wcv_product_condition() { $output = get_post_meta( get_the_ID(), 'wcv_custom_product_condition', true ); echo 'Product Condition TEST: ' . $output . '<br>'; } //* MY NON WORKING CODE FOR FUNCTIONS add_action('woocommerce_single_product_summary', 'wcv_green_light'); function wcv_green_light() { $output = get_post_meta( get_the_ID(), 'wcv_custom_green_light', true ); echo 'Green Light: ' . $output . '<br>'; }
patrickParticipantI figured it out. woocommerce > account > my account page> wasnt set to my account
patrickParticipantok, much appreciated
patrickParticipantYour answer is confusing. If you look at the code, the meta key is there.
My issue is it will not post. Im wondering if im missing something, maybe i have to turn something on in admin, I dont know. Or maybe the second part of my add action is off:
add_action(‘woocommerce_product_meta_start’, ‘wcv_transmission_type’, 2);Just looking for a little direction.
Here is the original code I found on wcvendors and which is also on your githb/* Put the below code in your product-edit.php template where you wish it to show up-- I've chosen directly before the - Product Categories -*/ <?php WCVendors_Pro_Form_Helper::select( array( 'post_id' => $object_id, 'id' => 'wcv_custom_product_condition', 'class' => 'select2', 'label' => __( 'Product Condition', 'wcvendors-pro' ), 'placeholder' => __( 'Please specify if your product is NEW or USED', 'wcvendors-pro' ), 'wrapper_start' => '', 'wrapper_end' => '', 'desc_tip' => 'true', 'description' => __( 'Is your Product New or Used?', 'wcvendors-pro' ), 'options' => array( 'new' => __( 'New' ), 'used' => __( 'Used'), 'nwot' => __( 'New Without Tags' ), ) ) ); ?> /* Now, put the code below in your theme/child theme functions.php */ add_action('woocommerce_product_meta_start', 'wcv_product_condition', 2); function wcv_product_condition() { $output = get_post_meta( get_the_ID(), 'wcv_custom_product_condition', true ); echo 'Product Condition: ' . $output . '<br>'; }
patrickParticipantThank you. would i put that code in functions?
patrickParticipantOMG, thats a great page. thank you for your response
patrickParticipantThank you for your response.
### WordPress Environment ### Home URL: https://**.com Site URL: https://**.com WC Version: 2.6.14 Log Directory Writable: ✔ WP Version: 4.7.2 WP Multisite: – WP Memory Limit: 768 MB WP Debug Mode: – WP Cron: ✔ Language: en_US ### Server Environment ### Server Info: Apache PHP Version: 7.0.16 PHP Post Max Size: 128 MB PHP Time Limit: 0 PHP Max Input Vars: 3000 cURL Version: 7.53.0 OpenSSL/1.0.2k SUHOSIN Installed: – MySQL Version: 5.6.28 Max Upload Size: 128 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 2.6.14 : woocommerce_sessions: ✔ woocommerce_api_keys: ✔ woocommerce_attribute_taxonomies: ✔ woocommerce_downloadable_product_permissions: ✔ woocommerce_order_items: ✔ woocommerce_order_itemmeta: ✔ woocommerce_tax_rates: ✔ woocommerce_tax_rate_locations: ✔ woocommerce_shipping_zones: ✔ woocommerce_shipping_zone_locations: ✔ woocommerce_shipping_zone_methods: ✔ woocommerce_payment_tokens: ✔ woocommerce_payment_tokenmeta: ✔ MaxMind GeoIP Database: ❌ The MaxMind GeoIP Database does not exist - Geolocation will not function. You can download and install it manually from http://dev.maxmind.com/geoip/legacy/geolite/ to the path: . Scroll down to \"Downloads\" and download the \"Binary / gzip\" file next to \"GeoLite Country\" ### Active Plugins (10) ### Query Monitor: by John Blackbourn – 2.13.4 All-in-One WP Migration: by ServMask – 6.42 Darwin Backup: by DarwinApps Aleksandr Guidrevitch – 1.2.13 Hide My Site: by Justin Saad – 2.0.5 Theme Tweaker: by Manoj Thulasidas – 5.10 WC Vendors Pro Simple Auctions: by WC Vendors – 1.0.3 WC Vendors Pro: by WC Vendors – 1.3.9 WC Vendors: by WC Vendors – 1.9.8 WooCommerce Simple Auction: by wpgenie – 1.2.5 WooCommerce: by WooThemes – 2.6.14 ### Settings ### Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 ### API ### API Enabled: ✔ ### WC Pages ### Shop Base: #4 - /shop/ Cart: #5 - /cart/ Checkout: #6 - /checkout/ My Account: #7 - /my-account/ ### Taxonomies ### Product Types: auction (auction) external (external) grouped (grouped) simple (simple) variable (variable) ### Theme ### Name: Clean Commerce Version: 1.0.7 Author URL: http://wenthemes.com/ Child Theme: ❌ – If you're modifying WooCommerce on a parent theme you didn't build personally then we recommend using a child theme. See: How to create a child theme WooCommerce Support: ✔ ### Templates ### Overrides: clean-commerce/woocommerce/content-single-product.php clean-commerce/woocommerce/myaccount/dashboard.php clean-commerce/woocommerce/order/order-details-customer.php clean-commerce/woocommerce/order/order-details.php clean-commerce/woocommerce/single-product/price.php clean-commerce/woocommerce/single-product.php ### WC Vendors Pro ### Theme Compatability: - Pro Dashboard Page: - #17 Feedback form page: - #18 Vendor Shop Permalink: - vendors/ ### Templates ### Overrides: clean-commerce/wc-vendors/dashboard/nav.php clean-commerce/wc-vendors/dashboard/product-edit.php clean-commerce/wc-vendors/dashboard/reports/overview.php clean-commerce/wc-vendors/dashboard/reports/reports.php
patrickParticipantThank you for your answer.
patrickParticipantThis is a really good question
patrickParticipantI think i got this to work. I changed the date input. I dont have a clue what im doing, but it seems to be working.
Original:
) ) ); ?> <?php WCVendors_Pro_Form_Helper::input( apply_filters( 'wcv_simple_auctions_start_date', array( 'post_id' => $post_id, 'id' => '_auction_dates_from', 'label' => __( 'From', 'wcvendors-pro-simple-auctions' ), 'class' => 'wcv-datetimepicker', 'placeholder' => __( 'From…', 'placeholder', 'wcvendors-pro-simple-auctions' ). ' YYYY-MM-DD', 'wrapper_start' => '', 'wrapper_end' => '', ) ) ); ?> <?php WCVendors_Pro_Form_Helper::input( apply_filters( 'wcv_simple_auctions_end_date', array( 'post_id' => $post_id, 'id' => '_auction_dates_to', 'label' => __( 'To', 'wcvendors-pro-simple-auctions' ), 'class' => 'wcv-datetimepicker', 'placeholder' => __( 'To…', 'placeholder', 'wcvendors-pro-simple- auctions' ). ' YYYY-MM-DD', 'wrapper_start' => '', 'wrapper_end' => '', 'desc_tip' => true, ) ) ); ?>
Slightly changed:
` ) )
);WCVendors_Pro_Form_Helper::input( apply_filters( ‘wcv_simple_auctions_start_date’, array(
‘post_id’ => $post_id,
‘id’ => ‘_auction_dates_from’,
‘label’ => __( ‘From’, ‘wcvendors-pro-simple-auctions’ ),
‘class’ => ‘wcv-datepicker’,
‘placeholder’ => __( ‘From…’, ‘placeholder’, ‘wcvendors-pro-simple-auctions’ ).‘ YYYY-MM-DD’,
‘wrapper_start’ => ”,
‘wrapper_end’ => ”,
‘custom_attributes’ => array(
‘maxlenth’ => ’10’,
‘pattern’ => ‘[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|1[0-9]|2[0-9]|3[01])’
),
) )
);WCVendors_Pro_Form_Helper::input( apply_filters( ‘wcv_simple_auctions_end_date’, array(
‘post_id’ => $post_id,
‘id’ => ‘_auction_dates_to’,
‘label’ => __( ‘To’, ‘wcvendors-pro-simple-auctions’ ),
‘class’ => ‘wcv-datepicker’,
‘placeholder’ => __( ‘To…’, ‘placeholder’, ‘wcvendors-pro-simple-auctions’ ). ‘ YYYY-MM-DD’,
‘wrapper_start’ => ”,
‘wrapper_end’ => ”,
‘desc_tip’ => true,
‘custom_attributes’ => array(
‘maxlenth’ => ’10’,
‘pattern’ => ‘[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|1[0-9]|2[0-9]|3[01])’
),
) )
);
?>patrickParticipantAny hope for this?
patrickParticipantlol
patrickParticipantAfter more research, and because I have custom links, I suspect, but of course could be wrong, that the best solution would be to hard code the links into the themes/nav
Here is the code on the nav:
`?>
<li id=”dashboard-menu-item-<?php echo $page[‘slug’]; ?>” class=”<?php echo $class; ?>”>“><?php echo $page_label; ?>My only question is, what is the starting and end points, and would I just put normal html? I tried php but it didnt do anything. Of course im not really sure if the opening and closing tags. Do i leave the ?> there? Im thinking like this:
?>
<li “href=”/link”>link name<”patrickParticipantCan you tell me were to find this “order item meta” so i have a starting point. Thanks
patrickParticipantAny updates?
patrickParticipantI dont see it anywhere on the pro dashboard, just wondering if im missing something. I do see it on the free version. If you know the answer, would love to hear it.
patrickParticipantThank you so so much. I really appreciate it.
The only issue, is the to and from dates arent working. When i enter I just get some weird letters, pic enclosed. I tried fixing myself but unfortunatly was unable to find a solution.
Any help would be very appreciated.
Thanks again.
patrickParticipantAny hope for this?
patrickParticipantThank you Anna, I appreciate your help, it worked great
patrickParticipantHeres another pic showing the uneeded tabs / drop menu and code
<?php
/**
* The template (modified version) for displaying the Product edit form
*
* Override this template by copying it to yourtheme/wc-vendors/dashboard/
*
* @package WCVendors_Pro
* @version 1.3.2
*/
/**
* DO NOT EDIT ANY OF THE LINES BELOW UNLESS YOU KNOW WHAT YOU’RE DOING
*
*/$title = ( is_numeric( $object_id ) ) ? __(‘Save Changes’, ‘wcvendors-pro’) : __(‘Add Product’, ‘wcvendors-pro’);
$product = ( is_numeric( $object_id ) ) ? wc_get_product( $object_id ) : null;// Get basic information for the product
$product_title = ( isset($product) && null !== $product ) ? $product->post->post_title : ”;
$product_description = ( isset($product) && null !== $product ) ? $product->post->post_content : ”;
$product_short_description = ( isset($product) && null !== $product ) ? $product->post->post_excerpt : ”;
$post_status = ( isset($product) && null !== $product ) ? $product->post->post_status : ”;/**
* Ok, You can edit the template below but be careful!
*/
?><h2><?php echo $title; ?></h2>
<!– Product Edit Form –>
<form method=”post” action=”” id=”wcv-product-edit” class=”wcv-form wcv-formvalidator”><!– Basic Product Details –>
</div>
<hr />
</div>
<?php do_action( ‘wcv_after_general_tab’, $object_id ); ?>
<?php do_action( ‘wcv_before_inventory_tab’, $object_id ); ?>
<!– Inventory –>
<?php WCVendors_Pro_Product_Form::stock_status( $object_id ); ?>
<?php do_action( ‘wcv_product_options_sold_individually’ ); ?>
<?php do_action( ‘wcv_product_options_inventory_product_data’ ); ?>
</div>
<?php do_action( ‘wcv_after_inventory_tab’, $object_id ); ?>
<?php do_action( ‘wcv_before_shipping_tab’, $object_id ); ?>
<!– Shipping –>
</div>
<?php do_action( ‘wcv_after_shipping_tab’, $object_id ); ?>
<?php do_action( ‘wcv_before_linked_tab’, $object_id ); ?>
<!– Upsells and grouping –>
</div>
<?php do_action( ‘wcv_after_linked_tab’, $object_id ); ?>
<!– Attributes –>
<?php do_action( ‘wcv_before_attributes_tab’, $object_id ); ?>
<?php do_action( ‘wcv_after_attributes_tab’, $object_id ); ?>
<?php WCVendors_Pro_Product_Form::form_data( $object_id, $post_status ); ?>
<?php WCVendors_Pro_Product_Form::save_button( $title ); ?>
<?php WCVendors_Pro_Product_Form::draft_button( __(‘Save Draft’,’wcvendors-pro’) ); ?></div>
</div>
</form>patrickParticipantI just relized the add product page itself has a “add product” text, I would also like to change this
patrickParticipantAre those tabs part of vendors pro?
patrickParticipantYes, I am
patrickParticipantI kinda figured out how to remove tabs in product edit. But cant figure out how to have the auction part be part of the page
patrickParticipantlol, I received your new email, apologies for the confusion, and I appreciate your speedy response. Thanks again.
patrickParticipantThanks for the quick response, unfortunately the email I entered here was off by one digit. I updated my account, its work1755 and not work1775. Please resend, thanks so very much.
-
AuthorPosts