| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to make product text wrap around the image? | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi again guys, I have another issue which is hopefully an easy one... once again I tried searching the forums but I think the search is broken - I either get a million results or none at all...
Anyway basically I want to know if there is a way to make the product text wrap around the image. To illustrate, this is what I have now: http://www.jctech.com.au/got.jpg and this is what I would like: http://www.jctech.com.au/want.jpg This should be a simpel (and common) request... any help is appreciated. thanks! |
|||||||
#2
|
|||||||
|
|||||||
![]() It looks like you are currently using the default 2 column table in product.tpl. If you want the text to wrap around the image you can reduce the table to 1 column and wrap it in a div tag using css in your skin1.css file. The css you might use would look like this:
Code:
__________________
4.1.9 (Linux) Live Store www.thecrackedbook.com Find used books and out of print books. |
|||||||
#3
|
|||||||
|
|||||||
![]() Hi mate, thanks for your help. I added the bit you suggested to the skin1.cs fine, but couldn't find where I can change teh number of columns in product.tpl file. Sorry I know nothing about php...
BTW, the products.tpl file you are referring to, is that the one in main/customer ? thanks again Justin |
|||||||
#4
|
|||||||
|
|||||||
![]() The product.tpl file is in the skin1/customer/main folder. It can be quite a task changing the table layout considering the amount of code in the product.tpl. Knowledge of php is not required to edit the templates. Just some html and maybe a basic understanding of some of the smarty tags which you can research here in the forum. If you want, you can post the code to your product.tpl here and I can help you with your layout.
__________________
4.1.9 (Linux) Live Store www.thecrackedbook.com Find used books and out of print books. |
|||||||
#5
|
|||||||
|
|||||||
![]() I also like to wrap the text around the image. I am working on version 4.1.2. The product.tpl is
Code:
Can you give some directions on using your method? I like the detailed desc and extra fields are all wrapped. Thanks a lot.
__________________
version 4.1.1 |
|||||||
#6
|
|||||||
|
|||||||
![]() Sorry, but I'm having to split this into 2 posts. Here is the code from your product.tpl with just a couple of modifications. All i did was eliminate the cell holding the thumbnail and put the thumnail code into the adjacent cell.
Code:
__________________
4.1.9 (Linux) Live Store www.thecrackedbook.com Find used books and out of print books. |
|||||||
#7
|
|||||||
|
|||||||
![]() Then I went to skin1.css and changed the PImgBox tag from the original code below:
Code:
To this, as well as adding the css for the img itself: Code:
Depending on how large the image is will determine how much text will wrap underneath it. Hopefully this will give you what you're looking for.
__________________
4.1.9 (Linux) Live Store www.thecrackedbook.com Find used books and out of print books. |
|||||||
#8
|
|||||||
|
|||||||
![]() Thank you so much for customizing the code for me. It works almost greatly.
The main problem is that if the description has html bullets ( <li> ... </li> ) or order list, they are overlapped by the image, and may not be visuable. In 4.1.X, x-cart has the html editor for writing description, so it is easy to make bullets in the description. I tried to make Code:
The little problem is there is a space in the first line of the description. it shows Code:
Quote:
Thanks again.
__________________
version 4.1.1 |
|||||||
#9
|
|||||||
|
|||||||
![]() Insert this code into your skin1.css right below the other code for .PImgBox and this should take care of it.
Code:
__________________
4.1.9 (Linux) Live Store www.thecrackedbook.com Find used books and out of print books. |
|||||||
#10
|
|||||||
|
|||||||
![]() Hey guys...this is exactly what I want to do as well and I went through my templates and made the same changes...but one thing that mine does is the HR is now quite thick from what is called out as only 1 px high and now some of my buttons "add to cart" and "add to wishlist" is missing some of the repeat images that make up the center section of the button... Any help on this...
Also this is probably not the best place for this question but since we are on the topic of the products page...I have varients for my products with associated weight for each...now weights over 1.0 show but under 1.0 do not the whole line dissappers..the only limitation to this is if the weight is 0.00 then it will not show but there is an associated weith that is greater than 0.00...any thoughts on this as well would be great... I will attach my product.tpl list in the next reply... Thanks |
|||||||
|
|||
X-Cart forums © 2001-2020
|