Hi all!
I tried to figure out it on my own but i didn't find the correct file.
Which file I have to edit for customize the ajax popup that appears after push the "add to cart" button?
( obviusly i don't talk about css styles )
thanks,
Alex
com_virtuemart/controllers/cart.php
/* Load the cart helper
I think thats it
That's it. You are right :)
Thank you very much!
Can I get some more help with this I have found where it is but im not sure what I have to delete to make it stop coming up
Quote from: alexsai on October 10, 2011, 16:44:42 PM
Hi all!
I tried to figure out it on my own but i didn't find the correct file.
Which file I have to edit for customize the ajax popup that appears after push the "add to cart" button?
( obviusly i don't talk about css styles )
thanks,
Alex
Oh this is very interesting.
And if I want to change the graphics, where i have to modify please?
I think you know where :) "
( obviusly i don't talk about css styles )"
I want to change the dimension of the box and the position of overlay.
Please give me an hint.
thank you
Erik
Autoresponse.
facebox.js and facebox.css are the file to modify.
Bye
Erik
Quote from: BanquetTables.pro on October 11, 2011, 00:07:53 AM
com_virtuemart/controllers/cart.php
Thanks this is useful. It seems to be the only way to structure the html of the ajax popup. Shame it does not use the MVC / template override method meaning you have to hack the VM core to style the popup.
Would be great if things like this could fixed in future minor releases ;) thanks for the tip on cart.php
does anyone know how to change the layout?
I want to place the continue shopping button and the show cart button below the messages.
css just won't cut it, and I'm struggling in placing the code just the right way inside the cart controller file...
anyone have a clue??
Hello!
How can I change the link "continue shopping" in popup for remaining in the productdetail's page?
Is it possible?
And the related problem is here http://forum.virtuemart.net/index.php?topic=95666.0
tnks all
Hi.
Where it's possible to edit the position in style of the popup? I saw that the popup is not well centered / align.
I do not like this layout and wanted to change it, if possible... I am thinking of putting an arrow pointing to the shop cart.
<div id="facebox" style="top: 170.9px; left: 442px; ">
thanks for any help!
Quote from: prolipes on February 17, 2012, 01:43:47 AM
Hi.
Where it's possible to edit the position in style of the popup? I saw that the popup is not well centered / align.
I do not like this layout and wanted to change it, if possible... I am thinking of putting an arrow pointing to the shop cart.
<div id="facebox" style="top: 170.9px; left: 442px; ">
thanks for any help!
I thought the centered was fixed in the latest versioon
nice! :)
i'll have to install the latest version..
But I also need to remove some text from the popup... (i think that this popup box it's to small to display so many information)...
I got 2 links (continue shopping and chekout) ... and 2 msgs saying +/- the same thing.. that "the product was added to the shopping cart.."
i think that will be if i could change the popup layout and insert something like this:
(http://hottubrentalstulsa.com/images/curved_arrow.gif)
pointing to the shopping cart website information...
So here a bug, in the JS popup box u get 2 of the same messages
The product was added to your cart. AND
"here goes the productname" was added to your cart.
I want to remove : COM_VIRTUEMART_MINICART_ADDED_JS
where? its not in the cart.php
i want to remove it in the core not in the language file
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 ..
Quick fix on the repetitive "Added product to cart" / "____ Was Added To Cart." I tried deleting various lines in the cart.php with no luck, so ended up just deleting the "Product added to cart" text (COM_VIRTUEMART_CART_PRODUCT_UPDATED=, line 75 or so) in the "en_GB.com_virtuemart.ini file and replaced it with a <br>. Did the same with COM_VIRTUEMART_CART_PRODUCT_UPDATED=, on line 78 or so. A lot quicker than php trial and error for those of us who aren't well versed in it.
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
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" ;
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" ;
So how do you customise the facebox.css which hacking the core?
Mod Edit: Double post removed
@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.