🇪🇸Spain @UriDrupal

Account created on 1 October 2018, over 5 years ago
#

Recent comments

🇪🇸Spain UriDrupal

@rsnyd
I couldn't make it work, but you're using the wrong Field Widget. You need to use the proper one, I think it's called "Product stock level". Also, the stock is set at variation if I recall correctly, and then it will show properly.

🇪🇸Spain UriDrupal

You need to install faker library, just run a composer require fakerphp/faker It seems it hasn't been added as dependency on the module's composer.json

🇪🇸Spain UriDrupal

Until the patch is merged it won't work because if I'm correct composer checks dependencies at the time of install. So even with the patch you won't comply with the requirements. Another possible solution would be to fork the repo and create your own with the patch applied until the issue is solved. Something like that could work.

🇪🇸Spain UriDrupal

I have tested and it works. I am not having issues translating block content anymore.

🇪🇸Spain UriDrupal

I will try to test tomorrow, couldn't make it work today.

🇪🇸Spain UriDrupal

Yes, it seems it's related to this https://www.drupal.org/project/commerce/issues/2981193 which makes sense since the order is "frozen".
Some labels like Subtotal were changing, but then again those are not adjustments.
Thanks!

🇪🇸Spain UriDrupal

Yes, I saw that issue that's what I am a bit confused.
I have noticed that using the Language switcher doesn't work, but if I empty the cart and put a new product in another language it shows the proper translation, but if I change the language again, everything changes except for that Promotion label, which is a discount on shipping.
Has to be some cache issue

🇪🇸Spain UriDrupal

I am trying to update to last version of Commerce. We are at 8.x-2.36, but that fix is old, code should be already there.
I can't figure out why the translation is not showing properly.

🇪🇸Spain UriDrupal

@jsacksick I did exactly that, and it seems to be working.

🇪🇸Spain UriDrupal

@Lukas von Blarer Where is this option? I cannot find it inside Promotions!

🇪🇸Spain UriDrupal

So for anyone coming to this, the default fallback language can't be changed, Drupal only accepts one.
I was able to hack it this way

Basically what I did was changing the Fallback language to French.
Then I went to Prefix URL, enable domain configuration for each domain, in my desired domain I put all the prefixes and save config.
This means site.com/en, site.com/fr, site.com/de

Then reverted fallback language to German.
Now in my desired domain if I go example.com it goes to example.com/fr and lang switcher works properly.

It's a bit of a hack but only way I could make it work. It won't show site.com as French, it will go to site.com/fr but at least it follows my directive of having certain domain be a default in another language.

🇪🇸Spain UriDrupal

Seems patch #35 works fine for me. I have learnt the risk of using a Merge diff as a patch now.
Thanks!

🇪🇸Spain UriDrupal

The last changes broke the code, there's an extra } that has been deleted

🇪🇸Spain UriDrupal

@mark_fullmer Thanks! I wasn't aware to install the additional module, plus I was on another drupal version, not 10. Made it work perfectly!

🇪🇸Spain UriDrupal

@samir_shukla Thanks for your input. From what I've seen it does not help. I need to restrict the suggested list of links when using autocomplete by content type. If I have a field link set up as "internal only", I want to choose which content types should come up when linking. Right now it shows all content from all content types. If I have "Blogs" and "Articles" I want to be able to only link "Blogs", but right now there's no way to restrict it.

🇪🇸Spain UriDrupal

Would be great to know, I am also experiencing a similar use case with commerce add to cart. Tried using the base_form_id but it didn't work.

🇪🇸Spain UriDrupal

Experiencing the same similar case. There's a fixed rater of 2 prices, I don't need to calculate shipping costs based on Price, so having weight on a product variation is superfluous. Is there a way to turn it off?

🇪🇸Spain UriDrupal

At first glance the patch seems to be working. I can see the button unchecked and allows me to check it as "same billing as shipping".

🇪🇸Spain UriDrupal

Once I added patch #14 it was also necessary to add:

/**
 * Implements hook_responsive_menu_off_canvas_tree_prebuild().
 */
function mymodule_responsive_menu_off_canvas_tree_prebuild(array &$build) {
  $build['#cache']['contexts'][] = 'subsite_context';
}

After doing this, I had no more issues with cache.

🇪🇸Spain UriDrupal

After the update to Drupal10.1.6 and version Cookies 1.2.7 this patch stopped working for me. I can apply it but it does nothing when removing consent.

🇪🇸Spain UriDrupal

Thanks for the patch chetan11. I wasn't able to install the patch since it seems to be directed to the Branch 7x and we're using right now the version 2.0.1, could you re roll the patch?
I tried manually installing the changes, but nothing seems to change.

🇪🇸Spain UriDrupal

It seems you're right. I took a look at the JS code and it doesn't seem to have an option honestly.
I will update once I get a reply there.
Thanks!

🇪🇸Spain UriDrupal

I can confirm we still have this issue. Just tried it on simplytest.me/
The description is not being shown.

🇪🇸Spain UriDrupal

Thanks @John Pitcairn. Do you have any ideas on how I would start doing that? I haven't found a single module, except for
Thanks for replying so fast.

Production build 0.69.0 2024