Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Grid View Question


Recommended Posts

Does anyone know how to show the product model number and also manufacturer in the "grid view".

They show in the list view, but I'd also like them in the grid view.

I believe this may require just CSS changes and not PHP...

Help!

Link to comment
Share on other sites

The stuff that only displays in list is hidden in grid by this rule:

.grid-group-item .list-group-item-text {
    display: none;
}

If you set display for the whole of this class you will also see description in grid.

To pick off individual bits to show, you'll need to be more specific, eg. for model

.dl-horizontal.list-group-item-text {
    display: block;
}

in your user.css

But if that ends up showing other stuff that you didn't want to, you'll have to add something so you can target it exactly. Either a simple change to the php that outputs the grid, or a fancy bit of javascript that avoids you changing core code.

Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released.

Looking for a payment or shipping module? Maybe I've already done it.

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Link to comment
Share on other sites

  • 5 weeks later...

I want to have the model number of the product display from the left on both list and grid. At the moment it just floats around in the middle and looks lost!

The model text is achived by changing text-align to left, But the actual part number is proving stubborn? Unable to get it to move over, anyone know the right css for this?

.dl-horizontal dt {
    float: left;
    width: 160px;
    clear: left;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

 

image.png.d17a6ac80734afda8fb9012ca639340b.png

image.png.cc9c7f0e0bd00f0316bed462a593521c.png

 

Link to comment
Share on other sites

ok manged to get both working with this in browser but not in user.css?

.dl-horizontal dt {
    float: left;
    width: 60px;
    clear: left;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;}
    
    
.dl-horizontal dd {
    margin-right: 180px;}

image.png.fa7d9c35346995213e2fb9a4ec7a538d.png

 

Link to comment
Share on other sites

You need to re-implement the following file in a better way, as this file is problematic.

By re-implement I mean change the HTML for each product to include bootstrap code;

<div class="row">
  <div class="col-sm-4">image</div>
  <div class="col-sm-8">description<br>dt list</div>
  <div class="col-xs-6">View Button</div>
  <div class="col-xs-6">Buy Button</div>
</div>
  
  

Something like that anyway.  Experiment until it looks as you want it in both list and grid view.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...