How can I get values from a custom post type depending on where I click on my SVG map?

This question will probably be marked off-topic because you’re asking about a plugin, Advanced Custom Fields, but here’s the answer anyway – you need to add the ‘post id’ to your call of the_field(), so that it’s looking up the custom fields set in each of your custom post type’s posts. See https://www.advancedcustomfields.com/resources/how-to-get-values-from-another-post/

Automatically change insurance quantity based on cart total [closed]

Try this: add_action(‘woocommerce_cart_totals_after_shipping’, ‘wc_shipping_insurance_note_after_cart’); function wc_shipping_insurance_note_after_cart() { global $woocommerce; // Get the number of products in the cart $cart_item_count = WC()->cart->get_cart_contents_count(); $product_id = 7597; // ID of the insurance product // Check if the insurance product is already in the cart $found = false; foreach ( $woocommerce->cart->get_cart() as $cart_item_key => $values ) { $_product = … Read more