[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] One more time: Promotions inconsistent behavior
At 01:48 PM 8/1/2002 -0700, you wrote:
>Thought I'd try this again, didn't get a response the
>first time. Someone must know about this.
>
>Hi gang-
>
>Busily writing the merch HOWTO and I've come across
>a snag.
>
>Using the Foundation demo admin UI, I modified
>gift_cert's promotion, adding a new type called
>"Demo"
>
>However, this new promotion type does not show up in
>the drop box under the promotion component, only
>"Specials" and "New Items" appear.
>
>Restarted Interchange, applied changes, nothing
>seems to take.
>
>Any ideas?
>
>Cheers,
>
>-B
I didn't read your first post because I couldn't particularly understand
what you were saying. Sorry. :-) However, you are correct, and it just
doesn't seem right, does it?
The top of the templates/components/promo file currently has this:
promo_type:
label: Promotion type
options: specials=Specials, new=New items
widget: select
Which is what builds the option list in page_edit right now. But to get it
to automatically grab the promotion type option list from the metadata in
the admin, you have to pass the page_edit module some special parameters
that it (in turn) passes to the [display] tag:
promo_type:
label: Promotion type
widget: select
lookup: featured
db: merchandising
That will give you a list like:
expired
new
specials
demo
However, I don't know why it isn't using the "Aesthetic" part to do this
instead:
Expired
New Items
Specials
Demo
But that's a small matter IMHO. I'll probably commit something to this
effect to CVS later on.
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Dan Browning, Kavod Technologies <db@kavod.com>
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
There are three ways to get something done:
(1) Do it yourself.
(2) Hire someone to do it for you.
(3) Forbid your kids to do it.
@@ -6,8 +6,9 @@
promo_type:
label: Promotion type
- options: specials=Specials, new=New items
widget: select
+ lookup: featured
+ db: merchandising
matches:
label: Number to show