• Resolved Mindas22

    (@mindas22)


    How to show only image title and price in the result page?
    Also how to make the show all results button and display all results when clicked?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    For the price/image/title part, you’re going to need to customize the templates used. I am assuming Instantsearch here, but info on how to start safely customizing can be found at https://github.com/WebDevStudios/wp-search-with-algolia/wiki/Customize-Templates

    Regarding show all, are you referring to clearing out the rest of the pagination? Or are you perhaps referring to the autocomplete dropdown in this case?

    Thread Starter Mindas22

    (@mindas22)

    autocomplete with dropdown with your pro plugin it shows sku, price, title, image, short description.

    We need to show image title and price only. But to able to search using SKU. But it should not output it. Also how to translate word “Price”?
    We use wpml

    thanks!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    On the WooCommerce settings page, there’s a “Display product data” option that I believe we have checked by default that’s adding that extra information, most specifically the SKU and prices.

    This was done this way to show that things are working, but it’s definitely not a requirement. Unchecking that option will return the output to the default template output still largely provided by the free plugin.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    @mindas22 Did you get this figured out?

    Thread Starter Mindas22

    (@mindas22)

    No, default plugin does not provide what we need and pro plugin also can not modified. We only needed to show Image – title – price. And be able to search by SKU, but do not display it.

    Can we get refund for pro plugin?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Everything you’re needing is absolutely possible.

    To disable the default extra output that Pro offers, you just need to uncheck this setting if it’s already checked.

    Screen Shot

    It’ll be in the “WooCommerce” section of your Algolia admin menu. /wp-admin/admin.php?page=wpswa_pro_woocommerce

    The rest can be accomplished through our regular available options for customizing the template files. This is all done with just the free plugin, nothing that was taken over with the Pro plugin https://github.com/WebDevStudios/wp-search-with-algolia/wiki/Customize-Templates

    Here’s the code version of the template extra output we use with the option above, which would be able to be whittled down to just the parts you want.

    <p>
    	<# if ( data.sku ) { #>
    	<?php esc_html_e( 'SKU:', 'wp-search-with-algolia-pro' ); ?>
    	{{ data.sku }}
    	<# } #>
    
    	<# if ( data.price || data.sale_price ) { #>
    		<?php esc_html_e( 'Price:', 'wp-search-with-algolia-pro' ); ?>
    		<# if ( data.sale_price ) { #>
    			<# if ( data.price ) { #>
    			<s>data.price_formatted</s>
    			<# } #>
    			data.sale_price_formatted
    		<# } #>
    		<# if ( ! data.sale_price && data.price ) { #>
    			data.price_formatted
    			<# if ( data.max_price ) { #>
    				- data.max_price_formatted
    			<# } #>
    		<# } #>
    	<# } #>
    </p>

    If even with all this information, you still prefer a refund, please reach out over at https://pluginize.com/contact/ and we’ll get that process going. Hopefully this information above is useful to get you to where you need to be though.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Actually I believe I see a response in our ticket system that I believe may be from you, so I’ll be replying there. It was about 6 hours ago according to our timestamps.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to show only image title and price?’ is closed to new replies.