jquery – Woocommerce checkout page reload on up dating shipping method

I got 3 shipping method
local pick up
flat rate

I got a small jquery function to determind when ever i should show/hide free shipping method, it works but, when i get to the checkout page i have everyhing hidden regarding shipping method, user selects an option and based on that it will display all or few shipping method, when the option “non free” is selected from a checkbox it hides the free shipping and show the rest, but when user select flat rate or pick up method something seems to reload and basically remove my script and let free shipping vissible

if (selectedName == "nonFree") {
    $(" #shipping_method_0_free_shipping7").parent().hide(); 
  $(" #shipping_method_0_free_shipping7").parent().addClass("hideMe");
      $(" #shipping_method_0_free_shipping7").parent().show(); 
       $(" #shipping_method_0_free_shipping7").parent().removeClass("hideMe");

cloud – Substring title column in Confluence’s page properties report macro

Is there a way to display a substring of the title column’s value in a page properties report?

I’m working with Confluence Cloud to create a documentation space for our apps. The space makes heavy use of a pattern where child pages are created using templates with a Label and Page Properties Macro, and the parent page uses the Page Properties Report Macro to list those child pages & their properties in a grid view.

i.e. I have 2 templates, with the below structure:

  • Template: Application
    • Label: PageType-Application
    • Button: Create from Template
      • Text: Add How To
      • Template Name: How To
    • Macro: Page Properties Report
      • Label: PageType-HowTo
      • Space(s): Current space
      • With Ancestor: Current page
  • Template: How To
    • Label: PageType-HowTo
    • Macro: Page Properties

From this, I have a site structure that looks like this:

  • Applications
    • Confluence
      • Confluence: How To: Change Password
      • Confluence: How To: Log in
    • StackExchange
      • StackExchange: How To: Change Password
      • StackExchange: How To: Log in

Were someone to go to my StackExchange app’s page, I’d like them to see this:

Stack Exchange

How Tos

(Add How To) | Title | Summary | | Change Password | Explains how a user can amend their own password | | Login | Describes how to access the system from a fresh browser session |

However, because each page in a space needs to have a unique name, and both apps would have a Change Password page, I need to include the app’s name to keep things unique; so the titles become Confluence: Change Password and StackExchange: Change Password. This additional text however is unhelpful when the user’s already on the application’s page, so knows the app from the context.

I accept that I may have an XY Problem here… My requirement is to create templates to reduce manual effort / decision making for the teams creating our documentation, by having each template contain buttons to create and link to the relevant child pages, whilst ensuring that the resulting documentation is easy to read; e.g. by not having lots of duplicate information displayed in each link.

i.e. If there’s a way to allow pages in a space to have the same name so long as they live in different parts of the tree structure, or a way to have the page properties report macro show a different column instead of the title column (though still linked to the child page), that would be an equally valid solution.

caching – How to disable CACHE in VIEW PAGE display

The only way I found to add a custom cache tag to a view is implementing a views cache plugin.

Adding the tag as @4k4 suggested doesn’t works. I have tried using different views hooks and different ways without be able to get it working.

With $view->element('#cache')('tags')() = 'custom-data-list' or $view->storage->addCacheTags(('custom-data-list')) the tag appears in X-Drupal-Cache-Tags header, but the view cache is not invalidated when I invalidated the tag.

Then investigating Views Custom Cache Tags module code I found a way to implement it in a custom class:

namespace Drupaldata_viewPluginviewscache;

use DrupalviewsPluginviewscacheTag;

* Add custom cache tags for rows in custom tables.
* @ingroup views_cache_plugins
* @ViewsCache(
*   id = "table_tag",
*   title = @Translation("Tag for custom tables"),
*   help = @Translation("Tag based caching of data. Caches will persist until any table cache tag are invalidated.")
* )
class TableTag extends Tag {

  * {@inheritdoc}
  public function summaryTitle() {
    return $this->t('Table tag');

  * {@inheritdoc}
  public function getCacheTags() {
    // Here you can also create tags for single records in the form "your-table:id"
    return ('custom-data-list');


Then in the view settings page, in the Other section, select Tags for custom tables in Caching.

In your code don’t forget to invalidate the cache every time you change a record in your custom table.

web app – Should a web-app page title appear on every page, even with the current page highlighted in navigation?

I’m facing a dilemma with other designers within our team about whether the main page frame of our web app should iterate the title of the page itself at the top left corner or if it should not exist… since the page title is already highlighted in the left hand navigation.

For example, if we imagine a web app or website with a left hand navigation with several items labelled Home, Plans, Reports, About, etc, then should the main page frame then display the page title as well which could effectively repeat the the text from the label in the navigation?

I can think of a potential use case where people using screen readers would need to hear the page name, and perhaps also provide focus away from the navigation itself. Are there any reasons for or against this?

When admin select the value from the dropdown list , the new information is added to particular selected item and display on that page?

e.g if admin add information and select Bahria town from dropdown list then the information is added on the baheria town page .

8 – How can I override the search result page title dynamically?

In my Drupal 8 site, I am using the default search page. If I enter a key word for search,


And all content will be listing under “Search Result”.

I want to show like “Search result for Article(keyword)” in my search result.

How can I do that?

magento2 – Magento 2.4.1 admin tfa configuration page is blank

I just migrated from Magento 2.3.4 to 2.4.1 , after i logged in from the backend i was redirected to TFA configuration page, but it shows blank container like this:

enter image description here

i already ran these commands below, but nothing changes

bin/magento config:set twofactorauth/general/force_providers google
bin/magento config:set twofactorauth/google/otp_window 60
bin/magento in:rei
bin/magento c:c 

sharepoint online – Is this a bug ?only 30 items in the List showing and i need to inspect the page for the rest to show up

Stack Exchange Network

Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

c# – Get User Data from Entry in View Page in Xamarin

In my Xamarin App, I was able to get the data from user through Entry and bind it in ViewModel.cs.

But, now I want to get this user data from Entry in ViewPage.

Below is code for Entry in .xml page and also of the Data Biding I was using ViewModel (it was working perfectly).

How could I get the user data through Entry in PageView.xml.cs too.


    Text="{Binding Email}"
    Placeholder="Enter Email" >

    Text="{Binding Password}"
    Placeholder="Enter Password" >

    Text="Submit" />


FormDataButton.Clicked += async (sender, args) =>
    if (Email != null && Password != null && Password.Lenght == 8)
        // sample code
        var email = Email;
        var password = Password;

Data Binding I was using in ViewModel.cs

private string _Email;
public string Email
    get => _Email;
    set => this.RaiseAndSetIfChanged(ref _Email, value);

private string _Password;
public string Password
    get => _Password;
    set => this.RaiseAndSetIfChanged(ref _Password, value);

wishlist – How to move Wish List next to Qty input box in product detail page?

To move the element next to the input box you have to create these files in your local theme:


<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
        <referenceBlock name="view.addto.wishlist" remove="true"/>
        <referenceBlock name="product.info.addtocart">
            <block class="MagentoWishlistBlockCatalogProductViewAddToWishlist" name="add-to-wishlist" template="Magento_Wishlist::catalog/product/view/addto/wishlist.phtml"/>


/** @var $block MagentoCatalogBlockProductView */
<?php $_product = $block->getProduct(); ?>
<?php $buttonTitle = __('Add to Cart'); ?>
<?php if ($_product->isSaleable()) :?>
<div class="box-tocart">
    <div class="fieldset">
        <?php if ($block->shouldRenderQuantity()) :?>
        <div class="field qty">
            <label class="label" for="qty"><span><?= $block->escapeHtml(__('Qty')) ?></span></label>
            <div class="control">
                <input type="number"
                       value="<?= $block->getProductDefaultQty() * 1 ?>"
                       title="<?= $block->escapeHtmlAttr(__('Qty')) ?>"
                       class="input-text qty"
                       data-validate="<?= $block->escapeHtml(json_encode($block->getQuantityValidators())) ?>"
                <span class="product-social-links">
                    <span clas="product-addto-links" data-role="add-to-links">
                        <?= $block->getBlockHtml('add-to-wishlist') ?>



        <?php endif; ?>
        <div class="actions">
            <button type="submit"
                    title="<?= $block->escapeHtmlAttr($buttonTitle) ?>"
                    class="action primary tocart"
                    id="product-addtocart-button" disabled>
                <span><?= $block->escapeHtml($buttonTitle) ?></span>
            <?= $block->getChildHtml('', true) ?>
<?php endif; ?>
<script type="text/x-magento-init">
        "#product_addtocart_form": {
            "Magento_Catalog/js/validate-product": {}

The wishlist block will then appear next to the input field in the dom. You will have to use css for the finishing touch:

enter image description here