[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: text for product attributes rather than a selection
****** message to minivend-users from Larry Leszczynski <larryl@furph.com> ******
Hello Giles -
> I'm trying to set a product attribute as plain text, rather than a fixed
> selection of items (for example, some text to be printed on a t-shirt).
Small world - I just ran into this last week! Here's how I did it:
1) Added "UseModifier imprinttext" to catalog.cfg.
2) In basket.html, within the [item-list], I used
[if-field imprintable]
Imprint: <input type=text
name=[modifier-name imprinttext]
value="[perl interpolate=1]
$a = q{[item-modifier imprinttext]};
$a =~ s/"/"/g;
$a;
[/perl]">
[/if-field]
Here I've shown the [perl] part spread over multiple lines for
readability, but in my file I have it all on the same line.
3) In checkout.html and receipt.html, within the [item-list], I used
[if-modifier imprinttext]
Imprint: <b>[item-modifier imprinttext]</b>)
[/if-modifier]
My client for this store charges $0.25 per letter of imprinting, so I also
added a bunch of clumsy but workable code to keep track of the number of
letters imprinted on all the items so that cost could be included in the
title. let me know if you'd like to have that as well...
Larry Leszczynski
larryl@furph.com
--
furph, Inc. WWW/Unix/Windows Solutions 734-513-7763 (voice)
info@furph.com http://www.furph.com 734-513-7759 (FAX)
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list