Portal Engine
Version 3.x > Portal Engine > E-Commerce Product Custom Field View modes: 
User avatar
Member
Member
jakek-lincintegrated.com - 1/27/2009 8:24:15 PM
   
E-Commerce Product Custom Field
Hi all,

I have a portal I'm building, and it uses the E-Commerce module. A requirement I have is to add a second Price field to a Product. This is because a product has two prices, a retail price, and a members price.
As per the docs, I've added a new field by going to:
Site Manager -> Development -> System Tables -> Ecommerce - SKU

And the field details are (among others):
Attribute Name: MemberPrice
Attribute type: Decimal Number (Double Precision)
Field Type: Textbox

When I edit a given product, and update the MemberPrice, I can see that in the database (COM_SKU table), the new Column MemberPrice is holding the value I inserted for that product.

Then in my Transformation, I access it as follows:

<%# EcommerceFunctions.GetFormatedPrice(Eval("MemberPrice")) %>

And for some reason, I'm getting back '0'. I've checked that it's grabbing details from the correct product, by altering other data, and it is in fact the correct Product.

I've also noticed that if I access it by:

<%# Eval("MemberPrice") %>

Then nothing comes back, which would indicate a NULL.

Has anyone dealt with this before?

Many thanks in advance!

User avatar
Member
Member
jakek-lincintegrated.com - 1/28/2009 4:09:16 PM
   
RE:E-Commerce Product Custom Field
For anyone who's experience this, I've found the solution (page 60 of the E-Commerce guide PDF).

The database views below must be updated and reference the new field/s:

- View_COM_SKU
- View_CMS_Tree_Joined
- View_CMS_Tree_Joined_Versions


User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 1/28/2009 4:27:57 PM
   
RE:E-Commerce Product Custom Field
Thank you for posting your solution. It's very useful for other users.

Best regards
Ondrej Vasil

User avatar
Member
Member
calais-club-internet - 6/3/2009 2:50:42 AM
   
RE:E-Commerce Product Custom Field
i have the same kind of site to do; i mean ecommerce with a retail price AND a member price.

I would like to know which other customisation you have done : addToCart selector, shopping cart web part, invoice, order

I need help to deal with this case