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

Border around products.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 04-06-2009, 09:52 AM
  RichieRich's Avatar 
RichieRich RichieRich is offline
 

X-Adept
  
Join Date: Sep 2004
Location: London, England
Posts: 750
 

Default Re: Border around products.

I have sent private message to website, as it is closed and under developement.
__________________
Richard


Ultimate 5.4 testing
Reply With Quote
  #12  
Old 04-07-2009, 03:26 PM
  alec.thomas's Avatar 
alec.thomas alec.thomas is offline
 

Advanced Member
  
Join Date: Mar 2009
Location: Minnesota, USA
Posts: 78
 

Default Re: Border around products.

Try putting this code into main.css

Code:
.products products-table width-100 .product-cell { border-right-width: thin; border-left-width: thin; border-right-style: solid; border-left-style: solid; border-right-color: #CCCCCC; border-left-color: #CCCCCC; }

if that works, you'll be able to change css to whatever you want to style it. Your template is different from mine and your featured products table doesn't have an id so its a little difficult to control it with css.
__________________
X-Cart Gold v4.2.0 [Linux]
Add-On: X-Magnifier
Altered Cart Add-On: One Page Checkout
Reply With Quote
  #13  
Old 04-07-2009, 05:45 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Border around products.

Quote:
Originally Posted by RichieRich
really appreciate your help and knowledge, what I am after is for the featured products in columns to have a border in between the images, but not on the outside if this makes sense?

For exampe: O | O | O ... where the O is product and the | is seperater

This is difficult because the columns are populated using a foreach loop, which will place the separator at the end of the row as such. O | O | O |

There maybe a way to count the array index and leave it out for every third product.

Will see if I can figure it out while I backup my drives.
__________________
xcart 5.1.2
Reply With Quote
  #14  
Old 04-08-2009, 01:22 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Border around products.

fast borders mod (developed for our templates in 15 minutes)

1. add in the end of your main.css
Code:
.products-table{border-left:1px solid #d7e8ff;border-top:1px solid #d7e8ff} .products-table td.product-cell {border-right:1px solid #d7e8ff} .products-table .last-row .product-cell{border-bottom:#d7e8ff solid 1px}
2. open customer/main/products_t.tpl and replace
Code:
<tr> {foreach from=$row item=product} {if $product} <td class="product-cell product-cell-buynow"> {if $config.Appearance.buynow_button_enabled eq "Y"} {include file="customer/main/buy_now.tpl"} {else} &nbsp; {/if} </td> {/if} {/foreach} </tr>
with
Code:
<tr class="last-row"> {foreach from=$row item=product} {if $product} <td class="product-cell product-cell-buynow"> {if $config.Appearance.buynow_button_enabled eq "Y"} {include file="customer/main/buy_now.tpl"} {else} &nbsp; {/if} </td> {/if} {/foreach} </tr>
(actually just add class to the tr element in the first line of code above)
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #15  
Old 04-08-2009, 01:30 AM
  RichieRich's Avatar 
RichieRich RichieRich is offline
 

X-Adept
  
Join Date: Sep 2004
Location: London, England
Posts: 750
 

Default Re: Border around products.

Victor, thank you this seems to have a full border around the products which looks great, but not what I am looking for.

I think Ashley has worked out the method, to either use every third array, or not on the end of the table
__________________
Richard


Ultimate 5.4 testing
Reply With Quote
  #16  
Old 04-08-2009, 01:42 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Border around products.

I can't get what kind of borders you need but I can also give common recipe:

just add name to foreach f.e.
foreach name=prods

then youll be able treat it like this:
Code:
class="item {if $smarty.foreach.prods.first}left-item{else}{if $smarty.foreach.prods.last}right-item{/if}{/if}"

after adding this to css:
Code:
.item{border:#000 1px solid} .left-item{border-left:0px none} .right-item{border-right:0px none}
you will get no borders for left and right element
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #17  
Old 04-08-2009, 01:45 AM
  RichieRich's Avatar 
RichieRich RichieRich is offline
 

X-Adept
  
Join Date: Sep 2004
Location: London, England
Posts: 750
 

Default Re: Border around products.

ok that sounds perfect, will give it a try, thanks
__________________
Richard


Ultimate 5.4 testing
Reply With Quote
  #18  
Old 06-21-2009, 11:08 AM
 
mrerotic mrerotic is offline
 

eXpert
  
Join Date: Feb 2009
Posts: 264
 

Default Re: Border around products.

RichieRich - how did you achieve this? I'm really interested. Is there anyway you can send me your url so I can take a look at it too?

Thanks.
__________________
x-cart 4.2.3
AlteredCart Smart Search
Auto Featured Products Mod (Personal Mod)
BCSE Product Importer Pro & Drop Shipper Pro
CDSEO Pro
CMS EZRecommends
EE slider login (Personal Mod)
Next Prev Link Mod (Customized)
ShadowBox Detailed Images (Personal Mod)
Shop By Price (Customized)
Social Media (Personal Mod)
Switch Layout View (Personal Mod)
Special Offers
Testimonials (Personal Mod)
Whats New (Customized)
Reply With Quote
  #19  
Old 06-24-2009, 11:43 PM
 
mrerotic mrerotic is offline
 

eXpert
  
Join Date: Feb 2009
Posts: 264
 

Default Re: Border around products.

Richie can you or will you provide this?
__________________
x-cart 4.2.3
AlteredCart Smart Search
Auto Featured Products Mod (Personal Mod)
BCSE Product Importer Pro & Drop Shipper Pro
CDSEO Pro
CMS EZRecommends
EE slider login (Personal Mod)
Next Prev Link Mod (Customized)
ShadowBox Detailed Images (Personal Mod)
Shop By Price (Customized)
Social Media (Personal Mod)
Switch Layout View (Personal Mod)
Special Offers
Testimonials (Personal Mod)
Whats New (Customized)
Reply With Quote
  #20  
Old 01-03-2012, 09:58 AM
 
xtech xtech is offline
 

X-Adept
  
Join Date: Jun 2010
Posts: 605
 

Default Re: Border around products.

I want to individual product border in category,featured product and manufacturer page.I want to get this for 4.4.2 Pro.

How to achieve that?
__________________
X-cart Platinum
4.6.1
Reboot template
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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

   

 
X-Cart forums © 2001-2020