News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Cart Lightbox - code

Started by virtueb, June 20, 2013, 12:55:56 PM

Previous topic - Next topic

virtueb

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>'

jenkinhill

That code comes from components/com_virtuemart/assets/js/facebox.js  and the template is components/com_virtuemart/views/cart/tmpl/padded.php
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

virtueb

I can't found this: padded.php

jenkinhill

Are you using an old VM version? Or looking in the wrong directory?
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

virtueb

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]

jjk

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?
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

virtueb

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]

jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

virtueb

I installed stable version, but without this file...

jjk

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]
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations