Home Forums WC Vendors Pro Support Fatal Error on Order-receive

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #64676
    Ali
    Participant

    Hello,

    I’m trying to update to the latest version of Pro and Wc Vendors. And I’m trying to start using country table rate shipping costs.

    This is the error I receive on order-receive step. Could you check if the versions I have are compatible and what might cause the problem?

    Uncaught Error: Call to a member function get_meta_data() on array in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/wc-vendors-pro/admin/class-wcvendors-pro-commission-controller.php:461

    this is line 461:
    foreach ( $shipping_items as $shipping_item ) {
    $shipping_meta_data = $shipping_item->get_meta_data();

    when I print out $shipping_item, this is the output:

    (
    [name] => Kargo Bedeli
    [type] => shipping
    [item_meta] => Array
    (
    [method_id] => Array
    (
    [0] => wcv_pro_vendor_shipping
    )

    [cost] => Array
    (
    [0] => 13.00
    )

    [taxes] => Array
    (
    [0] => a:0:{}
    )

    [vendor_costs] => Array
    (
    [0] => a:3:{s:14:”total_shipping”;s:2:”13″;s:10:”total_cost”;s:3:”299″;s:5:”items”;a:2:{s:32:”c69c3c5d218d74287f0ac72dee3daa28″;a:2:{s:10:”product_id”;s:5:”14969″;s:13:”shipping_cost”;s:1:”8″;}s:32:”8ff033c6667680373dd7c5ca8bf7ff98″;a:2:{s:10:”product_id”;s:5:”13116″;s:13:”shipping_cost”;s:1:”5″;}}}
    )

    [Ürünler] => Array
    (
    [0] => Taba hatai tunik × 1, Mavi Hatai × 1
    )

    )

    [item_meta_array] => Array
    (
    [54033] => stdClass Object
    (
    [key] => method_id
    [value] => wcv_pro_vendor_shipping
    )

    [54034] => stdClass Object
    (
    [key] => cost
    [value] => 13.00
    )

    [54035] => stdClass Object
    (
    [key] => taxes
    [value] => a:0:{}
    )

    [54036] => stdClass Object
    (
    [key] => vendor_costs
    [value] => a:3:{s:14:”total_shipping”;s:2:”13″;s:10:”total_cost”;s:3:”299″;s:5:”items”;a:2:{s:32:”c69c3c5d218d74287f0ac72dee3daa28″;a:2:{s:10:”product_id”;s:5:”14969″;s:13:”shipping_cost”;s:1:”8″;}s:32:”8ff033c6667680373dd7c5ca8bf7ff98″;a:2:{s:10:”product_id”;s:5:”13116″;s:13:”shipping_cost”;s:1:”5″;}}}
    )

    [54037] => stdClass Object
    (
    [key] => Ürünler
    [value] => Taba hatai tunik × 1, Mavi Hatai × 1
    )

    )

    [method_id] => wcv_pro_vendor_shipping
    [cost] => 13.00
    [taxes] => a:0:{}
    [vendor_costs] => a:3:{s:14:”total_shipping”;s:2:”13″;s:10:”total_cost”;s:3:”299″;s:5:”items”;a:2:{s:32:”c69c3c5d218d74287f0ac72dee3daa28″;a:2:{s:10:”product_id”;s:5:”14969″;s:13:”shipping_cost”;s:1:”8″;}s:32:”8ff033c6667680373dd7c5ca8bf7ff98″;a:2:{s:10:”product_id”;s:5:”13116″;s:13:”shipping_cost”;s:1:”5″;}}}
    [Ürünler] => Taba hatai tunik × 1, Mavi Hatai × 1
    )

    #64743
    Anna
    Member

    Ali,

    @ademirsoy

    You have some outdated plugins and your theme- and this will cause issues.
    – Your OneSocial theme needs to be updated to version 1.2.1
    – You need to update your BuddyBoss plugin MARKETPLACE to v1.4.1
    – And you also then need to update your WooCommerce to v3.0.6 (or whatever is the latest version).

    Please update these, make sure the WooCommerce database update is run (they will prompt you), and then test- and let me know the outcome.

    #64795
    Ali
    Participant

    Hi Anna,

    Thanks a lot, the error is gone now.

    But I couldn’t succeed my actual goal. I’m trying to use country table rates as shipping system, everything works great but isn’t there an option to charge once per vendor even if more than 1 item is sold.

    When I add two different items to the basket from the same vendor, the shipping cost is doubled.

    I’d appreciate your help.
    Thanks!
    Ali

    #64835
    Anna
    Member

    @ademirsoy
    The vendor can set a Maximum amount charged per order, or a Maximum per product also, to limit the shipping costs.
    The QTY check is if more than one of the same product is purchased from the vendor.

    #68619
    Cameron
    Participant

    Hi Anna,

    I have looked through the settings several times and don’t see where vendors would input the “maximum amount charged per order”. Where do they input this option? Could you send a screenshot maybe?

    Thank you!

    #68630
    WC Vendors Support
    Participant

    @camthecanadian — Your website > Pro Dashboard > Shipping for the defaults per vendor. Or, the same, except Pro > Product / Shipping tab for individual products as an override.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.
This website uses cookies to ensure you get the best experience on our website.