Magento2 Ajax change store currency and refresh total on Checkout page while change address

I want to change the current store currency by ajax and refresh the total when changing the address on the checkout page. I have successfully changed store currency by below code:


But problem is that when I am trying to refresh the total then the amount converted as per currency successfully but the currency symbol not changed. Below is the js code of refresh total:


Gravity Forms Change Upload Path and Group Multiple Uploads by Entry_ID as subfolders

I’ve added this to my functions.php file in order to change the file upload location for a specific form:

add_filter("gform_upload_path_58", "change_upload_path", 10, 2);
function change_upload_path($path_info, $form_id){
   $path_info("path") = $_SERVER('DOCUMENT_ROOT') . '/files/';
   $path_info("url")  = 'https://' . $_SERVER('SERVER_NAME') . '/files/';
   return $path_info;

However the forms accepts multiple files for uploading in a single submission, so I want to be able to group the uploads into subfolders named according to the Gravity Forms entry_id. However, I don’t know how to retrieve the entry_id – Simply adding $entry_id into my path as follows didn’t work, and I don’t know how else to retrieve it. I also couldn’t really find anything through Google.

add_filter("gform_upload_path_58", "change_upload_path", 10, 2);
function change_upload_path($path_info, $form_id){
   $path_info("path") = $_SERVER('DOCUMENT_ROOT') . '/files/' . $entry_id . '/';
   $path_info("url")  = 'https://' . $_SERVER('SERVER_NAME') . '/files/' . $entry_id . '/';
   return $path_info;

Any advice would be appreciated.

interaction design – ‘Add to Favorites’ state change immediately or wait for backend confirmation?

I have an ‘add to favorites’ button that has two states: (add?) or (added✓) (using icons of course).

My question: Should the icon state be changed immediately upon the user’s press or is it better to wait for the backend response that confirms the save was successful?

(The developer’s current implementation is to not change visual state until the backend confirms. When the user presses the button, nothing happens until a moment later)

What does it mean Slack is active green dot but with a Z, and how to change it?

I am using the Slack app, and after I touched the computer (a Mac) today, the status changed to a green dot, meaning active, but with a “Z”. What does it mean a green dot with a Z, as it seems to mean “active but sleeping”, and how do I change it to just active?

godot – How do I change a sprite using code from another node?

I’m trying to make a program in Godot where the player can put a bunch of images into a folder, and when the button is pressed, have the image appear as a sprite on the screen. With the current code, the directory for the image is printed when the button is pressed, but the image sprite simply does not appear. No error messages come up either, so I’m stumped as to what the problem is. Here is the code:

extends Button

func _pressed():
    var cards_order = () #creates the array
    var path = "assets/cards/" #defines a path
    var dir = #creates a directory #sets the directory to the defined path
    dir.list_dir_begin() #begins listing the directory
    while true:
        var file_name = dir.get_next() #sets the var "file_name" to the next entry in the directory
        if file_name == "":
        #break the while loop when get_next() returns ""
        elif !file_name.begins_with(".") && !file_name.ends_with(".import"):
        #get_next() returns a string so this can be used to load the images into an array. Also stops .import files from being added
            cards_order.append(load(path + file_name)) #loads the next file into the array
    randomize() #changes the randomization
    cards_order.shuffle() #shuffles the array
    var card_sprite = cards_order.front() #sets card_sprite as the first item in the array
    $"/root/CardSprite".texture = load(card_sprite.get_path())

Any help with this would be greatly appreciated!

google sheets – How to change focus from one cell to a different row and cell

I’m trying to make an ID Card Tracking List in Google Sheets. Example: B5 would contain the issuance date. Once filled in the cell is no longer accessible, focus switches to C5, the expiration date. Once the expiration date is entered,that cell is no longer accessible and the focus shifts to B7 a new issuance date for a different person.Then the process starts over again, moving to a new row and column. At the end of the year all of the prior entries are automatically removed and and the process starts over again for the new year.I can’t figure out how to make it work. This list is only Viewable…This list can only be edited from the master list each manager has for their department.

Unable to change audio balance on Windows 10

On my bluetooth headphones (JBL Tune 115bt), the left ear speaker is more quiet. To account for that, I tried to change the balance in the device properties. However, changing either the left or right channel also changes the other:

enter image description here

I am thus not able to change the balance. Is there any way to fix this (presumably) error or circumvent it?

In case they are needed, here are some system specifications: Windows 10 Home (20H2) 64bit. CPU: Intel Core i7-6500U. GPU: Nvidia GTX 950M.

The problem does not seem to be caused by the headphones since I can change the balance on my smartphone without any problems.

ffmpeg: How is the video with color rec.709 change to rec.2100?

Your privacy

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

8 – How can I change the page title from a custom block

I want to create a custom block that allows admins to enter a title. Once the title is entered, it should use that title as the page title.

I tried the following in my build method but it didn’t change the page title:

   * {@inheritdoc}
  public function build() {
    $title = "Testing If Title Changes";
    $request = Drupal::request();
    if ($route = $request->attributes >get(SymfonyCmfComponentRoutingRouteObjectInterface::ROUTE_OBJECT)) {
      $route->setDefault('_title', $title);

    return (
      '#markup' => '<h1>' . $title . '</h1>',


I am using Page Manager with Layout Builder. There currently isn’t a title block available (I created issue about this here), so this my idea of creating a custom block is a workaround for now.

Can we change Windows 10 behavior to be MacOS like?

I’m using Windows 10 but am more comfortable as a Mac User and I really miss some behaviors I’ve come to expect. I own a 32” 4K monitor and now with Windows 10, my windows get maximized at full everytime is not ideal.

Have any other fellow users which alternate between Mac and Windows have found a solutions for this item? My research for tools yields results about changing the looks of windows more like mac and that’s not what I’m interested in. I want the rezise/maximize behavior to make me as efficient as in MacOS.

I hope you can point me into the right place to find a solution for this.

Are windows controls on Windows 10 modifiable?