Home Forums WoodMart support forum Ajax search show prices only for logged in users hook

Ajax search show prices only for logged in users hook

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #622992

    kolapsko
    Participant

    If I enable Login to see add to cart and prices, search results prices are visible only to logged in users..
    But then I have problem with grouped/single product (have custom layout – single product layout and in woodmart-child theme/woocommerce/single-product/add-to-cart/ simple.php and grouped.php), Elementor element – Product add to cart is not visible for not logged users.. But I want part to be visible (some info without price and cart button)..

    Only option is to disable search results price via css, but thats not option (price is then not visible for logged in/not logged in users)..
    Maybe some code with hook to manual disable prices in ajax search for not logged in users =
    So please help.

    • This topic was modified 1 day, 18 hours ago by kolapsko.
    #623208

    Luke Nielsen
    Keymaster

    Hello,

    On my side it’s not visible – https://prnt.sc/KxaP965-rSYQ , https://prnt.sc/A3yhleJ5UbuU so clear the browser cache and recheck the issue.

    Kind Regards

    #623318

    kolapsko
    Participant

    Hello,

    its working after some changes on /inc/modules/search.php file https://prnt.sc/dHSZJ3Xoy38_
    Is it possible to create hook ore someting that I don’t lost changes after theme update?

    #623451

    kolapsko
    Participant

    Hello,
    have moved function woodmart_ajax_suggestions() to woodmart-child/functions.php with my changes and now is working… didn’t know that I can copy same function to child theme functions.php and it will work, amazing..
    Topic can be closed now, thanks!

    • This reply was modified 5 hours, 36 minutes ago by kolapsko.
    #623572

    Luke Nielsen
    Keymaster

    Hello,

    Glad that you managed to change it.

    Always remember that you can reach out to us with any questions you may have.

    Have a good day!

    Kind Regards

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

The topic ‘Ajax search show prices only for logged in users hook’ is closed to new replies.