Forum Replies Created

Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter hector0371

    (@hector0371)

    My deepest thanks for you, Rynald! Thank you for pointing out the problem in my codes. I am starting to work on that right now.

    I have been searching for numerous documents and blogs these days, trying to customize woocommerce. But many new problems just keep popping up. That is why I have to seek for real-person guidance. Sometimes I hesitate doing so, feeling that it is not polite for asking others such questions, as they are not core-based modifications from the start.
    Would you mind if I post follow-up questions on debugging these codes?

    I am really grateful for you answering this question so far.

    Thread Starter hector0371

    (@hector0371)

    I have tried code snippets, and it wont work either. By the way,I have been getting this “support is limited” reply these days while I saw other similar topics posted and answered. I am really getting confused now.

    Thread Starter hector0371

    (@hector0371)

    I`m not expecting to find elixir here. All I want to know is how to override woocommerce paymentgateway with the local method I mentioned (1 item for “1 token”) so that I can get the right direction to keep going. It is true that I mentioned dokan and other third-party plugins, but that is not the core in my problem.

    Thread Starter hector0371

    (@hector0371)

    Thank you for your reply Juan!

    What you provided benefit to my progress a lot! Yes, I`m trying to modify some reward points plugins to do this,but i encountered some unexpected issues :

    1. Before tapping into reward plugins, the first thing I tried was to customize the “add product” page, leaving no space for pricing (as all products have to be assigned the same price as “1”). I got recommended to try the instructions posted here:

    <a href=”https://wordpress.stackexchange.com/questions/104760/woocommerce-how-to-set-product-regular-price-default&#8221; rel=”noopener” target=”_blank”></a>

    I tried the code listed there in <em>post.php</em> , and it worked in deleting the pricing column in “add new product – general” and make default price as “0” .However, I then realized that I have to make the default price as “1”, instead of “0” as used in the code above. So I change the code into this:

    function set_default_price( $post_id, $post ) {
    
        if ( isset( $_POST['_regular_price'] ) && trim( $_POST['_regular_price'] ) == '' ) {
            update_post_meta( $post_id, '_regular_price', '1' );
        }
    
    if ( isset( $_POST['_sale_price'] ) && trim( $_POST['_sale_price'] ) == '' ) {
            update_post_meta( $post_id, '_sale_price', '1' );
        }
    
    }
    add_action( 'woocommerce_process_product_meta', 'set_default_price' );

    Then nothing happened. All new products added still has no price.

    The next step I tried was to delete the filter/action I created using this

    add_action('init', 'remove_main_functions', 15 );
    
    function remove_main_functions() {
    
        remove_action( 'woocommerce_process_product_meta', 'set_default_price' );

    To my surprise, all of the “add new product- general” part is erased ,leaving only blank space there.I am curious about what happened there.

    2.I have been looking into the plugin you mentioned. It seems that this plugin do not provide a gateway for purchasing through points. I cannot find similar description in that plugin.Did I skipped some instructions? That function is crucial to my needs.

    3.As for this part:

    <blockquote>The user can also display the items they want to give out in exchange for tokens. After that, I am expecting a global balance between [ getting items for token ] and [ getting token for items] among all users.</blockquote>

    This is a blockage I`m facing. My current thoughts are to find an appropriate multi-vendor plugin, and to make the “reward point” function mentioned above to be used in such an environment. I do not have any clue about that at this time, as all “reward points” plugins I tried seem to be used in single-vendor environment. So if you have any idea in making a function to work in multi-vendor environment,please let me know.

    4.Thank you for mentioning getting support from woocommerce customization.I realized that what I`m trying to do is an advanced-level customization. Yet from my past experience, it is not easy to make a international transaction from my country here.So getting help from this forum is currently the best approach I could choose.

    I`m grateful for the help you provided. Thank you !

    • This reply was modified 2 years, 5 months ago by hector0371.
    • This reply was modified 2 years, 5 months ago by hector0371.
    • This reply was modified 2 years, 5 months ago by hector0371.
    Thread Starter hector0371

    (@hector0371)

    Thank you for your reply Juan!

    Yes, each time a new account is created, a few token is assigned to that account so that the user can trade them for items. The user can also display the items they want to give out in exchange for tokens. After that, I am expecting a global balance between [ getting items for token ] and [ getting token for items] among all users.

    It is similar to the relationship between human and trees: human take in oxygen and give out CO2, while trees take in CO2 and give out oxygen.

    Thread Starter hector0371

    (@hector0371)

    Fine, I will rework it to be on topic.

    Thread Starter hector0371

    (@hector0371)

    Oh my! What you just provided is really helpful! It was hard to contact multi-vendor plugins contacts for more information, and I was thinking about getting hint on doing so on woocommerce core. You just gave me exactly what I need at this time! It is so glad to receive support from you. Thank you sooooooo much !

    Thread Starter hector0371

    (@hector0371)

    Thank you for your reply. I`m trying both Dokan and WCMP to see which one suits my need. Here is the detailed information:

    ### WordPress Environment ###
    
    WordPress address (URL): https://121.40.240.216
    Site address (URL): https://121.40.240.216
    WC Version: 6.3.1
    REST API Version: ? 6.3.1
    WC Blocks Version: ? 6.9.0
    Action Scheduler Version: ? 3.4.0
    WC Admin Version: ? 3.2.1
    Log Directory Writable: ?
    WP Version: 6.0
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: zh_CN
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: nginx/1.20.2
    PHP Version: 7.4.28
    PHP Post Max Size: 50 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 1000
    cURL Version: 7.70.0
    OpenSSL/1.0.2u
    
    SUHOSIN Installed: –
    MySQL Version: 8.0.24
    Max Upload Size: 50 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ? wp_remote_post() failure
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 6.3.1
    WC Database Prefix: wp_
    Database Net: 8.38MB
    Database data: 6.14MB
    Database Index: 2.24MB
    wp_woocommerce_sessions: 数据:0.02MB + 索引:0.02MB + 引擎 InnoDB
    wp_woocommerce_api_keys: 数据:0.02MB + 索引:0.03MB + 引擎 InnoDB
    wp_woocommerce_attribute_taxonomies: 数据:0.02MB + 索引:0.02MB + 引擎 InnoDB
    wp_woocommerce_downloadable_product_permissions: 数据:0.02MB + 索引:0.06MB + 引擎 InnoDB
    wp_woocommerce_order_items: 数据:0.02MB + 索引:0.02MB + 引擎 InnoDB
    wp_woocommerce_order_itemmeta: 数据:0.02MB + 索引:0.03MB + 引擎 InnoDB
    wp_woocommerce_tax_rates: 数据:0.02MB + 索引:0.06MB + 引擎 InnoDB
    wp_woocommerce_tax_rate_locations: 数据:0.02MB + 索引:0.03MB + 引擎 InnoDB
    wp_woocommerce_shipping_zones: 数据:0.02MB + 索引:0.00MB + 引擎 InnoDB
    wp_woocommerce_shipping_zone_locations: 数据:0.02MB + 索引:0.03MB + 引擎 InnoDB
    wp_woocommerce_shipping_zone_methods: 数据:0.02MB + 索引:0.00MB + 引擎 InnoDB
    wp_woocommerce_payment_tokens: 数据:0.02MB + 索引:0.02MB + 引擎 InnoDB
    wp_woocommerce_payment_tokenmeta: 数据:0.02MB + 索引:0.03MB + 引擎 InnoDB
    wp_woocommerce_log: 数据:0.02MB + 索引:0.02MB + 引擎 InnoDB
    wp_actionscheduler_actions: 数据:0.02MB + 索引:0.11MB + 引擎 InnoDB
    wp_actionscheduler_claims: 数据:0.02MB + 索引:0.02MB + 引擎 InnoDB
    wp_actionscheduler_groups: 数据:0.02MB + 索引:0.02MB + 引擎 InnoDB
    wp_actionscheduler_logs: 数据:0.02MB + 索引:0.03MB + 引擎 InnoDB
    wp_commentmeta: 数据:0.02MB + 索引:0.03MB + 引擎 InnoDB
    wp_comments: 数据:0.02MB + 索引:0.08MB + 引擎 InnoDB
    wp_dokan_announcement: 数据:0.02MB + 索引:0.00MB + 引擎 InnoDB
    wp_dokan_orders: 数据:0.02MB + 索引:0.03MB + 引擎 InnoDB
    wp_dokan_refund: 数据:0.02MB + 索引:0.00MB + 引擎 InnoDB
    wp_dokan_vendor_balance: 数据:0.02MB + 索引:0.00MB + 引擎 InnoDB
    wp_dokan_withdraw: 数据:0.02MB + 索引:0.00MB + 引擎 InnoDB
    wp_e_submissions: 数据:0.02MB + 索引:0.23MB + 引擎 InnoDB
    wp_e_submissions_actions_log: 数据:0.02MB + 索引:0.00MB + 引擎 InnoDB
    wp_e_submissions_values: 数据:0.02MB + 索引:0.00MB + 引擎 InnoDB
    wp_layerslider: 数据:0.02MB + 索引:0.00MB + 引擎 InnoDB
    wp_layerslider_drafts: 数据:0.02MB + 索引:0.02MB + 引擎 InnoDB
    wp_layerslider_revisions: 数据:0.02MB + 索引:0.00MB + 引擎 InnoDB
    wp_links: 数据:0.02MB + 索引:0.02MB + 引擎 InnoDB
    wp_options: 数据:3.02MB + 索引:0.20MB + 引擎 InnoDB
    wp_postmeta: 数据:0.25MB + 索引:0.23MB + 引擎 InnoDB
    wp_posts: 数据:1.52MB + 索引:0.06MB + 引擎 InnoDB
    wp_rs_expiredpoints_email: 数据:0.02MB + 索引:0.00MB + 引擎 InnoDB
    wp_rs_templates_email: 数据:0.02MB + 索引:0.00MB + 引擎 InnoDB
    wp_rsgiftvoucher: 数据:0.02MB + 索引:0.00MB + 引擎 InnoDB
    wp_rspointexpiry: 数据:0.02MB + 索引:0.00MB + 引擎 InnoDB
    wp_rsrecordpoints: 数据:0.02MB + 索引:0.00MB + 引擎 InnoDB
    wp_social_users: 数据:0.02MB + 索引:0.03MB + 引擎 InnoDB
    wp_sumo_reward_encashing_submitted_data: 数据:0.02MB + 索引:0.00MB + 引擎 InnoDB
    wp_sumo_reward_send_point_submitted_data: 数据:0.02MB + 索引:0.00MB + 引擎 InnoDB
    wp_term_relationships: 数据:0.02MB + 索引:0.02MB + 引擎 InnoDB
    wp_term_taxonomy: 数据:0.02MB + 索引:0.03MB + 引擎 InnoDB
    wp_termmeta: 数据:0.02MB + 索引:0.03MB + 引擎 InnoDB
    wp_terms: 数据:0.02MB + 索引:0.03MB + 引擎 InnoDB
    wp_usermeta: 数据:0.02MB + 索引:0.03MB + 引擎 InnoDB
    wp_users: 数据:0.02MB + 索引:0.05MB + 引擎 InnoDB
    wp_wc_admin_note_actions: 数据:0.02MB + 索引:0.02MB + 引擎 InnoDB
    wp_wc_admin_notes: 数据:0.05MB + 索引:0.00MB + 引擎 InnoDB
    wp_wc_category_lookup: 数据:0.02MB + 索引:0.00MB + 引擎 InnoDB
    wp_wc_customer_lookup: 数据:0.02MB + 索引:0.03MB + 引擎 InnoDB
    wp_wc_download_log: 数据:0.02MB + 索引:0.03MB + 引擎 InnoDB
    wp_wc_order_coupon_lookup: 数据:0.02MB + 索引:0.03MB + 引擎 InnoDB
    wp_wc_order_product_lookup: 数据:0.02MB + 索引:0.06MB + 引擎 InnoDB
    wp_wc_order_stats: 数据:0.02MB + 索引:0.05MB + 引擎 InnoDB
    wp_wc_order_tax_lookup: 数据:0.02MB + 索引:0.03MB + 引擎 InnoDB
    wp_wc_product_attributes_lookup: 数据:0.02MB + 索引:0.03MB + 引擎 InnoDB
    wp_wc_product_meta_lookup: 数据:0.02MB + 索引:0.09MB + 引擎 InnoDB
    wp_wc_rate_limits: 数据:0.02MB + 索引:0.02MB + 引擎 InnoDB
    wp_wc_reserved_stock: 数据:0.02MB + 索引:0.00MB + 引擎 InnoDB
    wp_wc_tax_rate_classes: 数据:0.02MB + 索引:0.02MB + 引擎 InnoDB
    wp_wc_webhooks: 数据:0.02MB + 索引:0.02MB + 引擎 InnoDB
    wp_wdp_order_items: 数据:0.02MB + 索引:0.06MB + 引擎 InnoDB
    wp_wdp_orders: 数据:0.02MB + 索引:0.05MB + 引擎 InnoDB
    wp_wdp_persistent_rules_cache: 数据:0.02MB + 索引:0.00MB + 引擎 InnoDB
    wp_wdp_rules: 数据:0.02MB + 索引:0.03MB + 引擎 InnoDB
    wp_yith_ywpar_points_log: 数据:0.02MB + 索引:0.00MB + 引擎 InnoDB
    
    ### Post Type Counts ###
    
    attachment: 12
    blocks: 8
    elementor_library: 1
    featured_item: 8
    nav_menu_item: 38
    page: 92
    post: 9
    product: 64
    revision: 71
    wp_global_styles: 1
    wpcf7_contact_form: 5
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    					
    Hide errors from visitors: ?
    
    ### Active Plugins (6) ###
    
    Admin Menu Editor: 来自 Janis Elsts – 1.10
    经典编辑器: 来自 WordPress贡献者 – 1.6.2
    Dokan: 来自 weDevs – 3.4.0
    WooCommerce: 来自 Automattic – 6.3.1(可更新至版本 6.5.1)
    
    ### Inactive Plugins (18) ###
    
    Advanced Dynamic Pricing for WooCommerce: 来自 AlgolPlus – 4.1.0
    Akismet Anti-Spam: 来自 Automattic – 4.2.2
    ATR Woocommerce Global Price Options: 来自 Yehuda Tiram – 1.0.5
    Backup Migration: 来自 Migrate – 1.1.9
    BlossomThemes Toolkit: 来自 blossomthemes – 2.2.2
    Elementor: 来自 Elementor.com – 3.5.6
    Elementor Pro: 来自 Elementor.com – 3.6.2
    GamiPress: 来自 GamiPress – 2.3.0
    Hello Dolly: 来自 Matt Mullenweg – 1.7.2
    Jetpack: 来自 Automattic – 10.7
    LayerSlider: 来自 Kreatura Media – 7.1.2
    Nextend Social Login: 来自 Nextendweb – 3.1.4
    Points and Rewards for WooCommerce: 来自 WP Swings – 1.2.4
    Texty: 来自 weDevs – 1.1
    Multivendor Marketplace Solution for WooCommerce 来自  WCMarketplace  - 3.8.11.3
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    
    ### WC Pages ###
    
    商店基础链接: #71 - /shop-2/
    购物车: #70 - /cart-2/
    结账: #69 - /checkout-2/
    我的帐户: #68 - /my-account-2/
    条款和条件: ? 页面没有设置
    
    ### Theme ###
    
    Name: Flatsome Child
    Version: 3.0
    Author URL: 
    Child Theme: ?
    Parent Theme Name: Flatsome
    Parent Theme Version: 3.15.4
    Parent Theme Author URL: https://www.uxthemes.com/
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: flatsome/woocommerce/archive-product.php
    flatsome/woocommerce/cart/cart-empty.php
    flatsome/woocommerce/cart/cart-shipping.php
    flatsome/woocommerce/cart/cart.php
    flatsome/woocommerce/checkout/form-checkout.php
    flatsome/woocommerce/checkout/form-coupon.php
    flatsome/woocommerce/checkout/terms.php
    flatsome/woocommerce/checkout/thankyou.php
    flatsome/woocommerce/content-product-cat.php
    flatsome/woocommerce/content-product.php
    flatsome/woocommerce/content-single-product.php
    flatsome/woocommerce/content-widget-product.php
    flatsome/woocommerce/global/breadcrumb.php
    flatsome/woocommerce/global/quantity-input.php
    flatsome/woocommerce/global/wrapper-end.php
    flatsome/woocommerce/global/wrapper-start.php
    flatsome/woocommerce/loop/loop-end.php
    flatsome/woocommerce/loop/loop-start.php
    flatsome/woocommerce/loop/pagination.php
    flatsome/woocommerce/loop/result-count.php
    flatsome/woocommerce/loop/sale-flash.php
    flatsome/woocommerce/myaccount/form-login.php
    flatsome/woocommerce/myaccount/navigation.php
    flatsome/woocommerce/notices/error.php
    flatsome/woocommerce/notices/notice.php
    flatsome/woocommerce/notices/success.php
    flatsome/woocommerce/product-searchform.php
    flatsome/woocommerce/single-product/photoswipe.php
    flatsome/woocommerce/single-product/price.php
    flatsome/woocommerce/single-product/product-image.php
    flatsome/woocommerce/single-product/product-thumbnails.php
    flatsome/woocommerce/single-product/rating.php
    flatsome/woocommerce/single-product/related.php
    flatsome/woocommerce/single-product/review.php
    flatsome/woocommerce/single-product/sale-flash.php
    flatsome/woocommerce/single-product/share.php
    flatsome/woocommerce/single-product/short-description.php
    flatsome/woocommerce/single-product/tabs/tabs.php
    flatsome/woocommerce/single-product/title.php
    flatsome/woocommerce/single-product/up-sells.php
    flatsome/woocommerce/single-product-reviews.php
    flatsome/woocommerce/single-product.php
    flatsome/woocommerce/content-product_cat.php
    
    ### Action Scheduler ###
    
    完成: 19
    Oldest: 2022-05-23 20:20:24 +0800
    Newest: 2022-05-25 03:56:37 +0800
    
    ### Status report information ###
    
    Generated at: 2022-05-25 22:02:21 +08:00
    
Viewing 8 replies - 16 through 23 (of 23 total)