Forum Replies Created
-
AuthorPosts
-
daveParticipant
I have a feeeeeling… this isnt one of your products 😀 as you just make the integration
sorry, my bad
daveParticipantalso i’m having the same trouble. i cant deactivate and activate on a site (we’ve just put it live). i think i have about 3 months left. There doesn’t seem to be the option anymore
daveParticipantwas it always a year license? does this mean it cannot be used?
daveParticipanti just added to the end of a wcv_save_product hook in the end. hopefully it’s not gonna override anything
daveParticipantFailure. Limit Exceeded (10306): The user’s international account needs to have its sending limit removed in order to make a mass payment.
Payment total: £2.76This is the error i’m receiving
daveParticipantThe dashboard says there is commission due, but its not paid
daveParticipantThe payment leaves the the sellers account
but never arrives in either the vendor or the admin’s account
August 14, 2016 at 5:15 pm in reply to: _buy_it_now_price – button doesn't appear after – create auction #40040daveParticipantI’ll need to actually test if this doesnt mess with other things before doing a pull request
daveParticipantHas anyone in general tested?
I cant see where to apply the paypal app
August 13, 2016 at 5:45 pm in reply to: _buy_it_now_price – button doesn't appear after – create auction #39978daveParticipantFixed buy it now not showing
Okay, basically, _price wasnt getting set from vendor dashboard, neither was the _buy_it_now_price. As _price wasnt getting set, it threw an error.
Right, the problem arose when i put a value in it. As there is a multiplication, it requires the value to be forced to an intval, otherwise it throws an error.
anyway, i hope this help someone.
NB: if you are using auctions along side other types of products, you may or may not want to put a check in there for the type of product being saved. as i’m not, i haven’t.
add_action('wcv_save_product', 'fix_buy_it_now', 60, 3); function fix_buy_it_now($post_id) { $meta = get_post_meta($post_id); if( isset($meta['_regular_price']) && !empty($meta['_regular_price']) && $meta['_auction_start_price'] < $meta['_regular_price'] ){ update_post_meta($post_id, '_buy_it_now_price', intval($meta['_regular_price'])); update_post_meta($post_id, '_price', intval( $meta['_regular_price'])); } return; }
just a casual 10 hours of debugging…
August 13, 2016 at 5:31 pm in reply to: _buy_it_now_price – button doesn't appear after – create auction #39976daveParticipantOkay, i’ve fixed it i think.August 13, 2016 at 4:43 pm in reply to: _buy_it_now_price – button doesn't appear after – create auction #39972daveParticipantline 151 in class-wcvendorw-pro-table-helper.php is where it falls over
$this->rows = apply_filters( 'wcvendors_pro_table_rows_' . $this->id, $results->posts, $results );
$results, posts and id is set.
Still cant figure out why adding the meta value of _price and _buy_it_now_price causes it to error out here
August 13, 2016 at 3:44 pm in reply to: _buy_it_now_price – button doesn't appear after – create auction #39969daveParticipantI cant for the life of me find the code that generates the dashboard page
August 13, 2016 at 2:01 pm in reply to: _buy_it_now_price – button doesn't appear after – create auction #39965daveParticipantso far the issue seems to be with the meta value ‘_price’ not being set when saving as an auction. This is usually set when saving an auction in the back end.
Using the following…
add_action('wcv_save_product', 'fix_bid_now_button', 60, 3); function fix_bid_now_button($post_id) { $meta = get_post_meta($post_id); if (isset($meta['_buy_it_now_price']) or !empty($meta['_buy_it_now_price']) ) { update_post_meta($post_id, '_price', $meta['_buy_it_now_price']); return; } }
While this now allows the buy it now button to show, it stops the dashboard from loading the products.
It may just be a simpler fix to override the template for showing the bid now button and do a manual check if worst comes to worst and i cant find a solution to that
I dont know if this is of any use, and i’m still not sure if it’s my end or wc vendors stopping this from being set
August 13, 2016 at 1:15 pm in reply to: _buy_it_now_price – button doesn't appear after – create auction #39963daveParticipantI’ll try and debug it, but it would be good to know if it’s me or something that’s in the code either way:
it’s currently failing on
if ( ! $product->is_purchasable())return;
in..simple_auction/templates/single/product/add-to-cart/auction.php
line 12
i’m going to see if i can find a work around with a wcv_save_product hook
August 13, 2016 at 12:03 pm in reply to: _buy_it_now_price – button doesn't appear after – create auction #39956daveParticipantIs this still an issue?
daveParticipantWhat about the sections for ‘Adaptive Accounts’, ‘3rd party permissions. Are we to set anything in these areas?
daveParticipant‘The screenshots below will guide you. However do note these changes as of May 30th 2016:’
I just dont want to mess up,
daveParticipantThanks!!
daveParticipantand it’s fixed…
replaced
$args['custom_attributes']['data-rules'] = 'required'; $args['custom_attributes']['data-error'] = __( 'This field is required.', 'wcvendors-pro' );
I was overwriting the array value instead of adding to it.
Thanks anyway XD always seems to be something simple
daveParticipantyeah, i narrowed it down to these functions after using the parent theme on its own, then deleting each file individually, then each of my functions in my functions.php.
function wcv_product_description_required( $args ) { $args[ 'custom_attributes' ] = array( 'data-rules' => 'required', 'data-error' => __( 'This field is required.', 'wcvendors-pro' ) ); return $args; } add_filter( 'wcv_product_description', 'wcv_product_description_required' ); add_filter('wcv_product_width', 'wcv_product_description_required' ); add_filter('wcv_product_height', 'wcv_product_description_required' ); add_filter('wcv_product_length', 'wcv_product_description_required' ); add_filter('wcv_product_weight', 'wcv_product_description_required' ); add_filter('wcv_simple_auctions_auction_type', 'wcv_product_description_required'); add_filter('wcv_simple_auctions_start_price', 'wcv_product_description_required'); add_filter('wcv_simple_auctions_start_date', 'wcv_product_description_required'); add_filter('wcv_simple_auctions_end_date', 'wcv_product_description_required');
It seems to be any filter
daveParticipantIt’s not using any of those templates. Are there any pointers as to where or what to look for in debugging?
Thanks
daveParticipant### WordPress Environment ### Home URL: http://marketauction.dev Site URL: http://marketauction.dev WC Version: 2.5.5 Log Directory Writable: ✔ WP Version: 4.5.2 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: ✔ Language: en_GB ### Server Environment ### Server Info: Apache/2.4.9 (Win32) PHP/5.5.12 PHP Version: 5.5.12 PHP Post Max Size: 3 MB PHP Time Limit: 120 PHP Max Input Vars: 2500 SUHOSIN Installed: – MySQL Version: 5.6.17 Max Upload Size: 3 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 2.5.5 : woocommerce_sessions: ✔ woocommerce_api_keys: ✔ woocommerce_attribute_taxonomies: ✔ woocommerce_termmeta: ✔ woocommerce_downloadable_product_permissions: ✔ woocommerce_order_items: ✔ woocommerce_order_itemmeta: ✔ woocommerce_tax_rates: ✔ woocommerce_tax_rate_locations: ✔ ### Active Plugins (5) ### WC Vendors Pro Simple Auctions: by WC Vendors – 1.0.3 WC Vendors Pro: by WC Vendors – 1.3.3 WC Vendors: by WC Vendors – 1.9.1 WooCommerce Simple Auction: by wpgenie – 1.1.38 WooCommerce: by WooThemes – 2.5.5 ### Settings ### Force SSL: – Currency: GBP (£) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 ### API ### API Enabled: ✔ API Version: 3.1.0 ### WC Pages ### Shop Base: #7 - /search/ Basket: #8 - /my-account/cart/ Checkout: #9 - /checkout/ My Account: #10 - /my-account/ ### Taxonomies ### Product Types: auction (auction) external (external) grouped (grouped) simple (simple) variable (variable) ### Theme ### Name: Zeedynamic Theme Version: 1.0.0 Author URL: http://example.com Child Theme: ✔ Parent Theme Name: zeeDynamic Parent Theme Version: 1.1.5 Parent Theme Author URL: https://themezee.com WooCommerce Support: ✔ ### Templates ### Overrides: zeedynamichildtheme/woocommerce/archive-product.php zeedynamichildtheme/woocommerce/product-searchform.php zeedynamichildtheme/woocommerce/single-product\product-image.php zeedynamichildtheme/woocommerce/single-product.php ### WC Vendors Pro ### Theme Compatability: - Pro Dashboard Page: ✔ - #377 Feedback form page: ✔ - #378 Vendor Shop Permalink: ✔ - artist/ ### Templates ### Overrides: –
daveParticipantI think the issue is my theme. When i disable it, it works.
daveParticipantI am working on my local machine, and there are no paths using https also and i’ve commented out my functions.php so nothing there either.
July 31, 2016 at 1:54 pm in reply to: Setting product field to numeric stops prepropulating field #38665daveParticipantoh sorry, i did, i thought i type it.
Is it just my installation or is it how it is?
Also, i’m assuming that the simple auctions integration is designed not to have a stock quantity set judging by line 134 where it auto updates the post_meta?
daveParticipantThis is to make the input field have a min-max value.
add_action(‘wcv_product_stock_qty’, ‘show_stock_qty’);
function show_stock_qty($args){
$args[‘placeholder’] = __( ‘Set a minimum of one item’, ‘wcvendors-pro’ );
$args[‘custom_attributes’] = array(
‘step’ => ‘1’,
‘min’ => ‘1’,
‘max’ => ‘100’
);return $args;
}/** and in style.css
*
/.wcv-form .control>input:out-of-range {
border: 2px solid red;
}Now to do backend validation
daveParticipantI’;ve managed to show the stock quantity by default by editing a template copy and removing the surrounding div box.
Is it possible to set a minimum value on form fields using the form helper and set a default value?
And is there a way to show the validation errors at the top?
daveParticipantah okay, so it’s just through wordpress as normal,
i’ll do that,
cheers
daveParticipantI’m on WC Vendors pro, though I don’t think that makes a difference and I didnt want to start a new thread
daveParticipantand would also like to force width/height/length and weight to be required also
daveParticipantHi,
I am having the same problem, but i can’t seem to find the one for required the featured image in that list
-
AuthorPosts