Click here to Skip to main content
15,890,845 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have Custom Product boxes installed, it shows product price and attributes when visitors adds a product to the gift box, I'm trying to sum the product attributes right below the total price, but it will not show anything.

What I have tried:

here is the code I've tried

$dynamicPrice = get_post_meta($product->get_id(), '_per_product_pricing_active', true);
$dynamicFett = get_post_meta( 'attribute_fett' );
$dynamicKolhydrater = get_post_meta( 'attribute_kolhydrater' );
$dynamicProtein = get_post_meta( 'attribute_protein' );
$dynamicKcal = get_post_meta( 'attribute_kcal' );



<?php echo $giftBoxTotal; ?>

<?php do_action("wdm_product_price_html"); ?>

Totalt Protein

<?php echo $dynamicProtein; ?>

Totalt Fett

<?php echo $dynamicFett; ?>

Totalt Kolhydrater

<?php echo $dynamicKolhydrater; ?>

Totalt Kcal

<?php echo $dynamicKcal; ?>

Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900