Jump to content

Customizing product listing and display of fields


atomhead

Recommended Posts

Hello all,

 

I am trying to customize my product listing for my site similar to the presentation below:

 

http://www.yoogiscloset.com/handbags.html?dir=asc&order=name

 

I want the following fields in my product listing and product pages:

 

1. Retail Price/Original Price

2. Our Price

3. Sale Price (if it is being additionally reduced, otherwise this field does not display)

 

I do not know how to modify my products to account for these fields or how to get them to display on the product listings. I also want to be able to add other fields like the Condition field but that is not a priority. Any help is appreciated. Thanks,

Link to comment
Share on other sites

edit your product-list.tpl file

 

   {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}
   <div>
 {if isset($product.orderprice) && ($product.orderprice != $product.price_tax_exc)}<span class="originalPrice price">{convertPrice price=$product.orderprice}</span>{/if}
 {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="{if $product.quantity <= 0}sold {elseif isset($product.orderprice) && ($product.orderprice != $product.price_tax_exc)}discountPrice {/if}price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span>{/if}
 {if $product.quantity <= 0}<span class="sold">{l s='Sold'}</span>{else if $product.on_sale}<span class="discountPrice  price">{l s='Sale!'}</span>{/if}
   </div>
   {/if}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...