zomex Posted January 11, 2021 Share Posted January 11, 2021 Hello, I'm testing the child template functionality with the cart. All files are working for me as a child cart apart from checkout.tpl. For some reason the file duplicated within my child cart template is being ignored and the parent cart (Standard Cart) copy is being used. Is anyone else able to replicate this? Thanks. 1 Quote Link to comment Share on other sites More sharing options...
AALayer Posted January 11, 2021 Share Posted January 11, 2021 Well this is weird. I was having the same issue a few days ago and i thought it was something bad going on from my end. Looking for a solution to this aswell for myself. Cheers 1 Quote Link to comment Share on other sites More sharing options...
zomex Posted January 12, 2021 Author Share Posted January 12, 2021 10 hours ago, AALayer said: Well this is weird. I was having the same issue a few days ago and i thought it was something bad going on from my end. Looking for a solution to this aswell for myself. Cheers Looks like we found a bug. Hopfully it gets fixed soon. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted January 12, 2021 WHMCS Support Manager Share Posted January 12, 2021 Hi @zomex, Did you set your child theme as the default order form template in Configuration > General Settings > Ordering tab? That setting will take precedence over a child theme specified at the product group level. Do you encounter this same behaviour in v8.0 or earlier, or only in v8.1? 0 Quote Link to comment Share on other sites More sharing options...
zomex Posted January 12, 2021 Author Share Posted January 12, 2021 1 hour ago, WHMCS John said: Hi @zomex, Did you set your child theme as the default order form template in Configuration > General Settings > Ordering tab? That setting will take precedence over a child theme specified at the product group level. Do you encounter this same behaviour in v8.0 or earlier, or only in v8.1? No it isn't set as the active template in the general settings. The default cart is Standard Cart, all products are set to use the default. Then I am loading the child theme using the browser variable carttpl= It appears to effect checkout.tpl only, all other files I have tested work correctly within the child theme. I didn't test the child theme prior to v8.1 as I created and used a fully customized version of Standard Cart. Thanks. 1 Quote Link to comment Share on other sites More sharing options...
zomex Posted January 15, 2021 Author Share Posted January 15, 2021 On 1/12/2021 at 5:46 PM, WHMCS John said: Hi @zomex, Did you set your child theme as the default order form template in Configuration > General Settings > Ordering tab? That setting will take precedence over a child theme specified at the product group level. Do you encounter this same behaviour in v8.0 or earlier, or only in v8.1? @WHMCS John when can we expect to see a patch for this? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted January 15, 2021 WHMCS Support Manager Share Posted January 15, 2021 Hi @zomex, Please also copy the viewcart.tpl template into your child order form template. In order to have a custom checkout.tpl, you must bring over the viewcart.tpl as well due to the inclusion of this template within it. This has always been the case with child order form templates. 1 Quote Link to comment Share on other sites More sharing options...
zomex Posted January 15, 2021 Author Share Posted January 15, 2021 33 minutes ago, WHMCS John said: Hi @zomex, Please also copy the viewcart.tpl template into your child order form template. In order to have a custom checkout.tpl, you must bring over the viewcart.tpl as well due to the inclusion of this template within it. This has always been the case with child order form templates. Thanks, at least I can proceed now. With that said it's a real shame that includes are not handled in the same way as assets. I have not needed to make any edits to viewcart.tpl, now I need keep a copy in order to handle checkout.tpl. This is still something that should be changed as the solution is a workaround more than anything. 0 Quote Link to comment Share on other sites More sharing options...
zomex Posted January 15, 2021 Author Share Posted January 15, 2021 For example I needed to edit linkedaccounts.tpl of my custom cart, instead of just duplicating the file and editing it without my cart I also need to edit the include path within checkout.tpl. Would be great to see includes handled the same as assets and check whether the file exists within the child theme. 0 Quote Link to comment Share on other sites More sharing options...
J-B Posted February 11, 2021 Share Posted February 11, 2021 Wow, wow, wow ... still not fixed in 8.1.1 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.