Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

NEW xMenus - The Ultimate Menu Manager for X-Cart

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #71  
Old 02-27-2015, 02:53 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: NEW xMenus - The Ultimate Menu Manager for X-Cart

I personally think stickUp, is overkill. I can achieve the same effect with 5-6 lines of jQuery code. If you are looking for an example see http://xcartnext.com

Code:
/* * Floating Menu */ var $menu = $('#main-wrapper'); menuOffsetTop = $menu.offset().top; $(document).bind('ready scroll', function () { var docScroll = $(this).scrollTop(); if (docScroll >= menuOffsetTop - 65) { $('#page').addClass('fixed_menu'); } else { $('#page').removeClass('fixed_menu'); } });
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #72  
Old 02-27-2015, 07:08 PM
 
anandat anandat is offline
 

X-Adept
  
Join Date: Jan 2004
Posts: 914
 

Default Re: NEW xMenus - The Ultimate Menu Manager for X-Cart

Quote:
Originally Posted by totaltec
I personally think stickUp, is overkill. I can achieve the same effect with 5-6 lines of jQuery code. If you are looking for an example see http://xcartnext.com

Code:
/* * Floating Menu */ var $menu = $('#main-wrapper'); menuOffsetTop = $menu.offset().top; $(document).bind('ready scroll', function () { var docScroll = $(this).scrollTop(); if (docScroll >= menuOffsetTop - 65) { $('#page').addClass('fixed_menu'); } else { $('#page').removeClass('fixed_menu'); } });
Thanks Mike
Can you please tell me in which file I need to add above code to achieve StickUp for Xmenu?
__________________
X-Cart: 4.7.7 LIVE
Skin:Ultra by xcartmods.co.uk
X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9)
---------------
Server: Linux
php: 5.3
mysql: 5.0.89
----------------
Reply With Quote
  #73  
Old 02-27-2015, 08:10 PM
 
xtech xtech is offline
 

X-Adept
  
Join Date: Jun 2010
Posts: 605
 

Default Re: NEW xMenus - The Ultimate Menu Manager for X-Cart

Thank you mike.Please let me where to add this code in order to achieve that?
__________________
X-cart Platinum
4.6.1
Reboot template
Reply With Quote
  #74  
Old 02-28-2015, 08:36 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: NEW xMenus - The Ultimate Menu Manager for X-Cart

I don't have Xmenus, so it is hard for me to answer, but I will better explain my code above. Your implementation will be different depending on the names of your container classes and your existing CSS styles.

The basic necessity for a fixed or "sticky" menu is the CSS style position fixed.

For instance, consider this code:
Code:
div.menu { position: relative; } .fixed_menu div.menu { position: fixed; z-index: 9999; }

So as you see in my JavaScript above, I am assigning a variable to the container element of the menu, the recording it's offset from the top of the page. Next I bind a function to the scroll event. If the scroll level is greater than the defined offset, I add a class of "fixed_menu" to the containing page element. This allows me to write any CSS I want for the menu itself. When I want it to be "sticky", I can use ".fixed_menu" in my CSS hierarchy. Usually besides styling the menu to be wider and fixed, I also like to assign an opacity level so it is partially translucent. Then I take away the translucent effect on hover.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #75  
Old 03-05-2015, 11:39 AM
 
jo_Z13 jo_Z13 is offline
 

Member
  
Join Date: Aug 2006
Posts: 26
 

Default Re: NEW xMenus - The Ultimate Menu Manager for X-Cart

I have xMenus on my site - can someone tell me how I can center the menu at the top of the page? It's currently sitting to the left.
__________________
josie

ver. 4.7.7
ReBoot
CDSEO Pro
Reply With Quote
  #76  
Old 06-26-2015, 01:25 AM
 
suehamil suehamil is offline
 

Advanced Member
  
Join Date: Mar 2014
Posts: 96
 

Default Re: NEW xMenus - The Ultimate Menu Manager for X-Cart

Hi Josie
Not sure if this is the right way but I did get it to work by enclosing the xpos in a div and giving it an id then adding this css to the theme css file

<div id="ptpromo">{$xmr_pos_2}</div>

then in skin/common_files/modules/TXS_XMenus_R/Menu theme/themeVariant.css

#ptpromo ul{
width:100%;
margin:0 auto;
text-align:center;
}
#ptpromo ul li a span{
color:#014d90;
}

However in the latest version of the site it's not working.

here it is working (The white menu with the same day dispatch etc)
http://www.poshtights.com/PTnew/home.php?shopkey=singap


Hope that's some help
Sue
__________________
X-Cart DB Version: 4.7 GOLD
3rd Party Addons:
XMenus Responsive
XBanners2
Skin: Fashion Walk
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:44 AM.

   

 
X-Cart forums © 2001-2020