From timnelson at phreaker.net Thu Sep 1 14:32:02 2005 From: timnelson at phreaker.net (Tim Nelson) Date: Thu Sep 1 14:33:11 2005 Subject: [ic] Storing variable database in SQL database Message-ID: <43174922.3060101@phreaker.net> Instead of storing variable.txt in a DBM file, is it possible to store it in an DBI/SQL database? This seems like a catch-22 since those variables are not (or are they?) loaded while the catalog is being configured and they are referenced later in my catalog.cfg. I know I have seen a post like this before, but my feeble search-challenged fingers just can't find it. Thanks. From mike at perusion.com Thu Sep 1 15:08:17 2005 From: mike at perusion.com (Mike Heins) Date: Thu Sep 1 15:09:12 2005 Subject: [ic] Storing variable database in SQL database In-Reply-To: <43174922.3060101@phreaker.net> References: <43174922.3060101@phreaker.net> Message-ID: <20050901190817.GA24656@bill.heins.net> Quoting Tim Nelson (timnelson@phreaker.net): > Instead of storing variable.txt in a DBM file, is it possible to store > it in an DBI/SQL database? This seems like a catch-22 since those > variables are not (or are they?) loaded while the catalog is being > configured and they are referenced later in my catalog.cfg. I know I > have seen a post like this before, but my feeble search-challenged > fingers just can't find it. Thanks. It's easy. Just make sure you do before "VariableDatabase variable": Database variable variable.txt dbi:mysql:database=foo;host=hostname;etc=etc Nothing more to it, as long as you have a "variable" column and the key column contains the variable name. -- Mike Heins Perusion -- Expert Interchange Consulting http://www.perusion.com/ phone +1.765.647.1295 tollfree 800-949-1889 For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled. -- Dick Feynman From timnelson at phreaker.net Thu Sep 1 15:33:26 2005 From: timnelson at phreaker.net (Tim Nelson) Date: Thu Sep 1 15:34:26 2005 Subject: [ic] Storing variable database in SQL database In-Reply-To: <20050901190817.GA24656@bill.heins.net> References: <43174922.3060101@phreaker.net> <20050901190817.GA24656@bill.heins.net> Message-ID: <43175786.1060307@phreaker.net> Thanks Mike! Is there anyway to stop the .sql file from being auto-generated? I want to re-import every time interchange is restarted and the catalog is re-configured, since it's there it won't import again unless I remove it. From ddavenport at newagedigital.com Fri Sep 2 10:34:53 2005 From: ddavenport at newagedigital.com (Daniel Davenport) Date: Fri Sep 2 10:44:35 2005 Subject: [ic] Storing variable database in SQL database Message-ID: > >>> timnelson@phreaker.net 09/01/05 3:33 PM >>> > Thanks Mike! Is there anyway to stop the
.sql file from being > auto-generated? I want to re-import every time interchange is restarted > and the catalog is re-configured, since it's there it won't import again > unless I remove it. You may be asking for trouble. Unless you're running a demo catalog (where the settings, orders, etc get flushed on reconfig), you're going to lose info. The text file almost never has all of the info that the SQL databale has. From timnelson at phreaker.net Fri Sep 2 12:10:47 2005 From: timnelson at phreaker.net (Tim Nelson) Date: Fri Sep 2 12:11:53 2005 Subject: [ic] Storing variable database in SQL database In-Reply-To: References: Message-ID: <43187987.3030202@phreaker.net> The tables I want to reload on reconfig are read-only and are imported from another system. I consider them static tables that are never written to by Interchange. The basic idea is that I can bring over the text files in the middle of the night and force a reconfig. That way any new data from the other system appears the next morning. Nothing in the docs imply that the
.sql is auto-generated by the import event... From greg at valuemedia.com Fri Sep 2 12:49:05 2005 From: greg at valuemedia.com (Greg Hanson) Date: Fri Sep 2 12:49:47 2005 Subject: [ic] Storing variable database in SQL database In-Reply-To: <43187987.3030202@phreaker.net> References: <43187987.3030202@phreaker.net> Message-ID: <43188281.2050606@valuemedia.com> Tim Nelson wrote: > The tables I want to reload on reconfig are read-only and are imported > from another system. I consider them static tables that are never > written to by Interchange. The basic idea is that I can bring over > the text files in the middle of the night and force a reconfig. That > way any new data from the other system appears the next morning. > Nothing in the docs imply that the
.sql is auto-generated by > the import event... > > _______________________________________________ > interchange-users mailing list > interchange-users@icdevgroup.org > http://www.icdevgroup.org/mailman/listinfo/interchange-users > > You could easily set up a script to bring in the new data at night, replace whichever .txt files you are going to replace, and remove the related .sql files. The tables would then be recreated with the new data whenever they were accessed next. The tables are auto-generated from the .txt file if there is no .sql file present and the table is properly defined in the configuration and the .txt file is present. -- Greg Hanson Interchange Consulting Perusion 1506 E Gilbert Ave Coeur d'Alene, ID 83815 Email greg@perusion.com Phone 208-667-2442 Toll Free 800-949-1889 Fax 775-256-2231 Web http://www.perusion.com From bryangmyrek at yahoo.com Fri Sep 2 13:51:35 2005 From: bryangmyrek at yahoo.com (Bryan Gmyrek) Date: Fri Sep 2 13:52:30 2005 Subject: [ic] Change the way Interchange reads table fields? In-Reply-To: <43188281.2050606@valuemedia.com> Message-ID: <20050902175135.29854.qmail@web31807.mail.mud.yahoo.com> Hi, Just want to throw an idea out there and see if anyone else thinks it's a good one. I'd like to be able to add fields and in general edit my tables from say within the mysql command line interface. However, this then requires changing the file in dbconfig/mysql/tablename.mysql and also messing with the products/tablename.txt file if I added a new field. My idea is to have IC read the database information at startup with a command like mysql> show fields from products; +--------------------+---------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +--------------------+---------------+------+-----+---------+-------+ | sku | varchar(15) | | PRI | | | | category | varchar(64) | | MUL | | | .. Then it can read the Field, Type, Null, Key ... columns in and configure the datbase based on that. Does anyone else think this is a good idea? Can IC already do this and I just don't know ;) Best, Bryan From mike at perusion.com Fri Sep 2 14:40:46 2005 From: mike at perusion.com (Mike Heins) Date: Fri Sep 2 14:41:41 2005 Subject: [ic] Change the way Interchange reads table fields? In-Reply-To: <20050902175135.29854.qmail@web31807.mail.mud.yahoo.com> References: <43188281.2050606@valuemedia.com> <20050902175135.29854.qmail@web31807.mail.mud.yahoo.com> Message-ID: <20050902184045.GA15757@bill.heins.net> Quoting Bryan Gmyrek (bryangmyrek@yahoo.com): > Hi, > > Just want to throw an idea out there and see if anyone else thinks it's a good one. > I'd like to be able to add fields and in general edit my tables from say within the mysql command > line interface. However, this then requires changing the file in dbconfig/mysql/tablename.mysql > and also messing with the products/tablename.txt file if I added a new field. > My idea is to have IC read the database information at startup with a command like > > mysql> show fields from products; > +--------------------+---------------+------+-----+---------+-------+ > | Field | Type | Null | Key | Default | Extra | > +--------------------+---------------+------+-----+---------+-------+ > | sku | varchar(15) | | PRI | | | > | category | varchar(64) | | MUL | | | > .. > > Then it can read the Field, Type, Null, Key ... columns in and configure the datbase based on > that. > > Does anyone else think this is a good idea? Can IC already do this and I just don't know ;) Interchange does this already. DatabaseAuto dbi:mysql:database=foo;user=bar;pass=baz Try it sometime. -- Mike Heins Perusion -- Expert Interchange Consulting http://www.perusion.com/ phone +1.765.647.1295 tollfree 800-949-1889 Fast, reliable, cheap. Pick two and we'll talk. -- unknown From jeff at hisgirlfridays.com Fri Sep 2 15:32:18 2005 From: jeff at hisgirlfridays.com (jeff@hisgirlfridays.com) Date: Fri Sep 2 15:38:13 2005 Subject: [ic] Change the way Interchange reads table fields? In-Reply-To: <20050902184045.GA15757@bill.heins.net> References: <43188281.2050606@valuemedia.com> <20050902175135.29854.qmail@web31807.mail.mud.yahoo.com> <20050902184045.GA15757@bill.heins.net> Message-ID: <20050902193218.GA21533@host4.cmainteractive.com> On Fri, Sep 02, 2005 at 01:40:46PM -0500, Mike Heins wrote: > DatabaseAuto dbi:mysql:database=foo;user=bar;pass=baz Is this in 4.8.6 also? Jeff From alexd at plug4.com Fri Sep 2 06:42:09 2005 From: alexd at plug4.com (Alex) Date: Fri Sep 2 18:43:52 2005 Subject: [ic] Forbidden Error on Interchange /store/cart/process In-Reply-To: <200509021601.j82G0B2p007894@icdevgroup.org> References: <200509021601.j82G0B2p007894@icdevgroup.org> Message-ID: <6.2.3.4.0.20050902063817.041f60c0@mail.plug4.com> Anyone possible to help with this? Receiving the following when a new customer is in the checkout pages and enters their zip code (forces reload of page). 403 Forbidden You don't have permission to access /store/cart/process on this server. Also received the same thing in the Admin intermittently when changing prices. Now is showing up in the Cart which has just about shut the business down. Using Interchange 5.2.0 on Redhat. From jt at airdelights.com Fri Sep 2 18:57:31 2005 From: jt at airdelights.com (JT Justman) Date: Fri Sep 2 19:06:28 2005 Subject: [ic] Forbidden Error on Interchange /store/cart/process In-Reply-To: <6.2.3.4.0.20050902063817.041f60c0@mail.plug4.com> References: <200509021601.j82G0B2p007894@icdevgroup.org> <6.2.3.4.0.20050902063817.041f60c0@mail.plug4.com> Message-ID: <4318D8DB.6090900@airdelights.com> Alex wrote: > Anyone possible to help with this? Receiving the following when a new > customer is in the checkout pages and enters their zip code (forces > reload of page). > > 403 Forbidden > You don't have permission to access /store/cart/process on this server. > > > Also received the same thing in the Admin intermittently when changing > prices. Now is showing up in the Cart which has just about shut the > business down. > > Using Interchange 5.2.0 on Redhat. > Important clarification: is /store/cart/process what it actually says, or are you disguising it? Is this the right path to your store? JT From docelic at mail.inet.hr Fri Sep 2 19:10:00 2005 From: docelic at mail.inet.hr (Davor Ocelic) Date: Fri Sep 2 19:13:33 2005 Subject: [ic] Forbidden Error on Interchange /store/cart/process In-Reply-To: <6.2.3.4.0.20050902063817.041f60c0@mail.plug4.com> References: <200509021601.j82G0B2p007894@icdevgroup.org> <6.2.3.4.0.20050902063817.041f60c0@mail.plug4.com> Message-ID: <20050903011000.342d8eb1.docelic@mail.inet.hr> On Fri, 02 Sep 2005 06:42:09 -0400 Alex wrote: > Anyone possible to help with this? Receiving the following when a new > customer is in the checkout pages and enters their zip code (forces > reload of page). > > 403 Forbidden > You don't have permission to access /store/cart/process on this server. Doesn't this seem like an Apache configuration error coming in the way? From docelic at mail.inet.hr Fri Sep 2 19:31:14 2005 From: docelic at mail.inet.hr (Davor Ocelic) Date: Fri Sep 2 19:34:47 2005 Subject: [ic] Change the way Interchange reads table fields? In-Reply-To: <20050902193218.GA21533@host4.cmainteractive.com> References: <43188281.2050606@valuemedia.com> <20050902175135.29854.qmail@web31807.mail.mud.yahoo.com> <20050902184045.GA15757@bill.heins.net> <20050902193218.GA21533@host4.cmainteractive.com> Message-ID: <20050903013114.4ce2863a.docelic@mail.inet.hr> On Fri, 2 Sep 2005 15:32:18 -0400 jeff@hisgirlfridays.com wrote: > On Fri, Sep 02, 2005 at 01:40:46PM -0500, Mike Heins wrote: > > > DatabaseAuto dbi:mysql:database=foo;user=bar;pass=baz > > Is this in 4.8.6 also? This was added in October 2002. If I am looking at this properly, 4.8.6 was released in August 2002, so you just missed it. IC 4.8.7 was released in late January 2003, and it has it. See [1] for the changelog, and [2] for approximate release dates. Enjoy, docelic@icdevgroup.org [1] http://www.icdevgroup.org/cgi-bin/cvsweb.cgi/interchange/lib/Vend/Config.pm [2] ftp://ftp.icdevgroup.org/pub/interchange/4.8/tar/ From bryangmyrek at yahoo.com Fri Sep 2 22:55:42 2005 From: bryangmyrek at yahoo.com (Bryan Gmyrek) Date: Fri Sep 2 22:56:45 2005 Subject: [ic] Change the way Interchange reads table fields? In-Reply-To: <20050902184045.GA15757@bill.heins.net> Message-ID: <20050903025542.5659.qmail@web31803.mail.mud.yahoo.com> > > Then it can read the Field, Type, Null, Key ... columns in and configure the datbase based on > > that. > > > > Does anyone else think this is a good idea? Can IC already do this and I just don't know ;) > > Interchange does this already. > > DatabaseAuto dbi:mysql:database=foo;user=bar;pass=baz > > Try it sometime. Thanks Mike I shoulda known ;) Best, Bryan > > -- > Mike Heins > Perusion -- Expert Interchange Consulting http://www.perusion.com/ > phone +1.765.647.1295 tollfree 800-949-1889 > > Fast, reliable, cheap. Pick two and we'll talk. -- unknown > _______________________________________________ > interchange-users mailing list > interchange-users@icdevgroup.org > http://www.icdevgroup.org/mailman/listinfo/interchange-users > From rphipps at reliant-solutions.com Sat Sep 3 00:16:35 2005 From: rphipps at reliant-solutions.com (Ron Phipps) Date: Sat Sep 3 00:39:21 2005 Subject: [ic] Change the way Interchange reads table fields? In-Reply-To: <20050902184045.GA15757@bill.heins.net> Message-ID: <028e01c5b03e$4654a320$6501a8c0@takedownlt> > From: interchange-users-bounces@icdevgroup.org [mailto:interchange-users- > bounces@icdevgroup.org] On Behalf Of Mike Heins > Sent: Friday, September 02, 2005 11:41 AM > > Quoting Bryan Gmyrek (bryangmyrek@yahoo.com): > > Hi, > > > > Just want to throw an idea out there and see if anyone else thinks it's > a good one. > > I'd like to be able to add fields and in general edit my tables from say > within the mysql command > > line interface. However, this then requires changing the file in > dbconfig/mysql/tablename.mysql > > and also messing with the products/tablename.txt file if I added a new > field. > > My idea is to have IC read the database information at startup with a > command like > > > > mysql> show fields from products; > > +--------------------+---------------+------+-----+---------+-------+ > > | Field | Type | Null | Key | Default | Extra | > > +--------------------+---------------+------+-----+---------+-------+ > > | sku | varchar(15) | | PRI | | | > > | category | varchar(64) | | MUL | | | > > .. > > > > Then it can read the Field, Type, Null, Key ... columns in and configure > the datbase based on > > that. > > > > Does anyone else think this is a good idea? Can IC already do this and > I just don't know ;) > > Interchange does this already. > > DatabaseAuto dbi:mysql:database=foo;user=bar;pass=baz > > Try it sometime. > Hey Mike, So with this config there would be no reason to create .mysql and .txt files anymore? Thanks! -Ron From bryangmyrek at yahoo.com Sat Sep 3 02:59:49 2005 From: bryangmyrek at yahoo.com (Bryan Gmyrek) Date: Sat Sep 3 03:00:45 2005 Subject: [ic] Change the way Interchange reads table fields? In-Reply-To: <028e01c5b03e$4654a320$6501a8c0@takedownlt> Message-ID: <20050903065949.18044.qmail@web31805.mail.mud.yahoo.com> > > > > Interchange does this already. > > > > DatabaseAuto dbi:mysql:database=foo;user=bar;pass=baz > > > > Try it sometime. Thanks Mike, it works like a _charm_ ;) This feature is huge for me because I was really getting sick of dealing with those .mysql files every time I wanted to change the database. Unfortunately I couldn't find much about it online: http://www.google.com/search?hs=onl&hl=en&q=DatabaseAuto+interchange I see that it's in the new XML docs though at: http://icdevgroup.org/xmldocs/confs.html#DatabaseAuto Wish I had known about this in 2002 ;) But better late than never so thanks for the feature Mike! Best, Bryan From michael at zambra.com Sat Sep 3 07:09:18 2005 From: michael at zambra.com (Zambra) Date: Sat Sep 3 07:10:15 2005 Subject: [ic] Problems with component cloning and creation Message-ID: <4319845E.7060705@zambra.com> Hello, I've started to create my own components, but first tried to customize some of the components already available in the dist. The problem is that the function: UI -> Content -> Component edit -> Existing components and on the Component Edit screen New name + click on Publish doesn't seem to work. It simply seems to republish the component used as a blueprint. Is this correct as for now? I have 5.2.0 installed from source (no RPM) on a Red Had 9 system. Beside this, when I try to create a new control and miss to specify the value for Identifier I get a somewhat cryptic message: content_modify: op add failed for component xxxxxx It would be nice to have the actual dependency being stated, like: Field xxxxx is mandatory. Please fill it out. I have some trouble with "Lookup table" and "Lookup select", too. When I fill out these two, the system automatically fills "Field for lookup" with the value from "Lookup select" out, too. ??? Thanks for any hints. Miguel zambra.com From unix4linux at tampabay.rr.com Sat Sep 3 07:52:19 2005 From: unix4linux at tampabay.rr.com (Tito) Date: Sat Sep 3 07:53:30 2005 Subject: [ic] How to remove white space? Message-ID: <200509031152.j83BqQeP014324@ms-smtp-05.tampabay.rr.com> Hello, I would like to know if anyone can tell me how can I remove the white space off of my page? If you go to this link http://www.daemonracing.com/cgi-bin/daemonracing/login.html u will notice at the bottom of my webpage that I have a block of white space. What do I need to look for in the .html pages to remove these white space blocks? Thanks, Tito From ic at 3edge.com Sat Sep 3 09:35:02 2005 From: ic at 3edge.com (Gert van der Spoel) Date: Sat Sep 3 08:36:01 2005 Subject: [ic] How to remove white space? In-Reply-To: <200509031152.j83BqQeP014324@ms-smtp-05.tampabay.rr.com> References: <200509031152.j83BqQeP014324@ms-smtp-05.tampabay.rr.com> Message-ID: <20050903133502.014C51773E@mail.papanikos.com> Tito writes: > Hello, > > I would like to know if anyone can tell me how can I remove the white space > off of my page? If you go to this link > http://www.daemonracing.com/cgi-bin/daemonracing/login.html u will notice at > the bottom of my webpage that I have a block of white space. What do I need > to look for in the .html pages to remove these white space blocks? > Remove the bgcolor="" from the Thanks, > Tito > > _______________________________________________ > interchange-users mailing list > interchange-users@icdevgroup.org > http://www.icdevgroup.org/mailman/listinfo/interchange-users From agrau at esquat.com Sat Sep 3 08:40:37 2005 From: agrau at esquat.com (Andreas Grau) Date: Sat Sep 3 08:41:59 2005 Subject: [ic] How to remove white space? In-Reply-To: <200509031152.j83BqQeP014324@ms-smtp-05.tampabay.rr.com> References: <200509031152.j83BqQeP014324@ms-smtp-05.tampabay.rr.com> Message-ID: <431999C5.5040506@esquat.com> Maybe enter a valid hex for the background-color in your body css: Instead: BODY { background-color: #00000; use: BODY { background-color: #000000; Tito wrote: > Hello, > > I would like to know if anyone can tell me how can I remove the white space > off of my page? If you go to this link > http://www.daemonracing.com/cgi-bin/daemonracing/login.html u will notice at > the bottom of my webpage that I have a block of white space. What do I need > to look for in the .html pages to remove these white space blocks? > > Thanks, > Tito > > _______________________________________________ > interchange-users mailing list > interchange-users@icdevgroup.org > http://www.icdevgroup.org/mailman/listinfo/interchange-users > > From unix4linux at tampabay.rr.com Sat Sep 3 09:00:09 2005 From: unix4linux at tampabay.rr.com (Tito) Date: Sat Sep 3 09:01:13 2005 Subject: [ic] How to remove white space? In-Reply-To: <20050903133502.014C51773E@mail.papanikos.com> Message-ID: <200509031300.j83D0GGK021684@ms-smtp-03.tampabay.rr.com> Gert, Where would I do this?...which file?...sorry for the dumb question ;) Thanks Tito -----Original Message----- From: interchange-users-bounces@icdevgroup.org [mailto:interchange-users-bounces@icdevgroup.org] On Behalf Of Gert van der Spoel Sent: Saturday, September 03, 2005 9:35 AM To: interchange-users@icdevgroup.org Subject: Re: [ic] How to remove white space? Tito writes: > Hello, > > I would like to know if anyone can tell me how can I remove the white space > off of my page? If you go to this link > http://www.daemonracing.com/cgi-bin/daemonracing/login.html u will notice at > the bottom of my webpage that I have a block of white space. What do I need > to look for in the .html pages to remove these white space blocks? > Remove the bgcolor="" from the Thanks, > Tito > > _______________________________________________ > interchange-users mailing list > interchange-users@icdevgroup.org > http://www.icdevgroup.org/mailman/listinfo/interchange-users _______________________________________________ interchange-users mailing list interchange-users@icdevgroup.org http://www.icdevgroup.org/mailman/listinfo/interchange-users From unix4linux at tampabay.rr.com Sat Sep 3 09:00:57 2005 From: unix4linux at tampabay.rr.com (Tito) Date: Sat Sep 3 09:02:00 2005 Subject: [ic] How to remove white space? In-Reply-To: <431999C5.5040506@esquat.com> Message-ID: <200509031301.j83D14b6014982@ms-smtp-02.tampabay.rr.com> Andreas, Where do I enter the valid hex? Which file might this be? Thanks, Tito -----Original Message----- From: interchange-users-bounces@icdevgroup.org [mailto:interchange-users-bounces@icdevgroup.org] On Behalf Of Andreas Grau Sent: Saturday, September 03, 2005 8:41 AM To: interchange-users@icdevgroup.org Subject: Re: [ic] How to remove white space? Maybe enter a valid hex for the background-color in your body css: Instead: BODY { background-color: #00000; use: BODY { background-color: #000000; Tito wrote: > Hello, > > I would like to know if anyone can tell me how can I remove the white space > off of my page? If you go to this link > http://www.daemonracing.com/cgi-bin/daemonracing/login.html u will notice at > the bottom of my webpage that I have a block of white space. What do I need > to look for in the .html pages to remove these white space blocks? > > Thanks, > Tito > > _______________________________________________ > interchange-users mailing list > interchange-users@icdevgroup.org > http://www.icdevgroup.org/mailman/listinfo/interchange-users > > _______________________________________________ interchange-users mailing list interchange-users@icdevgroup.org http://www.icdevgroup.org/mailman/listinfo/interchange-users From ic at 3edge.com Sat Sep 3 10:21:14 2005 From: ic at 3edge.com (Gert van der Spoel) Date: Sat Sep 3 09:22:06 2005 Subject: [ic] How to remove white space? In-Reply-To: <200509031300.j83D0GGK021684@ms-smtp-03.tampabay.rr.com> References: <200509031300.j83D0GGK021684@ms-smtp-03.tampabay.rr.com> Message-ID: <20050903142114.0179C1773E@mail.papanikos.com> Tito writes: > Gert, > > Where would I do this?...which file?...sorry for the dumb question ;) How are you creating your pages? With the Admin or on the commandline. As mentioned in the previous lesson, somewhere you have the style defined and depending on the style you are using a theme.cfg. This file is probably having the BODY {} definition that you changed to get a black background (which Andreas found). If you don't remember which file it was and you have a unix like system, use grep or something similar to find the 5 0's (instead of the correct 6). The you will find in the place that of your template ... that file from the other time with the @_XXXXX_@ ... It probably says bgcolor="__BACKGROUND__" . You do not have this variable defined in your variable file so it would show to be empty. You can replace the __BACKGROUND__ with #000000 ... > Tito writes: > >> Hello, >> >> I would like to know if anyone can tell me how can I remove the white > space >> off of my page? If you go to this link >> http://www.daemonracing.com/cgi-bin/daemonracing/login.html u will notice > at >> the bottom of my webpage that I have a block of white space. What do I > need >> to look for in the .html pages to remove these white space blocks? >> > > Remove the bgcolor="" from the > CU, > > Gert > > >> Thanks, >> Tito From interchange at tvcables.co.uk Sat Sep 3 19:28:25 2005 From: interchange at tvcables.co.uk (interchange@tvcables.co.uk) Date: Sat Sep 3 19:29:25 2005 Subject: [ic] How to reset ALL discounts? Message-ID: <20050903172825.s80b8m7qgnocww4c@216.194.106.19> Hi folks, Using IC 5.2.0, is there any way clear ALL discounts, initially I thought that [discount ALL_ITEMS][/discount] would do the trick but that only clears a discount set for ALL_ITEMS not discounts set for individual items. Can anyone suggest how to do it with IC tags or a perl routine please? Thanks, Andy. From ic at 3edge.com Sat Sep 3 21:36:19 2005 From: ic at 3edge.com (Gert van der Spoel) Date: Sat Sep 3 20:37:08 2005 Subject: [ic] How to reset ALL discounts? In-Reply-To: <20050903172825.s80b8m7qgnocww4c@216.194.106.19> References: <20050903172825.s80b8m7qgnocww4c@216.194.106.19> Message-ID: <20050904013619.0756D1773E@mail.papanikos.com> interchange@tvcables.co.uk writes: > Hi folks, > > Using IC 5.2.0, is there any way clear ALL discounts, initially I thought that > [discount ALL_ITEMS][/discount] would do the trick but that only clears a > discount set for ALL_ITEMS not discounts set for individual items. > > Can anyone suggest how to do it with IC tags or a perl routine please? From www.icdevgroup.org: To remove all discounts Frank Davis 08-Apr-2004 05:17PM Easy way to remove all discounts in one fell swoop: [perl] $Session->{discount} = (); [/perl] From ic at 3edge.com Sun Sep 4 05:14:30 2005 From: ic at 3edge.com (Gert van der Spoel) Date: Sun Sep 4 04:15:33 2005 Subject: [ic] Problems with component cloning and creation In-Reply-To: <4319845E.7060705@zambra.com> References: <4319845E.7060705@zambra.com> Message-ID: <20050904091430.538321773E@mail.papanikos.com> > I've started to create my own components, but first tried to customize > some of the components already available in the dist. The problem is that > the function: > > UI -> Content -> Component edit -> Existing components > and on the Component Edit screen > New name + click on Publish > doesn't seem to work. It looks to be not working. The issue appears to be that the behaviour of the Component Edit is 'modification of content', but putting a new name would change this to 'add new component'. The source does not seem to be prepared for that. I changed two files to sort this out in the admin UI backend: * lib/UI/ContentEditor.pm (patch below, based on $Id: ContentEditor.pm,v 2.14 2004/02/23 01:55:50 racke Exp $) * lib/UI/pages/admin/content_publish.html (patch below) Probably a bit of an ugly hack, but it appears to work. Basically after get_store determined that the 'old' component exists, the name of the old component is replaced with the new name. I have not tested it to large extend, but as far as I could see it is doing the trick. One thing to debate for this one would be that ui_source is still the 'old' component name. But that would be easy to add to this aswell. Of course the flow for the new name should not be through 'content_modify', but someting like 'new_component', but that is a bit too complex for a saturday evening :) > Beside this, when I try to create a new control and miss to specify the > value for Identifier I get a somewhat cryptic message: > > content_modify: op add failed for component xxxxxx > > It would be nice to have the actual dependency being stated, like: > > Field xxxxx is mandatory. Please fill it out. This is hardcoded in ContentEditor.pm: if(! $sub->($ref, $opt) ) { pain('content_modify', "op %s failed for %s %s.", $op, $type, $name); } If the dependency would be added here I don't know if that would cause this to be showing at other points, not sure atm if this is being used for more than this particular place. If the dependencies are added, it would also be nice to have these text in a way that they can show translated aswell. If it is for a client to use the admin you could add some extra clarification to the 'Identifier' item, making it bold and adding a '*'. That would give the person creating the controls a basic idea already. You would do this is your mv_metadata.asc file afaik. > I have some trouble with "Lookup table" and "Lookup select", too. When I > fill out these two, the system automatically fills "Field for lookup" with > the value from "Lookup select" out, too. ??? This one I leave for the others ----- Patches ----- --- ContentEditor.pm.orig 2005-09-03 21:22:02.000000000 +0200 +++ ContentEditor.pm 2005-09-04 02:49:32.000000000 +0200 @@ -2708,6 +2708,12 @@ my $ref = get_store($type,$name) or return death('content_modify', "%s %s not found", $type, $name); + #thunder_hack (tm) in case of an alternative component name + if ($vref->{ui_destination} ne "") { + $name = $ref->{ui_name} = $vref->{ui_destination}; + } + + foreach my $op (@ops) { #::logDebug("content_modify: doing name=$name type=$type op=$op"); #::logDebug("content_modify: doing name=$name type=$type op=$op ref=" . uneval($ref)); --- content_publish.html.orig 2002-09-13 22:46:20.000000000 +0200 +++ content_publish.html 2005-09-04 02:12:09.000000000 +0200 @@ -52,7 +52,12 @@ [if cgi ui_content_op] [if type=explicit compare="[content-modify]"] - [warnings message="Published [cgi ui_type] [cgi ui_name]."] + [if cgi ui_destination ne ""] + [warnings message="Published [cgi ui_type] [cgi ui_destination]."] + [else] + [warnings message="Published [cgi ui_type] [cgi ui_name]."] + [/else] + [/if] [/if] [bounce page=__UI_BASE__/content] [/if] From interchange at tvcables.co.uk Sun Sep 4 07:16:06 2005 From: interchange at tvcables.co.uk (interchange@tvcables.co.uk) Date: Sun Sep 4 07:17:06 2005 Subject: [ic] Wildcard for discount on range of products? Message-ID: <20050904051606.ptck887sfksgg8s4@216.194.106.19> Hi Folks, I am trying to use a wildcard to give a range of products a discount eg:- os0001, os0002, os0010 I have tried things like $Tag->discount( { code => 'os00*'} but the * is not being picked up as a wildcard, also tried % ? and _, is there any way I can wildcard this?? Thanks, Andy. From kevin at cursor.biz Sun Sep 4 09:33:23 2005 From: kevin at cursor.biz (Kevin Walsh) Date: Sun Sep 4 09:34:23 2005 Subject: [ic] How to reset ALL discounts? In-Reply-To: <20050904013619.0756D1773E@mail.papanikos.com> Message-ID: <000901c5b155$39051ca0$020110ac@majestic.internal.office.cursor.biz> Gert van der Spoel [ic@3edge.com] wrote: > interchange@tvcables.co.uk writes: > > Using IC 5.2.0, is there any way clear ALL discounts, initially I > > thought that [discount ALL_ITEMS][/discount] would do the trick but > > that only clears a discount set for ALL_ITEMS not discounts set for > > individual items. > > > > Can anyone suggest how to do it with IC tags or a perl routine please? > > > To remove all discounts Frank Davis 08-Apr-2004 05:17PM > Easy way to remove all discounts in one fell swoop: > > [perl] $Session->{discount} = (); [/perl] > By the way, with Interchange 5.3.1 and later you will need to use "$Discounts" instead of "$Session->{discount}". -- _/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/ _/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h _/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz _/ _/ _/_/_/_/ _/ _/_/_/ _/ _/ From kevin at cursor.biz Sun Sep 4 10:00:56 2005 From: kevin at cursor.biz (Kevin Walsh) Date: Sun Sep 4 10:01:52 2005 Subject: [ic] Wildcard for discount on range of products? In-Reply-To: <20050904051606.ptck887sfksgg8s4@216.194.106.19> Message-ID: <000e01c5b159$122d6de0$020110ac@majestic.internal.office.cursor.biz> interchange@tvcables.co.uk wrote: > I am trying to use a wildcard to give a range of products a discount eg:- > > os0001, os0002, os0010 > > I have tried things like $Tag->discount( { code => 'os00*'} but the * is > not being picked up as a wildcard, also tried % ? and _, is there any way > I can wildcard this?? > Discount item codes cannot be specified using wildcards. You will need to block-load your discounts using some other method, such as a database table or a new column in the products table. -- _/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/ _/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h _/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz _/ _/ _/_/_/_/ _/ _/_/_/ _/ _/ From unix4linux at tampabay.rr.com Sun Sep 4 11:51:26 2005 From: unix4linux at tampabay.rr.com (Tito) Date: Sun Sep 4 11:52:35 2005 Subject: [ic] How to remove white space? In-Reply-To: <20050903142114.0179C1773E@mail.papanikos.com> Message-ID: <200509041551.j84FpZeP003175@ms-smtp-05.tampabay.rr.com> Hello Gert and Andreas, I did look at my theme.cfg file and made the change from #00000; to #000000; The problem is still occurring though. I still see a block of white space at the bottom of my Login Page :( I don't know what else it could be. This happened the moment I added category_vert_toggle to this particular page which is the login.html page. It is strange because I added it to all of the other .html pages and this problem did not occur. Any other thoughts?...I appreciate you guys helping me :) -----Original Message----- From: interchange-users-bounces@icdevgroup.org [mailto:interchange-users-bounces@icdevgroup.org] On Behalf Of Gert van der Spoel Sent: Saturday, September 03, 2005 10:21 AM To: interchange-users@icdevgroup.org Subject: Re: [ic] How to remove white space? Tito writes: > Gert, > > Where would I do this?...which file?...sorry for the dumb question ;) How are you creating your pages? With the Admin or on the commandline. As mentioned in the previous lesson, somewhere you have the style defined and depending on the style you are using a theme.cfg. This file is probably having the BODY {} definition that you changed to get a black background (which Andreas found). If you don't remember which file it was and you have a unix like system, use grep or something similar to find the 5 0's (instead of the correct 6). The you will find in the place that of your template ... that file from the other time with the @_XXXXX_@ ... It probably says bgcolor="__BACKGROUND__" . You do not have this variable defined in your variable file so it would show to be empty. You can replace the __BACKGROUND__ with #000000 ... > Tito writes: > >> Hello, >> >> I would like to know if anyone can tell me how can I remove the white > space >> off of my page? If you go to this link >> http://www.daemonracing.com/cgi-bin/daemonracing/login.html u will notice > at >> the bottom of my webpage that I have a block of white space. What do I > need >> to look for in the .html pages to remove these white space blocks? >> > > Remove the bgcolor="" from the > CU, > > Gert > > >> Thanks, >> Tito _______________________________________________ interchange-users mailing list interchange-users@icdevgroup.org http://www.icdevgroup.org/mailman/listinfo/interchange-users From ic at 3edge.com Sun Sep 4 13:06:28 2005 From: ic at 3edge.com (Gert van der Spoel) Date: Sun Sep 4 12:07:27 2005 Subject: [ic] How to remove white space? In-Reply-To: <200509041551.j84FpZeP003175@ms-smtp-05.tampabay.rr.com> References: <200509041551.j84FpZeP003175@ms-smtp-05.tampabay.rr.com> Message-ID: <20050904170628.D2A721773E@mail.papanikos.com> Tito writes: > Hello Gert and Andreas, > > I did look at my theme.cfg file and made the change from #00000; to #000000; > > The problem is still occurring though. I still see a block of white space > at the bottom of my Login Page :( > > I don't know what else it could be. This happened the moment I added > category_vert_toggle to this particular page which is the login.html page. > It is strange because I added it to all of the other .html pages and this > problem did not occur. > > Any other thoughts?...I appreciate you guys helping me :) Looking at the source it did not get changed. Did you restart IC? And the problem does exist on the other pages aswell, you only notice it if your screen is big enough to notice it (no scrolling). From agrau at esquat.com Sun Sep 4 12:13:35 2005 From: agrau at esquat.com (Andreas Grau) Date: Sun Sep 4 12:14:55 2005 Subject: [ic] How to remove white space? In-Reply-To: <200509041551.j84FpZeP003175@ms-smtp-05.tampabay.rr.com> References: <200509041551.j84FpZeP003175@ms-smtp-05.tampabay.rr.com> Message-ID: <431B1D2F.9070706@esquat.com> I still see the 5 x '0' in your code for the background-color. As this remains invalid (from a css point of view), the default "white background" remains active. Either you changed the wrong place, or the code changes were not published or uploaded, whatever you call it. DaemonRacing Inc. -- Log In