X7ROOT File Manager
Current Path:
/home/okeydcqc/pointecgroup.com/wp-content/themes/oceanwp/woocommerce
home
/
okeydcqc
/
pointecgroup.com
/
wp-content
/
themes
/
oceanwp
/
woocommerce
/
ðŸ“
..
📄
.htaccess
(127 B)
📄
add-to-wishlist-button.php
(673 B)
ðŸ“
cart
ðŸ“
checkout
📄
content-single-product.php
(2.49 KB)
ðŸ“
loop
📄
owp-archive-product-hover.php
(5.95 KB)
📄
owp-archive-product-thumbnails.php
(2.07 KB)
📄
owp-archive-product.php
(5.3 KB)
📄
owp-off-canvas-sidebar.php
(1.33 KB)
📄
owp-single-product.php
(2.34 KB)
📄
quick-view-content.php
(509 B)
📄
quick-view-image.php
(1.53 KB)
📄
quick-view.php
(573 B)
📄
result-count.php
(2.08 KB)
📄
share.php
(2.8 KB)
ðŸ“
single-product
📄
wc-content-wrapper-end.php
(470 B)
📄
wc-content-wrapper.php
(548 B)
Editing: owp-single-product.php
<?php /** * Single product template. * * @package OceanWP WordPress theme */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } // Get price conditional display state. $ocean_woo_single_cond = get_theme_mod( 'ocean_woo_single_conditional', false ); // Conditional vars. $show_woo_single = ''; $show_woo_single = ( ! $ocean_woo_single_cond ) || is_user_logged_in(); /** * Display Single Product template */ // Get elements. $elements = oceanwp_woo_summary_elements_positioning(); // Loop through elements. foreach ( $elements as $element ) { do_action( 'ocean_before_single_product_' . $element ); // Title. if ( 'title' === $element ) { woocommerce_template_single_title(); } // Rating. if ( 'rating' === $element ) { woocommerce_template_single_rating(); } // Price. if ( 'price' === $element ) { if ( true !== $ocean_woo_single_cond || $show_woo_single ) { woocommerce_template_single_price(); } } // Brands if ( 'brands' === $element ) { do_action('ocean_woo_template_single_brands'); } // Excerpt. if ( 'excerpt' === $element ) { woocommerce_template_single_excerpt(); } // Quantity & Add to cart button. if ( 'quantity-button' === $element ) { if ( false === $ocean_woo_single_cond || $show_woo_single ) { woocommerce_template_single_add_to_cart(); } else { // Get Add to Cart button message display state. $ocean_woo_single_msg = get_theme_mod( 'ocean_woo_single_cond_msg', 'yes' ); if ( 'yes' === $ocean_woo_single_msg ) { // Get Add to Cart button replacement message. $ocean_woo_single_msg_txt = get_theme_mod( 'ocean_woo_single_cond_msg_text' ); $ocean_woo_single_msg_txt = $ocean_woo_single_msg_txt ? $ocean_woo_single_msg_txt : esc_html__( 'Log in to view price and purchase', 'oceanwp' ); $woo_single_myaccunt_link = get_theme_mod( 'ocean_single_add_myaccount_link', false ); echo '<div class="owp-woo-single-cond-notice">'; if ( false === $woo_single_myaccunt_link ) { echo '<span>'. $ocean_woo_single_msg_txt .'</span>'; } else { echo '<a href="' . esc_url( get_permalink( wc_get_page_id( 'myaccount' ) ) ) . '">' . $ocean_woo_single_msg_txt . '</a>'; } echo '</div>'; } } } // Meta. if ( 'meta' === $element ) { woocommerce_template_single_meta(); } do_action( 'ocean_after_single_product_' . $element ); }
Upload File
Create Folder