| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
Re-order modules on the sidebar | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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:
__________________
X-Cart Business 5.1.6 |
|||||||
#2
|
|||||||||
|
|||||||||
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. |
|||||||||
#3
|
|||||||
|
|||||||
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 |
|||||||
#4
|
|||||||||
|
|||||||||
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. |
|||||||||
#5
|
|||||||||
|
|||||||||
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:
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! |
|||||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|