| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Green drop down info bar | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Green drop down info bar
This is in reference to the annoying green box that shows up at the top of the website when you add something to cart or do other things (as a normal user browsing and using the site) it says things like "product has been added to your cart" and so on.
Is there any way to change its color from green or to stop it showing up completely? The green box just doesn't go with my site theme at all. Even if i could just change it to white that would be 100% better. Thanks in advance!
__________________
X-Cart Business 5.3.6.8 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Green drop down info bar
You should decorate the \XLite\Controller\Customer\Cart::processAddItemSuc cess() method from your custom module and make it do nothing (check how Add2CartPopup module does the same thing) - this will disable the "product has been added" top message completely.
However, there are other messages that may appear as a green top message. You can override the CSS rules for "#status-messages .info" selector and change the colours to yours from either a custom module, or by using Theme Tweaker module (Look & Feel -> Custom CSS).
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
#3
|
|||||||
|
|||||||
Re: Green drop down info bar
Appreciate you taking the time to reply!
I'll give that a try.
__________________
X-Cart Business 5.3.6.8 |
|||||||
#4
|
|||||||
|
|||||||
Re: Green drop down info bar
How can I get the green box removed at the top? It is interrupting and not necessary. I can't figure out the CSS to remove that, I have no clue how to "decorate" this...
__________________
X-Cart 5.4.1.39 Live PHP 7.4.33 5.5.5-10.3.38-MariaDB MariaDB Apache 2.4 CENTOS 7.8 64Bit Single Quad-Core E3-1241v3 3.4Ghz 8M 1600 w/ HT 32GB RAM 2x 512GB Samsung 850 Pro SSD RAID 1 |
|||||||
#5
|
|||||||
|
|||||||
Re: Green drop down info bar
I also tried to change the color to no avail so just gave up and started working on other things instead. I'm not sure how to use the Look and Feel CSS as there is no reference to #status-messages .info in there
__________________
X-Cart Business 5.3.6.8 |
|||||||
#6
|
|||||||
|
|||||||
Re: Green drop down info bar
The box only pops up for a certain amount of time then disappears, making the code hard to inspect. I don't know why it needs to tell someone, again, that items have been added to the cart…they know that already.
__________________
X-Cart 5.4.1.39 Live PHP 7.4.33 5.5.5-10.3.38-MariaDB MariaDB Apache 2.4 CENTOS 7.8 64Bit Single Quad-Core E3-1241v3 3.4Ghz 8M 1600 w/ HT 32GB RAM 2x 512GB Samsung 850 Pro SSD RAID 1 |
|||||||
#7
|
|||||||||
|
|||||||||
Re: Green drop down info bar
The easiest way is creating a small custom module and making the \XLite\Controller\Customer\Cart::processAddItemSuc cess() method return false from there.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#8
|
|||||||
|
|||||||
Re: Green drop down info bar
I am not a module developer, I guess I'll just learn to live with this annoying feature.
__________________
X-Cart 5.4.1.39 Live PHP 7.4.33 5.5.5-10.3.38-MariaDB MariaDB Apache 2.4 CENTOS 7.8 64Bit Single Quad-Core E3-1241v3 3.4Ghz 8M 1600 w/ HT 32GB RAM 2x 512GB Samsung 850 Pro SSD RAID 1 |
|||||||
#9
|
|||||||
|
|||||||
Re: Green drop down info bar
Here is how to hide it.
Go to "Look & Feel" -> "Custom JS", enable it and add the following code: Code:
Looks so much better with out it! Now you just see the item fly into the cart with out the big green box telling you it just went it the cart lol. Just so you know it hides it for everything though including errors.
__________________
X-Cart Business 5.3.6.8 Last edited by qualiteam : 06-04-2017 at 10:42 PM. |
|||||||
|
#10
|
|||||||
|
|||||||
Re: Green drop down info bar
I was going to kill that because I use the pop-up module instead. However, I just found out from a customer that if you use a pop-up notification that something is in the cart and a visit your site with a mobile device, it takes up half the mobile device's screen and you can't escape from it, making your site basically useless for mobile devices. So in retrospect, the green thing is better than using pop-up instead.
__________________
X-Cart 5.4.1.39 Live PHP 7.4.33 5.5.5-10.3.38-MariaDB MariaDB Apache 2.4 CENTOS 7.8 64Bit Single Quad-Core E3-1241v3 3.4Ghz 8M 1600 w/ HT 32GB RAM 2x 512GB Samsung 850 Pro SSD RAID 1 |
|||||||
|
|||
X-Cart forums © 2001-2020
|