Closed (fixed)
Project:
Commerce Kickstart
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Nov 2012 at 12:51 UTC
Updated:
27 Dec 2012 at 02:00 UTC
Hello,
I would like to customize the commerce-line-item-summary.tpl.php file, so, as always, I copied the file into my theme folder and begin to customize it.
But it seems that the original file commerce_kickstart/commerce_kickstart_lite_product_ui/themecommerce-line-item-summary.tpl.php is still read instead of mine.
I cleaned cache several times, but didn't change anythine.
Don't took (and have) time to look further, but the template file call is probably hard coded somewhere.
Regards,
Alex
Comments
Comment #1
zmove commentedAfter a look into the code, it seems that the problem is in the file commerce_kickstart_lite_product_ui.module in function commerce_kickstart_lite_product_ui_theme_registry_alter
By removing the line below, it resolve the problem.
I understand that the module need to tweak the output a little for a nice out of the box demo site, but I think that the user should be able to override it in his theme, always. So some additionnal conditions to check if the file is defined in the theme folder (or subfolder as core drupal support it) and, if not, load the one in the module.
Regards,
Alex
Comment #2
vasikehere is gerrit commit that should allow commerce-line-item-summary.tpl.php to be overriden from theme.
https://code.drupalcommerce.org/#/c/573/
similar to #1790258-2: Wrong templates path on user page if overridden in theme (user-profile-category.tpl.php).
Comment #3
bojanz commentedMerged.