Make OffCanvas Cart module overridable

3 years 4 months ago
Posts: 67
More
Topic Author
Make OffCanvas Cart module overridable #3570
Hello there,

I would like to ask if you are going to change the off-canvas cart module code overridable.
Currently some of the layout code, js script and css styles are contained in the mod_onepage_offcanvas.php file
for example the layout <div id="canvasdiv: class="uk-offcanvas">
...</div> from lines 439 onwards.
This code should be in /tmpl/default.php (or similar php file) instead, so that one may override it
Is it at all possible?

I am thinking of making some modifications to the offcanvas cart (essentially adding a sticky header with a 'close cart button" to it and making it as large as the mobile viewport on mobile devices; this will allow mobile users to both view the cart in greater detail, but also to have permanent access to the main page of the site via the button).
please let me know your thoughts about this.
Thank you in advance
Giacomo Bruzzo

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

3 years 4 months ago
Posts: 67
More
Topic Author
Make OffCanvas Cart module overridable #3586
Hello there

could you please help me locate the file in the offcanvas cart which adds the close cart icon when the cart is full?

I can only find the file where the close cart icon is added when the cart is empty :
/modules/mod_onepage_offcanvas/tmpl/default.php

with

<div class="uk-panel-box">
<div class="uk-grid">
<div class="uk-width-4-5">
<strong><?php echo JText::_('COM_VIRTUEMART_EMPTY_CART') ?></strong>
</div>
<div class="uk-width-1-5 uk-text-right">
<a class="" href="Javascript:void(0);" onclick="UIkit.offcanvas.hide();"><i class="uk-icon-close"></i></a>
</div>
</div>
</div>

thank you in advance

Giacomo Bruzzo

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

3 years 4 months ago
Posts: 67
More
Topic Author
Make OffCanvas Cart module overridable #3587
SORRY, found it (default_left.php).

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

Time to create page: 0.081 seconds
Powered by Kunena Forum

Latest News from JoomlaPro.com

VMuikit 5 is finally out!

Our next version of our popular VMuikit package is out. This time we have some quite nice new features.

Electroneum Joomla/VirtueMart plugins

JoomlaPro.com are not only web & Joomla enthusiast, we cannot stay away from checking other tech trends as well. The last few years its been hard to miss the crypto/blockchain ...

New plugin: Secure Joomla Login

We have released a new plugin that adds a extra PIN code and a reCaptcha v2 check on Joomlas login. Security is very important on all fronts of a website. One often missed one is ...

We accept PayPal, 2Checkout & Electroneum payments:

We accept PayPal payments    We accept 2checkout payments  electroneum payment


For news and updates please like :