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

Messed up "Add to Cart" and "Add to Wishlist buttons

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-07-2007, 11:13 AM
 
willywaller willywaller is offline
 

Member
  
Join Date: Feb 2007
Posts: 11
 

Unhappy Messed up "Add to Cart" and "Add to Wishlist buttons

I've made my product descriptions wrap around the product images by modifying the skin1.css and product.tpl files according to some excellent instructions from this forum. (Thanks longhorn180!)
Trouble is, now my "add to cart" and "add to wishlist" buttons are not appearing correctly. I know I'm not the first to post about this problem, but I haven't seen any answers.

If you need me to post any of the modified files, let me know.

Thanks a bunch.
__________________
X-Cart 4.1.3
Reply With Quote
  #2  
Old 02-07-2007, 11:52 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Messed up "Add to Cart" and "Add to Wishlist buttons

Sounds like you broke the template somehow, which isn't hard to do with all those {if} statements. I'd start by restoring product.tpl to its original state, and make one change at a time until you find the step that breaks the buttons.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-08-2007, 11:16 AM
 
willywaller willywaller is offline
 

Member
  
Join Date: Feb 2007
Posts: 11
 

Default Re: Messed up "Add to Cart" and "Add to Wishlist buttons

OK, so I went step by step, and the problem only showed up after I did this:

Then I went to skin1.css and changed the PImgBox tag from the original code below:

Code:
.PImgBox {
TEXT-ALIGN: left;
VERTICAL-ALIGN: top;
WIDTH: 100px;
PADDING-RIGHT: 8px;
}


To this, as well as adding the css for the img itself:

Code:
.PImgBox {
TEXT-ALIGN: left;
VERTICAL-ALIGN: top;
PADDING-RIGHT: 8px;
}
.PImgBox img {
FLOAT: left;
PADDING-RIGHT: 4px;
padding-bottom: 4px;
}


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.

Any idea why this is messing up my buttons?
__________________
X-Cart 4.1.3
Reply With Quote
  #4  
Old 03-22-2007, 08:23 AM
 
willywaller willywaller is offline
 

Member
  
Join Date: Feb 2007
Posts: 11
 

Default Re: Messed up "Add to Cart" and "Add to Wishlist buttons

Ok, the problem's fixed.

According to longhorn180's mod, you have to remove the following from the product.tpl file (lines 33 and 34 in my file):

</td>
<td valign="top" width="100%">

I was able to fix my buttons and lines by adding the </td> again a little later, after the call for the product.fulldescr, but before the table for the Product Details is created. (In my file it's at line 57) It goes

</if>
</tr>
</table>

<p /> </td>

When I added that </td>, all my troubles disappeared!

Thanks to everybody who makes this forum such a great resource!
__________________
X-Cart 4.1.3
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 03:22 PM.

   

 
X-Cart forums © 2001-2020