cart->get_cart() as $cart_item_key => $cart_item) { ?> get_type() === 'variation'; if ($isVariationProduct) { $productParent = wc_get_product($product->get_parent_id()); } $product_price = $product->get_price(); $product_name = $productParent?->get_name() ?: $product->get_name(); $product_attributes = $product->get_attributes() ?: []; do_action('woocommerce_before_cart_contents'); ?>
get_image_id(), 'full'); ?>
Produkt
get_slug(); // $product_link = home_url('/product/' . $product_slug); $product_link = get_permalink($product->get_id()); ?>
    $attribute): ?>
  • : get_parent_id(), $attributeKey, $attribute); ?>
Cena
get_regular_price()) > floatval($product_price)) : ?>
get_regular_price()); ?> get_regular_price()) - floatval($product_price)); ?>
Ilość
Kwota
data-product-id="get_id(); ?>">
', esc_url(wc_get_cart_remove_url($cart_item_key)), esc_attr(sprintf(__('Remove %s from cart', 'woocommerce'), wp_strip_all_tags($product_name))), esc_attr($product->get_id()), esc_attr($product->get_sku()) ), $cart_item_key ); ?>