• Resolved kmilito

    (@kmilito)


    I am using a bulk price plugin and I am adding the WooCommerce Product Addons plugin.

    However to use both at the same time, I need t be able to update the price table dynamically once an option is selected.

    Is there a post meta that I can use to get the option price?
    What other option do I have to update the price table dynamically?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    we are saving all our meta in WooCommerce session data with key ‘product_meta’ need to connect your price if you know how to deal with hooks and filters.

    Thread Starter kmilito

    (@kmilito)

    Hi Thanks for the feedback.

    I am getting all the metas available with the product ID to check were can I get the option_price from, however, none of them seems to contain it.

    with this snippet

      $var_price = get_post_meta( $id, '', true );
      echo $var_price;  
      echo '<pre>'; print_r($meta); echo '</pre>'; 

    This are the available metas

    ` [ID]
    [post_author]
    [post_date]
    [post_date_gmt]
    [post_content]
    [post_title]
    [post_excerpt]
    [post_status]
    [comment_status]
    [ping_status]
    [post_password]
    [post_name]
    [to_ping]
    [pinged]
    [post_modified]
    [post_modified_gmt]
    [post_content_filtered]
    [post_parent]
    [guid]
    [menu_order]
    [post_type]
    [post_mime_type]
    [comment_count]
    [filter] `

    Can you please point me on how to get the needed meta?

    Thanks

    Thread Starter kmilito

    (@kmilito)

    I found out I wasn’t posting the metas properly, And I did not find I way to edit my earlier post.

    These are the available metas

    
        [_wc_review_count] 
        [_wc_rating_count] 
        [_wc_average_rating]
        [_edit_lock] 
        [_edit_last]
        [_thumbnail_id]
        [_product_meta_id] 
        [_sku]
        [_regular_price] 
        [_sale_price] 
        [_sale_price_dates_from]
        [_sale_price_dates_to] 
        [total_sales]
        [_tax_status] 
        [_manage_stock] 
        [_backorders]
        [_sold_individually]
    	[_weight] 
        [_length]
        [_width]
        [_height] 
        [_upsell_ids]
        [_crosssell_ids] 
        [_purchase_note]
        [_default_attributes] 
        [_virtual] 
        [_downloadable] 
        [_product_image_gallery]
        [_download_limit]
        [_download_expiry]
        [_stock]
        [_stock_status]
        [_product_version] 
        [_price] 
        [_wpas_done_all] 
        [_bulkdiscount_text_info] 
        [_bulkdiscount_enabled]
        [_bulkdiscount_quantity_1]
        [_bulkdiscount_discount_1]
        [_j79_bulk_rules] 
        [_vtprd_includeOrExclude]
        [vtprd_wholesale_visibility] 
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to get the option_price dynamically?’ is closed to new replies.