protected function cart_item_description($item, $key) { parent::cart_item_description($item, $key); if (!$this->log->is_transaction_completed()) { return; } $links = _wpsc_get_cart_item_downloadable_links($item, $this->log); ?> <div class="wpsc-cart-item-downloadable"> <?php if (count($links) === 1) { ?> <strong><?php esc_html_e('Download link: ', 'wp-e-commerce'); ?> </strong><br /> <a href="<?php echo esc_url($links[0]['url']); ?> "><?php echo esc_html($links[0]['name']); ?> </a> <?php } else { ?> <strong><?php esc_html_e('Digital Contents', 'wp-e-commerce'); ?> </strong> <ul> <?php foreach ($links as $link) { ?> <li><a href="<?php echo esc_url($link['url']); ?> "><?php echo esc_html($link['name']); ?> </a></li> <?php } ?> </ul> <?php } ?> </div> <?php }
protected function cart_item_description($item, $key) { $remove_url = add_query_arg('_wp_nonce', wp_create_nonce("wpsc-remove-cart-item-{$key}"), wpsc_get_cart_url('remove/' . absint($key))); ?> <div class="wpsc-cart-item-row-actions"> <a alt="<?php esc_attr_e('Remove from cart', 'wp-e-commerce'); ?> " class="wpsc-button wpsc-button-mini" href="<?php echo esc_url($remove_url); ?> "><i class="wpsc-icon-trash"></i> <?php esc_html_e('Remove', 'wp-e-commerce'); ?> </a> </div> <?php parent::cart_item_description($item, $key); }