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

Re-order modules on the sidebar
 
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 10-06-2014, 11:34 AM
 
haleystudio haleystudio is offline
 

Member
  
Join Date: Oct 2014
Posts: 14
 

Default Re-order modules on the sidebar

I'd like to move the modules around on the sidebar.

Site in question: http://7sorrowsrosaries.com/

Current order:
  • Categories
  • New Arrivals
  • Facebook
Desired order:
  • Categories
  • Facebook
  • New Arrivals
I have a lot of experience in X-cart 4, but this is my first with X-cart 5... so different...
__________________
X-Cart Business 5.1.6
Reply With Quote
  #2  
Old 10-06-2014, 02:30 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

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

Default Re: Re-order modules on the sidebar

I think you are in some trouble if you took this on without XC5 experience. Its going to be a big uphill journey trying to understand.

I'll do my best to help get you up to speed. First you need to create a module. Do you have a custom module for the client created yet? If not follow this tutorial: http://xcartguru.com/tutorials/x-cart-5-tutorials/building-a-custom-skin-in-x-cart-5/

It teaches you how to build the bones of a custom skin which is also a module. Get that done, then you will have a place to start from.
__________________
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
  #3  
Old 10-06-2014, 03:29 PM
 
haleystudio haleystudio is offline
 

Member
  
Join Date: Oct 2014
Posts: 14
 

Default Re: Re-order modules on the sidebar

Thanks for your reply! I will read the link soon.

Yes, I already have a custom skin started. The facebook feed is not a module I created, but it's one that's installed and I was able to customize the CSS for it. All 3 sidebar sections are working (as you can see on the site)... I just want to change the order.
__________________
X-Cart Business 5.1.6
Reply With Quote
  #4  
Old 10-06-2014, 03:56 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

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

Default Re: Re-order modules on the sidebar

Okay great, well then you have a nice headstart. To change the order you first need to determine how the sections are being added to the sidebar list. They could be assigned directly in the template, or they could be assigned in the php code of the module. Since the Facebook section is created by a module already, I would start there. One change to the weight of this section could easily place it higher in the list.

Each template that gets assigned to a list has a weight, decreasing the amount of weight for the Facebook template will move it higher in the sidebar list. Can you determine how the Facebook template is getting assigned? In the template code, or in the PHP?
__________________
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
  #5  
Old 10-14-2014, 06:20 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,429
 

Default Re: Re-order modules on the sidebar

Hi haleystudio!

Great to hear you decided to write a little mod for X-Cart 5. In order to see, what classes/templates are assigned to the sidebar, you can run a simple MySQL query:

Code:
select * from xc_view_lists where list="sidebar.first" order by weight;

Please, run this query and publish the output here.

Tony.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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 03:08 AM.

   

 
X-Cart forums © 2001-2018