Closed (works as designed)
Project:
Commerce Ajax Add to Cart
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 May 2018 at 08:45 UTC
Updated:
17 May 2018 at 08:58 UTC
Jump to comment: Most recent
Comments
Comment #2
subhojit777In your custom preprocess you have to do
product_variation_entity->getProduct()(see https://github.com/drupalcommerce/commerce/blob/8.x-2.x/modules/product/...).More information regarding Twig debugging - https://www.drupal.org/docs/8/theming/twig/debugging-twig-templates
Comment #3
Alexandre360 commentedThank you for the answer
What would be the name of the preprocess HOOK for ajax cart popup ? I still have some difficulties with drupal 8 naming convention.
For the first "hook", I think I have to put my theme name if I put that function in mytheme.theme in my theme root folder, but I don't know what name to give to the second "HOOK"
Thank you
Alex