Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

template layout management


Paulblo

Recommended Posts

Hello,

 

I would love to see a way to have more control over the look and feel of the store.

 

Stores with 10 products look pretty stupid with all their products in the "Bestsellers" box.

 

It would be nice if their was a template manager that could enable/disable, or add/edit/del boxes to make the store more simple or complex if needed.

 

It would be very clean to be able to create your own skin or template and include boxes using code snippets, function calls, XML, or include directives.

 

I would be very interested in helping this effort. If this has already been done, please let me know. I would love to help anywhere I can.....

Link to comment
Share on other sites

I thought about this a bit myself. My idea would be to add a table to the database with the box name, a setting to put the box in the left, right or both columns, and a number for the position. From there just put a quick query in column_left and column_right to get what boxes need to be there, sort it ascendingly, and run a switch through an iterative loop to put in the boxes. Add a handy admin page and you're good to go :)

"It's a damn poor mind that can only think of one way to spell a word."

-- Andrew Jackson

Link to comment
Share on other sites

I take back some of that logic.. no switch should be needed if we have box names already, just a loop to put them in there

"It's a damn poor mind that can only think of one way to spell a word."

-- Andrew Jackson

Link to comment
Share on other sites

Better yet, the table would just hold the box name, column_left position, and colum_right position. This way if for some (ungodly) reason we wanted a box in both columns it could be in different positions on either side.

 

(I really wish I could just edit my original post for all this.. I also wish I could think things through a bit more before posting. :) )

"It's a damn poor mind that can only think of one way to spell a word."

-- Andrew Jackson

Link to comment
Share on other sites

I do the same thing all of the time. :)

 

I think it would be nice to have a list of pre-configured content boxes eg. Bestsellers, Shopping Cart. Basically the ones that come already... It would be nice to be able to enable or disable, or move them them left or right up or down.

 

Then have the ability to build your own via a form in the admin. It could be very simple like php-nuke, where you just add in the html. At least we should start something simple and move from there. :lol:

 

I would like to get more heads in on this, and divide this up into smaller tasks.

 

To be honest I havn't dug into the template structure all that much, an experienced osc template designer might be able to shed some light on the basic structure and what is dependant to the store, and what is not.

 

Any thoughts? :?:

Link to comment
Share on other sites

Linda,

 

Would you mind if the column controller was modified for this purpose? e.g. the custom boxes, etc -- all from the admin??

 

This could be a project for my CVS ...

Link to comment
Share on other sites

It's actually on my list of things to do to make this a fully selectable list from a table with box_name on/off left/right sort_order then throw it in an array or what have you and draw the boxes based on the table settings.

 

If that is how you are planning on doing it ... go for it.

 

If not, go for it any way ... and maybe your's will be more functional than mine when I am done :shock:

Link to comment
Share on other sites

... list from a table with box_name on/off left/right sort_order then throw it in an array or what have you and draw the boxes based on the table settings ...

Something similar, yes. But

... ability to build your own via a form in the admin. It could be very simple like php-nuke, where you just add in the html ...

Having this functionality could be useful as well.

 

... more functional than mine ...

Rather than competing, maybe we share changes (naturally). But you will probably get yours done faster -- *grr* stupid exams.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...