X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Remove BONUS, SAVE, and Product Picture cells/columns from Item Description (https://forum.x-cart.com/showthread.php?t=64374)

alarmsellout 07-23-2012 09:57 PM

Remove BONUS, SAVE, and Product Picture cells/columns from Item Description
 
1 Attachment(s)
I changed the format for my product_details so that it shows the short description, picture, and buy now buttons at the top. The the full item description is at the bottom.

I need to remove the old picture column since I am not showing my picture in the column anymore. That field is just blank now, but I can't figure out how to remove it.

In my full detailed description below, I want to remove the SAVE and BONUS fields. Just FYI, I do want those features, but I do not want them to appear in my full item description because it takes up too much space.

I want my full description to take up as much of the field as possible.

Help removing any of these 3 things would be much appreciated. Here's what my screen looks like:

qualiteam 07-23-2012 10:30 PM

Re: Remove BONUS, SAVE, and Product Picture cells/columns from Item Description
 
Use webmaster mode and Firebug browser addon to find the exact template and CSS styles to be altered.

alarmsellout 07-24-2012 01:27 PM

Re: Remove BONUS, SAVE, and Product Picture cells/columns from Item Description
 
3 Attachment(s)
Thanks, but I have been using both of those. T he main problem is I can't figure out what file this is in.

It seems that the product description is tabbed over 125px, so I can remove it in firebug and it looks perfect. BUT, I can't figure out where to modify the 125px, it's not in the main.CSS or product_details.tpl, or product.tpl.... etc..

How can I modify this:

element.style {
margin-left: 125px;
}


It doesn't seem to reference a file. :(

See the pictures below.

cflsystems 07-24-2012 03:05 PM

Re: Remove BONUS, SAVE, and Product Picture cells/columns from Item Description
 
It is in product.tpl or product_details.tpl, smarty code

alarmsellout 07-24-2012 03:11 PM

Re: Remove BONUS, SAVE, and Product Picture cells/columns from Item Description
 
1 Attachment(s)
UPDATE! After hours of trial and error, here is the solution to remove the PICTURE field that is next to the item description.

It is in this file:
/common_files/customer/main/product.tpl

REMOVE THIS LINE:
===================

{*<div class="details"{if $max_image_width gt 0} style="margin-left: {$max_image_width}px;"{/if}>*}

===================

The field is created by how big your picture file is. So it sets that column by seeing how big your picture is. Remove this line and the column is gone... leaving lots of room for the full description. See the attached files for the result.

alarmsellout 07-30-2012 02:53 AM

Re: Remove BONUS, SAVE, and Product Picture cells/columns from Item Description
 
For those who wanted to know how to remove the bonus and save fields, it's in the file below:

common_files/customer/main/product_details.tpl

REMOVE THE TEXT BELOW.

{if $active_modules.Special_Offers}
{include file="modules/Special_Offers/customer/product_bp_icon.tpl"}
{/if}

{if $product.appearance.has_market_price and $product.appearance.market_price_discount gt 0}
<td align="right" valign="top">
<div class="save-percent-container">
<div class="save" id="save_percent_box">
<span id="save_percent">{$product.appearance.market_pric e_discount}</span>%
</div>
</div>
</td>
{/if}


All times are GMT -8. The time now is 12:37 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.