daymobrew
Forum Replies Created
-
Forum: Plugins
In reply to: [Deposits & Partial Payments for WooCommerce] Multiple deposit amounts?Thanks. I tested the Pro demo and it looks good.
I saw that the Payment Plans have % amounts. Is it possible for me to have one option where the first payment is 250 euro? Or is there a filter in the code where I could set the first payment amount to 250 euro?
I primarily post code for me as I may reuse it. When it helps others it’s a brilliant bonus.
If you find any issues or have enhancement suggestions/requests, post a comment on the post (or here).
A few years ago I developed some JavaScript that would achieve this. It watches for changes to the variations dropdowns and copies the selected data to a hidden hidden CF7DTE field.
See: https://www.damiencarbery.com/2019/12/contact-form-7-product-enquiry-form-for-variable-products/
You should look at the elementor/frontend/{$element_type}/should_render filter.
I used the CSS Classes and CSS ID fields in my version of function A().
You might get ideas at my post:
https://www.damiencarbery.com/2022/05/conditionally-show-an-elementor-section/Forum: Plugins
In reply to: [WP Store Locator] How to change layout of single store pageEven though it gives a lot of control, I was trying to avoid that option because I would have had to duplicate a lot of code (using GeneratePress).
My solution works though it could be a maintenance problem if [wpsl_address] changes in the future.
Forum: Plugins
In reply to: [WP Store Locator] How to change layout of single store pageI think I found a solution – remove the cpt_template() filter and add a custom shortcode to ‘the_content’. Thanks for adding WP_Store_locator class to $GLOBALS.
add_filter( 'the_content', 'bh_custom_single_store_content', 5 ); function bh_custom_single_store_content( $content ) { if ( is_singular( 'wpsl_stores' ) ) { remove_filter( 'the_content', array( $GLOBALS['wpsl']->frontend, 'cpt_template' ) ); // Add WP Store Locator map and custom shortcode for address. return '[wpsl_map][hb_wpsl_address]' . $content; } return $content; }I copied WPSL_Frontend::show_store_address() function to a new name and edited it to add the new fields I added.
Is this a good solution?
3.3.2 works on my multisite installation. Brilliant. Thanks.
It didn’t work because of too many slashes in the REST url.
I got a 404 for the query:
https://www.example.com/block-demos/wp-json///find-my-blocks/blocksNote the 3 forward slashes after wp-json.
The localized settings have site_url:
“site_url”:”https:\/\/www.example.com\/blocks-demos\/wp-json\/”I removed some of the slashes in the js code. Here is the diff of what worked for me:
--- find-my-blocks.orig.js 2021-03-22 17:34:04.000000000 +0000 +++ find-my-blocks.js 2021-03-24 10:18:44.000870300 +0000 @@ -34537,10 +34537,10 @@ setBlocks = _react_1$useState2[1]; react_1.useLayoutEffect(function () { - var fetchUrl = "/find-my-blocks/blocks"; + var fetchUrl = "find-my-blocks/blocks"; if (find_my_blocks_globals.site_url) { - fetchUrl = "".concat(find_my_blocks_globals.site_url, "/").concat(fetchUrl); + fetchUrl = "".concat(find_my_blocks_globals.site_url, fetchUrl); } fetch(fetchUrl).then(function (res) {Thanks.
I saw the changelog for 3.2.0 mention the site_url. I’ll give it a try and get back to you.Forum: Plugins
In reply to: [WooCommerce] Customising Woocommerce product pageA few years ago I wrote about using add_action and remove_action to move items around on the product page:
https://www.damiencarbery.com/2017/03/woocommerce-use-actions-to-change-product-page-layout/
That is an exaggerated layout change but it demonstrates that what you can do.Thanks for for this suggestion – this totally solved my issue.
Forum: Reviews
In reply to: [WPS Hide Login] the worst pluginThe login string is stored in the wp_options database table with option_name = ‘whl_page’
Forum: Plugins
In reply to: [WP Search with Algolia] How is index data pushed to AlgoliaI only found out about the plugin in Mika’s recent post about it: https://halfelf.org/2020/algolia-search-faster/
Forum: Plugins
In reply to: [WP Search with Algolia] How is index data pushed to Algolia@richaber : Wow, thanks for all the links.
I didn’t know about WP Search for Algolia or the WP2Static Algolia add-on.Forum: Plugins
In reply to: [WP Search with Algolia] How is index data pushed to AlgoliaSorry, I meant to click the “This is not a support query” checkbox.