Home Forums WoodMart support forum Rental button issue

Rental button issue

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #647454

    grcp
    Participant

    Hi Support,

    On the website below, I have enabled the rental option for some products, which should display a rental button.

    However, the rental button appears for some products but not for others.

    Could you please take a look?

    Best regards,

    Attachments:
    You must be logged in to view attached files.
    #647457

    grcp
    Participant

    Attached the website

    #647458

    grcp
    Participant

    In the below link is the website.

    #647619

    Hello,

    The issue may be due to specific product settings or rental configurations. Make sure that the rental option is correctly enabled for all affected products from product settings or plugin settings.

    If the issue remains, Could you please check how it works with some default WordPress themes like TwentyTwenty Five or WooCommerce Storefront to understand if it is our theme issue or not?

    Best Regards,

    #647786

    grcp
    Participant

    Hi there ! The issue is not related to the setting of rental plugin. The issue is facing only in Ajax product tab and only in the firt line of products.

    #647919

    Hello,

    Sorry to hear about the inconvenience. Kindly, please share your Site WP-ADMIN Login details in the Private Content field so that we can check this concern on your Site and help you out accordingly.

    Best Regards,

    #648041

    grcp
    Participant

    Here is the link

    #648361

    Hello,

    Your given login link details are not working anymore. Please share the correct login details so I can check the issue and give you a possible solution.

    Best Regards,

    #648363

    grcp
    Participant

    Hi support,

    Try with the attachment url.

    Best regards

    #648448

    Hello,

    Sorry again, your given login link details are not working anymore. Please share the correct login details so I can check the issue and give you a possible solution.

    Best Regards,

    #648458

    grcp
    Participant

    We had a network down. Could you please try again ?

    #648799

    Hello,

    Try to add the following code in the function.php of the child theme to fix the issue.

    add_action( 'woocommerce_after_shop_loop_item', function () {
    	if ( empty( $_REQUEST['action'] ) || 'woodmart_' !== substr($_REQUEST['action'], 0, 9) ) {
    		return;
    	}
    
    	$show_button = apply_filters( 'yith_ywraq-btn_other_pages', true ); //phpcs:ignore
    
    	global $product;
    
    	if ( ! $product ) {
    		return false;
    	}
    
    	$type_in_loop = apply_filters(
    		'yith_ywraq_show_button_in_loop_product_type',
    		array(
    			'simple',
    			'subscription',
    			'external',
    			'yith-composite',
    		)
    	);
    
    	if ( ! yith_plugin_fw_is_true( $show_button ) || ! $product->is_type( $type_in_loop ) ) {
    		return false;
    	}
    
    	if ( ! function_exists( 'YITH_YWRAQ_Frontend' ) ) {
    		require_once YITH_YWRAQ_INC . 'class.yith-request-quote-frontend.php';
    		YITH_YWRAQ_Frontend();
    	}
    
    	YITH_YWRAQ_Frontend()->print_button( $product );
    }, 15);

    Best Regards,

    #648801

    grcp
    Participant

    yesss !!
    It is working.

    Thank you very much

    #648880

    Hello,

    You’re very welcome! I’m glad I could help. If you need anything else, feel free to reach out!

    Thanks for contacting us.
    Have a great day.

    Topic Closed.
    Best Regards,

Viewing 14 posts - 1 through 14 (of 14 total)

The topic ‘Rental button issue’ is closed to new replies.