Welcome close

We've made some changes!

As you may have noticed, we've made some changes to the DevCenter to include the new Exchange site, a code community for Ektron developers. You may use the same username and password to login for both the Exchange and DevCenter. Your DevCenter profile has moved over to the Exchange site. You also may notice we have removed some profile functionality in favor of new functionality, including Activity Streams. We welcome your feedback about the site on the Exchange forum.

SEARCH : searchSite
This SectionSite Wide
API

RSS Feed Print Category View
eCommerce Product Subtotal always blank
Chris McG
Posted: Wednesday, January 20, 2010 6:45 AM
Joined: 12/7/2009
Posts: 59


Hi 


I've just created a Product in a catalog and used the default display , however my sub total does not show.


I've compared the HTML output from the starter site example and mine , they both look similar except the Id's of the spans have extra characters and white space - I've no idea where those would have come from or whether that is the root of the problem.


as the "value" is in a hidden field I presume Ektron must be popularing the span using Javascript? So that might be failing in someway?


----------------- My output ----------------------


Subtotal: 

<span class="price" id="&#xA;                  ekproductpricectl00_mainPanel_Product1">

</span>

<input type="hidden" id="&#xA;                  ekproductsalepricectl00_mainPanel_Product1" name="&#xA;                  ekproductsalepricectl00_mainPanel_Product1" value="£6.00" />


----------------- Ektron sample  ----------------------


Subtotal: 

<span class="price" id="ekproductpriceproduct1">

</span>

<input type="hidden" id="ekproductsalepriceproduct1" name="ekproductsalepriceproduct1" value="$300.00" />


EktronSK
Posted: Wednesday, January 20, 2010 9:01 AM
Joined: 5/10/2006
Posts: 493


Can you attach your XSLT? I think you may have extra space in the "id" attribute values.

Chris McG
Posted: Wednesday, January 20, 2010 9:12 AM
Joined: 12/7/2009
Posts: 59


Please see attached


this is just the out the box xsl provided by the Ektron installation 




File Attachment(s):
Product.zip (2185 bytes)

Chris McG
Posted: Wednesday, January 20, 2010 9:24 AM
Joined: 12/7/2009
Posts: 59


I've actually inspected the file and realised there is a carriage return - this was caused by me copying the original , then opening it in an editor that changed the layout.

 

But not using my copy and just using the XLS from the workarea , I still get no subtotal listed despite having a sale and list price for the product depite it being visible in the hidden html field.


Chris McG
Posted: Monday, January 25, 2010 11:34 AM
Joined: 12/7/2009
Posts: 59


To fix this you need to make sure you have runat=server in your head tags on your master page.

 

I came across as a fix for something else and the subtotals started to work.


 

Jump to different Forum... 






Register for Synergy 2010

Articles
Design without Borders, yet with Structure
CMS400.NET and Adobe Flex
GeoMapping
EkML Ektron Markup Language
Taxonomy

[First] [Previous] [Next] [Last]


See All Articles