πŸ‡ΏπŸ‡¦South Africa @Matthew Gibbon

South Africa KZN
Account created on 15 November 2010, over 13 years ago
#

Recent comments

πŸ‡ΏπŸ‡¦South Africa Matthew Gibbon South Africa KZN

No - I went with advise and assistance to use the ECA module and a custom module for the task with assistance from @wombatbuddy above.

πŸ‡ΏπŸ‡¦South Africa Matthew Gibbon South Africa KZN

Many years later I comment and maybe with developments this has relevance. I am trying to edit a custom data value inside of user which I cannot find through the data "@user.current_user_context:current_user" selection in action.

So add condition "entity is of bundle". However now in version 10.2.2 there is no enable/disable data selections. Just forced auto data selection for "Entity
Specifies the entity for which to evaluate the condition."
of which I select "@user.current_user_context:current_user" - have tried just "user" but form rejected.

Type
The type of the evaluated entity.
Of which I have tried both "@user.current_user_context:current_user" - and "user"

Bundle
The bundle of the evaluated entity.
of which I have tried both "@user.current_user_context:current_user" - and "user"

Any advice appreciated?

πŸ‡ΏπŸ‡¦South Africa Matthew Gibbon South Africa KZN

Many years later I comment and maybe with developments this has relevance. I am trying to edit a custom data value inside of user which I cannot find through the data "@user.current_user_context:current_user" selection in action.

So add condition "entity is of bundle". However now in version 10.2.2 there is no enable/disable data selections. Just forced auto data selection for "Entity
Specifies the entity for which to evaluate the condition."
of which I select "@user.current_user_context:current_user" - have tried just "user" but form rejected.

Type
The type of the evaluated entity.
Of which I have tried both "@user.current_user_context:current_user" - and "user"

Bundle
The bundle of the evaluated entity.
of which I have tried both "@user.current_user_context:current_user" - and "user"

Any advise appreciated?

πŸ‡ΏπŸ‡¦South Africa Matthew Gibbon South Africa KZN

I have tested with this patch replacing the other. It appears any time there is variable insert from the url I.E "/product/66?v=324" being the "?v=324" then no add to cart notification shows. I did read a post about ajax being "stolen" on forms (maybe commerce product variable form). https://www.drupal.org/project/commerce/issues/2916671 πŸ› Ajax Paging in Views breaks Add to Cart form Needs work

I have in the interim still installed the module as it allows the cart display module to update while keeping the current page and display of product be it in colorbox or on node display.

πŸ‡ΏπŸ‡¦South Africa Matthew Gibbon South Africa KZN

No - I added the following patch with no change.

"patches":{
"patches": {
"commerce_ajax_atc": {
"Product Variable change repair": " https://www.drupal.org/files/issues/2022-02-11/3263913-2.patch β†’ " }
}
},

and still after editing the variable of commerce product no added to cart message. Also if you add to cart the first variable that loads, yes message appears but the say you also purchasing a different size or colour of the same product. No message appears thereafter.

πŸ‡ΏπŸ‡¦South Africa Matthew Gibbon South Africa KZN

@tonytheferg - Yes. Later in the demo video I open as a node display and replicate the same.

Would it assist if I uploaded the composer file too?

πŸ‡ΏπŸ‡¦South Africa Matthew Gibbon South Africa KZN

Thank you. I have succeeded after learning about installing patches with composer and added the following after "installer-paths": { * }

"patches":{
"drupal/cshs":{
"Fix cshs in D10":"https://git.drupalcode.org/project/cshs/-/merge_requests/13.diff"
}
},

That being said Chrome holds the problems in client-side still and ignores the patch. I had to CLI into my mac after deleting chrome and many folders deep in library delete cache. This then solved the problem and patch worked.

I am now trying to see if their is a way server side to renew/invalidate/delete client-side cache to simplify problem resolution. I am not this smart yet, so open to ideas?

πŸ‡ΏπŸ‡¦South Africa Matthew Gibbon South Africa KZN

As a site builder. I have tried following relevant instructions. Still unable to get this patch and module to work. Any advice appreciated.

In composer.json

"extra": {
"composer-exit-on-patch-failure": true,
"patchLevel": {
"drupal/core": "-p2",
"drupal/contrib-module1": "-p1",
"drupal/contrib-module2": "-p1"
},
"patches": {
"drupal/core": {
"3212792: Views button hover effect is odd": " https://www.drupal.org/files/issues/2023-05-22/3347581-module-is-not-wor... β†’ "
}
},

πŸ‡ΏπŸ‡¦South Africa Matthew Gibbon South Africa KZN

Matthew Gibbon β†’ created an issue.

Production build 0.69.0 2024