Extension list

yootheme

ecommerce

joomla

Skip to main content

List of all our extensions

Create an account

Template Override for pcuikit_onepage

Template Override for pcuikit_onepage was created by toby07801

Posted 1 month 1 week ago #1094
I'm trying to create a small override for the One Page Checkout template to make the right column "sticky" on scroll down, in cases where the list of products is longer (maybe a good option to incorporate into the main build?) so that the checkout and confirm order button always remains visible on the right.

I'm trying to follow the instructions here, without luck as it seems to not pick up my override of the default.php file.
jpro.studio/support/documentation/pcuikit?start=24

Are you sure these instructions are correct? For example, the documentation says to copy the file to override into "\templates\yootheme\html\plg_content_pcuikit_onepage", but the plugin is a system plugin, not a content plugin, so should it not be copied to "\templates\yootheme\html\plg_system_pcuikit_onepage"?

Secondly, the image in the documentation seems to put all the original files which are in a "\cart\tmpl\" substructure into the "\templates\yootheme\html\plg_content_pcuikit_onepage" without that same "\cart\tmpl\" substrcture on the override side. Is that correct?

Either way, I have unfortunately not been able to make the override work by placing it into any of these cases that I have tried:

- \templates\yootheme\html\plg_content_pcuikit_onepage\default.php (as per documentation)
- \templates\yootheme\html\plg_content_pcuikit_onepage\cart\tmpl\default.php
- \templates\yootheme\html\plg_system_pcuikit_onepage\cart\tmpl\default.php

Can you please confirm the exact folder structure that the default.php needs to go into please to become the active template override, and also whether I need to copy all the other .php files in the original tmpl folder there too, or if it is sufficient to just place only the modified default.php file there on its own?

Thank you!
Last Edit:1 month 1 week ago by toby07801
Last edit: 1 month 1 week ago by toby07801.

Please Log in or Create an account to join the conversation.

Replied by toby07801 on topic Template Override for pcuikit_onepage

Posted 1 month 1 week ago #1095
In case it helps anyone else, this is the override in default.php:
Code:
    <div id="leftdiv" class="uk-width-1-1 <?php echo $leftdiv_width; ?> uk-width-1-1@s uk-border-rounded">         <?php echo $this->loadTemplate('left'); ?>     </div>     <div id="right_div" class="tm-sidebar-a uk-width-1-1 <?php echo $rightdiv_width; ?> uk-width-1-1@s">         <div class="checkout-sticky">             <?php echo $this->loadTemplate('right'); ?>         </div>     </div>

Then add this CSS:
Code:
@media (min-width: 960px) {     #right_div .checkout-sticky {         position: sticky;         top: 130px;         align-self: start;     } }
Last Edit:1 month 1 week ago by toby07801
Last edit: 1 month 1 week ago by toby07801.

Please Log in or Create an account to join the conversation.

Time to create page: 0.297 seconds
Powered by Kunena Forum