Antonin Posted September 27, 2011 Posted September 27, 2011 Hi, Where to set the width of the left column? Where to set the width of the main/center panel/padd where my products are displayed. It is too narrow. I need to have it wider. Thanks in advance. Antonin
multimixer Posted September 28, 2011 Posted September 28, 2011 What version of osCommerce do you have? My community profile | Template system for osCommerce - New: Responsive | Feedback channel
Antonin Posted September 28, 2011 Author Posted September 28, 2011 Oh, excuse me. I have the 2.3.1 Thank you
multimixer Posted September 28, 2011 Posted September 28, 2011 You can read the topics here and here My community profile | Template system for osCommerce - New: Responsive | Feedback channel
Antonin Posted September 28, 2011 Author Posted September 28, 2011 Thank you, George. Unfortunately I have to disturb you again. Somehow, it doesn't work. Look please at these changes that I have made. What do you reckon, what is wrong? As a result of my doing no column and no container is to be seen anymore. Only the top of the page. Here is my function settings <?php class oscTemplate { var $_title; var $_blocks = array(); var $_grid_container_width = 24; var $_grid_content_width = 16; var $_grid_left_column_width = 4; var $_grid_right_column_width = 4; function oscTemplate() { $this->_title = TITLE; } function setGridContainerWidth($width) { $this->_grid_container_width = $width; } function getGridContainerWidth() { return $this->_grid_container_width; } function setGridContentWidth($width) { $this->_grid_content_width = $width; } function getGridContentWidth() { return $this->_grid_content_width; } function setGridLeftColumnWidth($width) { $this->_grid_left_column_width = $width; } function getGridLeftColumnWidth() { return $this->_grid_left_column_width; } function setGridRightColumnWidth($width) { $this->_grid_right_column_width = $width; } function getGridRightColumnWidth() { return $this->_grid_right_column_width; } Here is my template_top.php: <?php $oscTemplate->buildBlocks(); if (!$oscTemplate->hasBlocks('boxes_column_left')) { $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridLeftColumnWidth()); } if (!$oscTemplate->hasBlocks('boxes_column_right')) { $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridRightColumnWidth()); } ?> And this is the template_bottom.php: <?php if ($oscTemplate->hasBlocks('boxes_column_left')) { ?> <div id="columnLeft" class="grid_<?php echo $oscTemplate->getGridLeftColumnWidth(); ?> pull_<?php echo $oscTemplate->getGridContentWidth(); ?>"> <div><?php echo $oscTemplate->getBlocks('boxes_column_left'); ?></div> </div> <?php } if ($oscTemplate->hasBlocks('boxes_column_right')) { ?> <div id="columnRight" class="grid_<?php echo $oscTemplate->getGridRightColumnWidth(); ?>"> <div><?php echo $oscTemplate->getBlocks('boxes_column_right'); ?></div> </div>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.