VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: virtueb on June 20, 2013, 12:55:56 PM

Title: Cart Lightbox - code
Post by: virtueb on June 20, 2013, 12:55:56 PM
Where can i edit html/php code of the cart in lightbox? i have found only this:


    <div id="facebox" style="display:none;"> \
      <div class="popup"> \
        <div class="content"> \
        </div> \
        <a href="#" class="close"></a> \
      </div> \
    </div>'
Title: Re: Cart Lightbox - code
Post by: jenkinhill on June 20, 2013, 16:51:18 PM
That code comes from components/com_virtuemart/assets/js/facebox.js  and the template is components/com_virtuemart/views/cart/tmpl/padded.php
Title: Re: Cart Lightbox - code
Post by: virtueb on June 20, 2013, 16:59:06 PM
I can't found this: padded.php
Title: Re: Cart Lightbox - code
Post by: jenkinhill on June 20, 2013, 23:53:03 PM
Are you using an old VM version? Or looking in the wrong directory?
Title: Re: Cart Lightbox - code
Post by: virtueb on June 21, 2013, 07:47:55 AM
My VirtueMart version is: 2.0.20b, i can't find here padded.php, my second question was, it is possible to override facebox.js?

[attachment cleanup by admin]
Title: Re: Cart Lightbox - code
Post by: jjk on June 21, 2013, 08:10:57 AM
Quote from: virtueb on June 21, 2013, 07:47:55 AM
My VirtueMart version is: 2.0.20b, i can't find here padded.php, my second question was, it is possible to override facebox.js?
Note that facebox has been replaced by fancybox in the VM 2.0.21+ versions. What exactly do you want to chance in your lightbox display?
Title: Re: Cart Lightbox - code
Post by: virtueb on June 21, 2013, 08:17:08 AM
Something like on this image and to add a new module position for module "Custom HTML", i need also to style it, also fixed width...

[attachment cleanup by admin]
Title: Re: Cart Lightbox - code
Post by: jenkinhill on June 21, 2013, 11:14:26 AM
I'd wait for the 2.0.22 stable release (very close now) to avoid having to alter this again. I am using 2.0.21 series testing versions (hence padded.php) so if you are in the dev stage have a try with it - http://dev.virtuemart.net/projects/virtuemart/files
Title: Re: Cart Lightbox - code
Post by: virtueb on June 21, 2013, 13:54:17 PM
I installed stable version, but without this file...
Title: Re: Cart Lightbox - code
Post by: jjk on June 21, 2013, 14:42:20 PM
The file padded.php is not used in versions before 2.0.21x. As jenkinhill already suggested you can try i.e. version 2.0.21f, if your shop is not live yet. It has an option for this in the VM configuration.

[attachment cleanup by admin]