How To Fix this Title under Recently Viewed Products?
Its on home page
This topic has 12 replies, 3 voices, and was last updated 9 minutes ago ago by Luca Rossi
How To Fix this Title under Recently Viewed Products?
Its on home page
Hello RichPoetry,
Thank you for reaching out to us.
Could you please provide temporary wp-admin access? We need to check your settings.
To grant WP-Admin access, please proceed to create a new user account with an administrator role through your WordPress Dashboard. Once the account is established, you may securely transmit the username and password to us via the Private Content section designated for this purpose.
Warm Regards,
The 8Theme Team
sure here is the details
Hello RichPoetry,
We appreciate your prompt response.
Fixed – https://prnt.sc/1zCQfYGJ3RSx
If you have any additional questions or concerns, please do not hesitate to reach out to us. Our support team is always available to assist you.
Warm Regards,
The 8Theme Team
thank you but it still not properly fixed check the line which is in red circle.
Recently viewed products line is larger then REVIEWS
can you make the line as same as REVIEWS?
please check the image
Hello RichPoetry,
Please clear cache and check now.
Warm Regards,
The 8Theme Team
How to change this text Sale 38% to 38% OFF
Hello RichPoetry,
Thank you for reaching out to us.
We would like to inform you that the Sale Label Text can be modified by navigating to the following path in your theme settings: XStore > Theme Options > WooCommerce > Shop Elements > Product Badges.
Warm Regards,
The 8Theme Team
i changed the Sale Label Text to OFF now its showing OFF 38%, i want text to be written as 38% OFF
Hi @RichPoetry,
Please add the following code under functions.php file locates in your child theme:
function etheme_sale_label_percentage_text( $product_object, $sale_text, $is_single_product = false ) {
$element_options = array();
if ( ! $product_object->is_on_sale() ) {
return $sale_text;
}
$element_options['sale_label_text'] = $sale_text;
$sale_variables = $is_single_product || etheme_get_option( 'sale_percentage_variable', 0 );
$product_type = $product_object->get_type();
if ( $product_type == 'variable' ) {
// $element_options['sale_label_text'] = $sale_text;
if ( $sale_variables ) {
$element_options['variation_sale_prices'] = array();
foreach ( $product_object->get_available_variations() as $key ) {
if ( $key['display_regular_price'] == $key['display_price'] ) {
continue;
}
$element_options['variation_sale_prices'][] = (float) round( ( ( $key['display_regular_price'] - $key['display_price'] ) / $key['display_regular_price'] ) * 100 );
}
if ( count($element_options['variation_sale_prices']) )
$element_options['sale_label_text'] = sprintf( esc_html__( 'Up to %s', 'xstore' ), max( $element_options['variation_sale_prices'] ) . '%' );
// $element_options['sale_label_text'] = esc_html__( 'Up to', 'xstore' ) . ' ' . max( $element_options['variation_sale_prices'] ) . '%';
}
} elseif ( $product_type == 'grouped' ) {
if ( $sale_variables ) {
$element_options['grouped_sale_prices'] = array();
foreach ( $product_object->get_children() as $key ) {
$_product = wc_get_product( $key );
if ( $_product->get_type() == 'variable' && $_product->is_on_sale() ) {
foreach ( $_product->get_available_variations() as $key ) {
if ( $key['display_regular_price'] == $key['display_price'] ) {
continue;
}
$element_options['grouped_sale_prices'][] = (float) round( ( ( $key['display_regular_price'] - $key['display_price'] ) / $key['display_regular_price'] ) * 100 );
}
} else {
if ( $_product->is_on_sale() ) {
$regular_price = (float) $_product->get_regular_price();
$sale_price = (float) $_product->get_sale_price();
if ( $regular_price == $sale_price ) {
continue;
}
$element_options['grouped_sale_prices'][] = (float) round( ( ( $regular_price - $sale_price ) / $regular_price ) * 100 );
}
}
}
// $element_options['sale_label_text'] = esc_html__( 'Up to', 'xstore' ) . ' ' . max( $element_options['grouped_sale_prices'] ) . '%';
$element_options['sale_label_text'] = sprintf( esc_html__( 'Up to %s', 'xstore' ), max( $element_options['grouped_sale_prices'] ) . '%' );
}
// else {
// $element_options['sale_label_text'] = $sale_text;
// }
} else {
if ( apply_filters( 'etheme_sale_label_percentage', etheme_get_option( 'sale_percentage', 0 ) ) ){
if ( $product_type == 'bundle') {
$element_options['regular_price'] = (float) $product_object->min_raw_regular_price;
$element_options['sale_price'] = (float) $product_object->min_raw_price;
}
else {
$element_options['regular_price'] = (float) $product_object->get_regular_price();
$element_options['sale_price'] = (float) $product_object->get_sale_price();
}
// $element_options['sale_label_text'] = $sale_text;
if ( $element_options['regular_price'] && $element_options['sale_price'] ) {
// $element_options['sale_label_text'] .= ' ' . round( ( ( $element_options['regular_price'] - $element_options['sale_price'] ) / $element_options['regular_price'] ) * 100 ) . '%';
$element_options['sale_label_text'] = sprintf( str_replace('{sales_text}', $element_options['sale_label_text'], __( '%s {sales_text}', 'xstore' )),round( ( ( $element_options['regular_price'] - $element_options['sale_price'] ) / $element_options['regular_price'] ) * 100 ) . '%' );
}
}
}
if ( class_exists( 'WAD_Discount' ) ) {
$all_discounts = wad_get_active_discounts( true );
$product_id = $product_object->get_id();
if ( in_array( $product_type, array( 'variation', 'variable' ) ) ) {
$product_id = $product_object->get_available_variations();
}
foreach ( $all_discounts as $discount_type => $discounts ) {
foreach ( $discounts as $discount_id ) {
$discount_obj = new WAD_Discount( $discount_id );
if ( $discount_obj->is_applicable( $product_id ) ) {
$settings = $discount_obj->settings;
// $element_options['sale_label_text'] = $sale_text . ' ' . $settings['percentage-or-fixed-amount'] . '%';
$element_options['sale_label_text'] = sprintf( esc_html__( 'Sale %s', 'xstore' ),$settings['percentage-or-fixed-amount'] . '%' );
}
}
}
}
return $element_options['sale_label_text'];
}
Hope it helps!
thankyou so much. one more help i needed i have changed some buttons to “Add to Cart” like in the image. but some buttons dont have option to change in elementor
i want the 1 one to be changed to 2 one like in the image. is there any option how to do?
Hi @RichPoetry,
There is setting to hide the quantity of products in Product Tabs element.
Please try adding this custom CSS codes under XStore > Theme Options > Theme Custom CSS > Global CSS:
.et-advance-tabs .quantity-wrapper {
width: 100%;
max-width: 100%;
}
.et-advance-tabs .quantity-wrapper .quantity {
display: none;
}
.et-advance-tabs .quantity-wrapper a.add_to_cart_button {
width: 100%;
}
.et-advance-tabs .quantity-wrapper a.add_to_cart_button::before {
content: '\e93d';
}
.et-advance-tabs .quantity-wrapper a.add_to_cart_button::after {
content: 'Add To Cart' !important;
position: static !important;
transform: none !important;
color: #fff !important;
-webkit-text-fill-color: #fff !important;
background-color: transparent !important;
opacity: 1 !important;
visibility: visible !important;
text-transform: uppercase;
font-size: 1rem !important;
}
Hope it helps!
You must be logged in to reply to this topic.Log in/Sign up