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

More Effective Manufacturer view on Product Detail Page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #61  
Old 01-13-2010, 12:29 PM
  Dan.roh's Avatar 
Dan.roh Dan.roh is offline
 

eXpert
  
Join Date: Jul 2008
Posts: 397
 

Default Re: More Effective Manufacturer view on Product Detail Page

Gizmo,

Changing the size of container makes no difference, even if you were to set the container to be 300px this still does not regulate what happens inside the container. If your title in the first box is 1 line and in the second box the title is 3 lines this causes everything in all the boxes to not line up with each other.

1 of 2 things needs to happen, either the product image and price must always align bottom somehow? or the same code needs to apply that regulate the product decription as in your second code that you have posted but only it needs to apply to product title.


Quote:
Originally Posted by gizmo
For now if you have long titles just increase > height:160px; (Controls size of product container, adjust this if you like)....

Like I said this is provided "as is" by the original poster and others have tried adding other things along the way, and to me is still far from ideal, but that being said it does do certain things..
All I have done at this stage is modify appearance
__________________
Regards

Dan


Xcart version:
4.1.10 GOLD
Reply With Quote
  #62  
Old 01-13-2010, 01:05 PM
  gizmo's Avatar 
gizmo gizmo is offline
 

X-Adept
  
Join Date: Jan 2005
Location: Crawley : UK
Posts: 618
 

Default Re: More Effective Manufacturer view on Product Detail Page

I did say "For Now" and also
Quote:
Like I said this is provided "as is" by the original poster and others have tried adding other things along the way, and to me is still far from ideal, but that being said it does do certain things..
All I have done at this stage is modify appearance

I was just trying to help you a little, sometimes getting things spot on can take time, at the moment I have very little.

Maybe someone can come up for a great mod for this.
All The Best
__________________
Thank You - Alan
Don't be like me, and keep saying "Nearly did it" go do it!!
Version: 4.4.4 Gold -
Reply With Quote

The following user thanks gizmo for this useful post:
Dan.roh (01-13-2010)
  #63  
Old 01-13-2010, 01:13 PM
  Dan.roh's Avatar 
Dan.roh Dan.roh is offline
 

eXpert
  
Join Date: Jul 2008
Posts: 397
 

Default Re: More Effective Manufacturer view on Product Detail Page

Thanks Gizmo,

I totally understand. I have played around with it a bit but will have more time over the weekend. I had the same problem with my product display, but BCS sorted that. Will try and find the file and see if I can implement the same thing on this mod.

Thanks for your help so far

Quote:
Originally Posted by gizmo
I did say "For Now" and also

I was just trying to help you a little, sometimes getting things spot on can take time, at the moment I have very little.

Maybe someone can come up for a great mod for this.
All The Best
__________________
Regards

Dan


Xcart version:
4.1.10 GOLD
Reply With Quote
  #64  
Old 01-13-2010, 01:24 PM
  gizmo's Avatar 
gizmo gizmo is offline
 

X-Adept
  
Join Date: Jan 2005
Location: Crawley : UK
Posts: 618
 

Default Re: More Effective Manufacturer view on Product Detail Page

Yeek, My reply looking back sounded harsh, wasn't meant that way....

Yep unfortunately sometimes to have things right, it pays, quite literally to do just that to get it the way you want.
As they say "you pay for what you get"
__________________
Thank You - Alan
Don't be like me, and keep saying "Nearly did it" go do it!!
Version: 4.4.4 Gold -
Reply With Quote
  #65  
Old 01-17-2010, 10:04 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: More Effective Manufacturer view on Product Detail Page

Quote:
Originally Posted by Dan.roh
Gizmo, this is great! But I will need a bit of code to regulate the lenth of my product title because this is what is causing it to still throw everything of line with each other. Maybe a line or something that can be set to display on the same spot regardless of how long your product title is. Any ideas?

In your manufacturerinfo.tpl find the part that is bold below...

<table width="100%" cellpadding="0" cellspacing="0">
<tr > {foreach from=$manufacturerinfos item=manufacturerinfo }
<td width="20%" valign="top"><div style="border:1px solid #eee;padding:5px;margin:5px; text-align:center; height:160px;"> <div style="padding-bottom:5px;"><a href="product.php?productid={$manufacturerinfo.pro ductid}&amp;cat={$cat}&amp;manufacturerinfo"> <font class="ProductTitle">{$manufacturerinfo.product}</font></a></div><br />
<a href="product.php?productid={$manufacturerinfo.pro ductid}&amp;cat={$cat}&amp;manufacturerinfo"> {include file="product_thumbnail.tpl" image_x=50 productid=$manufacturerinfo.productid product=$manufacturerinfo.product} </a><br />

<font class="ProductPrice"> Our Price:&nbsp; {include file="currency.tpl" value=$manufacturerinfo.price}</font><br />
{if $manufacturerinfo.list_price gt 0} <font class="MarketPrice"> Market Price:&nbsp;<s>{include file="currency.tpl" value=$manufacturerinfo.list_price}</s> </font> <br />
{/if}

</div></td>
{/foreach} </tr>
</table>

... and change it to...

Code:
<div class="manufacturerinfo-title"><a href="product.php?productid={$manufacturerinfo.productid}&amp;cat={$cat}" class="product-title">{$manufacturerinfo.product|truncate:64:" ":true}</a></div>

and add this to your main.css

Code:
.manufacturerinfo-title { height: 40px; } .manufacturerinfo-title a:link, .manufacturerinfo-title a:visited, .manufacturerinfo-title a:hover, .manufacturerinfo-title a:active { color: #000; font-weight: bold; font-size: 12px; text-decoration: none; } .manufacturerinfo-title a:hover { color: #1206FE; text-decoration: underline; }

You will probably want to adjust colors, font sizes, etc. Do this by modifying the manufacturerinfo-title class. You can adjust the height of just the title by changing height: 40px; to whatever works for you.

Edit: In 4.1.x you don't have a main.css. Use skin1.css or skin1_c.css (whichever you are using).
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote

The following user thanks JWait for this useful post:
Dan.roh (01-17-2010)
  #66  
Old 01-17-2010, 10:20 AM
  Dan.roh's Avatar 
Dan.roh Dan.roh is offline
 

eXpert
  
Join Date: Jul 2008
Posts: 397
 

Default Re: More Effective Manufacturer view on Product Detail Page

Thanks JWait,

Very kind of you to help, but I have given up on Friday and past it over to BCS. They are going to completely revamp it to exactly the way I want it.

Your time was not wasted as I am sure other people would also like to know, thanks
__________________
Regards

Dan


Xcart version:
4.1.10 GOLD
Reply With Quote
  #67  
Old 02-07-2010, 07:33 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: More Effective Manufacturer view on Product Detail Page

Dan.roh,

Actually I gave up on this project because it tends to display not only the product the customer is looking at, but sometimes "repeats" products displayed as well....

Like for instance, if the customer is looking at "Product1" it displays...

Product1 - Product2 - Product2 - Product3

I may get back into it when I have more time, but with the uncertainty of how x-cart is going to proceed with PCI/PAA compliance it is on the back burner.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #68  
Old 02-07-2010, 08:43 AM
  Dan.roh's Avatar 
Dan.roh Dan.roh is offline
 

eXpert
  
Join Date: Jul 2008
Posts: 397
 

Default Re: More Effective Manufacturer view on Product Detail Page

I understand your frustration, but in my case I am happy because mine very seldom repeat because I have alot of products under a manufacturer.

I got mine all sorted now. BCSE came to my rescue! I even got it set up in my admin that I can disable the tab under certain manufacturers if there are not enough products under that manufacturer.




Quote:
Originally Posted by JWait
Dan.roh,

Actually I gave up on this project because it tends to display not only the product the customer is looking at, but sometimes "repeats" products displayed as well....

Like for instance, if the customer is looking at "Product1" it displays...

Product1 - Product2 - Product2 - Product3

I may get back into it when I have more time, but with the uncertainty of how x-cart is going to proceed with PCI/PAA compliance it is on the back burner.
__________________
Regards

Dan


Xcart version:
4.1.10 GOLD
Reply With Quote
  #69  
Old 12-14-2012, 09:40 PM
 
anandat anandat is offline
 

X-Adept
  
Join Date: Jan 2004
Posts: 914
 

Default Re: More Effective Manufacturer view on Product Detail Page

This is really nice mod.
But it's not working with x-cart 4.5.4 gold plus !

Has any one successfully installed it with 4.5.4 ? then please share the code here or can any one familiar with php can please make this mod work with 4.5.4 ?

Thanks in advance
__________________
X-Cart: 4.7.7 LIVE
Skin:Ultra by xcartmods.co.uk
X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9)
---------------
Server: Linux
php: 5.3
mysql: 5.0.89
----------------
Reply With Quote
  #70  
Old 01-09-2013, 11:58 PM
  RichieRich's Avatar 
RichieRich RichieRich is offline
 

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

Default Re: More Effective Manufacturer view on Product Detail Page

Also looking for 4.5.4 gold plus version
__________________
Richard


Ultimate 5.4 testing
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 07:46 AM.

   

 
X-Cart forums © 2001-2020