Custom Fields

1 view
Skip to first unread message

Lonnie

unread,
Sep 22, 2008, 1:25:18 PM9/22/08
to KiweeCommerce Forum
Richard, you'll probably have the best chance at answering this
question, with all that you've done on 1.0.4 and above.

I'm needing to add some fields to the products that allow me to set
items as featured, and provide a wholesale price/discount. I've
figured out where to change the form (though I still haven't found the
css that allows me to change that charcoal background....) but I'm not
seeing where to change the get/save functions. I've looked through
kiwee.class.php and browsed the functions that look like they should
get/save the products, but I'm just not grasping what I need to
change. Granted, it was 2 in the morning when I was struggling with
this, but I'm hoping someone can point me in the right direction.

Thanks!

Richard Northcott

unread,
Sep 22, 2008, 4:01:08 PM9/22/08
to kiweec...@googlegroups.com
HI Lonnie

The updatePage function (kiwee.class.php file) is where the saving/updating operations for Products/Items are mainly driven through.
Here the actual Product's details are principally handled through WriteItemToDB function where addContainer/updateContainer handle the MODx table site_content for the other bits.
I found the fact that 2 tables for the Product (items and items_audit) confusing and seemingly unnecessary but there the 2 tables that the Write function will address in there slightly different forms.

Hope this helps.


Richard

Lonnie Ezell

unread,
Sep 22, 2008, 4:09:33 PM9/22/08
to kiweec...@googlegroups.com
Thanks a million! That is a huge help! And, yes, I found the 2 tables a bit confusing as I was digging in last night, also.


Lonnie Ezell
www.LonnieEzell.com - the Daughter of the Sun podcast (and print!) novel
www.DragonsLanding.com - the advice and idea line for tabletop RPG gamers

Richard Northcott

unread,
Sep 22, 2008, 4:30:15 PM9/22/08
to kiweec...@googlegroups.com
Thats OK - have fun digging (I decided to do away with the audit one - too confusing).


Richard
Reply all
Reply to author
Forward
0 new messages