Jump to content

Child Cart issues with checkout.tpl


zomex

Recommended Posts

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.

Link to comment
Share on other sites

 

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.

Link to comment
Share on other sites

  • WHMCS Support Manager

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • WHMCS Support Manager

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated