• Resolved iamganesh

    (@iamganesh)


    Hey,

    I’m creating a plugin and I want to show ppom custom fields or ppom product meta on my checkout page. Currently, it is not showing So which filters hooks should I use?

    can you help me to figure out this?

    Thanks in advance.

    • This topic was modified 5 years, 2 months ago by iamganesh.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @iamganesh,

    PPOM meta fields already shown on cart/checkout/emails.

    Thread Starter iamganesh

    (@iamganesh)

    Hey,

    I am developing a feature which automatically adds product on the checkout page on afterload.

    For that, I am storing the cart object and restoring the cart object on the checkout page. Restoring process is noting but looping over the cart product. So while looping over PPOM product it’s adding the child products as well.

    I need to provide support to your plugin.
    Can you provide me any filter/action which accepts the PPOM object or product_id and which will add products as same as you are doing on clicking of add_to_cart button?

    Your help is much appreciated.

    Looking forward to hearing from you.
    Thanks.

    Hi @iamganesh,

    please look into this script, I hope you will get what you need from here:

    $product_id 		= ppom_get_product_id($cart_item['data']);
    	$ppom_meta			= array();
    	$ppom_cart_fields	= $cart_item ['ppom'] ['fields'];
    	$ppom_meta_ids		= null;
    	$ppom_meta			= ppom_generate_cart_meta($ppom_cart_fields, $product_id, $ppom_meta_ids, $context, $variation_id);
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show ppom fields on checkout’ is closed to new replies.