IPB

Welcome Guest ( Log In )

 
Reply to this topicStart new topic
> Prices Shown On Product Detail Page, How Do I show all ?
keyman
post Aug 1 2008, 11:27 AM
Post #1





Group: Verified NS Member
Posts: 50
Joined: 8-July 08
From: Long Island, NY
Member No.: 1,404



I want to show the following on the product detail page:

List Price: (MSRP)

Your Cost: (Default Selling Price)

Discounted: (sale Price)

I see the code but I cannot figure out what to use to show all three. Instead of 'if' statments?

Can I also do this on the catagory page - the one that shows all products in the category.

CODE
<div class="prod-detail-price">
        <ns:if condition="Product.HasMsrpPrice">
          <div class="prod-detail-msrp"><span class="prod-detail-msrp-label"><%Product.MsrpPriceLabel%>:</span> <span class="prod-detail-msrp-value"><%Product.MsrpPrice%></span></div>
        </ns:if>
        <ns:if condition="Product.HasCustomerPrice">
          <div class="prod-detail-cost"><span class="prod-detail-cost-label"><%Product.CustomerPriceLabel%>:</span> <span class="prod-detail-cost-value"><%Product.CustomerPriceText%></span></div>
        </ns:if>
        <ns:if condition="Product.HasSalePrice">
          <div class="prod-detail-sale"><span class="prod-detail-sale-label"><%Product.SalePriceLabel%>:</span> <span class="prod-detail-sale-value"><%Product.SalePriceText%></span></div>
        </ns:if>
        <ns:if condition="Product.HasSavings">
          <div class="prod-detail-save"><span class="prod-detail-save-label"><%Product.SavingsLabel%>:</span> <span class="prod-detail-save-value"><%Product.SavingsText%></span></div>
        </ns:if>
Go to the top of the page
 
+Quote Post
ThinkLocal_QA_Le...
post Aug 1 2008, 02:29 PM
Post #2





Group: Administrators
Posts: 964
Joined: 10-August 07
From: St. Louis, MO
Member No.: 4



Hi Keyman,

To do this you would have to do some things -
1. you need some code like this -
CODE
<ns:if condition="Product.HasMsrpPrice">
          <div class="prod-detail-msrp">
<span class="prod-detail-msrp-label"><%Product.MsrpPriceLabel%>:</span>
<span class="prod-detail-msrp-value"><%Product.MsrpPrice%>
</span></div>
        </ns:if>
        <ns:if condition="Product.HasCustomerPrice">
          <div class="prod-detail-cost"><span class="prod-detail-cost-label"><%Product.CustomerPriceLabel%>:</span>
<span class="prod-detail-cost-value"><%Product.CustomerPriceText%>
</span></div>
        </ns:if>
        <ns:if condition="Product.HasSalePrice">
          <div class="prod-detail-sale"><span class="prod-detail-sale-label">
<%Product.SalePriceLabel%>:</span> <span class="prod-detail-sale-value">
<%Product.SalePriceText%></span></div>
        </ns:if>


From that, you then need to use some javascript to change <%Product:SalePriceText%> to the actual sale price. You can do this by putting in that value and getting the dollar amount saved, and then subtracting that from the dollar amount in <%Product.CustomerPriceText%>

It isn't easy but I am sure it can be done with some know how and time.

In terms of doing this in the product list sections, there would not be a way to do so at this time.

Joe
Go to the top of the page
 
+Quote Post
keyman
post Aug 1 2008, 09:52 PM
Post #3





Group: Verified NS Member
Posts: 50
Joined: 8-July 08
From: Long Island, NY
Member No.: 1,404



QUOTE (ThinkLocal_QA_Lead @ Aug 1 2008, 03:29 PM) *
Hi Keyman,

To do this you would have to do some things -
1. you need some code like this -
CODE
<ns:if condition="Product.HasMsrpPrice">
          <div class="prod-detail-msrp">
<span class="prod-detail-msrp-label"><%Product.MsrpPriceLabel%>:</span>
<span class="prod-detail-msrp-value"><%Product.MsrpPrice%>
</span></div>
        </ns:if>
        <ns:if condition="Product.HasCustomerPrice">
          <div class="prod-detail-cost"><span class="prod-detail-cost-label"><%Product.CustomerPriceLabel%>:</span>
<span class="prod-detail-cost-value"><%Product.CustomerPriceText%>
</span></div>
        </ns:if>
        <ns:if condition="Product.HasSalePrice">
          <div class="prod-detail-sale"><span class="prod-detail-sale-label">
<%Product.SalePriceLabel%>:</span> <span class="prod-detail-sale-value">
<%Product.SalePriceText%></span></div>
        </ns:if>


From that, you then need to use some javascript to change <%Product:SalePriceText%> to the actual sale price. You can do this by putting in that value and getting the dollar amount saved, and then subtracting that from the dollar amount in <%Product.CustomerPriceText%>

It isn't easy but I am sure it can be done with some know how and time.

In terms of doing this in the product list sections, there would not be a way to do so at this time.

Joe


Hi Joe

Thanks for the reply.

I achieved what I wanted by removing the "if condition" statment on customer price.

thanks
mike
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
Tags
No Tag inserted yet

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version    Network Solutions © 2008 Time is now: 8th January 2009 - 09:06 PM
Domain Names | Web Hosting | Web Design | Shopping Cart Software | Online Marketing | SSL Certificates