Home › Forums › WoodMart support forum › Rental button issue
Rental button issue
- This topic has 13 replies, 2 voices, and was last updated 4 weeks, 1 day ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
March 20, 2025 at 10:05 am #647454
grcpParticipantHi 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.March 20, 2025 at 10:06 am #647457
grcpParticipantAttached the website
March 20, 2025 at 10:06 am #647458
grcpParticipantIn the below link is the website.
March 20, 2025 at 4:27 pm #647619
Aizaz Imtiaz AwanKeymasterHello,
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,
March 21, 2025 at 10:07 am #647786
grcpParticipantHi 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.
March 21, 2025 at 3:12 pm #647919
Aizaz Imtiaz AwanKeymasterHello,
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,
March 21, 2025 at 9:30 pm #648041
grcpParticipantHere is the link
March 24, 2025 at 10:51 am #648361
Aizaz Imtiaz AwanKeymasterHello,
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,
March 24, 2025 at 10:54 am #648363
grcpParticipantHi support,
Try with the attachment url.
Best regards
March 24, 2025 at 2:38 pm #648448
Aizaz Imtiaz AwanKeymasterHello,
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,
March 24, 2025 at 3:05 pm #648458
grcpParticipantWe had a network down. Could you please try again ?
March 25, 2025 at 12:54 pm #648799
Aizaz Imtiaz AwanKeymasterHello,
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,
March 25, 2025 at 12:57 pm #648801
grcpParticipantyesss !!
It is working.Thank you very much
March 25, 2025 at 3:54 pm #648880
Aizaz Imtiaz AwanKeymasterHello,
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, -
AuthorPosts
The topic ‘Rental button issue’ is closed to new replies.
- You must be logged in to create new topics. Login / Register