News:

Looking for documentation? Take a look on our wiki

Main Menu

customize the ajax popup

Started by alexsai, October 10, 2011, 16:44:42 PM

Previous topic - Next topic

graphos

#15
Friends:

I need to edit the "X" or close button link in the popup. I need it to direct this to the homepage (or any other). I`ve tried changing the code in facebox.js, line 98 (VM2.0.6, J2.5.4)

$.extend($.facebox, {
    settings: {
      opacity      : 0.2,
      overlay      : true,
      loadingImage : 'loading.gif',
      closeImage   : 'closelabel.png',
      imageTypes   : [ 'png', 'jpg', 'jpeg', 'gif' ],
      faceboxHtml  : '\
    <div id="facebox" style="display:none;"> \
      <div class="popup"> \
        <div class="content"> \
        </div> \
        <a href="what I want" class="close"></a> \
      </div> \
    </div>'
    },

But nothing happens!!
What I`m doing wrong??
Help Please!!

Thanks in advance.

Alex

FilipeRuivo

Quote from: lipes on March 28, 2012, 21:01:37 PM
My popup hack has gone with the vm updates....
and now i cant find here is the place or which line to modify the code and remove the links / text:
"Show Cart" / "Continue Shopping" / "The product was added to your cart." / "test1 was added to your cart".

argh :/
Someone could help please?!

With will be better if in future this popup be more custumizable to us ..

You can edit in this file administrator/components/com_virtuemart/helpers/config.php around line 879
$jsVars .= "vmCartText = '". addslashes( JText::_('COM_VIRTUEMART_MINICART_ADDED_JS') )."' ;\n" ;

warningdang

Quote
You can edit in this file administrator/components/com_virtuemart/helpers/config.php around line 879
$jsVars .= "vmCartText = '". addslashes( JText::_('COM_VIRTUEMART_MINICART_ADDED_JS') )."' ;\n" ;

i changed to this
$jsVars .= "vmCartText = '". addslashes( JText::_(' ') )."' ;\n" ;

exhost

#18
So how do you customise the facebox.css which hacking the core?

Mod Edit: Double post removed

bytelord

@exhost Use firebug to examine you site code and css styling: https://forum.virtuemart.net/index.php?topic=102850.0

The changes you want to apply create a facebox css override or if you have any general css file for overriding and paste your changes over there.

Simply.
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!