From bwesley at zhaz.scanningsystems.com.au Mon Dec 1 08:15:09 2003
From: bwesley at zhaz.scanningsystems.com.au (Brent Wesley)
Date: Sun Nov 30 17:18:17 2003
Subject: [ic] Running interchange with apache mod_ssl
Message-ID: <20031130221509.GA18530@scanningsystems.com.au>
Greetings all,
I have recently set up a new interchange 4.9.8 server and I am having a
few problems.
I have the server running fine and have got all of the credit card stuff
working but I can not get Interchnage to work with the apache mod_ssl
server for the secure pages.
When you try to access any of the secure pages it fails because suexec if
complaining about ic being seduid or setgid.
I got around the problem of ic not being in the default suexec base
directory by recompiling it from debian source with the correct path to
where the ic cgi-bin files are.
I have tried taking the setuid bit off the interchange files but ic fails
to run at all when this is done.
How do I get ic to run with apache mod_ssl ? I thought this would have
been will documented, but as with most things with ic, it isn't.
Regards
--
Brent Wesley
Systems Programmer
Scanning Systems (Aust.) http://www.scanningsystems.com.au
PH: 07 3387 5555 FX: 07 3387 55883
From stefano at interline.it Mon Dec 1 09:46:59 2003
From: stefano at interline.it (Stefano Kerschbaumer - Interline S.r.l.)
Date: Mon Dec 1 03:48:10 2003
Subject: [ic] Error perl script to upgrate 4.9
In-Reply-To: <5.2.1.1.0.20031117104159.02c32728@mail.newmediaems.com>
References: <5.2.1.1.0.20031117104159.02c32728@mail.newmediaems.com>
Message-ID: <3FCB0003.5020604@interline.it>
In my apache error.log the error is general: Premature end of script
headers: ....
This is the code complete:
[if value payment_method eq credit]
[perl reparse=1 tables="products pricing shipping salestax" ] # I
have add this: tables="products pricing shipping salestax"
my $price = $Tag->total_cost({noformat => 1,}); # This is the line error
and is the total cost of the order
#my $price = 100,00; If I use this is OK !!!
my $order_number = $Values->{mv_order_number};
my $url_prepare = sprintf("http://xxx/xxx.asp?xxxxxx
CF__CustOrderNumber=%s xxxxxxxxx Price=%s&Quantity=1 xxxxxx
",$order_number,$order_number,$price);
my $hash = "[get-url $url_prepare]";
my $url_make = sprintf("http://xxxx/xxxx.asp?xxxxxxxxx
VatFlag=0&VatRate=0.2&Price=%s&Currency=EUR&Quantity=1&Locale=it-IT-SL&StoreID=xxxxxxCF__CustOrderNumber=%s
xxxxxxxxxxxxxxx",$order_number,$price);
return "Per passare al pagamento clicca qui";
[/perl]
Slauti Stefano
Ed LaFrance ha scritto:
> At 10:32 AM 11/17/2003 +0100, you wrote:
>
>
>> This line of my script give me an error: Premature end
>> ....interchange-users@icdevgroup.org
>>
>> my $price = $Tag->total_cost({noformat => 1,});
>>
>>
>> Why ?
>
>
> If this is in a [perl] block, you must pre-open all the tables the are
> consulted to figure total cost, I believe:
>
> [perl tables="products pricing"]
>
> ...you may even need to add shipping and salestax tables to this,
> though I could be wrong with regards to those. Try the above first.
>
> - Ed L.
>
>
> ===============================================================
> New Media E.M.S. Technology Solutions for Business
> 11630 Fair Oaks Blvd., #250 eCommerce | Consulting | Hosting
> Fair Oaks, CA 95628 edl@newmediaems.com
> (916) 961-0446 http://www.newmediaems.com
> (866) 519-4680 Toll-Free (916) 961-0447 Fax
> ===============================================================
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>
--
Stefano Kerschbaumer
Interline S.r.l.
Sede:
Via Romana, 7
38016 Mezzocorona TN
Uffici:
Via Tonale, 118
38010 Grumo San Michele a/A TN
Recapiti:
Tel 0039 0461 606248
Fax 0039 0461 909574
Email: stefano@interline.it
Web: http://www.interline.it
From kevin at cursor.biz Mon Dec 1 10:58:12 2003
From: kevin at cursor.biz (Kevin Walsh)
Date: Mon Dec 1 05:59:07 2003
Subject: [ic] usertrack file is too large
In-Reply-To: <000f01c3b7b6$76b12e80$9a7ba8c0@MVILLA>
Message-ID: <000401c3b7fa$037c7160$020110ac@majestic.cursor-software.co.uk>
Matthew Villa [mvilla213@sbcglobal.net]:
> My usertrack file in my logs/ directory has grown over 2 GB. Is there
> any script that can purge old entries in that file?
>
How about logrotate?
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
From interchange at dominic.per.sg Mon Dec 1 22:57:43 2003
From: interchange at dominic.per.sg (Dominic Tey)
Date: Mon Dec 1 09:57:26 2003
Subject: [ic] Certain Orders not showing up in the Admin UI
Message-ID: <3FCBC767.27450.1000504@localhost>
Hi,
My partner and I have this problem with our store using Interchange
4.9.5.
Certain Orders (both pending and archived) are not showing up in the
Admin UI.
However, the order details can be found in the following places:
1) the orders directory as the ordernumber
2) the transaction log in the logs/log file. All log entry indicate
that the order is successful, (i.e. details are appended with the
number 1)
3) tracking.asc where the details of the transactions can be found
No error at all in both the error.log in the catalog directory as
well as the interchange directory. No entries were found in icdebug.
It has occurred under at least 2 different type of circumstances:
a) the server time was reset to before the last date/time of the last
order number
b) the last order had the shipping method and total cost modified.
However, previous such modifications gave no such problem.
New orders do show up in the Admin UI without any problems.
Question:
Has anyone ever encountered such situations?
What are the possible reasons for it to occur?
Are there any possible solutions to avoid this particular problem?
Thanks in advance,
Dominic Tey
From marty at sediva.com Mon Dec 1 08:25:31 2003
From: marty at sediva.com (Marty Tennison)
Date: Mon Dec 1 11:27:49 2003
Subject: [ic] Implications of [input-filter] on "mv_credit_card_number
In-Reply-To: <3FCBC767.27450.1000504@localhost>
References: <3FCBC767.27450.1000504@localhost>
Message-ID: <1070295931.25421.16.camel@marty.mdhome.net>
Hi all,
4.9.7
Signio.pm
Just curious...
I'm trying to keep the customers from entering spaces,
slashes, dashes etc into the credit card number field.
Does anyone see anything wrong with this setup?
[input-filter name=mv_credit_card_number op=digits][/input-filter]
We only take Visa/MC, Discover and Amex so 20 digits is sufficient.
-- Marty Tennison
From edl at newmediaems.com Mon Dec 1 09:35:05 2003
From: edl at newmediaems.com (Ed LaFrance)
Date: Mon Dec 1 12:32:15 2003
Subject: [ic] Error perl script to upgrate 4.9
In-Reply-To: <3FCB0003.5020604@interline.it>
References: <5.2.1.1.0.20031117104159.02c32728@mail.newmediaems.com>
<5.2.1.1.0.20031117104159.02c32728@mail.newmediaems.com>
Message-ID: <5.2.1.1.0.20031201093443.02dd46b0@mail.newmediaems.com>
At 09:46 AM 12/1/2003 +0100, you wrote:
>In my apache error.log the error is general: Premature end of script
>headers: ....
>
>This is the code complete:
>
>[if value payment_method eq credit]
>[perl reparse=1 tables="products pricing shipping salestax" ] # I have
>add this: tables="products pricing shipping salestax"
>
>my $price = $Tag->total_cost({noformat => 1,}); # This is the line error
>and is the total cost of the order
>
>#my $price = 100,00; If I use this is OK !!!
>
>
>my $order_number = $Values->{mv_order_number};
>
>
>my $url_prepare = sprintf("http://xxx/xxx.asp?xxxxxx
>CF__CustOrderNumber=%s xxxxxxxxx Price=%s&Quantity=1 xxxxxx
>",$order_number,$order_number,$price);
>my $hash = "[get-url $url_prepare]";
>
>my $url_make = sprintf("http://xxxx/xxxx.asp?xxxxxxxxx
>VatFlag=0&VatRate=0.2&Price=%s&Currency=EUR&Quantity=1&Locale=it-IT-SL&StoreID=xxxxxxCF__CustOrderNumber=%s
>xxxxxxxxxxxxxxx",$order_number,$price);
>
>
>return "Per passare al pagamento clicca qui";
>[/perl]
>
>Slauti Stefano
Is there anything in the interchange error.log?
- Ed
===============================================================
New Media E.M.S. Technology Solutions for Business
11630 Fair Oaks Blvd., #250 eCommerce | Consulting | Hosting
Fair Oaks, CA 95628 edl@newmediaems.com
(916) 961-0446 http://www.newmediaems.com
(866) 519-4680 Toll-Free (916) 961-0447 Fax
===============================================================
From edl at newmediaems.com Mon Dec 1 09:39:11 2003
From: edl at newmediaems.com (Ed LaFrance)
Date: Mon Dec 1 12:36:22 2003
Subject: [ic] Implications of [input-filter] on
"mv_credit_card_number
In-Reply-To: <1070295931.25421.16.camel@marty.mdhome.net>
References: <3FCBC767.27450.1000504@localhost>
<3FCBC767.27450.1000504@localhost>
Message-ID: <5.2.1.1.0.20031201093800.02df19c0@mail.newmediaems.com>
At 08:25 AM 12/1/2003 -0800, you wrote:
>Hi all,
>
>4.9.7
>Signio.pm
>
>Just curious...
>
>I'm trying to keep the customers from entering spaces,
>slashes, dashes etc into the credit card number field.
>
>Does anyone see anything wrong with this setup?
>
>[input-filter name=mv_credit_card_number op=digits][/input-filter]
>
>
>We only take Visa/MC, Discover and Amex so 20 digits is sufficient.
>
>
>-- Marty Tennison
Nothing 'wrong' that comes to mind, but it is really not necessary, since
the interchange payment routines strip all non-digit characters from
mv_credit_card_number before evaluating it.
- Ed
===============================================================
New Media E.M.S. Technology Solutions for Business
11630 Fair Oaks Blvd., #250 eCommerce | Consulting | Hosting
Fair Oaks, CA 95628 edl@newmediaems.com
(916) 961-0446 http://www.newmediaems.com
(866) 519-4680 Toll-Free (916) 961-0447 Fax
===============================================================
From batschelet at exactasphere.com Mon Dec 1 13:11:31 2003
From: batschelet at exactasphere.com (Sam Batschelet)
Date: Mon Dec 1 13:12:16 2003
Subject: [ic] Item_option.html upgrade help
References: <3FCBC767.27450.1000504@localhost><3FCBC767.27450.1000504@localhost>
<5.2.1.1.0.20031201093800.02df19c0@mail.newmediaems.com>
Message-ID: <011301c3b836$8c236320$6501a8c0@craig>
I am trying to get item_option.html to work on an upgraded catalog in the
admin section. I migrated the foundation catalog from a 4.7.3 server to a
4.8.9 and it seems to only want to run item_option_old.html. I looked at
the code but still am a little lost, I was wondering if someone has gone
through this and knew what I had to upgrade to get this to work.
Many Thanks,
Sam
From batschelet at exactasphere.com Mon Dec 1 13:27:47 2003
From: batschelet at exactasphere.com (Sam Batschelet)
Date: Mon Dec 1 13:28:31 2003
Subject: [ic] Item_option.html upgrade help
References: <3FCBC767.27450.1000504@localhost><3FCBC767.27450.1000504@localhost><5.2.1.1.0.20031201093800.02df19c0@mail.newmediaems.com>
<011301c3b836$8c236320$6501a8c0@craig>
Message-ID: <013501c3b838$d1bb7ab0$6501a8c0@craig>
----- Original Message -----
From: "Sam Batschelet"
> I am trying to get item_option.html to work on an upgraded catalog in the
> admin section. I migrated the foundation catalog from a 4.7.3 server to a
> 4.8.9 and it seems to only want to run item_option_old.html. I looked at
> the code but still am a little lost, I was wondering if someone has gone
> through this and knew what I had to upgrade to get this to work.
>
> Many Thanks,
> Sam
>
Quick correction the new server was 4.9.8 vs. 4.8.9
From listbox at email.com Mon Dec 1 10:33:36 2003
From: listbox at email.com (Grant)
Date: Mon Dec 1 13:34:40 2003
Subject: [ic] Item_option.html upgrade help
In-Reply-To: <011301c3b836$8c236320$6501a8c0@craig>
Message-ID:
> I am trying to get item_option.html to work on an upgraded catalog in the
> admin section. I migrated the foundation catalog from a 4.7.3 server to a
> 4.8.9 and it seems to only want to run item_option_old.html. I looked at
> the code but still am a little lost, I was wondering if someone has gone
> through this and knew what I had to upgrade to get this to work.
>
> Many Thanks,
> Sam
Do you have an item_option_old.html file in the pages/admin section of your
catalog?
- Grant
From batschelet at exactasphere.com Mon Dec 1 13:38:53 2003
From: batschelet at exactasphere.com (Sam Batschelet)
Date: Mon Dec 1 13:39:37 2003
Subject: [ic] Html and product export issue
References: <3FCBC767.27450.1000504@localhost><3FCBC767.27450.1000504@localhost><5.2.1.1.0.20031201093800.02df19c0@mail.newmediaems.com>
<011301c3b836$8c236320$6501a8c0@craig>
Message-ID: <013d01c3b83a$5ec1f7d0$6501a8c0@craig>
4.9.8 foundation
In many of my items I use html in the description but I have found on export
that the html causes a big problem when i try to edit it infor example
Excel. Anyone have any input on a way I can go about this. The characters
in the HTML seem to be the issue with Excel / Access.
-Sam
From cwenham at synesmedia.com Mon Dec 1 13:53:23 2003
From: cwenham at synesmedia.com (Christopher Wenham)
Date: Mon Dec 1 13:48:58 2003
Subject: [ic] Conditional options report in mail receipt
Message-ID: <200312011353.23606.cwenham@synesmedia.com>
Is there a way to display item-options in the mail receipt without showing
options that have no value? I have a client who needs to suppress the display
of option labels when the value is empty, because otherwise the mail receipt
looks confusing to the customer.
Before writing a custom item-options-report tag, I'd like to know if this
functionality is already in the existing [item-options] tag. The "report=1"
parameter isn't sufficient on its own.
Regards,
--
Chris Wenham - Synesmedia, Inc.
http://www.synesmedia.com
516-620-4110 / 1-888-255-7573
Fax: 516-908-7824
From batschelet at exactasphere.com Mon Dec 1 13:56:11 2003
From: batschelet at exactasphere.com (Sam Batschelet)
Date: Mon Dec 1 13:56:57 2003
Subject: [ic] Item_option.html upgrade help
References:
Message-ID: <015501c3b83c$c9ffa9f0$6501a8c0@craig>
> > I am trying to get item_option.html to work on an upgraded catalog in
the
> > admin section. I migrated the foundation catalog from a 4.7.3 server to
a
> > 4.8.9 and it seems to only want to run item_option_old.html. I looked
at
> > the code but still am a little lost, I was wondering if someone has gone
> > through this and knew what I had to upgrade to get this to work.
> >
> > Many Thanks,
> > Sam
>
> Do you have an item_option_old.html file in the pages/admin section of
your
> catalog?
>
> - Grant
>
Hi Grant thanks for the reply,
Yeah and that works but there are some new options with the item_option.html
file for example that allow you to adjust the price of an option without
having to do it manually through the options table. BTW its a 4.9.8 server
not 4.8.9... thanks again
-Sam
From interchange-users at hertell.com Mon Dec 1 21:04:30 2003
From: interchange-users at hertell.com (Rene Hertell)
Date: Mon Dec 1 14:05:18 2003
Subject: [ic] Html and product export issue
In-Reply-To: <013d01c3b83a$5ec1f7d0$6501a8c0@craig>
Message-ID:
> In many of my items I use html in the description but I have
> found on export
> that the html causes a big problem when i try to edit it infor example
> Excel. Anyone have any input on a way I can go about this. The
> characters
> in the HTML seem to be the issue with Excel / Access.
Create a front-end with Access and link it with ODBC to your db (I use a
SSH-tunnel through the firewall to the db-server). That is a fast way to
maintain your db.
Rene
From listbox at email.com Mon Dec 1 11:31:51 2003
From: listbox at email.com (Grant)
Date: Mon Dec 1 14:32:37 2003
Subject: [ic] Item_option.html upgrade help
In-Reply-To: <015501c3b83c$c9ffa9f0$6501a8c0@craig>
Message-ID:
> > > I am trying to get item_option.html to work on an upgraded catalog in
> the
> > > admin section. I migrated the foundation catalog from a
> 4.7.3 server to
> a
> > > 4.8.9 and it seems to only want to run item_option_old.html. I looked
> at
> > > the code but still am a little lost, I was wondering if
> someone has gone
> > > through this and knew what I had to upgrade to get this to work.
> > >
> > > Many Thanks,
> > > Sam
> >
> > Do you have an item_option_old.html file in the pages/admin section of
> your
> > catalog?
> >
> > - Grant
> >
> Hi Grant thanks for the reply,
> Yeah and that works but there are some new options with the
> item_option.html
> file for example that allow you to adjust the price of an option without
> having to do it manually through the options table. BTW its a
> 4.9.8 server
> not 4.8.9... thanks again
>
> -Sam
What happens when you try to hit item_option.html?
- Grant
From batschelet at exactasphere.com Mon Dec 1 14:32:03 2003
From: batschelet at exactasphere.com (Sam Batschelet)
Date: Mon Dec 1 14:32:49 2003
Subject: [ic] Html and product export issue
References:
Message-ID: <018701c3b841$cc5edd60$6501a8c0@craig>
> > In many of my items I use html in the description but I have
> > found on export
> > that the html causes a big problem when i try to edit it infor example
> > Excel. Anyone have any input on a way I can go about this. The
> > characters
> > in the HTML seem to be the issue with Excel / Access.
>
> Create a front-end with Access and link it with ODBC to your db (I use a
> SSH-tunnel through the firewall to the db-server). That is a fast way to
> maintain your db.
>
> Rene
>
Many thanks Rene great idea!
-Sam
From batschelet at exactasphere.com Mon Dec 1 15:00:20 2003
From: batschelet at exactasphere.com (Sam Batschelet)
Date: Mon Dec 1 15:01:06 2003
Subject: [ic] Item_option.html upgrade help
References:
Message-ID: <019301c3b845$bfca3460$6501a8c0@craig>
> What happens when you try to hit item_option.html?
>
> - Grant
>
Grant,
When i hit it it goes to item_options_old.html, what I am trying to do is
add simple options to an item: But because of the code below it defaults to
item_option_old.html. I have updated the mysql table to include the new
columns which are part of the 4.9.8 package. In my catalogs which are made
in 4.9.8 simple options have a link to the flex editor which alows you to
alter the price of an option but i can't get that to show up on the old
upgraded sites (4.7.3). So I guess i am trying to figure out how to fix
this or atleast just add it. Should i just delete the o_enable column as
they are not still around in 4.9.8?
**********************************
my $oenable = $Config->{OptionsEnable};
if(! $oenable) {
$Scratch->{bounce_url} = $Tag->area( {
href => 'admin/item_option_old',
form => "
item_id=$CGI->{item_id}
",
});
return;
**********************************
-Sam
From listbox at email.com Mon Dec 1 13:01:45 2003
From: listbox at email.com (Grant)
Date: Mon Dec 1 16:02:30 2003
Subject: [ic] Item_option.html upgrade help
In-Reply-To: <019301c3b845$bfca3460$6501a8c0@craig>
Message-ID:
> > What happens when you try to hit item_option.html?
> >
> > - Grant
> >
> Grant,
> When i hit it it goes to item_options_old.html, what I am
> trying to do is
> add simple options to an item: But because of the code below it
> defaults to
> item_option_old.html. I have updated the mysql table to include the new
> columns which are part of the 4.9.8 package. In my catalogs
> which are made
> in 4.9.8 simple options have a link to the flex editor which alows you to
> alter the price of an option but i can't get that to show up on the old
> upgraded sites (4.7.3). So I guess i am trying to figure out how to fix
> this or atleast just add it. Should i just delete the o_enable column as
> they are not still around in 4.9.8?
>
> **********************************
> my $oenable = $Config->{OptionsEnable};
>
> if(! $oenable) {
> $Scratch->{bounce_url} = $Tag->area( {
>
> href => 'admin/item_option_old',
>
> form => "
>
> item_id=$CGI->{item_id}
>
> ",
>
> });
> return;
> **********************************
>
> -Sam
Is there an OptionsEnable directive that needs to be set?
- Grant
From batschelet at exactasphere.com Mon Dec 1 19:27:27 2003
From: batschelet at exactasphere.com (Sam Batschelet)
Date: Mon Dec 1 19:28:18 2003
Subject: [ic] Item_option.html upgrade help
References:
Message-ID: <01e101c3b86b$10bfc2c0$6501a8c0@craig>
> > > What happens when you try to hit item_option.html?
> > >
> > When i hit it it goes to item_options_old.html
>
> Is there an OptionsEnable directive that needs to be set?
>
> - Grant
Thats kind of my question I mean from looking at the code OptionsEnable is
when there is a 1 in the o_enable column of a product. Again its a 4.7.3
function and deleting the column does not fix the issue. Anyone?
-Sam
From joshua at kingdomdesign.com Mon Dec 1 18:58:37 2003
From: joshua at kingdomdesign.com (Joshua Lavin)
Date: Mon Dec 1 19:59:15 2003
Subject: [ic] Item_option.html upgrade help
In-Reply-To: <01e101c3b86b$10bfc2c0$6501a8c0@craig>
Message-ID:
On Monday, December 1, 2003, at 06:27 PM, Sam Batschelet wrote:
>
>>>> What happens when you try to hit item_option.html?
>>>>
>>> When i hit it it goes to item_options_old.html
>>
>> Is there an OptionsEnable directive that needs to be set?
>>
>> - Grant
>
> Thats kind of my question I mean from looking at the code
> OptionsEnable is
> when there is a 1 in the o_enable column of a product. Again its a
> 4.7.3
> function and deleting the column does not fix the issue. Anyone?
>
> -Sam
I think you might need to copy an etc/after.cfg to your upgraded
catalog (use makecat with the foundation demo). In mine, there are a
few lines which might do what you need:
OptionsEnable option_type
Replace ProductFiles
ProductFiles products variants
Josh
From batschelet at exactasphere.com Mon Dec 1 21:33:05 2003
From: batschelet at exactasphere.com (Sam Batschelet)
Date: Mon Dec 1 21:33:51 2003
Subject: [ic] Item_option.html upgrade help
References:
Message-ID: <01f601c3b87c$9dc9f620$6501a8c0@craig>
> >>>> What happens when you try to hit item_option.html?
> >>>>
> >>> When i hit it it goes to item_options_old.html
> >>
> >> Is there an OptionsEnable directive that needs to be set?
> >>
> >> - Grant
>
> I think you might need to copy an etc/after.cfg to your upgraded
> catalog (use makecat with the foundation demo). In mine, there are a
> few lines which might do what you need:
>
> OptionsEnable option_type
> Replace ProductFiles
> ProductFiles products variants
>
> Josh
>
Good call Josh that did the trick as far as getting the item_option.html to
be used but now other issues seem to plauge me. First of all the old
options are now unusable and I can't seem to get pass the option selector
screen. I see that there is work to be done with the variant table and I
have made sure that all of the colums are there for products is there an
easier way to do this? The main thing here is the upgrade path of these
catalogs mv_metadata obviously doens't take care of it all. Thanks again
Josh
From gerhard at pugmarks.net Tue Dec 2 18:35:17 2003
From: gerhard at pugmarks.net (Gerhard Conradi)
Date: Tue Dec 2 08:08:11 2003
Subject: [ic] order process
Message-ID: <00af01c3b8d4$ef103460$490a0a0a@pugmarks>
Hi @ all,
can anybody explain where the code for the order processing is located?
The background:
I have a checkout page where the customer can change the shipping addresses
for the order (with a select field, populated from the address book). Ok,
that works fine. But if the customer changes the address and sends the order
the address data becomes changed in the userdb as well.
What I want is that the default shipping address in the userdb not is
touched and the address that has been selected during the checkout is the
one that is written into the transaction table.
So I guess that anywhere there's a code which contains a SQL command like
"INSERT INTO userdb VALUES..." (or a similar ITL tag) . And that I don't
need.
Somebody an idea?
Thanks
Gerhard
From mike at perusion.com Tue Dec 2 09:06:37 2003
From: mike at perusion.com (Mike Heins)
Date: Tue Dec 2 09:07:22 2003
Subject: [ic] order process
In-Reply-To: <00af01c3b8d4$ef103460$490a0a0a@pugmarks>
References: <00af01c3b8d4$ef103460$490a0a0a@pugmarks>
Message-ID: <20031202140637.GA11900@bill.heins.net>
Quoting Gerhard Conradi (gerhard@pugmarks.net):
> Hi @ all,
>
> can anybody explain where the code for the order processing is located?
>
> The background:
> I have a checkout page where the customer can change the shipping addresses
> for the order (with a select field, populated from the address book). Ok,
> that works fine. But if the customer changes the address and sends the order
> the address data becomes changed in the userdb as well.
> What I want is that the default shipping address in the userdb not is
> touched and the address that has been selected during the checkout is the
> one that is written into the transaction table.
> So I guess that anywhere there's a code which contains a SQL command like
> "INSERT INTO userdb VALUES..." (or a similar ITL tag) . And that I don't
> need.
This is done with [userdb save], normally as a result of submitting the
checkout page in the Save_database click. All you have to do is remove
the mv_check setting which calls this, or make it a radio button
defaulting to don't save.
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295
How far can you open your mind before your brains fall out?
From aaronmail at hazenet.net Tue Dec 2 09:16:57 2003
From: aaronmail at hazenet.net (Aaron Hazelton)
Date: Tue Dec 2 09:17:45 2003
Subject: [ic] order process
In-Reply-To: <00af01c3b8d4$ef103460$490a0a0a@pugmarks>
References: <00af01c3b8d4$ef103460$490a0a0a@pugmarks>
Message-ID:
On Tue, 2 Dec 2003 18:35:17 +0530, Gerhard Conradi
wrote:
> Hi @ all,
>
> the address data becomes changed in the userdb as well.
> What I want is that the default shipping address in the userdb not is
> touched and the address that has been selected during the checkout is the
> one that is written into the transaction table.
not sure exactly how your 'address book' or values thereof are set up,
but you can modify the files: etc/log_entry and etc/log_transaction where
updates are made to the userdb table.
actually, i believe the userdb stuff is only in log_entry ..
> Somebody an idea?
>
> Thanks
> Gerhard
>
HTH
--
Aaron Hazelton
Hazenet.net
From pater.noster at gmx.net Tue Dec 2 17:01:24 2003
From: pater.noster at gmx.net (Thomas Weiss)
Date: Tue Dec 2 11:02:05 2003
Subject: [ic] Table creation error when using database mappings
Message-ID: <20031202160124.GA1850@worxpace>
Hi all,
I'm using Interchange 4.9.9 with PostgreSQL. For internationalisation
I'm using the locale based database mappings found in the foundation
catalog. Now there is a problem when importing a database/table with
mappings into an sql database with support for transactions. The actual
problem is raised in Vend::Table::Common (in function
import_ascii_delimited()) when trying to call the commit() function on
the database table object, which for databases with mappings is
represented by Vend::Table::Shadow, which unfortunately doesn't
implement a commit() function.
Adding the following simple function to Vend::Table::Shadow resolves the
problem:
sub commit {
my ($s) = @_;
$s = $s->import_db() unless defined $s->[$OBJ];
return $s->[$OBJ]->commit();
}
As I don't have a full understanding of Interchange's internals I would
like to know if this is the right way to fix this problem.
Bye,
Thomas
From wfiore at aftermarketcellular.com Tue Dec 2 11:14:49 2003
From: wfiore at aftermarketcellular.com (Aftermarket Cellular)
Date: Tue Dec 2 11:15:33 2003
Subject: [ic] ip validation
Message-ID:
Hi,
I have recently received hundreds of fraudulent attempts on my merchant
account from within my interchange store, where a customer uses various
credit card numbers to find a valid one. The transactions are being
declined by authorize.net but I am still receiving an $.08 decline fee
each time. Is there an available script that will block an ip address
after three attempts.
Thank you
-Bill Fiore
--
From tode at bpanet.de Tue Dec 2 17:41:34 2003
From: tode at bpanet.de (Lars Tode)
Date: Tue Dec 2 11:44:13 2003
Subject: [ic] Problem with PGP and credit card
Message-ID:
Hi,
a few days before i read about "set up gpg with interchange" in the mailling
list.
Few informations about the server
os : FreeBSD 4.4-RELEASE
gpg : gpg (GnuPG) 1.2.1
IC : 4.8.7
I thought myself it could not be a problem, because the tutorial was not
bad. So I began.
I set the variables
- PGP /usr/local/bin/gpg --no-default-keyring --always-trust --keyring
/usr/home/foo/.gnupg/public.gpg -e -a --batch -t -r '%s'
- PGP_KEY foo@localhost
in the variable.txt
Add to the catalog.cfg :
Variable EncryptProgram __PGP__
Variable EncyptKey __PGP_KEY__
Route Main looks like this (think you want to know):
Route main attach 0
Route main credit_card 1
Route main cybermode ""
Route main default 1
Route main email '__ORDERS_TO__'
Route main encrypt 0
Route main encrypt_program "__PGP__"
Route main errors_to '__ORDERS_TO__'
Route main increment 0
Route main pgp_cc_key "__PGP_KEY__"
Route main pgp_key "__PGP_KEY__"
Route main receipt etc/receipt.html
Route main report etc/report
Route main supplant 1
Route main individual_track orders
Route main track logs/tracking.asc
Everytime I get a report the value of mv_credit_card_info is NEED ENCRYPTION
ENABLED.
OK, so i look back in the route main, found encrypt and set it 1, but than
the email contains nothing.
So I change it back.
The report use this to send the email text :
[tag op=mime description="Order Text" interpolate=1]
[scratch order_text]
[/tag]
Now I've no idea what is wrong and how I can fix it.
Help, please.
Regards,
Lars
From interchange-users at hertell.com Tue Dec 2 18:56:16 2003
From: interchange-users at hertell.com (Rene Hertell)
Date: Tue Dec 2 11:57:05 2003
Subject: [ic] ip validation
In-Reply-To:
Message-ID:
> Hi,
>
> I have recently received hundreds of fraudulent attempts on my merchant
> account from within my interchange store, where a customer uses various
> credit card numbers to find a valid one. The transactions are being
> declined by authorize.net but I am still receiving an $.08 decline fee
> each time. Is there an available script that will block an ip address
> after three attempts.
You could place this piece of code on the checkout-page
[if term="[env REMOTE_ADDR]" op="eq" compare="12.34.56.78"]
[bounce href="[area tage.html]"]
[/if]
Ren?
From ven at pragakhan.com Tue Dec 2 12:08:14 2003
From: ven at pragakhan.com (Victor Nolton)
Date: Tue Dec 2 12:10:29 2003
Subject: [ic] Free Shipping On Single Item
In-Reply-To:
References:
Message-ID:
>Looking for a way (usertag etc) to give free shipping on only 1 item
>(item 58-0100). Yet I want to still want to use my standard shipping
>lookup I Have.
>
>I've tried doing something to where the cost of the item is
>removed/subtracted from the @@TOTAL@@, then in turn the standard
>lookup is used. I failed.
>
>Archives have pointed me to free shipping on entire order, shipping
>based on zipcode etc.
>
>Considering just adding a freeshipping field to the products
>database and using that, but still not sure how it would be done.
Wow, no suggestions? I would of sworn someone out there would of done
this already.
Perhaps it is time for another stradegy.
Ven
From Treahy at MMaz.com Tue Dec 2 10:18:25 2003
From: Treahy at MMaz.com (Barry Treahy, Jr.)
Date: Tue Dec 2 12:19:08 2003
Subject: [ic] Problem with PGP and credit card
In-Reply-To:
References:
Message-ID: <3FCCC961.6040105@MMaz.com>
Lars Tode wrote:
>Hi,
>
>a few days before i read about "set up gpg with interchange" in the mailling
>list.
>
>Few informations about the server
>
>os : FreeBSD 4.4-RELEASE
>gpg : gpg (GnuPG) 1.2.1
>IC : 4.8.7
>
>
>Now I've no idea what is wrong and how I can fix it.
>
>
>
What errors are recorded in the logs?
Barry
--
Barry Treahy, Jr E-mail: Treahy@MMaz.com
Midwest Microwave Phone: 480/314-1320
Vice President & CIO FAX: 480/661-7028
From tode at bpanet.de Tue Dec 2 18:40:22 2003
From: tode at bpanet.de (Lars Tode)
Date: Tue Dec 2 12:42:57 2003
Subject: AW: [ic] Problem with PGP and credit card
In-Reply-To: <3FCCC961.6040105@MMaz.com>
Message-ID:
Hi,
> What errors are recorded in the logs?
>
> Barry
>
The shop error.log and the ic server error.log do not contain any errors.
If I call gpg outside via shell, it work fine. I do the test that are
describe in the tutorial an get no error.
Regards,
Lars
From smiller at twincs.com Tue Dec 2 11:44:56 2003
From: smiller at twincs.com (Scott Miller)
Date: Tue Dec 2 12:45:40 2003
Subject: [ic] Admin login problems after upgrade to 4.9.9
In-Reply-To: <3FC4E206.1060005@twincs.com>
References: <000401c3b438$5d56be40$0d00a8c0@CORP.BROADGAP.COM>
<3FC4E206.1060005@twincs.com>
Message-ID: <3FCCCF98.3020705@twincs.com>
>>>>> Hi All,
>>>>>
>>>>> I recently upgraded from Interchange 4.9.5 to 4.9.9. Previously, I
>>>>> had
>>>>> upgraded from 4.8.7 to 4.9.5. I'm using the Foundation demo with no
>>>>> changes to the admin section. Running on RedHat 7.2 with MySQL. I
>>>>> upgraded using the cross-platform tarball and followed the
>>>>> instructions from the UPGRADE document.
>>>>>
>>>>> The main web site works great after the upgrade with no problems that
>>>>> I have noticed. I can login as a customer and not have any problems.
>>>>>
>>>>> However, the admin site is having login problems. I can login and it
>>>>> will display the main menu. If I click on any link, it them
>>>>> bounces me
>>>>> back to the login page. If I login again, it then takes me to the
>>>>> page
>>>>> I selected. If I click on another link, it them bounces me back to
>>>>> the
>>>>> login page again. This keeps repeating until I get bored and move on.
>>>>> :-)
>>>>>
>>>>> I've reinstalled the Bundle::Interchange with no luck and I've
>>>>> checked
>>>>> the error logs.
>>>>>
>>>>> Does any one have any suggestions for me?
>>>>>
>>>>> Thanks!
>>>>> Scott
>>>>>
>>>>
>>>> I had this same problem in my Safari browser on my Mac. Camino works
>>>> fine, and does a better job with the DHTML anyways.
>>>>
>>>> Try another browser?
>>>>
>>>> Josh
>>>>
>>>>
>>>
>>> Thanks for the suggestion. I have tried it with IE 5.5, IE 6.0, and
>>> Netscape
>>> 7.1 with the same results. I'm thinking it is something with my IC
>>> configuration but I'm just not sure what.
>>>
>>>
>>
>>
>> I experience the problems you have mentioned from time to time,
>> however, it
>> is usually fixed with an exit of IE or a reboot and a clearing of the
>> browser cache.
>>
>> I know that you have tried several browsers so I wonder what the common
>> thread might be. Have all your test been from the same machine or
>> different
>> machines?
>>
>> Also, have you tried the 4.9.9 Demo at http://demo.icdevgroup.org
>>
>> This might help localize it to a machine specific or server specific
>> problem.
>>
>> -Gary
>>
> Hi Gary,
>
> I've tried two different machines at home and two different machines
> at work with the same results. I tried the 4.9.9 demo at
> http://demo.icdevgroup.org and it worked wonderfully. Its really
> looking like I probably did something to my IC installation. Thanks
> for the suggestions. Please let me know if you have any other ideas or
> pointers on where I should look.
>
> Scott
I still haven't been able to figure out this problem. Is there an easy
way to totally disable the admin security? All administrators have full
access to every thing within the admin site so I don't need any of the
role functionality. I would then just use the web server to secure the
site.
This isn't my ideal solution but it would give me some more time to
figure it out.
Thanks again for all of the suggestions.
Scott
From john_young at sonic.net Tue Dec 2 10:28:36 2003
From: john_young at sonic.net (John Young)
Date: Tue Dec 2 13:29:15 2003
Subject: AW: [ic] Problem with PGP and credit card
References:
Message-ID: <3FCCD9D4.5070303@sonic.net>
Lars Tode wrote:
> Hi,
>
>>What errors are recorded in the logs?
>>
>>Barry
>>
>
> The shop error.log and the ic server error.log do not contain any errors.
>
> If I call gpg outside via shell, it work fine. I do the test that are
> describe in the tutorial an get no error.
Take a look in your Interchange tmp directory (...catalogname/tmp or
whatever).
If I recall correctly, GPG/PGP output/errors will write to an
obviously-named
file there.
John Young
From Treahy at MMaz.com Tue Dec 2 11:32:01 2003
From: Treahy at MMaz.com (Barry Treahy, Jr.)
Date: Tue Dec 2 13:32:46 2003
Subject: AW: [ic] Problem with PGP and credit card
In-Reply-To:
References:
Message-ID: <3FCCDAA1.2070309@MMaz.com>
Lars Tode wrote:
>Hi,
>
>
>
>>What errors are recorded in the logs?
>>
>>Barry
>>
>>
>>
>
>The shop error.log and the ic server error.log do not contain any errors.
>
>If I call gpg outside via shell, it work fine. I do the test that are
>describe in the tutorial an get no error.
>
>
>
Any you are seeing the receipts page? Are you sure your routing isn't
hosed?
Barry
--
Barry Treahy, Jr E-mail: Treahy@MMaz.com
Midwest Microwave Phone: 480/314-1320
Vice President & CIO FAX: 480/661-7028
From docelic at mail.inet.hr Tue Dec 2 20:29:02 2003
From: docelic at mail.inet.hr (Davor Ocelic)
Date: Tue Dec 2 14:29:43 2003
Subject: [ic] PIDfile in IC 4.9.9
Message-ID: <20031202202902.2ba60ea5.docelic@mail.inet.hr>
Hi,
Is it just me, or interchange --stop wants
/usr/local/interchange/etc/interchange.pid
regardless of PIDfile setting in interchange.cfg ?
(On interchange --serve, the correct setting for PIDfile is used).
-doc
From gem at rellim.com Tue Dec 2 11:35:45 2003
From: gem at rellim.com (Gary E. Miller)
Date: Tue Dec 2 14:36:55 2003
Subject: [ic] ip validation
In-Reply-To:
References:
Message-ID:
Yo Bill!
On Tue, 2 Dec 2003, Aftermarket Cellular wrote:
> Is there an available script that will block an ip address
> after three attempts.
Carefull here. Every single user on my cities cable modem service shows
up as coming from just one IP. That is the IP of their local web cache.
Folks in this city are often locked out from web sites that have usage
limits. THe smart ones try to be first to those sites just after midnight
when the usage counter resets.
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 20340 Empire Blvd, Suite E-3, Bend, OR 97701
gem@rellim.com Tel:+1(541)382-8588 Fax: +1(541)382-8676
From ryan at ryangrace.com Tue Dec 2 12:11:41 2003
From: ryan at ryangrace.com (Ryan Grace)
Date: Tue Dec 2 15:05:04 2003
Subject: [ic] Admin login problems after upgrade to 4.9.9
In-Reply-To: <3FCCCF98.3020705@twincs.com>
References: <000401c3b438$5d56be40$0d00a8c0@CORP.BROADGAP.COM>
<3FC4E206.1060005@twincs.com> <3FCCCF98.3020705@twincs.com>
Message-ID:
On Tue, 2 Dec 2003, Scott Miller wrote:
>
> >>>>> Hi All,
> >>>>>
> >>>>> I recently upgraded from Interchange 4.9.5 to 4.9.9. Previously, I
> >>>>> had
> >>>>> upgraded from 4.8.7 to 4.9.5. I'm using the Foundation demo with no
> >>>>> changes to the admin section. Running on RedHat 7.2 with MySQL. I
> >>>>> upgraded using the cross-platform tarball and followed the
> >>>>> instructions from the UPGRADE document.
> >>>>>
> >>>>> The main web site works great after the upgrade with no problems that
> >>>>> I have noticed. I can login as a customer and not have any problems.
> >>>>>
> >>>>> However, the admin site is having login problems. I can login and it
> >>>>> will display the main menu. If I click on any link, it them
> >>>>> bounces me
> >>>>> back to the login page. If I login again, it then takes me to the
> >>>>> page
> >>>>> I selected. If I click on another link, it them bounces me back to
> >>>>> the
> >>>>> login page again. This keeps repeating until I get bored and move on.
> >>>>> :-)
> >>>>>
> >>>>> I've reinstalled the Bundle::Interchange with no luck and I've
> >>>>> checked
> >>>>> the error logs.
> >>>>>
> >>>>> Does any one have any suggestions for me?
> >>>>>
> >>>>> Thanks!
> >>>>> Scott
> >>>>>
> >>>>
> >>>> I had this same problem in my Safari browser on my Mac. Camino works
> >>>> fine, and does a better job with the DHTML anyways.
> >>>>
> >>>> Try another browser?
> >>>>
> >>>> Josh
> >>>>
> >>>>
> >>>
> >>> Thanks for the suggestion. I have tried it with IE 5.5, IE 6.0, and
> >>> Netscape
> >>> 7.1 with the same results. I'm thinking it is something with my IC
> >>> configuration but I'm just not sure what.
> >>>
> >>>
> >>
> >>
> >> I experience the problems you have mentioned from time to time,
> >> however, it
> >> is usually fixed with an exit of IE or a reboot and a clearing of the
> >> browser cache.
> >>
> >> I know that you have tried several browsers so I wonder what the common
> >> thread might be. Have all your test been from the same machine or
> >> different
> >> machines?
> >>
> >> Also, have you tried the 4.9.9 Demo at http://demo.icdevgroup.org
> >>
> >> This might help localize it to a machine specific or server specific
> >> problem.
> >>
> >> -Gary
> >>
> > Hi Gary,
> >
> > I've tried two different machines at home and two different machines
> > at work with the same results. I tried the 4.9.9 demo at
> > http://demo.icdevgroup.org and it worked wonderfully. Its really
> > looking like I probably did something to my IC installation. Thanks
> > for the suggestions. Please let me know if you have any other ideas or
> > pointers on where I should look.
> >
> > Scott
>
> I still haven't been able to figure out this problem. Is there an easy
> way to totally disable the admin security? All administrators have full
> access to every thing within the admin site so I don't need any of the
> role functionality. I would then just use the web server to secure the
> site.
>
> This isn't my ideal solution but it would give me some more time to
> figure it out.
>
> Thanks again for all of the suggestions.
> Scott
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>
I ran into some weird admin UI login problems a while ago and it turned out I didn't have the URL alias I was using for my site listed in interchange.cfg. Are you rewriting URLs with Apache? If so you need to have the URL alias you're using listed at the end of the catalog's entry in interchange.cfg. If you don't then you won't get a cookie set correctly at login. So you may get past the login screen to the main menu, but when you hit a page that checks for your login again it will think you're not cause the cookie's not set right.
Ryan
From tom at globalfocusdm.com Tue Dec 2 12:25:09 2003
From: tom at globalfocusdm.com (Thomas J.M. Burton)
Date: Tue Dec 2 15:25:54 2003
Subject: [ic] Getting rid of /cgi-bin/scriptname
References: <3E730B06.9050006@dvdupgrades.ch>
Message-ID: <03b801c3b912$620069d0$0a0111ac@TJMB>
> Thank you
>
> In the meantime I found a few new rules that you should put in:
>
> RewriteEngine On
>
> RewriteRule ^/error/(.+)$ - [L,NS]
> RewriteRule ^/images/(.+)$ - [L,NS]
>
> RewriteRule ^$ /cgi-bin/shop/mods.html [L,NS,PT]
> RewriteRule ^/$ /cgi-bin/shop/mods.html [L,NS,PT]
> RewriteRule ^/index\.html$ /cgi-bin/shop/mods.html [L,NS,PT]
>
> RewriteCond /home/shop/www/html/%{REQUEST_FILENAME} -f [OR]
> RewriteCond /home/shop/www/html/%{REQUEST_FILENAME} -d
> RewriteRule ^(.+)$ - [L,NS]
>
> RewriteCond /%{REQUEST_FILENAME} !^.*/cgi-bin/shop.*$
> RewriteRule ^(.+)$ /cgi-bin/shop/$1 [L,NS,PT]
>
>
> Basically the one with 'error' in it will make sure server error
> messages do not get forwarded
> to interchange (resulting in a potential endless loop).
>
> Furthermore hard-wiring the images is suggested; a lot of people forget
> to put in all pictures needed.
>
> I will put it into wiki soon...
>
> Frederic
Hello Frederic,
I saw your posts on the list about getting rid of the /cgi-bin/scriptname
portion of Interchange catalog URLs using apache's mod_rewrite. I've been
trying this out on a catalog I'm building and it's working great except for
one thing.
There are certain areas in the Admin UI that aren't rewriting correctly and
result in an error. I happens when performing functions such as edits or
deletions on a database, looks like it may have to do with the urls that
contain a /ui portion.
I'm not very familiar with mod_rewrite and was wondering if you've come across
this problem in the catalog you set up or if you have any ideas on rules that
will fix it.
To anyone else reading this:
I've seen reference to mod_interchange and have looked a bit at
http://www.interchange.rtfm.info/downloads/mod_interchange.html, but I'm
unclear as to how this will effect the IC catalogs I have running. I run
multiple catalogs and would prefer to set up something on a per-catalog basis
that won't require me to go into each catalog's config in order to prevent
malfunctions. Anyone out there who's using mod_interchange, could you please
let me know more about how it works with multiple catalogs?
Thanks,
Tom
Running
Apache 1.3.27
Interchange 4.8.6
___________________________________
Thomas J.M. Burton
Global Focus Digital Media, LLC
www.globalfocusdm.com
From aaronmail at hazenet.net Tue Dec 2 15:46:22 2003
From: aaronmail at hazenet.net (Aaron Hazelton)
Date: Tue Dec 2 15:47:17 2003
Subject: [ic] Getting rid of /cgi-bin/scriptname
In-Reply-To: <03b801c3b912$620069d0$0a0111ac@TJMB>
References: <3E730B06.9050006@dvdupgrades.ch>
<03b801c3b912$620069d0$0a0111ac@TJMB>
Message-ID:
On Tue, 2 Dec 2003 12:25:09 -0800, Thomas J.M. Burton
wrote:
[snip plethora of mod_rewrites]
>
> To anyone else reading this:
> I've seen reference to mod_interchange and have looked a bit at
> http://www.interchange.rtfm.info/downloads/mod_interchange.html, but I'm
> unclear as to how this will effect the IC catalogs I have running. I run
> multiple catalogs and would prefer to set up something on a per-catalog
> basis
> that won't require me to go into each catalog's config in order to
> prevent
> malfunctions. Anyone out there who's using mod_interchange, could you
> please
> let me know more about how it works with multiple catalogs?
excellent! it is perfect and you do not have to use it for every
catalog, only the ones that you want. basically, you enable
mod_interchange
so that it can be used, then only on catalogs that you want to use
it on, modify your apache configs for that virtual domain with a few lines
and all of the other catalogs can be left alone. then modify the url
settings in your variable file and your done. its the way to go ...
>
> Thanks,
> Tom
>
> Running
> Apache 1.3.27
> Interchange 4.8.6
>
--
Aaron Hazelton
Hazenet.net
From tom at globalfocusdm.com Tue Dec 2 13:03:19 2003
From: tom at globalfocusdm.com (Thomas J.M. Burton)
Date: Tue Dec 2 16:03:54 2003
Subject: [ic] Getting rid of /cgi-bin/scriptname
References: <3E730B06.9050006@dvdupgrades.ch><03b801c3b912$620069d0$0a0111ac@TJMB>
Message-ID: <03df01c3b917$b68742d0$0a0111ac@TJMB>
--snip out bulk of my previous message --
> > Anyone out there who's using mod_interchange, could you
> > please
> > let me know more about how it works with multiple catalogs?
From: "Aaron Hazelton"
> excellent! it is perfect and you do not have to use it for every
> catalog, only the ones that you want. basically, you enable
> mod_interchange
> so that it can be used, then only on catalogs that you want to use
> it on, modify your apache configs for that virtual domain with a few lines
> and all of the other catalogs can be left alone. then modify the url
> settings in your variable file and your done. its the way to go ...
Thanks, Aaron! Any suggestions for a good walk-through on setting up
mod_interchange?
-Tom
From bill at worldwideimpact.com Tue Dec 2 16:27:35 2003
From: bill at worldwideimpact.com (Bill Carr)
Date: Tue Dec 2 16:28:20 2003
Subject: [ic] indirect login with unique column
Message-ID: <1070400455.2531.20.camel@localhost>
IC 4.9.9, MySQL 4.0.16
I have indirect_login set to email in my UserDB config. I also have a
UNIQUE INDEX on my email column in the userdb table. This seems like a
reasonable thing to do.
Creating a new account was not working because of the UNIQUE INDEX. It
worked once but would not work after that because the insert statement
was failing with out including the 'email' value.
I have made some hacks to UserDB.pm to fix this for myself. I will post
the changes if anyone thinks they would be of value. Someone please tell
me if I am just missing something here.
Thanks and Happy ICing!
--
Bill Carr
Worldwide Impact
bill@worldwideimpact.com
413-253-6700
From smiller at twincs.com Tue Dec 2 15:53:18 2003
From: smiller at twincs.com (Scott Miller)
Date: Tue Dec 2 16:53:58 2003
Subject: [ic] Admin login problems after upgrade to 4.9.9
In-Reply-To:
References: <000401c3b438$5d56be40$0d00a8c0@CORP.BROADGAP.COM> <3FC4E206.1060005@twincs.com>
<3FCCCF98.3020705@twincs.com>
Message-ID: <3FCD09CE.7000908@twincs.com>
>>>>>>>Hi All,
>>>>>>>
>>>>>>>I recently upgraded from Interchange 4.9.5 to 4.9.9. Previously, I
>>>>>>>had
>>>>>>>upgraded from 4.8.7 to 4.9.5. I'm using the Foundation demo with no
>>>>>>>changes to the admin section. Running on RedHat 7.2 with MySQL. I
>>>>>>>upgraded using the cross-platform tarball and followed the
>>>>>>>instructions from the UPGRADE document.
>>>>>>>
>>>>>>>The main web site works great after the upgrade with no problems that
>>>>>>>I have noticed. I can login as a customer and not have any problems.
>>>>>>>
>>>>>>>However, the admin site is having login problems. I can login and it
>>>>>>>will display the main menu. If I click on any link, it them
>>>>>>>bounces me
>>>>>>>back to the login page. If I login again, it then takes me to the
>>>>>>>page
>>>>>>>I selected. If I click on another link, it them bounces me back to
>>>>>>>the
>>>>>>>login page again. This keeps repeating until I get bored and move on.
>>>>>>>:-)
>>>>>>>
>>>>>>>I've reinstalled the Bundle::Interchange with no luck and I've
>>>>>>>checked
>>>>>>>the error logs.
>>>>>>>
>>>>>>>Does any one have any suggestions for me?
>>>>>>>
>>>>>>>Thanks!
>>>>>>>Scott
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>I had this same problem in my Safari browser on my Mac. Camino works
>>>>>>fine, and does a better job with the DHTML anyways.
>>>>>>
>>>>>>Try another browser?
>>>>>>
>>>>>>Josh
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>Thanks for the suggestion. I have tried it with IE 5.5, IE 6.0, and
>>>>>Netscape
>>>>>7.1 with the same results. I'm thinking it is something with my IC
>>>>>configuration but I'm just not sure what.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>I experience the problems you have mentioned from time to time,
>>>>however, it
>>>>is usually fixed with an exit of IE or a reboot and a clearing of the
>>>>browser cache.
>>>>
>>>>I know that you have tried several browsers so I wonder what the common
>>>>thread might be. Have all your test been from the same machine or
>>>>different
>>>>machines?
>>>>
>>>>Also, have you tried the 4.9.9 Demo at http://demo.icdevgroup.org
>>>>
>>>>This might help localize it to a machine specific or server specific
>>>>problem.
>>>>
>>>>-Gary
>>>>
>>>>
>>>>
>>>Hi Gary,
>>>
>>>I've tried two different machines at home and two different machines
>>>at work with the same results. I tried the 4.9.9 demo at
>>>http://demo.icdevgroup.org and it worked wonderfully. Its really
>>>looking like I probably did something to my IC installation. Thanks
>>>for the suggestions. Please let me know if you have any other ideas or
>>>pointers on where I should look.
>>>
>>>Scott
>>>
>>>
>>I still haven't been able to figure out this problem. Is there an easy
>>way to totally disable the admin security? All administrators have full
>>access to every thing within the admin site so I don't need any of the
>>role functionality. I would then just use the web server to secure the
>>site.
>>
>>This isn't my ideal solution but it would give me some more time to
>>figure it out.
>>
>>Thanks again for all of the suggestions.
>>Scott
>>
>>
>>
>I ran into some weird admin UI login problems a while ago and it turned out I didn't have the URL alias I was using for my site listed in interchange.cfg. Are you rewriting URLs with Apache? If so you need to have the URL alias you're using listed at the end of the catalog's entry in interchange.cfg. If you don't then you won't get a cookie set correctly at login. So you may get past the login screen to the main menu, but when you hit a page that checks for your login again it will think you're not cause the cookie's not set right.
>
>Ryan
>
>
Hi Ryan,
I'm actually not doing any rewriting but I think you might be onto
something with the cookies. When I log into my admin site, it does not
set the "MV_SESSION_ID" cookie. When I log into the admin site at
http://demo.icdevgroup.org, it does set the cookie.
Where is the logic that sets the MV_SESSION_ID cookie? I would like to
check it out and see why it isn't getting set.
Thanks for your help.
Scott
From joshua at kingdomdesign.com Tue Dec 2 16:20:05 2003
From: joshua at kingdomdesign.com (Joshua Lavin)
Date: Tue Dec 2 17:20:50 2003
Subject: [ic] Free Shipping On Single Item
In-Reply-To:
Message-ID:
On Tuesday, December 2, 2003, at 11:08 AM, Victor Nolton wrote:
>> Looking for a way (usertag etc) to give free shipping on only 1 item
>> (item 58-0100). Yet I want to still want to use my standard shipping
>> lookup I Have.
>>
>> I've tried doing something to where the cost of the item is
>> removed/subtracted from the @@TOTAL@@, then in turn the standard
>> lookup is used. I failed.
>>
>> Archives have pointed me to free shipping on entire order, shipping
>> based on zipcode etc.
>>
>> Considering just adding a freeshipping field to the products database
>> and using that, but still not sure how it would be done.
>
> Wow, no suggestions? I would of sworn someone out there would of done
> this already.
>
> Perhaps it is time for another stradegy.
>
> Ven
I'm doing free shipping on one item by checking for that item on the
checkout page, and if ordered, erasing the shipping, but only if they
haven't selected a faster shipping method (my default is 'flat'). It's
pretty limited, but here's the code:
[if ordered 1003227]
[and value mv_shipmode eq "flat"]
[assign shipping=0.00]
[else]
[assign clear=1]
[/else]
[/if]
Josh
From smiller at twincs.com Tue Dec 2 16:42:47 2003
From: smiller at twincs.com (Scott Miller)
Date: Tue Dec 2 17:43:48 2003
Subject: [ic] Admin login problems after upgrade to 4.9.9
In-Reply-To: <3FCD09CE.7000908@twincs.com>
References: <000401c3b438$5d56be40$0d00a8c0@CORP.BROADGAP.COM> <3FC4E206.1060005@twincs.com>
<3FCCCF98.3020705@twincs.com>
<3FCD09CE.7000908@twincs.com>
Message-ID: <3FCD1567.3030906@twincs.com>
>>>>>>>> Hi All,
>>>>>>>>
>>>>>>>> I recently upgraded from Interchange 4.9.5 to 4.9.9. Previously, I
>>>>>>>> had
>>>>>>>> upgraded from 4.8.7 to 4.9.5. I'm using the Foundation demo
>>>>>>>> with no
>>>>>>>> changes to the admin section. Running on RedHat 7.2 with MySQL. I
>>>>>>>> upgraded using the cross-platform tarball and followed the
>>>>>>>> instructions from the UPGRADE document.
>>>>>>>>
>>>>>>>> The main web site works great after the upgrade with no
>>>>>>>> problems that
>>>>>>>> I have noticed. I can login as a customer and not have any
>>>>>>>> problems.
>>>>>>>>
>>>>>>>> However, the admin site is having login problems. I can login
>>>>>>>> and it
>>>>>>>> will display the main menu. If I click on any link, it them
>>>>>>>> bounces me
>>>>>>>> back to the login page. If I login again, it then takes me to the
>>>>>>>> page
>>>>>>>> I selected. If I click on another link, it them bounces me back to
>>>>>>>> the
>>>>>>>> login page again. This keeps repeating until I get bored and
>>>>>>>> move on.
>>>>>>>> :-)
>>>>>>>>
>>>>>>>> I've reinstalled the Bundle::Interchange with no luck and I've
>>>>>>>> checked
>>>>>>>> the error logs.
>>>>>>>>
>>>>>>>> Does any one have any suggestions for me?
>>>>>>>>
>>>>>>>> Thanks!
>>>>>>>> Scott
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> I had this same problem in my Safari browser on my Mac. Camino
>>>>>>> works
>>>>>>> fine, and does a better job with the DHTML anyways.
>>>>>>>
>>>>>>> Try another browser?
>>>>>>>
>>>>>>> Josh
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> Thanks for the suggestion. I have tried it with IE 5.5, IE 6.0, and
>>>>>> Netscape
>>>>>> 7.1 with the same results. I'm thinking it is something with my IC
>>>>>> configuration but I'm just not sure what.
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> I experience the problems you have mentioned from time to time,
>>>>> however, it
>>>>> is usually fixed with an exit of IE or a reboot and a clearing of the
>>>>> browser cache.
>>>>>
>>>>> I know that you have tried several browsers so I wonder what the
>>>>> common
>>>>> thread might be. Have all your test been from the same machine or
>>>>> different
>>>>> machines?
>>>>>
>>>>> Also, have you tried the 4.9.9 Demo at http://demo.icdevgroup.org
>>>>>
>>>>> This might help localize it to a machine specific or server specific
>>>>> problem.
>>>>>
>>>>> -Gary
>>>>>
>>>>>
>>>>
>>>> Hi Gary,
>>>>
>>>> I've tried two different machines at home and two different machines
>>>> at work with the same results. I tried the 4.9.9 demo at
>>>> http://demo.icdevgroup.org and it worked wonderfully. Its really
>>>> looking like I probably did something to my IC installation. Thanks
>>>> for the suggestions. Please let me know if you have any other ideas or
>>>> pointers on where I should look.
>>>>
>>>> Scott
>>>>
>>>
>>> I still haven't been able to figure out this problem. Is there an easy
>>> way to totally disable the admin security? All administrators have full
>>> access to every thing within the admin site so I don't need any of the
>>> role functionality. I would then just use the web server to secure the
>>> site.
>>>
>>> This isn't my ideal solution but it would give me some more time to
>>> figure it out.
>>>
>>> Thanks again for all of the suggestions.
>>> Scott
>>>
>>>
>>
>> I ran into some weird admin UI login problems a while ago and it
>> turned out I didn't have the URL alias I was using for my site listed
>> in interchange.cfg. Are you rewriting URLs with Apache? If so you
>> need to have the URL alias you're using listed at the end of the
>> catalog's entry in interchange.cfg. If you don't then you won't get
>> a cookie set correctly at login. So you may get past the login
>> screen to the main menu, but when you hit a page that checks for your
>> login again it will think you're not cause the cookie's not set right.
>>
>> Ryan
>>
>>
> Hi Ryan,
>
> I'm actually not doing any rewriting but I think you might be onto
> something with the cookies. When I log into my admin site, it does not
> set the "MV_SESSION_ID" cookie. When I log into the admin site at
> http://demo.icdevgroup.org, it does set the cookie.
>
> Where is the logic that sets the MV_SESSION_ID cookie? I would like to
> check it out and see why it isn't getting set.
>
> Thanks for your help.
> Scott
I got it working. I set the CookieDomain in my catalog.cfg and that took
care of the problem. I must have just been getting lucky in the older
versions of IC and didn't need it. Thanks for pointing me in the right
direction!
Scott
From mike at perusion.com Tue Dec 2 19:20:28 2003
From: mike at perusion.com (Mike Heins)
Date: Tue Dec 2 19:21:10 2003
Subject: [ic] indirect login with unique column
In-Reply-To: <1070400455.2531.20.camel@localhost>
References: <1070400455.2531.20.camel@localhost>
Message-ID: <20031203002028.GA19340@bill.heins.net>
Quoting Bill Carr (bill@worldwideimpact.com):
> IC 4.9.9, MySQL 4.0.16
>
> I have indirect_login set to email in my UserDB config. I also have a
> UNIQUE INDEX on my email column in the userdb table. This seems like a
> reasonable thing to do.
>
> Creating a new account was not working because of the UNIQUE INDEX. It
> worked once but would not work after that because the insert statement
> was failing with out including the 'email' value.
>
> I have made some hacks to UserDB.pm to fix this for myself. I will post
> the changes if anyone thinks they would be of value. Someone please tell
> me if I am just missing something here.
I don't understand why you think there are two INSERT operations.
If you are telling me that a subsequent UPDATE fails because the email
column is not included in the list of fields updated, I would say that
is a problem in MySQL. I see no reason that you have to include a field
on every update.
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295
There's nothing sweeter than life nor more precious than time.
-- Barney
From bill at worldwideimpact.com Tue Dec 2 21:09:28 2003
From: bill at worldwideimpact.com (Bill Carr)
Date: Tue Dec 2 21:10:16 2003
Subject: [ic] indirect login with unique column
References: <1070400455.2531.20.camel@localhost>
<20031203002028.GA19340@bill.heins.net>
Message-ID: <009a01c3b942$830b1eb0$0100a8c0@STARSHINE>
----- Original Message -----
From: "Mike Heins"
To:
Sent: Tuesday, December 02, 2003 7:20 PM
Subject: Re: [ic] indirect login with unique column
> Quoting Bill Carr (bill@worldwideimpact.com):
> > IC 4.9.9, MySQL 4.0.16
> >
> > I have indirect_login set to email in my UserDB config. I also have a
> > UNIQUE INDEX on my email column in the userdb table. This seems like a
> > reasonable thing to do.
> >
> > Creating a new account was not working because of the UNIQUE INDEX. It
> > worked once but would not work after that because the insert statement
> > was failing with out including the 'email' value.
> >
> > I have made some hacks to UserDB.pm to fix this for myself. I will post
> > the changes if anyone thinks they would be of value. Someone please tell
> > me if I am just missing something here.
>
> I don't understand why you think there are two INSERT operations.
>
> If you are telling me that a subsequent UPDATE fails because the email
> column is not included in the list of fields updated, I would say that
> is a problem in MySQL. I see no reason that you have to include a field
> on every update.
In Vend::UserDB::new_account there is this:
my $pass = $udb->set_field(
$self->{USERNAME},
$self->{LOCATION}{PASSWORD},
$pw,
);
die ::errmsg("Database access error.") . "\n" unless defined $pass;
if($foreign) { ...
If you somehow have row with a value of '' in the email column the above
dies. MySQL complains with error 1062 duplicate key '' for key 2. Now I
realize that there should not be a value of '' in the email column but some
how it happened. When it did no one else could create an account and
therefore no new customers could buy anything a this particular store.
I rewrote the above as follows and it solved my problem.
my $fary;
my $vary;
push @$fary, $self->{LOCATION}{PASSWORD};
push @$vary, $pw;
if($foreign) {
push @$fary,$foreign;
push @$vary,$self->{PASSED_USERNAME};
}
my $pass = $udb->set_slice(
$self->{USERNAME},
$fary,
$vary,
);
Please tell me what you think. I can take it like a man!
Bill Carr
From prtyof5 at attglobal.net Tue Dec 2 21:24:56 2003
From: prtyof5 at attglobal.net (Jon)
Date: Tue Dec 2 21:25:31 2003
Subject: [ic] ip validation
References:
Message-ID: <3FCD4978.9D004DBE@attglobal.net>
> Hi,
>
> I have recently received hundreds of fraudulent attempts on my merchant
> account from within my interchange store, where a customer uses various
> credit card numbers to find a valid one. The transactions are being
> declined by authorize.net but I am still receiving an $.08 decline fee
> each time. Is there an available script that will block an ip address
> after three attempts.
>
Bill.
This could be obvious to everyone else but would you mind sharing
how/when
did you realize this was happening i.e. what triggered you ? And perhaps
share the
IP address so everyone can check their logs ? Sounds kind of scary to me.
Jon
From wfiore at aftermarketcellular.com Tue Dec 2 21:43:38 2003
From: wfiore at aftermarketcellular.com (Aftermarket Cellular)
Date: Tue Dec 2 21:44:09 2003
Subject: [ic] ip validation
In-Reply-To: <3FCD4978.9D004DBE@attglobal.net>
Message-ID: <000201c3b947$41a5b020$0300a8c0@VAIO>
Jon wrote
"This could be obvious to everyone else but would you mind sharing
how/when did you realize this was happening i.e. what triggered you?
And perhaps share the IP address so everyone can check their logs?"
I was first notified of this activity by my merchant account (NOVA). I
don't have the ip address of this specific perpetrator (nor am I sure
how to obtain this information). I was hoping to just block any three
declines in a row by the same customer. The information being used with
the fraudulent credit card numbers is listed below:
Name: bgfbn bfbnnvbv
Company:
Address: bnbb
City: chicagp
State/Province: il
Zip Code: 60602
Country: usa
Phone: 65677565778
Fax:
Email: bhmbmnb@hfhhjhj.com
Thanks
-Bill Fiore
From andy at andymayer.net Wed Dec 3 11:29:00 2003
From: andy at andymayer.net (Andy Mayer)
Date: Wed Dec 3 11:30:24 2003
Subject: [ic] IC Hall of Fame
Message-ID: <1070468940.2885.43.camel@larry.andymayer.net>
Hi,
We'd like to submit the following site to the hall of fame if it's
considered worthy:
http://www.stthomaschurchshop.org.uk
Sorry if this post is the wrong place, but I can't find anywhere to
submit it on the icdevgroup site.
King regards,
Andy
--
+--------------------------------------------------------------------
http://andymayer.net
Painless IT solutions
127 Manchester Road, Sheffield S10 5DN, United Kingdom
office: +44 (0) 114 2631336 / mobile: +44 (0) 7976 717210
+--------------------------------------------------------------------
From tode at bpanet.de Wed Dec 3 02:14:58 2003
From: tode at bpanet.de (Lars Tode)
Date: Wed Dec 3 11:34:49 2003
Subject: AW: AW: [ic] Problem with PGP and credit card
In-Reply-To: <3FCCD9D4.5070303@sonic.net>
Message-ID:
Hi John,
> Take a look in your Interchange tmp directory (...catalogname/tmp or
> whatever).
> If I recall correctly, GPG/PGP output/errors will write to an
> obviously-named
> file there.
I've a look today morning threw all directories and subdirectories in tmp
and found no file that created by gpg/pgp.
Why do you think it could be a gpg problem?
Regards,
Lars
From tode at bpanet.de Wed Dec 3 02:19:55 2003
From: tode at bpanet.de (Lars Tode)
Date: Wed Dec 3 11:34:51 2003
Subject: AW: AW: [ic] Problem with PGP and credit card
In-Reply-To: <3FCCDAA1.2070309@MMaz.com>
Message-ID:
Hi Barry,
> Any you are seeing the receipts page?
yes I finish the order process everytime successfully. Just in the report
mail for the shop owner the value of mv_credit_card_info is always NEED
ENCRYPTION ENABLED.
> Are you sure your routing isn't hosed?
Sorry I didn't get what you mean.
Regards,
Lars
From gerhard at pugmarks.net Tue Dec 2 23:19:38 2003
From: gerhard at pugmarks.net (Gerhard Conradi)
Date: Wed Dec 3 11:41:58 2003
Subject: [ic] order process
References: <00af01c3b8d4$ef103460$490a0a0a@pugmarks>
Message-ID: <001001c3b954$aa8c2ad0$490a0a0a@pugmarks>
Hi Aaron,
that's it: etc/log_entry. I only have to understand how it works exactly,
but I will master that.
Thanks to all the help,
greetings
Gerhard
----- Original Message -----
From: "Aaron Hazelton"
To:
Sent: Tuesday, December 02, 2003 7:46 PM
Subject: Re: [ic] order process
> not sure exactly how your 'address book' or values thereof are set up,
> but you can modify the files: etc/log_entry and etc/log_transaction where
> updates are made to the userdb table.
>
> actually, i believe the userdb stuff is only in log_entry ..
>
> HTH
> --
> Aaron Hazelton
> Hazenet.net
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
From tode at bpanet.de Wed Dec 3 11:40:32 2003
From: tode at bpanet.de (Lars Tode)
Date: Wed Dec 3 11:43:07 2003
Subject: AW: [ic] Problem with PGP and credit card
Message-ID:
Hi Barry,
> Any you are seeing the receipts page?
yes I finish the order process everytime successfully. Just in the report
mail for the shop owner the value of mv_credit_card_info is always NEED
ENCRYPTION ENABLED.
> Are you sure your routing isn't hosed?
Sorry I didn't get what you mean.
Regards,
Lars
From mike at perusion.com Tue Dec 2 22:34:24 2003
From: mike at perusion.com (Mike Heins)
Date: Wed Dec 3 11:46:06 2003
Subject: [ic] indirect login with unique column
In-Reply-To: <009a01c3b942$830b1eb0$0100a8c0@STARSHINE>
References: <1070400455.2531.20.camel@localhost>
<20031203002028.GA19340@bill.heins.net>
<009a01c3b942$830b1eb0$0100a8c0@STARSHINE>
Message-ID: <20031203033424.GA21463@bill.heins.net>
Quoting Bill Carr (bill@worldwideimpact.com):
> ----- Original Message -----
> From: "Mike Heins"
> To:
> Sent: Tuesday, December 02, 2003 7:20 PM
> Subject: Re: [ic] indirect login with unique column
>
>
> > Quoting Bill Carr (bill@worldwideimpact.com):
> > > IC 4.9.9, MySQL 4.0.16
> > >
> > > I have indirect_login set to email in my UserDB config. I also have a
> > > UNIQUE INDEX on my email column in the userdb table. This seems like a
> > > reasonable thing to do.
> > >
> > > Creating a new account was not working because of the UNIQUE INDEX. It
> > > worked once but would not work after that because the insert statement
> > > was failing with out including the 'email' value.
> > >
> > > I have made some hacks to UserDB.pm to fix this for myself. I will post
> > > the changes if anyone thinks they would be of value. Someone please tell
> > > me if I am just missing something here.
> >
> > I don't understand why you think there are two INSERT operations.
> >
> > If you are telling me that a subsequent UPDATE fails because the email
> > column is not included in the list of fields updated, I would say that
> > is a problem in MySQL. I see no reason that you have to include a field
> > on every update.
> In Vend::UserDB::new_account there is this:
>
> my $pass = $udb->set_field(
> $self->{USERNAME},
> $self->{LOCATION}{PASSWORD},
> $pw,
> );
> die ::errmsg("Database access error.") . "\n" unless defined $pass;
>
> if($foreign) { ...
>
> If you somehow have row with a value of '' in the email column the above
> dies. MySQL complains with error 1062 duplicate key '' for key 2. Now I
> realize that there should not be a value of '' in the email column but some
> how it happened. When it did no one else could create an account and
> therefore no new customers could buy anything a this particular store.
>
> I rewrote the above as follows and it solved my problem.
> my $fary;
> my $vary;
> push @$fary, $self->{LOCATION}{PASSWORD};
> push @$vary, $pw;
> if($foreign) {
> push @$fary,$foreign;
> push @$vary,$self->{PASSED_USERNAME};
> }
>
> my $pass = $udb->set_slice(
> $self->{USERNAME},
> $fary,
> $vary,
> );
>
>
> Please tell me what you think. I can take it like a man!
I think it is fine. The case seems pretty borderline, but I guess
it could happen; it did. 8-)
I think that the $pass = ... is wrong, though. It will actually
return the username. Perhaps the value is not used after that;
but it would make sense to name it something else.
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295
Some people have twenty years of experience, some people have
one year of experience twenty times over. -- Anonymous
From jon at endpoint.com Wed Dec 3 11:46:48 2003
From: jon at endpoint.com (Jon Jensen)
Date: Wed Dec 3 11:47:22 2003
Subject: [ic] IC Hall of Fame
In-Reply-To: <1070468940.2885.43.camel@larry.andymayer.net>
References: <1070468940.2885.43.camel@larry.andymayer.net>
Message-ID:
On Wed, 3 Dec 2003, Andy Mayer wrote:
> We'd like to submit the following site to the hall of fame if it's
> considered worthy:
>
> http://www.stthomaschurchshop.org.uk
>
> Sorry if this post is the wrong place, but I can't find anywhere to
> submit it on the icdevgroup site.
There's a form for submitting sites at the bottom of the full Hall of Fame
listing:
http://www.icdevgroup.org/i/dev/hall.html
There's a link to it at the top of the page.
Jon
From chen at lilux.co.il Wed Dec 3 02:45:40 2003
From: chen at lilux.co.il (Chen Naor)
Date: Wed Dec 3 12:15:05 2003
Subject: [ic] big orders - slow performance - pgsql
Message-ID: <009201c3b971$73515960$0b32a8c0@lilux.co.il>
Hello,
I have some performance problem while entering big orders 50 - 200 items with options.
It seems to me that the INSERT command for the orderline is causing the problems.
I know that in Postgres there an option to speedup this process by using the COPY command.
Can someone help me out on this issue - it suppose to go to the log_transaction in some way.
Here is my configuration:
2 X P3-550Mhz 512MB RAM
Fedora 1.0
IC 4.9.9 (RPM)
Perl 5.8.2 + Bundle::Interchange (from source)
Postgresql 7.4
Thanx,
Chen Naor
Lilux Systems
http://www.lilux.co.il/
mail: chen@lilux.co.il
From tartis at cellularmountain.com Wed Dec 3 10:05:06 2003
From: tartis at cellularmountain.com (Terral Artis)
Date: Wed Dec 3 12:15:23 2003
Subject: [ic] Discount Tag Question
Message-ID: <6.0.0.22.0.20031203094346.01e6b6d8@mail.cellularmountain.com>
I am using IC 4.86, and have the discount tag working in the checkout
page. The problem that I have is that the customer receipt shows the old
price without the discount applied. The subtotal and total are correct
thought. Do I need to do something with the receipt page? I also have the
same problem if I look at the order in Admin.
Here is the tag from checkout.html
[discount code=ALL_ITEMS] $s * .90 [/discount]
Remove
SKU
Description
Quantity
Price
Extension
TIA
Terral
From ronnie at karatedepot.com Wed Dec 3 12:47:52 2003
From: ronnie at karatedepot.com (Aaron Rubin)
Date: Wed Dec 3 12:33:56 2003
Subject: [ic] Discount Tag Question
In-Reply-To: <6.0.0.22.0.20031203094346.01e6b6d8@mail.cellularmountain.com>
Message-ID: <001201c3b9c5$93057490$fa9ea818@D7V3KR11>
Are you sure the discount is actually being applied? Is the correct
total or the total pre-discount being charged to their CC?
Make sure you don't have a [discount ALL_ITEMS][/discount] somewhere,
which would remove the discount.
--
Aaron Rubin
http://www.KarateDepot.com
-----Original Message-----
From: interchange-users-bounces@icdevgroup.org
[mailto:interchange-users-bounces@icdevgroup.org] On Behalf Of Terral
Artis
Sent: Wednesday, December 03, 2003 10:05 AM
To: interchange-users@icdevgroup.org
Subject: [ic] Discount Tag Question
I am using IC 4.86, and have the discount tag working in the checkout
page. The problem that I have is that the customer receipt shows the
old
price without the discount applied. The subtotal and total are correct
thought. Do I need to do something with the receipt page? I also have
the
same problem if I look at the order in Admin.
Here is the tag from checkout.html
[discount code=ALL_ITEMS] $s * .90 [/discount]
Remove
SKU
Description
Quantity
Price
Extension
TIA
Terral
_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
From Treahy at MMaz.com Wed Dec 3 12:41:44 2003
From: Treahy at MMaz.com (Barry Treahy, Jr.)
Date: Wed Dec 3 12:42:24 2003
Subject: AW: [ic] Problem with PGP and credit card
In-Reply-To:
References:
Message-ID: <3FCE2058.2010202@MMaz.com>
Lars Tode wrote:
>Hi Barry,
>
>
>
>>Any you are seeing the receipts page?
>>
>>
>yes I finish the order process everytime successfully. Just in the report
>mail for the shop owner the value of mv_credit_card_info is always NEED
>ENCRYPTION ENABLED.
>
>
>
from Order.pm:
sub pgp_encrypt {
my($body, $key, $cmd) = @_;
#::logDebug("called pgp_encrypt key=$key cmd=$cmd");
$cmd = $Vend::Cfg->{EncryptProgram} unless $cmd;
$key = $Vend::Cfg->{EncryptKey} unless $key;
if("\L$cmd" eq 'none') {
return ::errmsg("NEED ENCRYPTION ENABLED.");
}
this is the source of your error, which tells me that you did not tell
IC where to find gpg, or that gpg is not in IC's path...
Barry
--
Barry Treahy, Jr E-mail: Treahy@MMaz.com
Midwest Microwave Phone: 480/314-1320
Vice President & CIO FAX: 480/661-7028
From pater.noster at gmx.net Wed Dec 3 12:45:40 2003
From: pater.noster at gmx.net (Thomas Weiss)
Date: Wed Dec 3 12:46:23 2003
Subject: [ic] Performance issues with i18n
Message-ID: <20031203174540.GA1844@worxpace>
Hi all,
I'm building an internationalized catalog with Interchange 4.9.9 and the
locale based database mappings as found in the foundation catalog. My
problem is that as soon as the mappings are used (by using a locale
other than the default) everything gets terribly slow. The reason is the
way Vend::Table::Shadow applies the mappings when querying the database.
For example when using the foundation catalog's data and database mapping
settings it takes about 80 sql queries to build the category menu (with
the category_vertical component) when using the default locale (no
mappings in use, no Vend::Table::Shadow), but with a non-default locale
in use it takes about 950 sql queries to do the same, which is IMHO way
too much to be efficient.
So, have I missed something? Is there an alternative way to do
internationalisation of the catalog data in Interchange? How are others
doing it besides throwing fat hardware at the problem?
Thomas
From tartis at cellularmountain.com Wed Dec 3 12:47:48 2003
From: tartis at cellularmountain.com (Terral Artis)
Date: Wed Dec 3 12:48:24 2003
Subject: [ic] Discount Tag Question
Message-ID: <6.0.0.22.0.20031203124434.01e8b8e8@mail.cellularmountain.com>
I am using IC 4.86, and have the discount tag working in the checkout
page. The problem that I have is that the customer receipt shows the old
price without the discount applied. The subtotal and total are correct
thought. Do I need to do something with the receipt page? I also have the
same problem if I look at the order in Admin. Do I need to do something
with CommonAdjust? Any help would be appreciated.
Here is the tag from checkout.html
[discount code=ALL_ITEMS] $s * .90 [/discount]
Remove
SKU
Description
Quantity
Price
Extension
Here is example of email.
Quan Item No. Description Price Extension
---- ----------- -------------------------------- -------------
---------------
2 DDYYDDKK My Stuff $16.49 $32.98
SUBTOTAL $29.68
SALES TAX $0.00
SHIPPING $9.95
ORDER TOTAL $39.63
TIA
Terral
From joshua at kingdomdesign.com Wed Dec 3 13:13:50 2003
From: joshua at kingdomdesign.com (Joshua Lavin)
Date: Wed Dec 3 13:14:37 2003
Subject: [ic] Discount Tag Question
In-Reply-To: <6.0.0.22.0.20031203094346.01e6b6d8@mail.cellularmountain.com>
Message-ID: <724E1F8A-25BC-11D8-9499-0030654BBC4C@kingdomdesign.com>
On Wednesday, December 3, 2003, at 09:05 AM, Terral Artis wrote:
> I am using IC 4.86, and have the discount tag working in the checkout
> page. The problem that I have is that the customer receipt shows the
> old price without the discount applied. The subtotal and total are
> correct thought. Do I need to do something with the receipt page? I
> also have the same problem if I look at the order in Admin.
[snip]
>
> Terral
You need to change the [item-price] and [item-subtotal] tags to
[item-discount-price] and [item-discount-subtotal], respectively. These
should show the discounted price if there's a discount, if not, the
regular price.
I posted this bug on Nov 10 under the subject: Bug in
etc/log_transaction or PREFIX-subtotal. Fixing etc/log_transaction will
fix your Admin. Here's a snip from that post:
----
The docs claim that PREFIX-subtotal takes discounts into effect, but
this is not happening.
I've fixed my etc/log_transaction by changing the subtotal line (where
the orderline rows are written) to:
"subtotal: [if discount [item-code]][item-discount-subtotal
noformat][else][item-subtotal noformat][/else][/if]"
This also fixes the orders (new ones, anyways) in the UI.
Perhaps there's a better way to do that, or perhaps the PREFIX-subtotal
tag should be fixed? Earlier, I had to change
include/checkout/shopping_cart, etc/receipt.html, and etc/mail_receipt
to use the PREFIX-discount-subtotal tag as well.
----
(My etc/mail_receipt item subtotal looks like: [if discount
[item-code]][item-discount-subtotal][else][item-subtotal][/else][/if].
Maybe the if isn't necessary, I don't remember.)
Regards,
Josh
From admin at yoursole.com Wed Dec 3 16:20:36 2003
From: admin at yoursole.com (Andrew Baerg)
Date: Wed Dec 3 16:19:01 2003
Subject: [ic] Problems with SOAP
Message-ID: <200312032118.hB3LILHS021411@icdevgroup.org>
Hello,
I am having identical problems to what Racke posted back in March. I am wondering if this issue was ever resolved?
Thanks for your help,
Andrew Baerg
-----Original Message-----
From: Stefan Hornburg [mailto:racke@linuxia.de]
Sent: Thursday, March 06, 2003 9:49 AM
To: Interchange Users
Subject: [ic] Problems with SOAP
Hello,
for two projects I would like to use Interchange as SOAP server (4.9). I
wrote a little
test script, but unfortunately it fails:
#! /usr/bin/perl
use strict;
use warnings;
use SOAP::Lite;
my $ic = SOAP::Lite -> uri ('http://localhost:7780/Vend/SOAP/')
-> proxy ('http://localhost:7780/matstock')
-> on_debug (sub {print @_})
;
$ic->Values->result();
Here is the debugging output:
cd /home/racke/matstock/soap/
/home/racke/matstock/soap/test.pl
POST http://localhost:7780/matstock
Accept: text/xml
Accept: multipart/*
Content-Length: 458
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://localhost:7780/Vend/SOAP/#Values"
HTTP/1.0 200 OK
Content-Type: text/xml
Client-Date: Thu, 06 Mar 2003 14:46:45 GMT
Client-Junk: 11upsg
Client-Response-Num: 1
Can't call method "result" on an undefined value at
/home/racke/matstock/soap/test.pl line 13.
Interpretation exited abnormally with code 9 at Thu Mar 6 15:46:45
What the heck is the Client-Junk header ? Is that coming from SOAP::Lite.
If I telnet to localhost 7780 and paste the query, the answer is coming in
the body of the
HTTP response.
I would really appreciate any help in this matter, because I'm stuck for now
with this
problem.
Bye
Racke
From smartin at steamvalve.com Wed Dec 3 05:23:07 2003
From: smartin at steamvalve.com (Scott Martin)
Date: Wed Dec 3 17:24:09 2003
Subject: [ic] newbie question
Message-ID: <200312030523.07667.smartin@steamvalve.com>
Hello,
I am trying to set up using the foundation store as my template. I was adding
products via the item editor and for some reason can no longer add items.
I tried looking this up in archives and have nbot been able to locate a reason
for this.
Debian Sarge, IC 4.8.7, Perl 5.8.0 (called with: /usr/bin/perl).
Any thoughts or should I reinstall and start over?
Thanks
Scott Martin
smartin@steamvalve.com
From mike at perusion.com Wed Dec 3 17:23:55 2003
From: mike at perusion.com (Mike Heins)
Date: Wed Dec 3 17:24:36 2003
Subject: [ic] big orders - slow performance - pgsql
In-Reply-To: <009201c3b971$73515960$0b32a8c0@lilux.co.il>
References: <009201c3b971$73515960$0b32a8c0@lilux.co.il>
Message-ID: <20031203222355.GA31990@bill.heins.net>
Quoting Chen Naor (chen@lilux.co.il):
> Hello,
>
> I have some performance problem while entering big orders 50 - 200 items with options.
> It seems to me that the INSERT command for the orderline is causing the problems.
> I know that in Postgres there an option to speedup this process by using the COPY command.
> Can someone help me out on this issue - it suppose to go to the log_transaction in some way.
>
> Here is my configuration:
> 2 X P3-550Mhz 512MB RAM
> Fedora 1.0
> IC 4.9.9 (RPM)
> Perl 5.8.2 + Bundle::Interchange (from source)
> Postgresql 7.4
>
I bet you don't have transactions enabled. Set TRANSACTION_TABLES
to "userdb orderline transactions inventory" in preferences.
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295
Fast, reliable, cheap. Pick two and we'll talk. -- unknown
From andy at andymayer.net Wed Dec 3 17:37:38 2003
From: andy at andymayer.net (Andy Mayer)
Date: Wed Dec 3 17:39:34 2003
Subject: [ic] IC Hall of Fame
In-Reply-To:
References: <1070468940.2885.43.camel@larry.andymayer.net>
Message-ID: <1070491058.2981.1.camel@larry.andymayer.net>
On Wed, 2003-12-03 at 16:46, Jon Jensen wrote:
> There's a form for submitting sites at the bottom of the full Hall of Fame
> listing:
>
> http://www.icdevgroup.org/i/dev/hall.html
>
> There's a link to it at the top of the page.
>
> Jon
Duh! Sorry Jon I didn't see that for some reason!
Thanks,
Andy
From rbragg at gmnet.net Wed Dec 3 18:09:49 2003
From: rbragg at gmnet.net (Rick Bragg)
Date: Wed Dec 3 18:10:33 2003
Subject: [ic] newbie question
References: <200312030523.07667.smartin@steamvalve.com>
Message-ID: <3FCE6D3D.4060600@gmnet.net>
Scott Martin wrote:
> Hello,
>
> I am trying to set up using the foundation store as my template. I was adding
> products via the item editor and for some reason can no longer add items.
>
> I tried looking this up in archives and have nbot been able to locate a reason
> for this.
>
> Debian Sarge, IC 4.8.7, Perl 5.8.0 (called with: /usr/bin/perl).
>
> Any thoughts or should I reinstall and start over?
>
> Thanks
> Scott Martin
> smartin@steamvalve.com
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>
Hi Scott,
Try looking in the error logs. If there is a problem, it should show up
there. Anything there? It could be many things, could you be more
specific?
--
Rick Bragg
Green Mountain Network
web: http://www.gmnet.net
email: rbragg@gmnet.net
From icdev at mrlock.com Wed Dec 3 18:20:33 2003
From: icdev at mrlock.com (Steve)
Date: Wed Dec 3 18:21:15 2003
Subject: [ic] ip validation
In-Reply-To: <000201c3b947$41a5b020$0300a8c0@VAIO>
Message-ID:
> To: interchange-users@icdevgroup.org
> Subject: RE: [ic] ip validation
>
>
> Jon wrote
>
> "This could be obvious to everyone else but would you mind sharing
> how/when did you realize this was happening i.e. what triggered you?
> And perhaps share the IP address so everyone can check their logs?"
>
>
> I was first notified of this activity by my merchant account (NOVA). I
> don't have the ip address of this specific perpetrator (nor am I sure
> how to obtain this information). I was hoping to just block any three
> declines in a row by the same customer. The information being used with
> the fraudulent credit card numbers is listed below:
>
> -Bill Fiore
You might consider checking the session id, and see if it was the same for
all attempts - maybe you could limit it in this fashion.
-Steve Graham
From smartin at steamvalve.com Wed Dec 3 10:20:52 2003
From: smartin at steamvalve.com (Scott Martin)
Date: Wed Dec 3 22:21:49 2003
Subject: [ic] newbie question
In-Reply-To: <3FCE6D3D.4060600@gmnet.net>
References: <200312030523.07667.smartin@steamvalve.com>
<3FCE6D3D.4060600@gmnet.net>
Message-ID: <200312031020.53105.smartin@steamvalve.com>
On Wednesday 03 December 2003 06:09 pm, Rick Bragg wrote:
> Scott Martin wrote:
> > Hello,
> >
> > I am trying to set up using the foundation store as my template. I was
> > adding products via the item editor and for some reason can no longer add
> > items.
> >
> > I tried looking this up in archives and have nbot been able to locate a
> > reason for this.
> >
> > Debian Sarge, IC 4.8.7, Perl 5.8.0 (called with: /usr/bin/perl).
> >
> > Any thoughts or should I reinstall and start over?
> >
> > Thanks
> > Scott Martin
> > smartin@steamvalve.com
> >
> > _______________________________________________
> > interchange-users mailing list
> > interchange-users@icdevgroup.org
> > http://www.icdevgroup.org/mailman/listinfo/interchange-users
>
> Hi Scott,
>
> Try looking in the error logs. If there is a problem, it should show up
> there. Anything there? It could be many things, could you be more
> specific?
Hi,
Being new at this, I think the error message I get is as follows:
127.0.0.1 rS682zTf:127.0.0.1 - [01/December/2003:09:13:38 -0500] foundation /
cgi-bin/ic/foundation/ui probable bad form -- number of values min=0
(comment) max=2 (sku)
Thanks for responding
Scott Martin
smartin@steamvalve.com
From racke at linuxia.de Thu Dec 4 07:32:19 2003
From: racke at linuxia.de (Stefan Hornburg)
Date: Thu Dec 4 07:32:54 2003
Subject: [ic] ip validation
In-Reply-To:
References:
Message-ID: <20031204133219.30a0292d.racke@linuxia.de>
On Tue, 2 Dec 2003 18:56:16 +0200
"Rene Hertell" wrote:
> > Hi,
> >
> > I have recently received hundreds of fraudulent attempts on my merchant
> > account from within my interchange store, where a customer uses various
> > credit card numbers to find a valid one. The transactions are being
> > declined by authorize.net but I am still receiving an $.08 decline fee
> > each time. Is there an available script that will block an ip address
> > after three attempts.
>
> You could place this piece of code on the checkout-page
>
> [if term="[env REMOTE_ADDR]" op="eq" compare="12.34.56.78"]
> [bounce href="[area tage.html]"]
> [/if]
I would block them on the firewall or by Apache.
Ciao
Racke
--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team
From racke at linuxia.de Thu Dec 4 07:43:05 2003
From: racke at linuxia.de (Stefan Hornburg)
Date: Thu Dec 4 07:43:43 2003
Subject: [ic] Table creation error when using database mappings
In-Reply-To: <20031202160124.GA1850@worxpace>
References: <20031202160124.GA1850@worxpace>
Message-ID: <20031204134305.2a4e2755.racke@linuxia.de>
On Tue, 2 Dec 2003 17:01:24 +0100
Thomas Weiss wrote:
> Hi all,
>
> I'm using Interchange 4.9.9 with PostgreSQL. For internationalisation
> I'm using the locale based database mappings found in the foundation
> catalog. Now there is a problem when importing a database/table with
> mappings into an sql database with support for transactions. The actual
> problem is raised in Vend::Table::Common (in function
> import_ascii_delimited()) when trying to call the commit() function on
> the database table object, which for databases with mappings is
> represented by Vend::Table::Shadow, which unfortunately doesn't
> implement a commit() function.
>
> Adding the following simple function to Vend::Table::Shadow resolves the
> problem:
>
> sub commit {
> my ($s) = @_;
> $s = $s->import_db() unless defined $s->[$OBJ];
> return $s->[$OBJ]->commit();
> }
>
> As I don't have a full understanding of Interchange's internals I would
> like to know if this is the right way to fix this problem.
Thank you very much for your analysis. I fixed Vend::Table::Shadow
accordingly in CVS.
Bye
Racke
--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team
From tode at bpanet.de Thu Dec 4 09:21:50 2003
From: tode at bpanet.de (Lars Tode)
Date: Thu Dec 4 09:24:22 2003
Subject: AW: AW: [ic] Problem with PGP and credit card
In-Reply-To: <3FCE2058.2010202@MMaz.com>
Message-ID:
Hi Barry,
> this is the source of your error, which tells me that you did not tell
> IC where to find gpg, or that gpg is not in IC's path...
I added EncryptProgram and EncryptKey to my catalog.cfg
Variable EncryptProgram /usr/local/bin/gpg
Variable EncyptKey /usr/home/foo/.gnupg/me.pkr
I get this NEED ENCRYPTION ENABLED, too.
Is there a problem with the key file, or should I use the mail-address as
EncryptKey?
Regards,
Lars
From racke at linuxia.de Thu Dec 4 09:25:58 2003
From: racke at linuxia.de (Stefan Hornburg)
Date: Thu Dec 4 09:26:35 2003
Subject: [ic] Problems with SOAP
In-Reply-To: <200312032118.hB3LILHS021411@icdevgroup.org>
References: <200312032118.hB3LILHS021411@icdevgroup.org>
Message-ID: <20031204152558.5e8de118.racke@linuxia.de>
On Wed, 3 Dec 2003 14:20:36 -0700
Andrew Baerg wrote:
> Hello,
>
> I am having identical problems to what Racke posted back in March. I am wondering if this issue was ever resolved?
Actually it should work with current CVS. Which IC version do you using ?
Bye
Racke
--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team
From racke at linuxia.de Thu Dec 4 09:47:40 2003
From: racke at linuxia.de (Stefan Hornburg)
Date: Thu Dec 4 09:48:19 2003
Subject: AW: AW: [ic] Problem with PGP and credit card
In-Reply-To:
References: <3FCE2058.2010202@MMaz.com>
Message-ID: <20031204154740.0f9e790c.racke@linuxia.de>
On Thu, 4 Dec 2003 15:21:50 +0100
"Lars Tode" wrote:
> Hi Barry,
>
> > this is the source of your error, which tells me that you did not tell
> > IC where to find gpg, or that gpg is not in IC's path...
>
> I added EncryptProgram and EncryptKey to my catalog.cfg
>
> Variable EncryptProgram /usr/local/bin/gpg
> Variable EncyptKey /usr/home/foo/.gnupg/me.pkr
That is totally wrong. I suggest to look at a catalog.cfg from the
IC distribution.
Bye
Racke
--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team
From joshua at kingdomdesign.com Thu Dec 4 09:49:36 2003
From: joshua at kingdomdesign.com (Joshua Lavin)
Date: Thu Dec 4 09:50:17 2003
Subject: AW: AW: [ic] Problem with PGP and credit card
In-Reply-To:
Message-ID: <147DBD79-2669-11D8-9499-0030654BBC4C@kingdomdesign.com>
On Thursday, December 4, 2003, at 08:21 AM, Lars Tode wrote:
> Hi Barry,
>
>> this is the source of your error, which tells me that you did not tell
>> IC where to find gpg, or that gpg is not in IC's path...
>
> I added EncryptProgram and EncryptKey to my catalog.cfg
>
> Variable EncryptProgram /usr/local/bin/gpg
> Variable EncyptKey /usr/home/foo/.gnupg/me.pkr
>
> I get this NEED ENCRYPTION ENABLED, too.
>
> Is there a problem with the key file, or should I use the mail-address
> as
> EncryptKey?
>
> Regards,
>
> Lars
FWIW, I'm using the email address as the encrypt key.
Josh
From Treahy at MMaz.com Thu Dec 4 10:14:51 2003
From: Treahy at MMaz.com (Barry Treahy, Jr.)
Date: Thu Dec 4 10:15:32 2003
Subject: AW: AW: [ic] Problem with PGP and credit card
In-Reply-To:
References:
Message-ID: <3FCF4F6B.2060003@MMaz.com>
Lars Tode wrote:
>Hi Barry,
>
>
>
>>this is the source of your error, which tells me that you did not tell
>>IC where to find gpg, or that gpg is not in IC's path...
>>
>>
>
>I added EncryptProgram and EncryptKey to my catalog.cfg
>
>Variable EncryptProgram /usr/local/bin/gpg
>Variable EncyptKey /usr/home/foo/.gnupg/me.pkr
>
>I get this NEED ENCRYPTION ENABLED, too.
>
>Is there a problem with the key file, or should I use the mail-address as
>EncryptKey?
>
>
>
Wrong, look in the .structure file... and it is the key, not the
keyring... You MUST have gpg setup so that it will run as the INTERCH
process and the gpg files within its path...
Barry
--
Barry Treahy, Jr E-mail: Treahy@MMaz.com
Midwest Microwave Phone: 480/314-1320
Vice President & CIO FAX: 480/661-7028
From interchange at framework.cx Thu Dec 4 10:54:29 2003
From: interchange at framework.cx (Interchange User)
Date: Thu Dec 4 10:55:08 2003
Subject: [ic] 500 Error after UI edit
Message-ID: <2525AA66-2672-11D8-9060-00039393C622@framework.cx>
Greetings,
IC 4.9.9, MySQL 4
In MySQL, I altered a table to include a new field. I then went into
the admin UI and added said field to show up in the editor, and
immediately started getting 500 errors as soon as I went back to the
item editor. This is what the logs tell me:
10.0.1.2 dhcggmaZ:192.168.0.100 - [04/December/2003:07:22:29 -0500]
fmridc /cgi-bin/fmridc/admin/item_edit.html Runtime error: Can't use
string ("price") as a HASH ref while "strict refs" in use at
/Users/peter/interchange/lib/Vend/Table/Editor.pm line 3403.
The table I am accessing is not named "products" but is one of the
ProductFiles in catalog.cfg, but the table does not contain a field
named "price". Is that necessary?
Can anyone tell me why this is happening?
Thanks,
Peter
From mike at perusion.com Thu Dec 4 11:19:59 2003
From: mike at perusion.com (Mike Heins)
Date: Thu Dec 4 11:20:35 2003
Subject: AW: [ic] Problem with PGP and credit card
In-Reply-To:
References: <3FCE2058.2010202@MMaz.com>
Message-ID: <20031204161959.GA8915@bill.heins.net>
Quoting Lars Tode (tode@bpanet.de):
> Hi Barry,
>
> > this is the source of your error, which tells me that you did not tell
> > IC where to find gpg, or that gpg is not in IC's path...
>
> I added EncryptProgram and EncryptKey to my catalog.cfg
>
> Variable EncryptProgram /usr/local/bin/gpg
> Variable EncyptKey /usr/home/foo/.gnupg/me.pkr
EncryptKey is not a filename. It is an identifier that selects
the key. It is whatever would select a unique key from this
command line:
gpg --list-keys UNIQUE_STRING
For instance, I do:
gpg --list-keys 6792C81F
and get
gpg: WARNING: using insecure memory!
pub 1024D/6792C81F 2002-06-10 Mike Heins
sub 1024g/F4382AA9 2002-06-10
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295
Experience is what allows you to recognize a mistake the second
time you make it. -- unknown
From racke at linuxia.de Thu Dec 4 11:23:26 2003
From: racke at linuxia.de (Stefan Hornburg)
Date: Thu Dec 4 11:23:59 2003
Subject: [ic] 500 Error after UI edit
In-Reply-To: <2525AA66-2672-11D8-9060-00039393C622@framework.cx>
References: <2525AA66-2672-11D8-9060-00039393C622@framework.cx>
Message-ID: <20031204172326.51e42a59.racke@linuxia.de>
On Thu, 4 Dec 2003 10:54:29 -0500
Interchange User wrote:
> Greetings,
>
> IC 4.9.9, MySQL 4
>
> In MySQL, I altered a table to include a new field. I then went into
> the admin UI and added said field to show up in the editor, and
> immediately started getting 500 errors as soon as I went back to the
> item editor.
First of all, reconfig the catalog after changing tables via MySQL.
Bye
Racke
--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team
From mike at perusion.com Thu Dec 4 11:30:50 2003
From: mike at perusion.com (Mike Heins)
Date: Thu Dec 4 11:31:24 2003
Subject: [ic] 500 Error after UI edit
In-Reply-To: <2525AA66-2672-11D8-9060-00039393C622@framework.cx>
References: <2525AA66-2672-11D8-9060-00039393C622@framework.cx>
Message-ID: <20031204163050.GA9207@bill.heins.net>
Quoting Interchange User (interchange@framework.cx):
> Greetings,
>
> IC 4.9.9, MySQL 4
>
> In MySQL, I altered a table to include a new field. I then went
> into the admin UI and added said field to show up in the editor, and
> immediately started getting 500 errors as soon as I went back to the
> item editor. This is what the logs tell me:
>
> 10.0.1.2 dhcggmaZ:192.168.0.100 - [04/December/2003:07:22:29 -0500]
> fmridc /cgi-bin/fmridc/admin/item_edit.html Runtime error: Can't use
> string ("price") as a HASH ref while "strict refs" in use at
> /Users/peter/interchange/lib/Vend/Table/Editor.pm line 3403.
>
> The table I am accessing is not named "products" but is one of the
> ProductFiles in catalog.cfg, but the table does not contain a field
> named "price". Is that necessary?
>
> Can anyone tell me why this is happening?
You didn't restart IC. Interchange reads the table at catalog config
time, and builds the column setup then.
Do "apply changes" and all should be well.
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295
Opportunity is missed by most people because it is dressed in
overalls and looks like work. -- Thomas Edison
From cwenham at synesmedia.com Thu Dec 4 11:41:25 2003
From: cwenham at synesmedia.com (Christopher Wenham)
Date: Thu Dec 4 11:35:38 2003
Subject: [ic] 500 Error after UI edit
In-Reply-To: <2525AA66-2672-11D8-9060-00039393C622@framework.cx>
References: <2525AA66-2672-11D8-9060-00039393C622@framework.cx>
Message-ID: <200312041141.25911.cwenham@synesmedia.com>
On Thursday 04 December 2003 10:54, Interchange User wrote:
> ????????In MySQL, I altered a table to include a new field. ?I then went
> into the admin UI and added said field to show up in the editor, and
> immediately started getting 500 errors as soon as I went back to the
> item editor. ?This is what the logs tell me:
>
> 10.0.1.2 dhcggmaZ:192.168.0.100 - [04/December/2003:07:22:29 -0500]
> fmridc /cgi-bin/fmridc/admin/item_edit.html Runtime error: Can't use
> string ("price") as a HASH ref while "strict refs" in use at
> /Users/peter/interchange/lib/Vend/Table/Editor.pm line 3403.
Are you using Safari or Konqueror as your browser?
I saw this error once after using Konqueror to edit the UI, and the only way
I could fix it was to replace products/mv_metadata.asc with a clean copy from
the original foundation catalog. (You'll have to then delete
mv_metadata.gdbm, too).
The problem didn't come back after I made the same UI edit with Internet
Explorer.
Regards,
--
Chris Wenham - Synesmedia, Inc.
http://www.synesmedia.com
516-620-4110 / 1-888-255-7573
Fax: 516-908-7824
From admin at yoursole.com Thu Dec 4 11:39:05 2003
From: admin at yoursole.com (Andrew Baerg)
Date: Thu Dec 4 11:37:27 2003
Subject: [ic] Problems with SOAP
Message-ID: <200312041637.hB4GapHS017524@icdevgroup.org>
>> > I am having identical problems to what Racke posted back in March. I am wondering if this issue was ever resolved?
>> Actually it should work with current CVS. Which IC version do you using ?
I am using 4.8.7, but I have upgraded SOAP.pm and SOAP/Transport.pm to the current CVS. I just can't figure out why it works, except the result is returned in the Client-Junk header instead of the body of the response. Does it have something to do with the SOAP::Lite version or possibly the LWP version which is responsible for the Client-Junk header?
Thank you very much for your time,
Andrew
From tode at bpanet.de Thu Dec 4 11:37:07 2003
From: tode at bpanet.de (Lars Tode)
Date: Thu Dec 4 11:39:39 2003
Subject: AW: AW: [ic] Problem with PGP and credit card
In-Reply-To: <20031204161959.GA8915@bill.heins.net>
Message-ID:
Hi,
> EncryptKey is not a filename. It is an identifier that selects
> the key. It is whatever would select a unique key from this
> command line:
>
> gpg --list-keys UNIQUE_STRING
>
> For instance, I do:
>
> gpg --list-keys 6792C81F
>
> and get
>
> gpg: WARNING: using insecure memory!
> pub 1024D/6792C81F 2002-06-10 Mike Heins
> sub 1024g/F4382AA9 2002-06-10
>
You mean I'd only to add the public key and it should run?
Regards,
Lars
From frank at goldissue.com Thu Dec 4 12:13:22 2003
From: frank at goldissue.com (frank)
Date: Thu Dec 4 12:09:47 2003
Subject: [ic] tables spilling into other shops
Message-ID: <3FCF6B32.5030900@goldissue.com>
Hi,
Tonight I visited a client and we built a photography shop by
constructing area.txt, cat.txt, and products.txt using excel. We
discovered later that the the links which we had created for cameras,
binoculas appeared on another client's site - a hardware shop.
Because I use a method of cloning where I build a new shop using
makecat, and then write a script to copy the (improvements) from the
previous shop (the templates and tables and pages) to the new shop. I
though maybe the system uses symbolic links which might be causing this
or could it be file ownerships?
Has anybody got an idea how I should tackle this?
Regards,
Frank Reitzenstein.
From racke at linuxia.de Thu Dec 4 12:14:29 2003
From: racke at linuxia.de (Stefan Hornburg)
Date: Thu Dec 4 12:14:58 2003
Subject: [ic] Problems with SOAP
In-Reply-To: <200312041637.hB4GapHS017524@icdevgroup.org>
References: <200312041637.hB4GapHS017524@icdevgroup.org>
Message-ID: <20031204181429.2430173a.racke@linuxia.de>
On Thu, 4 Dec 2003 09:39:05 -0700
Andrew Baerg wrote:
> >> > I am having identical problems to what Racke posted back in March. I am wondering if this issue was ever resolved?
>
> >> Actually it should work with current CVS. Which IC version do you using ?
>
> I am using 4.8.7, but I have upgraded SOAP.pm and SOAP/Transport.pm to the current CVS. I just can't figure out why it works, except the result is returned in the Client-Junk header instead of the body of the response. Does it have something to do with the SOAP::Lite version or possibly the LWP version which is responsible for the Client-Junk header?
If I remember correctly, the Client-Junk is in fact coming from LWP. You need
to fix your Server.pm in order to get SOAP working with 4.8.7. The patch
you probably need has been applied with CVS revision 2.28:
revision 2.28
date: 2003/03/08 00:14:58; author: racke; state: Exp; lines: +3 -2
ensure that SOAP server adds a blank line between HTTP header
and HTTP body
Probably you cannot use the patch directly on 4.8, but look at the changes.
Bye
Racke
--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team
From marc.brevoort at armazemdedados.com Thu Dec 4 12:32:16 2003
From: marc.brevoort at armazemdedados.com (Marc Brevoort)
Date: Thu Dec 4 12:22:17 2003
Subject: [ic] tables spilling into other shops
In-Reply-To: <3FCF6B32.5030900@goldissue.com>
References: <3FCF6B32.5030900@goldissue.com>
Message-ID: <3FCF6FA0.4050603@armazemdedados.com>
frank wrote:
> We discovered later that the the links which we
> had created for cameras,
> binoculas appeared on another client's site -
> a hardware shop.
We once had a similar situation. Have you checked if the
Database Setup section in catalog.cfg of both shops
happen to point to the same database? What DBMS do you
use?
Regards,
Marc Brevoort
From frank at goldissue.com Thu Dec 4 12:47:42 2003
From: frank at goldissue.com (frank)
Date: Thu Dec 4 12:44:06 2003
Subject: [ic] tables spilling into other shops
In-Reply-To: <3FCF6FA0.4050603@armazemdedados.com>
References: <3FCF6B32.5030900@goldissue.com>
<3FCF6FA0.4050603@armazemdedados.com>
Message-ID: <3FCF733E.5040304@goldissue.com>
Marc Brevoort wrote:
> frank wrote:
>
> > We discovered later that the the links which we
> > had created for cameras,
> > binoculas appeared on another client's site -
> > a hardware shop.
>
> We once had a similar situation. Have you checked if the
> Database Setup section in catalog.cfg of both shops
> happen to point to the same database? What DBMS do you
> use?
>
> Regards,
>
> Marc Brevoort
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>
Thankyou Marc,
I use mysql.
I found a reference to the hardware shop's database in the photo shop's
catalog.cfg It had occured to me but I was not sure where to look.
Regards,
Frank Reitzenstein
From pater.noster at gmx.net Thu Dec 4 13:17:22 2003
From: pater.noster at gmx.net (Thomas Weiss)
Date: Thu Dec 4 13:18:02 2003
Subject: [ic] Performance issues with i18n
In-Reply-To: <20031203174540.GA1844@worxpace>
References: <20031203174540.GA1844@worxpace>
Message-ID: <20031204181722.GA4190@worxpace>
* On Wed, Dec 03 panos wrote:
> I'm building an internationalized catalog with Interchange 4.9.9 and the
> locale based database mappings as found in the foundation catalog. My
> problem is that as soon as the mappings are used (by using a locale
> other than the default) everything gets terribly slow. The reason is the
> way Vend::Table::Shadow applies the mappings when querying the database.
>
> For example when using the foundation catalog's data and database mapping
> settings it takes about 80 sql queries to build the category menu (with
> the category_vertical component) when using the default locale (no
> mappings in use, no Vend::Table::Shadow), but with a non-default locale
> in use it takes about 950 sql queries to do the same, which is IMHO way
> too much to be efficient.
I've been hacking around a little bit and have been able to speed up the
database mapping for this case by more than factor 3. The benchmarks
have been done with the foundation catalog's process page with
category_vertical being the only enabled component. Always a non-default
locale setting was used. Interchange was running on my workstation, a
PC with a P4 1.5GHz CPU and 512MB and the database server (PostgreSQL)
was running on a machine with a PIII 550GHz CPU with 768MB RAM.
The number of database queries required to display the page has dropped
from about 950 down to about 120 which raises the number of pages
Interchange can server in a minute from 28 up to 95. When using single
table mappings (i.e. the mapped column is in the same table as the
original column) it served 106 pages in 1 minute.
The optimizations made were 1) omitting an unnessessary call to
record_exists() in Vend::Table::Shadow and 2) letting the database
server do the hard work applying the mappings instead of doing it
manually.
Below are patches against Vend::Table::DBI (CVS Version 2.57) and
Vend::Table::Shadow (CVS Version 1.43) which implement these
optimizations. The patches are meant as a proof-of-concept kind of thing
and there is of course room for improvement. The most important thing
to do is support optimization even if the fallback option is set for
the mapping. Currently optimization is done only if fallback is off
but it can relatively easy be implemented (see patch no. 2 for details).
I'm looking forward to hear any opinions.
Thomas
------------------------------------------------------------------------
PATCH 1)
========
diff -ru ic.orig/Vend/Table/Shadow.pm ic.new/Vend/Table/Shadow.pm
--- ic.orig/Vend/Table/Shadow.pm Thu Oct 16 00:00:00 2003
+++ ic.new/Vend/Table/Shadow.pm Thu Dec 4 15:39:10 2003
@@ -556,11 +556,9 @@
if (exists $map->{table}) {
$db = Vend::Data::database_exists_ref($map->{table})
or die "unknown table $map->{table} in mapping for column $column of $s->[$TABLE] for locale $locale";
- if ($db->record_exists($key)) {
- $value = $db->field($key, $map->{column});
- } else {
- $value = '';
- }
+
+ $value = $db->field($key, $map->{column});
+ $value = '' unless defined $value;
} else {
$value = $s->[$OBJ]->field($key, $map->{column});
}
PATCH 2)
========
diff -ru ic.orig/Vend/Table/DBI.pm ic.new/Vend/Table/DBI.pm
--- ic.orig/Vend/Table/DBI.pm Fri Aug 22 00:00:00 2003
+++ ic.new/Vend/Table/DBI.pm Thu Dec 4 17:51:47 2003
@@ -1811,11 +1811,11 @@
# Now supported, including qualification
sub each_nokey {
- my $s = shift;
+ my ($s, $qual, $optimap) = @_;
$s = $s->import_db() if ! defined $s->[$DBI];
my ($table, $db, $each);
unless(defined $s->[$EACH]) {
- my $qual = shift || '';
+ $qual ||= '';
$qual .= $s->[$CONFIG]{Export_order}
if $s->[$CONFIG]{Export_order};
($table, $db, $each) = @{$s}[$TABLE,$DBI,$EACH];
@@ -1827,11 +1827,88 @@
! $Global::SuperUserFunction->()
)
) {
- $qual = $qual ? "$qual AND " : 'WHERE ';
+ $qual = $qual ? "$qual AND " : $optimap ? '' : 'WHERE ';
my ($rfield, $rsession) = split /\s*=\s*/, $restrict;
+
+ # Map field name if field has mapping and optimization
+ # was requested.
+ if ($optimap->{$rfield}) {
+ $rfield = "$optimap->{$rfield}->{table}."
+ if $optimap->{$rfield}->{table};
+ $rfield .= "$optimap->{$rfield}->{column}";
+ }
+
$qual .= "$rfield = '$Vend::Session->{$rsession}'";
}
- my $query = $db->prepare("select * from $table " . ($qual || '') )
+
+ my @cols = $s->columns()
+ or die "No column information while trying to optimize query.\n";
+
+ # Build optimized query using joins if optimization data was given.
+ # Used with mapped databases (see Vend::Table::Shadow).
+ my $cols_def = '';
+ my $tables_def = '';
+ my $where_def = '';
+ if ($optimap) {
+ # First remove mapped columns (for single table mappings) from the
+ # column list of this table, as otherwise we would select the same
+ # column twice.
+ my %localmap_cols = map {
+ ( lc($optimap->{$_}->{column}) => 1 )
+ if $optimap->{$_} && !$optimap->{$_}->{table}
+ } @cols;
+ @cols = grep { !$localmap_cols{$_} } @cols;
+
+ my %joined;
+ my $key_col = $s->[$CONFIG]->{KEY} || $cols[0];
+ for my $col (@cols) {
+ my $optimap_col = $optimap->{$col};
+
+ $cols_def .= ', ' unless $cols_def eq '';
+
+ unless ($optimap_col) {
+ $cols_def .= "$table.$col AS $col";
+ next;
+ }
+
+ if ($optimap_col->{table}) {
+ $cols_def .=
+ "$optimap_col->{table}.$optimap_col->{column} AS $col";
+ }
+ else {
+ $cols_def .= "$optimap_col->{column} AS $col";
+ next;
+ }
+
+ next if $joined{$optimap_col->{table}};
+
+ $tables_def .= ', ' unless $tables_def eq '';
+ $tables_def .= $optimap_col->{table};
+
+ my @map_cols = $optimap_col->{db}->columns()
+ or die "No column information while trying to " .
+ "optimize query.\n";
+ my $map_key_col = $optimap_col->{db}->config('KEY')
+ || $map_cols[0];
+
+ $where_def .= ' AND ' unless $where_def eq '';
+
+ $where_def .= "$table.$key_col = " .
+ "$optimap_col->{table}.$map_key_col";
+ $joined{$optimap_col->{table}} = 1;
+ }
+
+ $tables_def = $tables_def ? "$table, $tables_def" : $table;
+ $where_def = $where_def
+ ? "WHERE $where_def" . ($qual ? " AND $qual" : '') : '';
+ }
+ else {
+ $cols_def = '*';
+ $tables_def = $table;
+ $where_def = $qual ? $qual : '';
+ }
+
+ my $query = $db->prepare("select $cols_def from $tables_def $where_def")
or die $s->log_error('prepare');
$query->execute()
or die $s->log_error('execute');
diff -ru ic.orig/Vend/Table/Shadow.pm ic.new/Vend/Table/Shadow.pm
--- ic.orig/Vend/Table/Shadow.pm Thu Oct 16 00:00:00 2003
+++ ic.new/Vend/Table/Shadow.pm Thu Dec 4 17:51:47 2003
@@ -29,8 +29,10 @@
use strict;
-use vars qw($CONFIG $TABLE $KEY $NAME $TYPE $OBJ $PENDING);
-($CONFIG, $TABLE, $KEY, $NAME, $TYPE, $OBJ, $PENDING) = (0 .. 6);
+use vars qw($CONFIG $TABLE $KEY $NAME $TYPE $OBJ $PENDING $EACH_NOKEY);
+($CONFIG, $TABLE, $KEY, $NAME, $TYPE, $OBJ, $PENDING, $EACH_NOKEY) = (0 .. 7);
+
+use constant EACH_NOKEY_OPTIMIZED => 2;
sub config {
my ($s, $key, $value) = @_;
@@ -267,9 +269,27 @@
my $record;
$s = $s->import_db() unless defined $s->[$OBJ];
- if ($record = $s->[$OBJ]->each_nokey($qual)) {
- return $s->_map_array ($record);
+
+ my $optimap;
+ if (!defined $s->[$EACH_NOKEY]) {
+ # first call to each_nokey()
+ $s->[$EACH_NOKEY] = 1;
+
+ # determine if the query is optimizable
+ $optimap = $s->_each_nokey_optimap($qual);
+ $s->[$EACH_NOKEY] |= $s->EACH_NOKEY_OPTIMIZED if $optimap;
+ }
+
+ unless ($record = $s->[$OBJ]->each_nokey($qual, $optimap)) {
+ undef $s->[$EACH_NOKEY];
+ return $record;
}
+
+ # for optimized queries just return the result
+ return $record if $s->[$EACH_NOKEY] & EACH_NOKEY_OPTIMIZED;
+
+ # for non-optimized queries manually map the record and return the result
+ return $s->_map_array($record);
}
sub query {
@@ -454,6 +474,65 @@
}
\%sqlinfo;
+}
+
+# Check if a query can be optimized. If so return a hashref containing
+# relevant data required by the underlying routine to do the actual
+# optimization. Otherwise return undef.
+sub _each_nokey_optimap {
+ my ($s, $qual) = @_;
+
+ # Optimization changes column names due to the joins
+ # it uses, so if there is a qualifier we skip optimization
+ # as we would have to parse it and replace column names
+ # in there otherwise.
+ return undef if $qual;
+
+ # No optimization if shadowing should be skipped.
+ return undef if $::Scratch->{mv_shadowpass};
+
+ # Optimization works for SQL queries only. Skip optimization for
+ # non-SQL databases.
+ return undef if ref $s->[$OBJ] ne 'Vend::Table::DBI';
+
+ my @cols = $s->columns() or return undef;
+ my $map = $s->[$CONFIG]->{MAP};
+ my $locale = $::Scratch->{mv_locale} || 'default';
+
+ my %optimap;
+ for my $col (@cols) {
+ next unless exists $map->{$col}->{$locale};
+
+ my $col_map = $map->{$col}->{$locale};
+
+ # At least another column name has to be given to do the mapping.
+ return undef unless $col_map->{column};
+
+ # Don't optimize if a lookup table was specified or fallback
+ # requested. Fallback would require more database specific features
+ # like LEFT OUTER JOIN and functions like CASE in PostgreSQL or
+ # IF() in MySQL.
+ return undef if $col_map->{lookup_table} || $col_map->{fallback};
+
+ unless ($col_map->{table}) {
+ $optimap{$col} = { column => $col_map->{column} };
+ next;
+ }
+
+ # Skip optimization if the shadow database is not an SQL
+ # database.
+ # TODO: Make sure the database object uses the same DSN as the
+ # shadowed database.
+ my $map_db = Vend::Data::database_exists_ref($col_map->{table});
+ return undef unless ref $map_db eq 'Vend::Table::DBI';
+
+ $optimap{$col} = { table => $col_map->{table},
+ column => $col_map->{column},
+ db => $map_db }
+ }
+
+ return undef unless %optimap;
+ return \%optimap;
}
sub _map_entries {
From reid at vianet.ca Thu Dec 4 13:40:03 2003
From: reid at vianet.ca (Reid Sutherland)
Date: Thu Dec 4 13:43:23 2003
Subject: [ic] Mailing list archives broken
Message-ID: <3FCF7F83.8090702@vianet.ca>
Please CC me as this email address is not on the list.
I guess before pointing new users to searching the archives, maybe the
archives should be fixed to include this year at a minimum. Or at least
tell them about http://marc.theaimsgroup.com/ or make sure they use the
Google search.
I would guess it would be best to just remove the "Interchange" list
search and out-of-date archives from the mailing lists page to avoid
confusion. And simply leave the Google intact. And possibly put a link
to marc.
Just my thoughts...
-reid
From mike at perusion.com Thu Dec 4 14:04:36 2003
From: mike at perusion.com (Mike Heins)
Date: Thu Dec 4 14:05:15 2003
Subject: [ic] Performance issues with i18n
In-Reply-To: <20031204181722.GA4190@worxpace>
References: <20031203174540.GA1844@worxpace> <20031204181722.GA4190@worxpace>
Message-ID: <20031204190436.GA11231@bill.heins.net>
Quoting Thomas Weiss (pater.noster@gmx.net):
> * On Wed, Dec 03 panos wrote:
> > I'm building an internationalized catalog with Interchange 4.9.9 and the
> > locale based database mappings as found in the foundation catalog. My
> > problem is that as soon as the mappings are used (by using a locale
> > other than the default) everything gets terribly slow. The reason is the
> > way Vend::Table::Shadow applies the mappings when querying the database.
> >
> > For example when using the foundation catalog's data and database mapping
> > settings it takes about 80 sql queries to build the category menu (with
> > the category_vertical component) when using the default locale (no
> > mappings in use, no Vend::Table::Shadow), but with a non-default locale
> > in use it takes about 950 sql queries to do the same, which is IMHO way
> > too much to be efficient.
>
> I've been hacking around a little bit and have been able to speed up the
> database mapping for this case by more than factor 3. The benchmarks
> have been done with the foundation catalog's process page with
> category_vertical being the only enabled component. Always a non-default
> locale setting was used. Interchange was running on my workstation, a
> PC with a P4 1.5GHz CPU and 512MB and the database server (PostgreSQL)
> was running on a machine with a PIII 550GHz CPU with 768MB RAM.
>
> The number of database queries required to display the page has dropped
> from about 950 down to about 120 which raises the number of pages
> Interchange can server in a minute from 28 up to 95. When using single
> table mappings (i.e. the mapped column is in the same table as the
> original column) it served 106 pages in 1 minute.
>
> The optimizations made were 1) omitting an unnessessary call to
> record_exists() in Vend::Table::Shadow and 2) letting the database
> server do the hard work applying the mappings instead of doing it
> manually.
>
> Below are patches against Vend::Table::DBI (CVS Version 2.57) and
> Vend::Table::Shadow (CVS Version 1.43) which implement these
> optimizations. The patches are meant as a proof-of-concept kind of thing
> and there is of course room for improvement. The most important thing
> to do is support optimization even if the fallback option is set for
> the mapping. Currently optimization is done only if fallback is off
> but it can relatively easy be implemented (see patch no. 2 for details).
>
> I'm looking forward to hear any opinions.
This optimization effort is welcome. However, as a real means of optimzing
I recommend looking at timed-build. Just wrapping the category display
in
[timed-build login=1 file="tmp/category_[scratch mv_locale]" minutes=10]
(the ITL for category display)
[/timed-build]
should remove the necessity to pay too much attention to this. Of course
it will not work for users who don't accept cookies, but that should
be a small percentage.
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295
Friends don't let friends use Outlook. -- Bob Blaylock
From reid at vianet.ca Thu Dec 4 14:10:55 2003
From: reid at vianet.ca (Reid Sutherland)
Date: Thu Dec 4 14:14:23 2003
Subject: [ic] Matrix options inventory -- yet again.
Message-ID: <3FCF86BF.3060003@vianet.ca>
Please CC me as this email address is not on the list.
Version: 4.9.8
I've searched the lists and have come to no real conclusion about the
state of inventory controls with regards to matrix options. Here's what
I understand: "It doesn't work the way it should.".
Basically, you can buy things even if there is no stock in the option
item. It will even bring the inventory count below 0 (-5 for example).
This is plain silly in my opinion. This method confuses would be IC
users that are trying to sell clothing, for example. As they would have
multiple sizes, colours, etc., and different inventory for each.
Sooo, should I stop complaining and patch it myself, or is there
something I can do to have it notify/email/complain/etc when a
particular option is out of stock?
I think the current matrix option inventory system should either be
disabled or improved. In it's current state, it makes no sense (to me).
It only adds hope that it functions the same way as the regular item
inventory does, which of course, it does not. And in the end it may
give some users a bad taste for IC (and less consulting money for Mike ;))
Let me know what you think.
Thanks much,
-reid
From interchange at framework.cx Thu Dec 4 13:48:26 2003
From: interchange at framework.cx (Interchange User)
Date: Thu Dec 4 14:16:40 2003
Subject: [ic] 500 Error after UI edit
References: <2525AA66-2672-11D8-9060-00039393C622@framework.cx>
<200312041141.25911.cwenham@synesmedia.com>
Message-ID: <034901c3ba9b$1cc9a4a0$1564a8c0@template>
> On Thursday 04 December 2003 10:54, Interchange User wrote:
> > In MySQL, I altered a table to include a new field. I then went
> > into the admin UI and added said field to show up in the editor, and
> > immediately started getting 500 errors as soon as I went back to the
> > item editor. This is what the logs tell me:
> >
> > 10.0.1.2 dhcggmaZ:192.168.0.100 - [04/December/2003:07:22:29 -0500]
> > fmridc /cgi-bin/fmridc/admin/item_edit.html Runtime error: Can't use
> > string ("price") as a HASH ref while "strict refs" in use at
> > /Users/peter/interchange/lib/Vend/Table/Editor.pm line 3403.
>
> Are you using Safari or Konqueror as your browser?
>
> I saw this error once after using Konqueror to edit the UI, and the only
way
> I could fix it was to replace products/mv_metadata.asc with a clean copy
from
> the original foundation catalog. (You'll have to then delete
> mv_metadata.gdbm, too).
>
> The problem didn't come back after I made the same UI edit with Internet
> Explorer.
Brilliant!
Thank you Chris. Safari be damned when it comes to UI edits, I suppose.
Thanks again,
Peter
From jerry at digitalfm.com Thu Dec 4 02:56:19 2003
From: jerry at digitalfm.com (Jerry)
Date: Thu Dec 4 14:58:22 2003
Subject: [ic] Matrix options inventory -- yet again.
In-Reply-To: <3FCF86BF.3060003@vianet.ca>
Message-ID:
> Please CC me as this email address is not on the list.
>
> Version: 4.9.8
>
> I've searched the lists and have come to no real conclusion about the
> state of inventory controls with regards to matrix options. Here's what
> I understand: "It doesn't work the way it should.".
>
> Basically, you can buy things even if there is no stock in the option
> item. It will even bring the inventory count below 0 (-5 for example).
> This is plain silly in my opinion. This method confuses would be IC
> users that are trying to sell clothing, for example. As they would have
> multiple sizes, colours, etc., and different inventory for each.
>
> Sooo, should I stop complaining and patch it myself, or is there
> something I can do to have it notify/email/complain/etc when a
> particular option is out of stock?
>
> I think the current matrix option inventory system should either be
> disabled or improved. In it's current state, it makes no sense (to me).
> It only adds hope that it functions the same way as the regular item
> inventory does, which of course, it does not. And in the end it may
> give some users a bad taste for IC (and less consulting money for Mike ;))
>
> Let me know what you think.
I know Mike Heins did a patch for the 4.8.3 version some time back
when I was looking for an easy way. You might want to look at that
here: http://www.icdevgroup.org/archive/interchange-users/2001/msg12003.html
and that worked fine except if I remember, you could end up with a blank
drop down if no item options had inventory.
Recently if an item has matrix options, I do a quick row count to make
sure there are options available for that item. If not, don't display
and the buy button and direct them to out of stock notification system.
If so, just build our own drop down with a query, containing only those
options that inventory.
[query sql="select options.code, options.description from options LEFT
JOIN inventory ON inventory.sku=options.code where inventory.quantity > 0
AND options.sku = '[ITEM-CODE]' ORDER BY description"
type=list]
[/query]
THAT, I'm certain can be cleaned up, but it works for me and too
busy to mess with something that works. Hopefully this is a good
starting point for you. Maybe someone has a cleaner way of
getting it done.
Good luck!
Jerry
From reid at vianet.ca Thu Dec 4 15:13:26 2003
From: reid at vianet.ca (Reid Sutherland)
Date: Thu Dec 4 15:16:53 2003
Subject: [ic] Matrix options inventory -- yet again.
In-Reply-To:
References:
Message-ID: <3FCF9566.2050303@vianet.ca>
Jerry wrote:
>
> I know Mike Heins did a patch for the 4.8.3 version some time back
> when I was looking for an easy way. You might want to look at that
> here: http://www.icdevgroup.org/archive/interchange-users/2001/msg12003.html
> and that worked fine except if I remember, you could end up with a blank
> drop down if no item options had inventory.
I saw that too, but I guess I ASSuMEd it was already included. But then
I never really tried it! *ducks*
>
> Recently if an item has matrix options, I do a quick row count to make
> sure there are options available for that item. If not, don't display
> and the buy button and direct them to out of stock notification system.
> If so, just build our own drop down with a query, containing only those
> options that inventory.
>
> [query sql="select options.code, options.description from options LEFT
> JOIN inventory ON inventory.sku=options.code where inventory.quantity > 0
> AND options.sku = '[ITEM-CODE]' ORDER BY description"
> type=list]
>
> [/query]
>
> THAT, I'm certain can be cleaned up, but it works for me and too
> busy to mess with something that works. Hopefully this is a good
> starting point for you. Maybe someone has a cleaner way of
> getting it done.
This is mint, I'll check it out!
Thanks much Jerry!
Take care,
-reid
From admin at yoursole.com Thu Dec 4 15:44:41 2003
From: admin at yoursole.com (Andrew Baerg)
Date: Thu Dec 4 15:43:01 2003
Subject: [ic] Problems with SOAP
Message-ID: <200312042043.hB4KgQHS024232@icdevgroup.org>
>> If I remember correctly, the Client-Junk is in fact coming from LWP. You
>> need
>> to fix your Server.pm in order to get SOAP working with 4.8.7. The patch
>> you probably need has been applied with CVS revision 2.28:
>> revision 2.28
>> date: 2003/03/08 00:14:58; author: racke; state: Exp; lines: +3 -2
>> ensure that SOAP server adds a blank line between HTTP header
>> and HTTP body
That did it, I added in one line to the Server.pm and now everything works like a dream.
Thanks again for all your help.
Andrew
From jkinney at localnetsolutions.com Thu Dec 4 16:22:06 2003
From: jkinney at localnetsolutions.com (James P. Kinney III)
Date: Thu Dec 4 16:22:46 2003
Subject: AW: AW: [ic] Problem with PGP and credit card
In-Reply-To:
References:
Message-ID: <1070572926.29065.15.camel@test.localnetsolutions.com>
On Thu, 2003-12-04 at 11:37, Lars Tode wrote:
> Hi,
>
>
> > EncryptKey is not a filename. It is an identifier that selects
> > the key. It is whatever would select a unique key from this
> > command line:
> >
> > gpg --list-keys UNIQUE_STRING
> >
> > For instance, I do:
> >
> > gpg --list-keys 6792C81F
> >
> > and get
> >
> > gpg: WARNING: using insecure memory!
> > pub 1024D/6792C81F 2002-06-10 Mike Heins
> > sub 1024g/F4382AA9 2002-06-10
> >
>
> You mean I'd only to add the public key and it should run?
That's how PKI works. The encryption key is the pubic key. The decrypt
key is the private one. so set the values for the interchange user pub
key in the field (and have the IC user $HOME/.gnupg setup correctly with
the pub key you want on the key ring) and it works.
>
> Regards,
>
> Lars
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
--
James P. Kinney III \Changing the mobile computing world/
CEO & Director of Engineering \ one Linux user /
Local Net Solutions,LLC \ at a time. /
770-493-8244 \.___________________________./
http://www.localnetsolutions.com
GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://localhost.localdomain/pipermail/interchange-users/attachments/20031204/df4b6d3c/attachment.bin
From listbox at email.com Thu Dec 4 17:19:38 2003
From: listbox at email.com (Grant)
Date: Thu Dec 4 17:20:24 2003
Subject: [ic] loop search empty parameter problem
Message-ID:
The following code seems to ignore the first set of parameters which should
cause only the records with a blank value for the user_id field to be
returned.
[loop
search="ml=100000/fi=ebay_sold/st=db/co=1/sf=user_id/se=/op=eq/nu=0/sf=sku/s
e=sku-99/op=eq/nu=0"]
[loop-data ebay_sold code]
[/loop]
If se= is changed to something like se=test then no records are returned as
there are no user_id fields with a value of "test". There are also no
records with a blank value for the user_id field, so why does
sf=user_id/se=/op=eq/nu=0 return records?
I'm using 4.9.3.
- Grant
From jkinney at localnetsolutions.com Thu Dec 4 17:31:17 2003
From: jkinney at localnetsolutions.com (James P. Kinney III)
Date: Thu Dec 4 17:32:05 2003
Subject: [ic] tables spilling into other shops
In-Reply-To: <3FCF733E.5040304@goldissue.com>
References: <3FCF6B32.5030900@goldissue.com>
<3FCF6FA0.4050603@armazemdedados.com> <3FCF733E.5040304@goldissue.com>
Message-ID: <1070577076.29261.1.camel@test.localnetsolutions.com>
Are you positive that the hardware shop data you see is not the
foundation demo stuff that ships with IC? There is a lot of it in nearly
every table.
On Thu, 2003-12-04 at 12:47, frank wrote:
> Marc Brevoort wrote:
>
> > frank wrote:
> >
> > > We discovered later that the the links which we
> > > had created for cameras,
> > > binoculas appeared on another client's site -
> > > a hardware shop.
> >
> > We once had a similar situation. Have you checked if the
> > Database Setup section in catalog.cfg of both shops
> > happen to point to the same database? What DBMS do you
> > use?
> >
> > Regards,
> >
> > Marc Brevoort
> >
> > _______________________________________________
> > interchange-users mailing list
> > interchange-users@icdevgroup.org
> > http://www.icdevgroup.org/mailman/listinfo/interchange-users
> >
> Thankyou Marc,
>
> I use mysql.
>
> I found a reference to the hardware shop's database in the photo shop's
> catalog.cfg It had occured to me but I was not sure where to look.
>
> Regards,
>
> Frank Reitzenstein
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
--
James P. Kinney III \Changing the mobile computing world/
CEO & Director of Engineering \ one Linux user /
Local Net Solutions,LLC \ at a time. /
770-493-8244 \.___________________________./
http://www.localnetsolutions.com
GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://localhost.localdomain/pipermail/interchange-users/attachments/20031204/ad4710b2/attachment.bin
From wfiore at aftermarketcellular.com Thu Dec 4 17:42:02 2003
From: wfiore at aftermarketcellular.com (Aftermarket Cellular)
Date: Thu Dec 4 17:42:44 2003
Subject: [ic] RE: ip validation
In-Reply-To: <200312041701.hB4H0wHU018235@icdevgroup.org>
Message-ID: <003401c3bab7$d94ba260$0300a8c0@VAIO>
> > Hi,
> >
> > I have recently received hundreds of fraudulent attempts on my
merchant
> > account from within my interchange store, where a customer uses
various
> > credit card numbers to find a valid one. The transactions are being
> > declined by authorize.net but I am still receiving an $.08 decline
fee
> > each time. Is there an available script that will block an ip
address
> > after three attempts.
>
> You could place this piece of code on the checkout-page
>
> [if term="[env REMOTE_ADDR]" op="eq" compare="12.34.56.78"]
> [bounce href="[area tage.html]"]
> [/if]
>
>I would block them on the firewall or by Apache.
>
>Ciao
> Racke
>
All the responses I have received to this post have been helpful. I
placed a request through Authorize.net for the perpetrators ip address
and am waiting for a response.
In general, is there a way to have a session timeout placed on the
interchange shopping cart, and after so many attempts to checkout the
session will expire?
Thanks
-Bill
From mike at perusion.com Thu Dec 4 19:01:18 2003
From: mike at perusion.com (Mike Heins)
Date: Thu Dec 4 19:01:59 2003
Subject: [ic] RE: ip validation
In-Reply-To: <003401c3bab7$d94ba260$0300a8c0@VAIO>
References: <200312041701.hB4H0wHU018235@icdevgroup.org>
<003401c3bab7$d94ba260$0300a8c0@VAIO>
Message-ID: <20031205000118.GA13982@bill.heins.net>
Quoting Aftermarket Cellular (wfiore@aftermarketcellular.com):
>
> > > Hi,
> > >
> > > I have recently received hundreds of fraudulent attempts on my
> merchant
> > > account from within my interchange store, where a customer uses
> various
> > > credit card numbers to find a valid one. The transactions are being
> > > declined by authorize.net but I am still receiving an $.08 decline
> fee
> > > each time. Is there an available script that will block an ip
> address
> > > after three attempts.
> >
> > You could place this piece of code on the checkout-page
> >
> > [if term="[env REMOTE_ADDR]" op="eq" compare="12.34.56.78"]
> > [bounce href="[area tage.html]"]
> > [/if]
> >
> >I would block them on the firewall or by Apache.
> >
> >Ciao
> > Racke
> >
> All the responses I have received to this post have been helpful. I
> placed a request through Authorize.net for the perpetrators ip address
> and am waiting for a response.
>
> In general, is there a way to have a session timeout placed on the
> interchange shopping cart, and after so many attempts to checkout the
> session will expire?
Easily. Depending on where your [charge ...] is happening, do something
like this (untested):
[calc]
my $filename = "tmp/charge_failed/$Session->{ohost}";
my $past = $Tag->counter({ file=> $fn, value => 1});
return unless $past > 3;
die errmsg(
"Real-time charge failed. Reason: %s\n",
'too many failed charge attempts',
);
[/calc]
[tmp name="charge_succeed"][charge route="[var MV_PAYMENT_MODE]"][/tmp]
[if scratch charge_succeed]
[then]
[set do_invoice]1[/set]
[set do_payment]1[/set]
Real-time charge succeeded. ID=[data session payment_id] amount=[scratch tmp_remaining]
[/then]
[else]
Real-time charge FAILED. Reason: [data session cybercash_error]
Failed charge count: [counter file="tmp/charge_failed/[data session ohost]"]
[calc]
my $count = $Tag->{
die errmsg(
"Real-time charge failed. Reason: %s\n",
errmsg($Session->{cybercash_error}),
);
[/calc]
[/else]
[/if]
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295
If you like what you're gettin', keep doin' what you're doin'. -- Hector
From doug1 at ultimatepassage.com Thu Dec 4 21:15:40 2003
From: doug1 at ultimatepassage.com (doug1@ultimatepassage.com)
Date: Thu Dec 4 21:16:18 2003
Subject: [ic] Interchange and sendmail
Message-ID:
Perhaps someone can enlighten me. I'm running interchange 4.9.9 on an AMD
opteron using Gentoo Linux. The system is running Apache/2.0.48
(Gentoo/Linux) mod_perl/1.99_10 Perl/v5.8.2 mod_ssl/2.0.48 OpenSSL/0.9.7c.
Due to some problems compiling sendmail in pure 64bit mode (I have no 32
bit libs on this system), I'm using ssmtp instead of sendmail.
/usr/lib/sendmail and /usr/sbin/sendmail is smybolically linked to
/usr/sbin/ssmtp. Now here's where it gets interesting. When the customer
places an order, the order copy gets sent to the customer as expected but
the encrypted copy of the order appears in the interchange error log with
the following message:
66.92.11.157 rDMWEXi2:66.93.10.157 - [04/December/2003:17:42:05 -0500]
cart /cgi-bin/cart/process.html Unable to send mail using
/usr/sbin/sendmail
> To: webuser
> Subject: ORDER 0014
> Reply-To: doug1@linux2go.org
>
>....rest of encrypted e-mail.
Now before I go do something silly that I'll reget in the future (such as
parsing the error log for e-mail and re-sending it), are there any hard
dependency requirements that require sendmail? I find it interesting that
interchange has no problems using ssmtp to send the customer copy but
obviously does something different for encrypted version.
Any advice or suggestions would be appreciated.
Thanks,
Bruce
From gyepi at palmdigitalmedia.com Thu Dec 4 23:17:10 2003
From: gyepi at palmdigitalmedia.com (Gyepi SAM)
Date: Thu Dec 4 23:18:28 2003
Subject: [ic] CyberSource payment module
Message-ID: <20031205041710.GC22602@palmdigitalmedia.com>
Hi --
I just inherited an interchange based app that now needs to use
CyberSource, but there is no Payment/CyberSource.pm module!
Google and a grep through the list archives show that the question has
come up a couple of times, but with no replies. I am willing to write
one, but need to be sure that the problem has not already been solved
before I do so.
So, is there a Payment::CyberSource module lurking
about somewhere?
Regards
-Gyepi
From mike at perusion.com Fri Dec 5 01:59:54 2003
From: mike at perusion.com (Mike Heins)
Date: Fri Dec 5 02:00:35 2003
Subject: [ic] Interchange and sendmail
In-Reply-To:
References:
Message-ID: <20031205065954.GA16977@bill.heins.net>
Quoting doug1@ultimatepassage.com (doug1@ultimatepassage.com):
> Perhaps someone can enlighten me. I'm running interchange 4.9.9 on an AMD
> opteron using Gentoo Linux. The system is running Apache/2.0.48
> (Gentoo/Linux) mod_perl/1.99_10 Perl/v5.8.2 mod_ssl/2.0.48 OpenSSL/0.9.7c.
> Due to some problems compiling sendmail in pure 64bit mode (I have no 32
> bit libs on this system), I'm using ssmtp instead of sendmail.
>
> /usr/lib/sendmail and /usr/sbin/sendmail is smybolically linked to
> /usr/sbin/ssmtp. Now here's where it gets interesting. When the customer
> places an order, the order copy gets sent to the customer as expected but
> the encrypted copy of the order appears in the interchange error log with
> the following message:
> 66.92.11.157 rDMWEXi2:66.93.10.157 - [04/December/2003:17:42:05 -0500]
> cart /cgi-bin/cart/process.html Unable to send mail using
> /usr/sbin/sendmail
> > To: webuser
> > Subject: ORDER 0014
y > Reply-To: doug1@linux2go.org
> >
> >....rest of encrypted e-mail.
>
> Now before I go do something silly that I'll reget in the future (such as
> parsing the error log for e-mail and re-sending it), are there any hard
> dependency requirements that require sendmail? I find it interesting that
> interchange has no problems using ssmtp to send the customer copy but
> obviously does something different for encrypted version.
>
> Any advice or suggestions would be appreciated.
The one uses the [email ...] tag, the other the old
Vend::Util::send_mail. I have never heard of IC having problems, and it
has used a lot of mailers. My guess is there is some problem in ssmtp
with the -t option. Did you look in /var/log/maillog? There should
be something there.
I would switch to Net::SMTP or fake the order report with [email ...] --
I wouldn't parse logs. 8-)
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295
Being against torture ought to be sort of a bipartisan thing.
-- Karl Lehenbauer
From tode at bpanet.de Fri Dec 5 09:44:10 2003
From: tode at bpanet.de (Lars Tode)
Date: Fri Dec 5 09:46:44 2003
Subject: AW: AW: AW: [ic] Problem with PGP and credit card
In-Reply-To: <1070572926.29065.15.camel@test.localnetsolutions.com>
Message-ID:
Hi,
thanks for your (and rest of list) help, now it works :)
Regards,
Lars
From doug1 at ultimatepassage.com Fri Dec 5 09:55:04 2003
From: doug1 at ultimatepassage.com (doug1@ultimatepassage.com)
Date: Fri Dec 5 09:55:45 2003
Subject: [ic] Interchange and sendmail
In-Reply-To: <20031205065954.GA16977@bill.heins.net>
References:
<20031205065954.GA16977@bill.heins.net>
Message-ID:
On Fri, 5 Dec 2003, Mike Heins wrote:
> Quoting doug1@ultimatepassage.com (doug1@ultimatepassage.com):
> > Perhaps someone can enlighten me. I'm running interchange 4.9.9 on an AMD
> > opteron using Gentoo Linux. The system is running Apache/2.0.48
> > (Gentoo/Linux) mod_perl/1.99_10 Perl/v5.8.2 mod_ssl/2.0.48 OpenSSL/0.9.7c.
> > Due to some problems compiling sendmail in pure 64bit mode (I have no 32
> > bit libs on this system), I'm using ssmtp instead of sendmail.
> >
> > /usr/lib/sendmail and /usr/sbin/sendmail is smybolically linked to
> > /usr/sbin/ssmtp. Now here's where it gets interesting. When the customer
> > places an order, the order copy gets sent to the customer as expected but
> > the encrypted copy of the order appears in the interchange error log with
> > the following message:
> > 66.92.11.157 rDMWEXi2:66.93.10.157 - [04/December/2003:17:42:05 -0500]
> > cart /cgi-bin/cart/process.html Unable to send mail using
> > /usr/sbin/sendmail
> > > To: webuser
> > > Subject: ORDER 0014
> y > Reply-To: doug1@linux2go.org
> > >
> > >....rest of encrypted e-mail.
> >
> > Now before I go do something silly that I'll reget in the future (such as
> > parsing the error log for e-mail and re-sending it), are there any hard
> > dependency requirements that require sendmail? I find it interesting that
> > interchange has no problems using ssmtp to send the customer copy but
> > obviously does something different for encrypted version.
> >
> > Any advice or suggestions would be appreciated.
>
> The one uses the [email ...] tag, the other the old
> Vend::Util::send_mail. I have never heard of IC having problems, and it
> has used a lot of mailers. My guess is there is some problem in ssmtp
> with the -t option. Did you look in /var/log/maillog? There should
> be something there.
>
> I would switch to Net::SMTP or fake the order report with [email ...] --
> I wouldn't parse logs. 8-)
>
> --
> Mike Heins
> Perusion -- Expert Interchange Consulting http://www.perusion.com/
> phone +1.765.647.1295
>
> Being against torture ought to be sort of a bipartisan thing.
> -- Karl Lehenbauer
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>
Mike,
It turns out the -t option is not supported in ssmtp. I'll use Net::SMTP
instead. Thanks for the info.
Bruce
From tomfriedel at earthlink.net Fri Dec 5 13:14:44 2003
From: tomfriedel at earthlink.net (tom friedel)
Date: Fri Dec 5 13:26:08 2003
Subject: [ic] Interchange should make thumbnails
In-Reply-To: <200312051701.hB5H09HU015389@icdevgroup.org>
References: <200312051701.hB5H09HU015389@icdevgroup.org>
Message-ID: <3FD0CB14.9060804@earthlink.net>
It could use Netpbm utilities to resize an image when it is upoaded.
I've done that in the custom shopping carts I've written. I think
thumbnails are best as jpegs as most people have truecolor displays (as
opposed to 256 colors).
The code I have converts to 'pnm', calls pnmscale, and then calls
ppmtojpeg (for example). If I had more time I would undertake this. If
anyone has any questions feel free to contact me.
Tom Friedel
Ready Ink Incorporated
Custom Internet Software and Web Sites
http://www.readyink.com
>
>
From tverhagen at alamerce.nl Fri Dec 5 14:02:45 2003
From: tverhagen at alamerce.nl (Ton Verhagen)
Date: Fri Dec 5 14:03:30 2003
Subject: [ic] Interchange should make thumbnails
In-Reply-To: <3FD0CB14.9060804@earthlink.net>
References: <200312051701.hB5H09HU015389@icdevgroup.org>
<200312051701.hB5H09HU015389@icdevgroup.org>
Message-ID: <5.2.0.9.0.20031205195856.03d66668@verhagen.net>
Quoting tom friedel :
>It could use Netpbm utilities to resize an image when it is upoaded.
>I've done that in the custom shopping carts I've written. I think
>thumbnails are best as jpegs as most people have truecolor displays (as
>opposed to 256 colors). The code I have converts to 'pnm', calls pnmscale,
>and then calls ppmtojpeg (for example). If I had more time I would
>undertake this. If anyone has any questions feel free to contact me.
Tom,
Interchange has a feature to resize images.
Have a look at the [image] tag.
Example:
[image src="os28004.gif" imagesubdir="items" makesize="50x50"]
Good luck !
Best regards,
Ton
--
Alamerce Nederland --- Cornerstone of eBusiness
Phone +31-40-2374381 info@alamerce.nl http://www.alamerce.nl
eCommerce Solutions -- Consulting -- Website & Interchange Hosting
From gyepi at palmdigitalmedia.com Fri Dec 5 14:42:52 2003
From: gyepi at palmdigitalmedia.com (Gyepi SAM)
Date: Fri Dec 5 14:43:43 2003
Subject: [ic] Interchange should make thumbnails
In-Reply-To: <3FD0CB14.9060804@earthlink.net>
References: <200312051701.hB5H09HU015389@icdevgroup.org>
<3FD0CB14.9060804@earthlink.net>
Message-ID: <20031205194252.GN23755@palmdigitalmedia.com>
On Fri, Dec 05, 2003 at 01:14:44PM -0500, tom friedel wrote:
> It could use Netpbm utilities to resize an image when it is upoaded.
> I've done that in the custom shopping carts I've written. I think
> thumbnails are best as jpegs as most people have truecolor displays (as
> opposed to 256 colors).
> The code I have converts to 'pnm', calls pnmscale, and then calls
> ppmtojpeg (for example). If I had more time I would undertake this. If
> anyone has any questions feel free to contact me.
You can do this quite easily with Image::Magick, which, of course,
requires the C ImageMagick libraries to be installed also. We use it at
palmdigitalmedia.com for book cover images.
use Image::Magick;
p = new Image::Magick;
p->Read("imagefile");
#You can specify one or both of height and width.
p->Scale(height => $thumbnail_height);
p->Write("thumbnail-imagefile");
modulo error checking and sizing policies.
-Gyepi
--
They know enough who know how to learn. --Henry Adams
From pvinci at vinciguerra.com Fri Dec 5 15:14:30 2003
From: pvinci at vinciguerra.com (Paul Vinciguerra)
Date: Fri Dec 5 15:07:18 2003
Subject: [ic] Interchange should make thumbnails
In-Reply-To: <3FD0CB14.9060804@earthlink.net>
References: <200312051701.hB5H09HU015389@icdevgroup.org>
<3FD0CB14.9060804@earthlink.net>
Message-ID: <20031205201329.M84350@vinciguerra.com>
On Fri, 05 Dec 2003 13:14:44 -0500, tom friedel wrote
> It could use Netpbm utilities to resize an image when it is upoaded.
> I've done that in the custom shopping carts I've written. I think
> thumbnails are best as jpegs as most people have truecolor displays
> (as opposed to 256 colors). The code I have converts to 'pnm', calls
> pnmscale, and then calls ppmtojpeg (for example). If I had more
> time I would undertake this. If anyone has any questions feel free
> to contact me.
>
> Tom Friedel
> Ready Ink Incorporated
> Custom Internet Software and Web Sites
> http://www.readyink.com
>
Look at image_collate.coretag in code/UI_tag
-Paul
> >
> >
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
From racke at linuxia.de Fri Dec 5 15:20:29 2003
From: racke at linuxia.de (Stefan Hornburg)
Date: Fri Dec 5 15:21:17 2003
Subject: [ic] Matrix options inventory -- yet again.
In-Reply-To: <3FCF86BF.3060003@vianet.ca>
References: <3FCF86BF.3060003@vianet.ca>
Message-ID: <20031205212029.686c1ae1.racke@linuxia.de>
On Thu, 04 Dec 2003 14:10:55 -0500
Reid Sutherland wrote:
> Please CC me as this email address is not on the list.
>
> Version: 4.9.8
>
> I've searched the lists and have come to no real conclusion about the
> state of inventory controls with regards to matrix options. Here's what
> I understand: "It doesn't work the way it should.".
>
> Basically, you can buy things even if there is no stock in the option
> item. It will even bring the inventory count below 0 (-5 for example).
> This is plain silly in my opinion. This method confuses would be IC
> users that are trying to sell clothing, for example. As they would have
> multiple sizes, colours, etc., and different inventory for each.
>
> Sooo, should I stop complaining and patch it myself, or is there
> something I can do to have it notify/email/complain/etc when a
> particular option is out of stock?
>
> I think the current matrix option inventory system should either be
> disabled or improved. In it's current state, it makes no sense (to me).
> It only adds hope that it functions the same way as the regular item
> inventory does, which of course, it does not. And in the end it may
> give some users a bad taste for IC (and less consulting money for Mike ;))
>
> Let me know what you think.
Citing WHATSNEW from current CVS:
* Add inventory function back in. Mysteriously removed during the
Options rewrite.
Bye
Racke
--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team
From listbox at email.com Fri Dec 5 17:09:55 2003
From: listbox at email.com (Grant)
Date: Fri Dec 5 17:10:38 2003
Subject: [ic] Interchange should make thumbnails
In-Reply-To: <20031205194252.GN23755@palmdigitalmedia.com>
Message-ID:
> On Fri, Dec 05, 2003 at 01:14:44PM -0500, tom friedel wrote:
> > It could use Netpbm utilities to resize an image when it is upoaded.
> > I've done that in the custom shopping carts I've written. I think
> > thumbnails are best as jpegs as most people have truecolor displays (as
> > opposed to 256 colors).
> > The code I have converts to 'pnm', calls pnmscale, and then calls
> > ppmtojpeg (for example). If I had more time I would undertake
> this. If
> > anyone has any questions feel free to contact me.
>
> You can do this quite easily with Image::Magick, which, of course,
> requires the C ImageMagick libraries to be installed also. We use it at
> palmdigitalmedia.com for book cover images.
>
> use Image::Magick;
> p = new Image::Magick;
> p->Read("imagefile");
> #You can specify one or both of height and width.
> p->Scale(height => $thumbnail_height);
> p->Write("thumbnail-imagefile");
>
> modulo error checking and sizing policies.
>
> -Gyepi
I'd like to use Image::Magick to resize, unsharp mask, and possibly overlay
a semi-transparent logo. Do you use the unsharp mask function at all?
- Grant
From gyepi at palmdigitalmedia.com Fri Dec 5 17:48:01 2003
From: gyepi at palmdigitalmedia.com (Gyepi SAM)
Date: Fri Dec 5 17:48:39 2003
Subject: : [ic] Interchange should make thumbnails
In-Reply-To:
References: <20031205194252.GN23755@palmdigitalmedia.com>
Message-ID: <20031205224801.GD25329@palmdigitalmedia.com>
On Fri, Dec 05, 2003 at 02:09:55PM -0800, Grant wrote:
> I'd like to use Image::Magick to resize, unsharp mask, and possibly overlay
> a semi-transparent logo. Do you use the unsharp mask function at all?
No I haven't. I have only used it to resize images, change image
formats, and create text in images. http://www.imagemagick.org/ has a
lot of information, some of which will probably have your answer.
Start here:
http://studio.imagemagick.org/Sage/scripts/Sage.cgi?query=mask&sa=Search
-Gyepi
From interchange at tssphoto.com Fri Dec 5 18:25:38 2003
From: interchange at tssphoto.com (Chris Bair)
Date: Fri Dec 5 18:26:32 2003
Subject: [ic] Shipping depending on state
Message-ID:
I've seen a few references to the shipmode column in the
products/state.txt table. As I understand it, using this, I can
specify which ship modes to allow based on which state is selected
(exclude ground shipping to Hawaii and such). My question is, how
exactly do I do this?
From joshua at kingdomdesign.com Fri Dec 5 18:31:13 2003
From: joshua at kingdomdesign.com (Joshua Lavin)
Date: Fri Dec 5 18:31:59 2003
Subject: [ic] Using MyODBC to update MySQL tables
Message-ID: <1D7C2CF4-277B-11D8-9499-0030654BBC4C@kingdomdesign.com>
We're changing the way we update our products database. The old way was
to upload a new products.txt and remove products.sql. The new way we're
trying is using MyODBC to do updates on the products database directly.
This is really helpful for us since we are syncing Interchange with a
point-of-sale system, and updates are a lot smaller than sending the
whole file each night.
I'm wondering if there could be any problems with using this method.
Say the update fails halfway, is products going to be ruined?
Anyone have experience with this?
Thanks,
Josh
From ic at oneil.org Fri Dec 5 18:51:22 2003
From: ic at oneil.org (Rick O'Neil)
Date: Fri Dec 5 18:55:39 2003
Subject: [ic] Setting up catalogs on multiple domains
Message-ID: <4.1.20031205145634.0101deb0@127.0.0.1>
Hello all,
For several months now I've been running (quite successfully) an IC 4.9.8
catalog on a dedicated server (with virtual hosting of several other
domains as well). Now I want to set up a catalog for one of the other
domains but no matter how I configure things I can't get the second catalog
to run on the second domain - whenever I go to the customer entrance I get
an internal server error. Additionally, IC is running as the user
[firstuser] which is the user that is associated with [firstdomain.com].
The user [firstuser] and [seconduser] are both in the same group and I've
tried running makecat as both users with the same results. In other words:
http://www.[firstdomain.com]/cgi-bin/[firstcatalog]/index.html
The above works fine and has been working fine ever since the initial
catalog creation
http://www.[seconddomain.com]/cgi-bin/[secondcatalog]/index.html
This results in an internal server error with no errors in either the
interchange or catalog error logs.
However, if I instead run makecat and set the cgi directory to that of
[firstuser] it works fine.
Example: http://www.[firstdomain.com]/cgi-bin/[secondcatalog]/index.html
At first I assumed that this was a permissions issue and thus I used in the
[seconddomain] home directory:
chown -R [firstuser] catalogs/[secondcatalog]
chown -R [firstuser] cgi-bin
At his point I'm stumped since all of the catalog files are owned by the
user [firstuser] as is the cgi script. Running both catalogs from
[firstdomain.com] is not an option and I know other people have gotten this
working. Unfortunately, I haven't been able to find anything in the
archives that has worked.
I would certainly appreciate any help anybody could provide. Let me know if
I need to provide any more information (like a log of my answers to makecat).
-Rick
From edl at newmediaems.com Fri Dec 5 20:27:03 2003
From: edl at newmediaems.com (Ed LaFrance)
Date: Fri Dec 5 20:27:27 2003
Subject: [ic] Shipping depending on state
In-Reply-To:
Message-ID: <5.2.1.1.0.20031205172418.0207aee8@mail.newmediaems.com>
At 04:25 PM 12/5/2003 -0700, you wrote:
>I've seen a few references to the shipmode column in the
>products/state.txt table. As I understand it, using this, I can specify
>which ship modes to allow based on which state is selected (exclude ground
>shipping to Hawaii and such). My question is, how exactly do I do this?
Simply populate the shipmode column with valid choices for each state, then
modify the shipping selector code in include/checkout/shipping_address:
A_STATE_CODE could be your state of origin or just about any other state
that makes sense as a starting point, until they specify theirs.
- Ed L.
===============================================================
New Media E.M.S. Technology Solutions for Business
11630 Fair Oaks Blvd., #250 eCommerce | Consulting | Hosting
Fair Oaks, CA 95628 edl@newmediaems.com
(916) 961-0446 http://www.newmediaems.com
(866) 519-4680 Toll-Free (916) 961-0447 Fax
===============================================================
From edl at newmediaems.com Fri Dec 5 20:32:45 2003
From: edl at newmediaems.com (Ed LaFrance)
Date: Fri Dec 5 20:33:12 2003
Subject: [ic] Using MyODBC to update MySQL tables
In-Reply-To: <1D7C2CF4-277B-11D8-9499-0030654BBC4C@kingdomdesign.com>
Message-ID: <5.2.1.1.0.20031205172842.0207c3d0@mail.newmediaems.com>
At 05:31 PM 12/5/2003 -0600, you wrote:
>We're changing the way we update our products database. The old way was to
>upload a new products.txt and remove products.sql. The new way we're
>trying is using MyODBC to do updates on the products database directly.
>This is really helpful for us since we are syncing Interchange with a
>point-of-sale system, and updates are a lot smaller than sending the whole
>file each night.
>
>I'm wondering if there could be any problems with using this method. Say
>the update fails halfway, is products going to be ruined?
>
>Anyone have experience with this?
>
>Thanks,
>Josh
I've had one or two clients do this and they never reported a problem with
it. If you enable logging in the MyODBC control panel, you'll see that is
it simply issuing SQL statements to your server, and I would assume there
is ak-start-end-ak stuff around each one, so I think your are pretty well
covered as far as individual records go - but that is not from first-hand
experience.
- Ed L.
===============================================================
New Media E.M.S. Technology Solutions for Business
11630 Fair Oaks Blvd., #250 eCommerce | Consulting | Hosting
Fair Oaks, CA 95628 edl@newmediaems.com
(916) 961-0446 http://www.newmediaems.com
(866) 519-4680 Toll-Free (916) 961-0447 Fax
===============================================================
From mike at perusion.com Fri Dec 5 23:47:12 2003
From: mike at perusion.com (Mike Heins)
Date: Fri Dec 5 23:47:46 2003
Subject: [ic] Shipping depending on state
In-Reply-To: <5.2.1.1.0.20031205172418.0207aee8@mail.newmediaems.com>
References:
<5.2.1.1.0.20031205172418.0207aee8@mail.newmediaems.com>
Message-ID: <20031206044712.GA25324@bill.heins.net>
Quoting Ed LaFrance (edl@newmediaems.com):
> At 04:25 PM 12/5/2003 -0700, you wrote:
> >I've seen a few references to the shipmode column in the
> >products/state.txt table. As I understand it, using this, I can specify
> >which ship modes to allow based on which state is selected (exclude ground
> >shipping to Hawaii and such). My question is, how exactly do I do this?
>
> Simply populate the shipmode column with valid choices for each state, then
> modify the shipping selector code in include/checkout/shipping_address:
>
>
>
> A_STATE_CODE could be your state of origin or just about any other state
> that makes sense as a starting point, until they specify theirs.
Actually, in Interchange 5.0 you can get it automatically via:
[shipping widget=select]
That will give you the shipping modes valid for the current
shopping cart and values. In other words, you have to have
a state and country to get the modes; you have to have a ZIP
if by UPS, and if the criteria is weight you must have that
as well.
You can see the effect of some of these in the "mike" demo.
If you want all *possible* shipmodes for the country/state,
regardless of cart contents or zip, use:
[shipping possible=1]
That will give you a space-separated list of modes you
can loop over:
Select your default shipping mode:
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295
Nature, to be commanded, must be obeyed. -- Francis Bacon
From kosmo at trslab.it Sat Dec 6 05:01:43 2003
From: kosmo at trslab.it (Danilo Ingami)
Date: Sat Dec 6 04:58:36 2003
Subject: [ic] Automatic refresh on matrix option change
In-Reply-To:
References:
Message-ID: <3FD1A907.6000503@trslab.it>
Hi all,
I want to make atomatic change on matrix option change. How can I do
that? someone can help me? I don't know how can put in this code some
javascript on the onChange event.
Thanks in advance.
danilo
[if-item-data options o_enable]
[if-item-data !options o_modular]
[table-organize cols=4 table=' ' font="size=1" pretty=1]
[item-options td=1 label=1 bold=1 price=1]
[/table-organize]
[/if-item-data]
[/if-item-data]
From alex at rackst.com Sat Dec 6 14:12:37 2003
From: alex at rackst.com (alexander Daree)
Date: Sat Dec 6 14:13:24 2003
Subject: [ic] Return search results
In-Reply-To:
References:
Message-ID: <1070737957.3fd22a2555caf@webmail.rackst.com>
Hello
I need my reurned search results to come back with the newest posts? sort of
by date posted? how can i do that?
Thanks
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
From pshempel at linuxhardcore.com Sat Dec 6 15:28:58 2003
From: pshempel at linuxhardcore.com (Philip S. Hempel)
Date: Sat Dec 6 15:29:41 2003
Subject: [ic] Matrix Options: selections reset to default
Message-ID: <1070742530.1170.27.camel@starfire>
CVS version 5.0 of IC
Perl 5.8.1
Mikes demo store
I am working with this product as a test located at
http://www.blossomland.com/none-100.html
It has two options, if you make changes from the default the product is
correctly set and all is fine.
Notice the product selections are not the chosen selections in the cart.
There are a few things that you can do to produce the same results.
1. Do a recalculate on the product and it will naturally put the items
that are showing in the selections in the cart.
2. Checkout will looking at your cart (this is no different than
posting to the form in recalc.
I seem to notice the demo store is not afflicted with this problem. But
the code for the basket and options seem to be the exact same from what
I am doing.
Could someone point me what makes the outputs selections work different
The below is what I believe to be the portions that support the options
output
[table-organize cols=4 table=' ' font="size=1" pretty=1]
[item-options td=1 label=1 bold=1 price=1]
[/table-organize]
With this being true basically the data is output using code from the
options module within IC.
TIA
--
Philip S. Hempel
Give a man a fish and he will feed himself for a day.
Teach a man to fish and he will feed himself for a lifetime.
http://linuxhardcore.com/
From kosmo at trslab.it Sat Dec 6 16:44:46 2003
From: kosmo at trslab.it (Danilo Ingami)
Date: Sat Dec 6 16:41:39 2003
Subject: [ic] RMA Customization
In-Reply-To: <1070742530.1170.27.camel@starfire>
References: <1070742530.1170.27.camel@starfire>
Message-ID: <3FD24DCE.8010001@trslab.it>
Hi all,
I need to customize the laste response for the return request.
but I can't find the page that buildd teh response.
Anyone know something about that?
I use Interchange 4.8.7.
thanks in advance
Danilo
From DB at m-and-d.com Sat Dec 6 17:14:33 2003
From: DB at m-and-d.com (DB)
Date: Sat Dec 6 17:27:55 2003
Subject: [ic] Removing carriage returns from description
Message-ID: <3FD254C9.5050105@m-and-d.com>
I'm sure this has come up before.. I think I even figured it out once.
A supplier provided me with a product database in csv format. I can
import it into Excel or Access and it is formatted ok. But the
description fields contain carriage returns (I think that's what they
are) which show up as squares. These are causing problems when I try to
export to a text file. How can I remove these pesky critters? I've tried
many things such as fromdos in linux but can't quite get what I want.
Any hints? magic perl snippets?
DB
From racke at linuxia.de Sat Dec 6 17:48:48 2003
From: racke at linuxia.de (Stefan Hornburg)
Date: Sat Dec 6 17:49:27 2003
Subject: [ic] Removing carriage returns from description
In-Reply-To: <3FD254C9.5050105@m-and-d.com>
References: <3FD254C9.5050105@m-and-d.com>
Message-ID: <20031206234848.2dba57e2.racke@linuxia.de>
On Sat, 06 Dec 2003 17:14:33 -0500
DB wrote:
> I'm sure this has come up before.. I think I even figured it out once.
>
> A supplier provided me with a product database in csv format. I can
> import it into Excel or Access and it is formatted ok. But the
> description fields contain carriage returns (I think that's what they
> are) which show up as squares. These are causing problems when I try to
> export to a text file. How can I remove these pesky critters? I've tried
> many things such as fromdos in linux but can't quite get what I want.
> Any hints? magic perl snippets?
Backup FILE first, and then run:
perl -i -pe 's/\r//g' FILE
This will remove all carriage returns from the file.
Ciao
Racke
--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team
From racke at linuxia.de Sat Dec 6 19:52:51 2003
From: racke at linuxia.de (Stefan Hornburg)
Date: Sat Dec 6 19:53:32 2003
Subject: [ic] Performance issues with i18n
In-Reply-To: <20031204181722.GA4190@worxpace>
References: <20031203174540.GA1844@worxpace> <20031204181722.GA4190@worxpace>
Message-ID: <20031207015251.294c2e6c.racke@linuxia.de>
On Thu, 4 Dec 2003 19:17:22 +0100
Thomas Weiss wrote:
> * On Wed, Dec 03 panos wrote:
> > I'm building an internationalized catalog with Interchange 4.9.9 and the
> > locale based database mappings as found in the foundation catalog. My
> > problem is that as soon as the mappings are used (by using a locale
> > other than the default) everything gets terribly slow. The reason is the
> > way Vend::Table::Shadow applies the mappings when querying the database.
> >
> > For example when using the foundation catalog's data and database mapping
> > settings it takes about 80 sql queries to build the category menu (with
> > the category_vertical component) when using the default locale (no
> > mappings in use, no Vend::Table::Shadow), but with a non-default locale
> > in use it takes about 950 sql queries to do the same, which is IMHO way
> > too much to be efficient.
>
> I've been hacking around a little bit and have been able to speed up the
> database mapping for this case by more than factor 3. The benchmarks
> have been done with the foundation catalog's process page with
> category_vertical being the only enabled component. Always a non-default
> locale setting was used. Interchange was running on my workstation, a
> PC with a P4 1.5GHz CPU and 512MB and the database server (PostgreSQL)
> was running on a machine with a PIII 550GHz CPU with 768MB RAM.
>
> The number of database queries required to display the page has dropped
> from about 950 down to about 120 which raises the number of pages
> Interchange can server in a minute from 28 up to 95. When using single
> table mappings (i.e. the mapped column is in the same table as the
> original column) it served 106 pages in 1 minute.
>
> The optimizations made were 1) omitting an unnessessary call to
> record_exists() in Vend::Table::Shadow and 2) letting the database
> server do the hard work applying the mappings instead of doing it
> manually.
>
> Below are patches against Vend::Table::DBI (CVS Version 2.57) and
> Vend::Table::Shadow (CVS Version 1.43) which implement these
> optimizations. The patches are meant as a proof-of-concept kind of thing
> and there is of course room for improvement. The most important thing
> to do is support optimization even if the fallback option is set for
> the mapping. Currently optimization is done only if fallback is off
> but it can relatively easy be implemented (see patch no. 2 for details).
>
> I'm looking forward to hear any opinions.
If I remember correctly the call to record_exists() has been introduced
because field() fails for GDBM databases on non-existant records.
Many thanks for your analysis/patches, I'll look in detail at it
after the release of 5.0.
Bye
Racke
--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team
From mike at perusion.com Sat Dec 6 21:46:16 2003
From: mike at perusion.com (Mike Heins)
Date: Sat Dec 6 21:46:47 2003
Subject: [ic] Performance issues with i18n
In-Reply-To: <20031207015251.294c2e6c.racke@linuxia.de>
References: <20031203174540.GA1844@worxpace> <20031204181722.GA4190@worxpace>
<20031207015251.294c2e6c.racke@linuxia.de>
Message-ID: <20031207024616.GA17179@bill.heins.net>
Quoting Stefan Hornburg (Racke) (racke@linuxia.de):
> On Thu, 4 Dec 2003 19:17:22 +0100
> Thomas Weiss wrote:
>
> > * On Wed, Dec 03 panos wrote:
> > The optimizations made were 1) omitting an unnessessary call to
> > record_exists() in Vend::Table::Shadow and 2) letting the database
> > server do the hard work applying the mappings instead of doing it
> > manually.
> >
> > Below are patches against Vend::Table::DBI (CVS Version 2.57) and
> > Vend::Table::Shadow (CVS Version 1.43) which implement these
> > optimizations. The patches are meant as a proof-of-concept kind of thing
> > and there is of course room for improvement. The most important thing
> > to do is support optimization even if the fallback option is set for
> > the mapping. Currently optimization is done only if fallback is off
> > but it can relatively easy be implemented (see patch no. 2 for details).
> >
> > I'm looking forward to hear any opinions.
>
> If I remember correctly the call to record_exists() has been introduced
> because field() fails for GDBM databases on non-existant records.
We could pretty easily move that to Vend::Table::Common or
Vend::Table::GDBM. We would of course have to analyze the
effect on DBI mostly, but also DB_File, SDBM, and LDAP.
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295
Friends don't let friends use Outlook. -- Bob Blaylock
From mnow at speednetllc.com Sun Dec 7 05:21:00 2003
From: mnow at speednetllc.com (mnow)
Date: Sun Dec 7 05:20:01 2003
Subject: [ic] Create a PDF of interchange?
Message-ID: <000201c3bcab$d4386100$4f02a8c0@Workgroup>
Has anyone had experience on creating a PDF catalog of an interchange site?
Thanks,
Mark
From junk at puffin.org Sun Dec 7 07:56:24 2003
From: junk at puffin.org (Adrian P Wilkinson)
Date: Sun Dec 7 07:57:37 2003
Subject: [ic] encrypt.tag - no valid OpenPGP data found
Message-ID: <001201c3bcc1$86392d70$0bc0a8c0@invincible.local>
Hi,
I'm having problems using the encrypt tag to protect data using GPG using a
custom order route. The output log says: -
Card no: Encrypt failed: gpg: Warning: using insecure memory!
gpg: no valid OpenPGP data found.
gpg: processing message failed: eof
GPG works absolutely fine with normal orders but fails when called from this
custom order route. Can anyone shed any light on this? I believe that Ed
LaFrance was the author of this particular tag and there was only one match
when searching using Swish or Google.
Regards, Ade.
From edl at newmediaems.com Sun Dec 7 11:58:32 2003
From: edl at newmediaems.com (Ed LaFrance)
Date: Sun Dec 7 11:59:02 2003
Subject: [ic] encrypt.tag - no valid OpenPGP data found
In-Reply-To: <001201c3bcc1$86392d70$0bc0a8c0@invincible.local>
Message-ID: <5.2.1.1.0.20031207085546.020f8e80@mail.newmediaems.com>
At 12:56 PM 12/7/2003 +0000, you wrote:
>Hi,
>
>I'm having problems using the encrypt tag to protect data using GPG using a
>custom order route. The output log says: -
>
>Card no: Encrypt failed: gpg: Warning: using insecure memory!
>gpg: no valid OpenPGP data found.
>gpg: processing message failed: eof
>
>GPG works absolutely fine with normal orders but fails when called from this
>custom order route. Can anyone shed any light on this? I believe that Ed
>LaFrance was the author of this particular tag and there was only one match
>when searching using Swish or Google.
>
>Regards, Ade.
Adrian -
Yes, I wrote it a long time ago (4.6 branch, I think) as a quick kludge to
get arbitrary encryption of any text within interchange. I really would not
be surprised if it has issues now, as I have not maintained it to keep up
with advances in the gpg code and/or interchange. Perhaps this coming week
I can look at it.
- Ed
>
===============================================================
New Media E.M.S. Technology Solutions for Business
11630 Fair Oaks Blvd., #250 eCommerce | Consulting | Hosting
Fair Oaks, CA 95628 edl@newmediaems.com
(916) 961-0446 http://www.newmediaems.com
(866) 519-4680 Toll-Free (916) 961-0447 Fax
===============================================================
From doug at lathi.net Sun Dec 7 20:23:37 2003
From: doug at lathi.net (Doug Alcorn)
Date: Sun Dec 7 20:24:32 2003
Subject: [ic] Using MyODBC to update MySQL tables
In-Reply-To: <1D7C2CF4-277B-11D8-9499-0030654BBC4C@kingdomdesign.com> (Joshua
Lavin's message of "Fri, 5 Dec 2003 17:31:13 -0600")
References: <1D7C2CF4-277B-11D8-9499-0030654BBC4C@kingdomdesign.com>
Message-ID: <87ad64je5i.fsf@lathi.net>
Joshua Lavin writes:
> The new way we're trying is using MyODBC to do updates on the
> products database directly. [snip] I'm wondering if there could be
> any problems with using this method. Say the update fails halfway,
> is products going to be ruined?
Here's my warning: all user input is bad. I've had problems trying to
facilitate that catalog owner uploading new data because he has a hard
time exporting the .txt files correctly (wrong column names, invalid
data types, DOS carriage returns, etc.) I don't know what your setup
is; however, I strongly encourage you to validate the data as it comes
in.
--
(__) Doug Alcorn - Unix/Linux/Web Developing
oo / PGP 02B3 1E26 BCF2 9AAF 93F1 61D7 450C B264 3E63 D543
|_/ mailto:doug@lathi.net http://www.lathi.net
mailto:tarpit@lathi.net is a spam trap
From pshempel at linuxhardcore.com Sun Dec 7 20:56:33 2003
From: pshempel at linuxhardcore.com (Philip S. Hempel)
Date: Sun Dec 7 20:57:04 2003
Subject: [ic] Create a PDF of interchange?
In-Reply-To: <000201c3bcab$d4386100$4f02a8c0@Workgroup>
References: <000201c3bcab$d4386100$4f02a8c0@Workgroup>
Message-ID: <1070848593.10046.0.camel@starfire>
On Sun, 2003-12-07 at 05:21, mnow wrote:
> Has anyone had experience on creating a PDF catalog of an interchange site?
>
Yes, here is one,
http://www.blossomland.com/pdf/blossomland_supply-catalog.pdf
> Thanks,
> Mark
--
Philip S. Hempel
Principles before Personalities
From anthony at urbanscooters.com Sun Dec 7 21:27:57 2003
From: anthony at urbanscooters.com (Anthony Minero)
Date: Sun Dec 7 21:28:10 2003
Subject: [ic] Putting options in order
In-Reply-To: <20031206234848.2dba57e2.racke@linuxia.de>
Message-ID:
Could someone tell me how to put options in a specific order? I have some
products that have 4 separate options and when I enter them they show up in
a random order like;
Color
1 year warranty
Optional color
Size
I need them to show up in a specific order;
Color
Optional Color
Size
1 Year Warranty.
This doesn't seem like it should be too hard, and definitely seems like
something that the cart should be able to do, but I've looked through the
docs and asked this on this list before and got not answers.
I'm on 4.9.8, MySQL, using the "options" table.
--
Anthony
From frank at goldissue.com Sun Dec 7 21:50:30 2003
From: frank at goldissue.com (frank)
Date: Sun Dec 7 21:46:31 2003
Subject: [ic] Putting options in order
In-Reply-To:
References:
Message-ID: <3FD3E6F6.3050805@goldissue.com>
Anthony Minero wrote:
>Could someone tell me how to put options in a specific order? I have some
>products that have 4 separate options and when I enter them they show up in
>a random order like;
>Color
>1 year warranty
>Optional color
>Size
>
>
Last time I checked options in the foundation Demo (yesterday) I noticed
that there is an o_sort field in options.txt. If you increment this for
your several options you will find that the smallest number will be
displayed first. As for the UI I am not sure how,
Frank Reitzenstein
>
>
From shawn at stuckinrealtime.us Mon Dec 8 02:39:05 2003
From: shawn at stuckinrealtime.us (Shawn Mathews)
Date: Mon Dec 8 02:43:41 2003
Subject: [ic] Discounting Accessories
Message-ID: <3FD42A99.1080500@stuckinrealtime.us>
I've looked thru the list (well, as much as I have archived) and I
have not found an answer to the question........
Let's say I'm selling shirts which come in multiple sizes, and I want to
run a special on extra-large shirts only. How would I go about doing
this with the discount tag?
I can discount the sku, but how do I check if that particular option is
selected?
Thanks.
Shawn Mathews
shawn@stuckinrealtime.us
From pater.noster at gmx.net Mon Dec 8 05:11:48 2003
From: pater.noster at gmx.net (Thomas Weiss)
Date: Mon Dec 8 05:12:24 2003
Subject: [ic] Performance issues with i18n
In-Reply-To: <20031207015251.294c2e6c.racke@linuxia.de>
References: <20031203174540.GA1844@worxpace> <20031204181722.GA4190@worxpace>
<20031207015251.294c2e6c.racke@linuxia.de>
Message-ID: <20031208101148.GA1948@worxpace>
* On Sun, Dec 07 Stefan Hornburg wrote:
> Many thanks for your analysis/patches, I'll look in detail at it
> after the release of 5.0.
In the meantime I'll go on improving the patch. Optimized fallback is
already supported. And there is more to come.
From pater.noster at gmx.net Mon Dec 8 05:59:04 2003
From: pater.noster at gmx.net (Thomas Weiss)
Date: Mon Dec 8 05:59:41 2003
Subject: [ic] Search by category not working in localized foundation catalog
Message-ID: <20031208105904.GC1948@worxpace>
When using the foundation catalog of IC 4.9.9 I stumbled across the
following problem:
When searching by category (i.e. using the category menu) no results are
shown when using a non-default locale. Reason is the following:
The category menu uses the selector field of the products table. Since
this field is not localized the generated one-click searches contain the
english category names
(/scan/st=db/co=yes/sf=category/se=Putty%20Knives/op=eq). When
executing the search Vend::Table::Shadow is used to query the database
(select * from products WHERE inactive != 1 AND category = 'Putty
Knives') since a database mapping has been configured for table
products. each_nokey() of Vend::Table::Shadow returns the mapped result,
so that the result contains the non-english category name. This result
is then passed to the limiting function (returned by
Vend::Search::get_limit()) which checks if the category name returned by
the query matches the search spec submitted with the search ("Putty
Knives" in this case). But since the returned result contains
non-english category names it doesn't match the search term and
therefore the result is discarded.
To work around the problem I tried to localize the selector field, which
correctly generates searches with localized category names, but it still
fails since the field name given in the selector field is assumed to be
a field of table products and the database mapping isn't applied since
the field name is used in the where clause of the database query
(select * from products WHERE inactive != 1 AND category = 'Spachtel').
The result is the english category field being searched for a non-english
category name. To fix this Vend::Table::Shadow::each_nokey() would not
only have to apply the database mapping to the result of a query, but
also to the query itself.
To really work around the problem I had to put a localized category
field and a localized selector field (containing something like
"category_de_DE=Spachtel") into the products table and additionally a
localized selector field into the cat table or rather the shadow table
thereof.
There must be a better way to fix this. Any ideas?
Thomas
From joshua at kingdomdesign.com Mon Dec 8 07:47:19 2003
From: joshua at kingdomdesign.com (Joshua Lavin)
Date: Mon Dec 8 07:48:14 2003
Subject: [ic] Setting up catalogs on multiple domains
In-Reply-To: <4.1.20031205145634.0101deb0@127.0.0.1>
Message-ID:
On Friday, December 5, 2003, at 05:51 PM, Rick O'Neil wrote:
> Hello all,
>
> For several months now I've been running (quite successfully) an IC
> 4.9.8
> catalog on a dedicated server (with virtual hosting of several other
> domains as well). Now I want to set up a catalog for one of the other
> domains but no matter how I configure things I can't get the second
> catalog
> to run on the second domain - whenever I go to the customer entrance I
> get
> an internal server error. Additionally, IC is running as the user
> [firstuser] which is the user that is associated with
> [firstdomain.com].
> The user [firstuser] and [seconduser] are both in the same group and
> I've
> tried running makecat as both users with the same results. In other
> words:
>
> http://www.[firstdomain.com]/cgi-bin/[firstcatalog]/index.html
> The above works fine and has been working fine ever since the initial
> catalog creation
>
> http://www.[seconddomain.com]/cgi-bin/[secondcatalog]/index.html
> This results in an internal server error with no errors in either the
> interchange or catalog error logs.
>
> However, if I instead run makecat and set the cgi directory to that of
> [firstuser] it works fine.
> Example:
> http://www.[firstdomain.com]/cgi-bin/[secondcatalog]/index.html
>
> At first I assumed that this was a permissions issue and thus I used
> in the
> [seconddomain] home directory:
> chown -R [firstuser] catalogs/[secondcatalog]
> chown -R [firstuser] cgi-bin
>
> At his point I'm stumped since all of the catalog files are owned by
> the
> user [firstuser] as is the cgi script. Running both catalogs from
> [firstdomain.com] is not an option and I know other people have gotten
> this
> working. Unfortunately, I haven't been able to find anything in the
> archives that has worked.
>
> I would certainly appreciate any help anybody could provide. Let me
> know if
> I need to provide any more information (like a log of my answers to
> makecat).
>
> -Rick
You didn't mention what your error logs say.
I'm running multiple catalogs on one IC, but all under one user. You
could install 4.9.9 to run as one user, and use the test variable as
mentioned in the UPGRADE file to test your catalogs. Maybe that would
work.
Josh
From joshua at kingdomdesign.com Mon Dec 8 08:01:43 2003
From: joshua at kingdomdesign.com (Joshua Lavin)
Date: Mon Dec 8 08:02:40 2003
Subject: [ic] Using MyODBC to update MySQL tables
In-Reply-To: <5.2.1.1.0.20031205172842.0207c3d0@mail.newmediaems.com>
Message-ID:
On Friday, December 5, 2003, at 07:32 PM, Ed LaFrance wrote:
> At 05:31 PM 12/5/2003 -0600, you wrote:
>> We're changing the way we update our products database. The old way
>> was to upload a new products.txt and remove products.sql. The new way
>> we're trying is using MyODBC to do updates on the products database
>> directly. This is really helpful for us since we are syncing
>> Interchange with a point-of-sale system, and updates are a lot
>> smaller than sending the whole file each night.
>>
>> I'm wondering if there could be any problems with using this method.
>> Say the update fails halfway, is products going to be ruined?
>>
>> Anyone have experience with this?
>>
>> Thanks,
>> Josh
>
> I've had one or two clients do this and they never reported a problem
> with it. If you enable logging in the MyODBC control panel, you'll see
> that is it simply issuing SQL statements to your server, and I would
> assume there is ak-start-end-ak stuff around each one, so I think your
> are pretty well covered as far as individual records go - but that is
> not from first-hand experience.
>
> - Ed L.
Thanks Ed and Doug. Sounds pretty safe, but I will be backing up the
database, just in case. :)
Ed, with your clients doing this, do you export products to the text
file at all? (Admin -> Tables -> Export) I did this to start out with,
and it generates the files for my indices as well. I'm just wondering
if this is something I should do regularly. (Maybe those are only for
file-based searches?)
Josh
From jpkennedy at pharmology.com Mon Dec 8 08:09:29 2003
From: jpkennedy at pharmology.com (Jon-Paul Kennedy)
Date: Mon Dec 8 08:09:17 2003
Subject: [ic] CommonAdjust using fields other than Pricing.
Message-ID: <2014EE1E55B6C0409F0BC37481F61E30A4AAE5@exchange.pharmology.live>
Hi,
I need to display a value directly relevant to which price I am displaying
per user logged in.
I posted last week but got no replies.
Can this be achieved using CommonAdjust?
Can someone please drop me a mail and this is mega urgent!!!
Thank you in advance
Jon
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.545 / Virus Database: 339 - Release Date: 27/11/2003
From jamie at versado.net Mon Dec 8 09:23:09 2003
From: jamie at versado.net (Jamie Neil)
Date: Mon Dec 8 09:23:30 2003
Subject: [ic] Bundling and quantity discounts with matrix options
Message-ID: <3FD4894D.6070704@versado.net>
Hi all,
One of my customers wants to do 3 for the price of 2 type offers on some
of their products. No problem I say, we can use quantity discounting:
set the base price to ?10/item, set q3 to ?6.666/item, and hey presto 2
widgets cost ?20 and 3 widgets cost ?20 as well!
The problem is, it doesn't work when you take matrix options into
account: 3 red widgets cost ?20, but 1 red widget and 2 green widgets
cost ?30 (different skus).
Can anyone suggest a solution? I'm thinking that some kind of product
bundling mechanism is required (which is also on my customer's wish
list), but I'm not sure how to tackle it at the moment.
--
Jamie Neil | | 0870 7777 454
Versado I.T. Services Ltd. | http://versado.net/ | 0845 450 1254
From edl at newmediaems.com Mon Dec 8 10:22:58 2003
From: edl at newmediaems.com (Ed LaFrance)
Date: Mon Dec 8 10:23:36 2003
Subject: [ic] Discounting Accessories
In-Reply-To: <3FD42A99.1080500@stuckinrealtime.us>
Message-ID: <5.2.1.1.0.20031208072136.020abe50@mail.newmediaems.com>
At 02:39 AM 12/8/2003 -0500, you wrote:
>I've looked thru the list (well, as much as I have archived) and I
>have not found an answer to the question........
>
>Let's say I'm selling shirts which come in multiple sizes, and I want to
>run a special on extra-large shirts only. How would I go about doing
>this with the discount tag?
>
>I can discount the sku, but how do I check if that particular option is
>selected?
I believe at one time I verified that you could set a negative cost (i.e.:
-$2.00 for extra-small) for an option. It's been a long time, but it would
be worth a try...
- Ed L.
===============================================================
New Media E.M.S. Technology Solutions for Business
11630 Fair Oaks Blvd., #250 eCommerce | Consulting | Hosting
Fair Oaks, CA 95628 edl@newmediaems.com
(916) 961-0446 http://www.newmediaems.com
(866) 519-4680 Toll-Free (916) 961-0447 Fax
===============================================================
From edl at newmediaems.com Mon Dec 8 10:28:32 2003
From: edl at newmediaems.com (Ed LaFrance)
Date: Mon Dec 8 10:29:14 2003
Subject: [ic] Using MyODBC to update MySQL tables
In-Reply-To:
References: <5.2.1.1.0.20031205172842.0207c3d0@mail.newmediaems.com>
Message-ID: <5.2.1.1.0.20031208072521.020a65c0@mail.newmediaems.com>
At 07:01 AM 12/8/2003 -0600, you wrote:
>On Friday, December 5, 2003, at 07:32 PM, Ed LaFrance wrote:
>
>>At 05:31 PM 12/5/2003 -0600, you wrote:
>>>We're changing the way we update our products database. The old way was
>>>to upload a new products.txt and remove products.sql. The new way we're
>>>trying is using MyODBC to do updates on the products database directly.
>>>This is really helpful for us since we are syncing Interchange with a
>>>point-of-sale system, and updates are a lot smaller than sending the
>>>whole file each night.
>>>
>>>I'm wondering if there could be any problems with using this method. Say
>>>the update fails halfway, is products going to be ruined?
>>>
>>>Anyone have experience with this?
>>>
>>>Thanks,
>>>Josh
>>
>>I've had one or two clients do this and they never reported a problem
>>with it. If you enable logging in the MyODBC control panel, you'll see
>>that is it simply issuing SQL statements to your server, and I would
>>assume there is ak-start-end-ak stuff around each one, so I think your
>>are pretty well covered as far as individual records go - but that is not
>>from first-hand experience.
>>
>>- Ed L.
>
>Thanks Ed and Doug. Sounds pretty safe, but I will be backing up the
>database, just in case. :)
>
>Ed, with your clients doing this, do you export products to the text file
>at all? (Admin -> Tables -> Export) I did this to start out with, and it
>generates the files for my indices as well. I'm just wondering if this is
>something I should do regularly. (Maybe those are only for file-based
>searches?)
>
>Josh
In the normal course of events, there is very little reason to export your
tables to text files unless you have something specific that you need to do
with them (or, as you said, you are doing text-based searches on them,
though most SQL dbms can get you equivalent or better performance than that
technique).
- Ed
===============================================================
New Media E.M.S. Technology Solutions for Business
11630 Fair Oaks Blvd., #250 eCommerce | Consulting | Hosting
Fair Oaks, CA 95628 edl@newmediaems.com
(916) 961-0446 http://www.newmediaems.com
(866) 519-4680 Toll-Free (916) 961-0447 Fax
===============================================================
From edl at newmediaems.com Mon Dec 8 11:56:01 2003
From: edl at newmediaems.com (Ed LaFrance)
Date: Mon Dec 8 11:52:51 2003
Subject: [ic] CommonAdjust using fields other than Pricing.
In-Reply-To: <2014EE1E55B6C0409F0BC37481F61E30A4AAE5@exchange.pharmology .live>
Message-ID: <5.2.1.1.0.20031208085518.02e3cc18@mail.newmediaems.com>
At 01:09 PM 12/8/2003 +0000, you wrote:
>Hi,
>
>I need to display a value directly relevant to which price I am displaying
>per user logged in.
That's a vague statement - if your post from last week was more clearly
phrased, I suggest you repost that.
- Ed
>I posted last week but got no replies.
>Can this be achieved using CommonAdjust?
>Can someone please drop me a mail and this is mega urgent!!!
>
>Thank you in advance
>
>Jon
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.545 / Virus Database: 339 - Release Date: 27/11/2003
>
>_______________________________________________
>interchange-users mailing list
>interchange-users@icdevgroup.org
>http://www.icdevgroup.org/mailman/listinfo/interchange-users
===============================================================
New Media E.M.S. Technology Solutions for Business
11630 Fair Oaks Blvd., #250 eCommerce | Consulting | Hosting
Fair Oaks, CA 95628 edl@newmediaems.com
(916) 961-0446 http://www.newmediaems.com
(866) 519-4680 Toll-Free (916) 961-0447 Fax
===============================================================
From interchange at tssphoto.com Mon Dec 8 12:30:11 2003
From: interchange at tssphoto.com (Chris Bair)
Date: Mon Dec 8 12:31:49 2003
Subject: [ic] Shipping depending on state
In-Reply-To: <5.2.1.1.0.20031205172418.0207aee8@mail.newmediaems.com>
References: <5.2.1.1.0.20031205172418.0207aee8@mail.newmediaems.com>
Message-ID:
>At 04:25 PM 12/5/2003 -0700, you wrote:
>>I've seen a few references to the shipmode column in the
>>products/state.txt table. As I understand it, using this, I can
>>specify which ship modes to allow based on which state is selected
>>(exclude ground shipping to Hawaii and such). My question is, how
>>exactly do I do this?
>
>Simply populate the shipmode column with valid choices for each
>state, then modify the shipping selector code in
>include/checkout/shipping_address:
>
>
I guess I should have specified that I was running 4.8.7. The trick
wasn't working so I upgraded to the latest 4.9.9 all was fine until I
try putting in the code above. The shipping method menu ends up empty
and this is in the error file:
166.70.101.210 IzWvCmy3:166.70.101.210 - [08/December/2003:10:15:56
-0700] poop /cgi-bin/poop.cgi/ord/checkout.html Runtime error: Can't
locate object method "single" via package "Vend::Table::GDBM"
(perhaps you forgot to load "Vend::Table::GDBM"?) at
/home/inkjet/interchange/lib/Vend/Ship.pm line 429.
>
From ic at oneil.org Mon Dec 8 15:26:53 2003
From: ic at oneil.org (Rick O'Neil)
Date: Mon Dec 8 15:27:36 2003
Subject: [ic] Re: Setting up catalogs on multiple domains
In-Reply-To: <200312081704.hB8H3hHT024352@icdevgroup.org>
Message-ID: <4.1.20031208120345.00adf480@127.0.0.1>
>> Hello all,
>>
>> For several months now I've been running (quite successfully) an IC
>> 4.9.8
>> catalog on a dedicated server (with virtual hosting of several other
>> domains as well). Now I want to set up a catalog for one of the other
>> domains but no matter how I configure things I can't get the second
>> catalog
>> to run on the second domain - whenever I go to the customer entrance I
>> get
>> an internal server error. Additionally, IC is running as the user
>> [firstuser] which is the user that is associated with
>> [firstdomain.com].
>> The user [firstuser] and [seconduser] are both in the same group and
>> I've
>> tried running makecat as both users with the same results. In other
>> words:
>>
>> http://www.[firstdomain.com]/cgi-bin/[firstcatalog]/index.html
>> The above works fine and has been working fine ever since the initial
>> catalog creation
>>
>> http://www.[seconddomain.com]/cgi-bin/[secondcatalog]/index.html
>> This results in an internal server error with no errors in either the
>> interchange or catalog error logs.
>>
>> However, if I instead run makecat and set the cgi directory to that of
>> [firstuser] it works fine.
>> Example:
>> http://www.[firstdomain.com]/cgi-bin/[secondcatalog]/index.html
>>
>> At first I assumed that this was a permissions issue and thus I used
>> in the
>> [seconddomain] home directory:
>> chown -R [firstuser] catalogs/[secondcatalog]
>> chown -R [firstuser] cgi-bin
>>
>> At his point I'm stumped since all of the catalog files are owned by
>> the
>> user [firstuser] as is the cgi script. Running both catalogs from
>> [firstdomain.com] is not an option and I know other people have gotten
>> this
>> working. Unfortunately, I haven't been able to find anything in the
>> archives that has worked.
>>
>> I would certainly appreciate any help anybody could provide. Let me
>> know if
>> I need to provide any more information (like a log of my answers to
>> makecat).
>>
>> -Rick
>
>You didn't mention what your error logs say.
I did say that there was nothing in the catalog error log and nothing in
the IC (system) error log. I also checked my Apache error log and as
predicted the error there was too generic to be helpful:
Premature end of script headers:
/home/httpd/vhosts/[seconddomain.com]/cgi-bin/[secondcatalog]
>I'm running multiple catalogs on one IC, but all under one user. You
>could install 4.9.9 to run as one user, and use the test variable as
>mentioned in the UPGRADE file to test your catalogs. Maybe that would
>work.
I've read through the release notes for 4.9.9 and it doesn't look like the
way the catalogs are configured or "run" is any different than in 4.9.8.
I'd rather not go through the upgrade process until 5.0 is released since I
have one currently running catalog. If I'm wrong about this I'm sure Mike
or one of the other IC gurus around here can correct me.
I know that other people have gotten multiple catalogs each to run on their
own domain and I'd like to figure out what I'm doing wrong. I know I'm
close - I just don't know which direction to go in (it's like knowing the
grocery store is only 1 mile away, but not knowing which direction to
drive). If anybody can help me out with this I'd appreciate it - the
catalog is ready to launch except for this.
-Rick
From blairacampbell at shaw.ca Mon Dec 8 16:20:59 2003
From: blairacampbell at shaw.ca (Claritinet.com)
Date: Mon Dec 8 16:26:40 2003
Subject: [ic] 4.8 admin header template
Message-ID: <169501c3bdd1$2d257570$6a7ba8c0@BLAIRDOWNSTAIRS>
Hi,
I need to edit the template for the admin interface in 4.8. I can't find it
anywhere. The problem is the links now broken because they point to redhat
site.
Blair
From shawn at stuckinrealtime.us Mon Dec 8 16:47:25 2003
From: shawn at stuckinrealtime.us (Shawn Mathews)
Date: Mon Dec 8 16:51:48 2003
Subject: [ic] Assigning Absolute Price based on an Item Attribute
Message-ID: <3FD4F16D.7020007@stuckinrealtime.us>
I've been playing around with my pricing database trying to get
interchange to assign a price based on an item attribute like size or color
The docs say you can prefix the amount in your pricing database with an
= sign, and that should be the price assigned to the item...
i.e.
code S M L XL
99-102 =9.00 =10 =10 =11
When I try this the adjustment for the accessory comes back as being 0
or blank.
Can you still assign a price based on an accessory?
I'm using interchange 4.9.9
my common adjust string is:
CommonAdjust pricing:q2,q3,q4,q5:, ;products:price, ==supply:pricing:
;$, ==:options
Thanks in advance,
Shawn Mathews
shawn@stuckinrealtime.us
From shawn at stuckinrealtime.us Mon Dec 8 17:00:44 2003
From: shawn at stuckinrealtime.us (Shawn Mathews)
Date: Mon Dec 8 17:05:12 2003
Subject: [ic] Re: Setting up catalogs on multiple domains
In-Reply-To: <4.1.20031208120345.00adf480@127.0.0.1>
References: <4.1.20031208120345.00adf480@127.0.0.1>
Message-ID: <3FD4F48C.4050409@stuckinrealtime.us>
I have multiple catalogs running on different domians, but I had to use
the FullURL directive in the interchange.cfg
i.e.
FullUrl Yes
Catalog cat1 /some/path/here www.domain1.com/store.cgi
Catalog cat2 /some/path/here www.domain2.com/store.cgi
Shawn Mathews
shawn@stuckinrealtime.us
From joshua at kingdomdesign.com Mon Dec 8 18:42:56 2003
From: joshua at kingdomdesign.com (Joshua Lavin)
Date: Mon Dec 8 18:43:35 2003
Subject: [ic] Bundling and quantity discounts with matrix options
In-Reply-To: <3FD4894D.6070704@versado.net>
Message-ID: <3FACA0AE-29D8-11D8-9990-0030654BBC4C@kingdomdesign.com>
On Monday, December 8, 2003, at 08:23 AM, Jamie Neil wrote:
> Hi all,
>
> One of my customers wants to do 3 for the price of 2 type offers on
> some of their products. No problem I say, we can use quantity
> discounting: set the base price to ?10/item, set q3 to ?6.666/item,
> and hey presto 2 widgets cost ?20 and 3 widgets cost ?20 as well!
>
> The problem is, it doesn't work when you take matrix options into
> account: 3 red widgets cost ?20, but 1 red widget and 2 green widgets
> cost ?30 (different skus).
>
> Can anyone suggest a solution? I'm thinking that some kind of product
> bundling mechanism is required (which is also on my customer's wish
> list), but I'm not sure how to tackle it at the moment.
>
> --
> Jamie Neil | | 0870 7777 454
> Versado I.T. Services Ltd. | http://versado.net/ | 0845 450 1254
Sounds like you need to use price groups. There's a field for this when
you edit pricing in the UI, but I had to edit pricing.txt to get mine
to work properly.
Josh
From anthony at urbanscooters.com Mon Dec 8 18:58:14 2003
From: anthony at urbanscooters.com (Anthony Minero)
Date: Mon Dec 8 18:58:31 2003
Subject: [ic] Putting options in order
In-Reply-To: <3FD3E6F6.3050805@goldissue.com>
Message-ID:
> Anthony Minero wrote:
>
>> Could someone tell me how to put options in a specific order? I have some
>> products that have 4 separate options and when I enter them they show up in
>> a random order like;
>> Color
>> 1 year warranty
>> Optional color
>> Size
>>
>>
> On 12/7/03 6:50 PM, "frank" wrote:
> Last time I checked options in the foundation Demo (yesterday) I noticed
> that there is an o_sort field in options.txt. If you increment this for
> your several options you will find that the smallest number will be
> displayed first. As for the UI I am not sure how,
>
> Frank Reitzenstein
Yeah, I saw that too and tried it but it does not work? It had no effect at
all. Any body else know why this may be? I wouldn't think this would be such
a hard thing to do really.
--
Anthony Minero
From ic at oneil.org Mon Dec 8 19:15:42 2003
From: ic at oneil.org (Rick O'Neil)
Date: Mon Dec 8 19:16:30 2003
Subject: [ic] Re: Setting up catalogs on multiple domains
Message-ID: <3FD5142E.6060903@oneil.org>
>
>
>I have multiple catalogs running on different domians, but I had to use
>the FullURL directive in the interchange.cfg
>
>
>i.e.
>
>FullUrl Yes
>
>
>Catalog cat1 /some/path/here www.domain1.com/store.cgi
>Catalog cat2 /some/path/here www.domain2.com/store.cgi
>
>
Shawn,
Thanks for the tip - in searching through mailing lists I hadn't found
this.
However, I'm still having the problems as before - my first existing
catalog continues to run fine as do any other catalogs I run on domain1.
I still get an internal server error when trying to access any pages on
a catalog on domain2.
Is there anything else I've overlooked? I'd be happy to provide "ls -l"
output to show permissions on any directories if that would help (or any
other output, like my makecat answers - I just don't want to flood the
list with too much superfulous information).
Thanks,
-Rick
From batschelet at exactasphere.com Mon Dec 8 19:19:15 2003
From: batschelet at exactasphere.com (Sam Batschelet)
Date: Mon Dec 8 19:18:54 2003
Subject: [ic] Putting options in order
References:
Message-ID: <019201c3bdea$14878ad0$6501a8c0@craig>
>
> > Anthony Minero wrote:
> >
> >> Could someone tell me how to put options in a specific order? I have
some
> >> products that have 4 separate options and when I enter them they show
up in
> >> a random order like;
> >> Color
> >> 1 year warranty
> >> Optional color
> >> Size
> >>
> >>
> > On 12/7/03 6:50 PM, "frank" wrote:
>
> > Last time I checked options in the foundation Demo (yesterday) I noticed
> > that there is an o_sort field in options.txt. If you increment this for
> > your several options you will find that the smallest number will be
> > displayed first. As for the UI I am not sure how,
> >
> > Frank Reitzenstein
>
> Yeah, I saw that too and tried it but it does not work? It had no effect
at
> all. Any body else know why this may be? I wouldn't think this would be
such
> a hard thing to do really.
>
>
> --
> Anthony Minero
>
Hi
When numbering use this format on o_sort and remember to restart.
01
02
etc..
-Sam
From anthony at urbanscooters.com Mon Dec 8 19:46:53 2003
From: anthony at urbanscooters.com (Anthony Minero)
Date: Mon Dec 8 19:47:05 2003
Subject: [ic] Putting options in order
In-Reply-To: <019201c3bdea$14878ad0$6501a8c0@craig>
Message-ID:
>>> Anthony Minero wrote:
>>>
>>>> Could someone tell me how to put options in a specific order? I have
> some
>>>> products that have 4 separate options and when I enter them they show
> up in
>>>> a random order like;
>>>> Color
>>>> 1 year warranty
>>>> Optional color
>>>> Size
>>>>
>>>>
>>> On 12/7/03 6:50 PM, "frank" wrote:
>>
>>> Last time I checked options in the foundation Demo (yesterday) I noticed
>>> that there is an o_sort field in options.txt. If you increment this for
>>> your several options you will find that the smallest number will be
>>> displayed first. As for the UI I am not sure how,
>>>
>>> Frank Reitzenstein
>>
>> Yeah, I saw that too and tried it but it does not work? It had no effect
> at
>> all. Any body else know why this may be? I wouldn't think this would be
> such
>> a hard thing to do really.
>>
>>
>> --
>> Anthony Minero
>>
> On 12/8/03 4:19 PM, "Sam Batschelet" wrote:
> Hi
> When numbering use this format on o_sort and remember to restart.
>
> 01
> 02
> etc..
>
> -Sam
I tried that but still no go. It has no effect. Is this working for other
people? Could it be something with my database file?
--
Anthony Minero
From shawn at stuckinrealtime.us Mon Dec 8 22:46:26 2003
From: shawn at stuckinrealtime.us (Shawn Mathews)
Date: Mon Dec 8 23:12:58 2003
Subject: [ic] Re: Setting up catalogs on multiple domains
In-Reply-To: <3FD5142E.6060903@oneil.org>
References: <3FD5142E.6060903@oneil.org>
Message-ID: <3FD54592.8000207@stuckinrealtime.us>
> Thanks for the tip - in searching through mailing lists I hadn't found
> this.
>
> However, I'm still having the problems as before - my first existing
> catalog continues to run fine as do any other catalogs I run on domain1.
> I still get an internal server error when trying to access any pages on
> a catalog on domain2.
>
> Is there anything else I've overlooked? I'd be happy to provide "ls -l"
> output to show permissions on any directories if that would help (or any
> other output, like my makecat answers - I just don't want to flood the
> list with too much superfulous information).
>
> Thanks,
> -Rick
>
Rick,
You might want to make sure you have a tmp directory under the catalog
and that you have a directory for your session cache for the second catalog.
Also make sure that the permisions on your interchange socket allow the
second catalog to write to the socket. On some systems with plesk I've
had to set the permissions to 0666 using the following in the
interchange.cfg
SocketPerms 0666
Shawn Mathews
shawn@stuckinrealtime.us
From racke at linuxia.de Tue Dec 9 03:08:06 2003
From: racke at linuxia.de (Stefan Hornburg)
Date: Tue Dec 9 03:08:56 2003
Subject: [ic] 4.8 admin header template
In-Reply-To: <169501c3bdd1$2d257570$6a7ba8c0@BLAIRDOWNSTAIRS>
References: <169501c3bdd1$2d257570$6a7ba8c0@BLAIRDOWNSTAIRS>
Message-ID: <20031209090806.4f060af9.racke@linuxia.de>
On Mon, 08 Dec 2003 13:20:59 -0800
"Claritinet.com" wrote:
> Hi,
>
> I need to edit the template for the admin interface in 4.8. I can't find it
> anywhere. The problem is the links now broken because they point to redhat
> site.
Look for the file lib/UI/vars/UI_STD_HEAD in your installation.
Ciao
Racke
--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team
From mui at fastex.dk Tue Dec 9 04:15:39 2003
From: mui at fastex.dk (Marem)
Date: Tue Dec 9 04:11:23 2003
Subject: [ic] Re: Bundling and quantity discounts with matrix options (Jamie
Neil)
In-Reply-To: <200312081708.hB8H3hHV024352@icdevgroup.org>
References: <200312081708.hB8H3hHV024352@icdevgroup.org>
Message-ID: <20031209090010.M68593@fastex.dk>
> Message: 11
> Date: Mon, 08 Dec 2003 14:23:09 +0000
> From: Jamie Neil
> Subject: [ic] Bundling and quantity discounts with matrix options
> To: interchange-users@icdevgroup.org
> Message-ID: <3FD4894D.6070704@versado.net>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi all,
>
> One of my customers wants to do 3 for the price of 2 type offers on
> some of their products. No problem I say, we can use quantity
> discounting: set the base price to ?10/item, set q3 to ?6.666/item,
> and hey presto 2 widgets cost ?20 and 3 widgets cost ?20 as well!
>
> The problem is, it doesn't work when you take matrix options into
> account: 3 red widgets cost ?20, but 1 red widget and 2 green
> widgets cost ?30 (different skus).
>
> Can anyone suggest a solution? I'm thinking that some kind of
> product bundling mechanism is required (which is also on my
> customer's wish list), but I'm not sure how to tackle it at the moment.
>
> --
> Jamie Neil | | 0870 7777 454
> Versado I.T. Services Ltd. | http://versado.net/ | 0845 450 1254
>
> ------------------------------
>
This should work..
Specify "price_group" field per item/SKU , than be shore, that the
CommonAdjust in etc/after.cfg look similar to this:
pricing:price_group,q2,q3,q5,q10,q100:, ;:sale_price, ;:price, ;$, ==:options
Check whether displaying of [price code=[loop-code] quantity=[part-code]]
appear properly in quantity.hrml (demo catalog)
/Marem
LinSoft IT (http://www.linsoft.dk)
From jpkennedy at pharmology.com Tue Dec 9 04:20:26 2003
From: jpkennedy at pharmology.com (Jon-Paul Kennedy)
Date: Tue Dec 9 04:20:21 2003
Subject: [ic] CommonAdjust using fields other than Pricing.
Message-ID: <2014EE1E55B6C0409F0BC37481F61E30A4AAE8@exchange.pharmology.live>
> At 01:09 PM 12/8/2003 +0000, you wrote:
> >Hi,
> >
> >I need to display a value directly relevant to which price I
> am displaying
> >per user logged in.
>
> That's a vague statement - if your post from last week was
> more clearly
> phrased, I suggest you repost that.
>
> - Ed
>
Ed, here is my post from last week:
Hi,
I have to configure CommonAdjust to enable me to do the following.
I have 2 price's, one for accounts customers (PLOF) and one for non account
customers (contract).
Alongside this I have 2 set's of percentage calculations which I need to
display alongside the prices when the items are displayed. These percentage
values are static, so no actual calculations take place in Interchange.
I need to display the 2 relevant values when either a PLOF customer or a
Contract customer logs in.
i.e
plofprice | contractprice | plofpercentageoff | contractpercentageoff
6.81 5.84 58 64
So if a Contract customer logs in, they see:
?5.84 with 64% off
And likewise for a PLOF Customer:
?6.81 with 58% off
I know CommonAdjust can do this, but the documentation is thoroughly
confusing. I have everything else running fine, but this is a new
requirements. I am NOT using the pricing tables either and I am using the
default after.cfg.
Thanks, Jon
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.545 / Virus Database: 339 - Release Date: 27/11/2003
From reid at vianet.ca Tue Dec 9 09:30:31 2003
From: reid at vianet.ca (Reid Sutherland)
Date: Tue Dec 9 09:34:28 2003
Subject: [ic] Matrix options inventory -- yet again.
In-Reply-To: <20031205212029.686c1ae1.racke@linuxia.de>
References: <3FCF86BF.3060003@vianet.ca>
<20031205212029.686c1ae1.racke@linuxia.de>
Message-ID: <3FD5DC87.7030200@vianet.ca>
Stefan Hornburg wrote:
> On Thu, 04 Dec 2003 14:10:55 -0500
> Reid Sutherland wrote:
>
>
>>Please CC me as this email address is not on the list.
>>
>>Version: 4.9.8
>>
>>I've searched the lists and have come to no real conclusion about the
>>state of inventory controls with regards to matrix options. Here's what
>>I understand: "It doesn't work the way it should.".
>>
>>Basically, you can buy things even if there is no stock in the option
>>item. It will even bring the inventory count below 0 (-5 for example).
>> This is plain silly in my opinion. This method confuses would be IC
>>users that are trying to sell clothing, for example. As they would have
>>multiple sizes, colours, etc., and different inventory for each.
>>
>>Sooo, should I stop complaining and patch it myself, or is there
>>something I can do to have it notify/email/complain/etc when a
>>particular option is out of stock?
>>
>>I think the current matrix option inventory system should either be
>>disabled or improved. In it's current state, it makes no sense (to me).
>> It only adds hope that it functions the same way as the regular item
>>inventory does, which of course, it does not. And in the end it may
>>give some users a bad taste for IC (and less consulting money for Mike ;))
>>
>>Let me know what you think.
>
>
> Citing WHATSNEW from current CVS:
>
> * Add inventory function back in. Mysteriously removed during the
> Options rewrite.
>
I've tried the "Live Demo" dev store and this fix appears to do nothing
for the matrix options. The code itself doesn't appear to do anything
along those lines either.
Are there any plans on implementing a functional matrix option inventory
control or should I just write the patch myself?
Thanks,
-reid
From edl at newmediaems.com Tue Dec 9 12:40:09 2003
From: edl at newmediaems.com (Ed LaFrance)
Date: Tue Dec 9 12:37:02 2003
Subject: [ic] CommonAdjust using fields other than Pricing.
In-Reply-To: <2014EE1E55B6C0409F0BC37481F61E30A4AAE8@exchange.pharmology .live>
Message-ID: <5.2.1.1.0.20031209091335.02e71950@mail.newmediaems.com>
At 09:20 AM 12/9/2003 +0000, you wrote:
> > At 01:09 PM 12/8/2003 +0000, you wrote:
> > >Hi,
> > >
> > >I need to display a value directly relevant to which price I
> > am displaying
> > >per user logged in.
> >
> > That's a vague statement - if your post from last week was
> > more clearly
> > phrased, I suggest you repost that.
> >
> > - Ed
> >
>
>Ed, here is my post from last week:
>
>Hi,
>
>I have to configure CommonAdjust to enable me to do the following.
>I have 2 price's, one for accounts customers (PLOF) and one for non account
>customers (contract).
You could probably modify the 'dealer' pricing that is already part of the
foundation demo to do this. There are retail and wholesale (dealer) price
fields in the products table which should also appear in the item editor,
and a dealer flag which can be set for a customer account. When a person
with dealer=TRUE logs into the store, they get the wholesale price
(configured in etc/after.cfg with pricing profiles).
>Alongside this I have 2 set's of percentage calculations which I need to
>display alongside the prices when the items are displayed. These percentage
>values are static, so no actual calculations take place in Interchange.
>I need to display the 2 relevant values when either a PLOF customer or a
>Contract customer logs in.
>i.e
>
>plofprice | contractprice | plofpercentageoff | contractpercentageoff
>
> 6.81 5.84 58 64
>
>So if a Contract customer logs in, they see:
>
>?5.84 with 64% off
>
>And likewise for a PLOF Customer:
>
>?6.81 with 58% off
If these are static values, then you just need to add plofpercentageoff and
contractpercentageoff fields to your products table (or a new table keyed
to products by sku if you prefer) and display them as needed.
- Ed L.
===============================================================
New Media E.M.S. Technology Solutions for Business
11630 Fair Oaks Blvd., #250 eCommerce | Consulting | Hosting
Fair Oaks, CA 95628 edl@newmediaems.com
(916) 961-0446 http://www.newmediaems.com
(866) 519-4680 Toll-Free (916) 961-0447 Fax
===============================================================
From cwenham at synesmedia.com Tue Dec 9 15:12:23 2003
From: cwenham at synesmedia.com (Christopher Wenham)
Date: Tue Dec 9 15:12:37 2003
Subject: [ic] Interchange fails after second session with Japaneese locale
Message-ID: <200312091512.23904.cwenham@synesmedia.com>
Interchange 4.9.8 on FreeBSD 4.6 with MySQL database is failing only on the
second or third user session when using a Japanese locale for the front-end
(store, not Admin UI).
Interchange keeps working fine, with Japaneese translations, for the first
session. However, if you open up another browser and visit the same site you
get an Internal Server Error, and the error.log reports this:
nyn /nyn.cgi/index.html Runtime error: ?it@C not a database, cannot use as
products file
Even as the second visitor is getting only Internal Server Errors, the first
visitor can still be browsing. If the first visitor closes his browser and
then re-starts it, he'll start getting the same errors, too.
Restarting Interchange has no effect and neither does deleting the .gdbm file
or the contents of the session and tmp directories. The only way to briefly
"reset" the catalog is to temporarily switch to en_US and back, like this:
1) Restore the original locale.txt
2) Change the locale in variables.txt back to en_US
3) Delete locale.gdbm and variables.gdbm
3) Restart the server and check the English version.
4) Replace locale.txt with the Japaneese version, change LOCALE back to
ja_JP.
5) Restart and check in browser. First session works fine, second session
fails again.
There are three other English-language catalogs running on the same
Interchange daemon installation, and they're unaffected, they don't even fail
down when the Japaneese catalog does.
I've tried putting the locale table into a MySQL database instead of gdbm,
but this doesn't change the odd behavior.
Does anyone know why Interchange might fail for subsequent sessions after the
first, but in such a way that the first session can continue to work for as
long as its still valid, _AND_ that the only way to reset the catalog is to
temporarily switch back?
Regards,
--
Chris Wenham - Synesmedia, Inc.
http://www.synesmedia.com
516-620-4110 / 1-888-255-7573
Fax: 516-908-7824
From edl at newmediaems.com Tue Dec 9 15:55:20 2003
From: edl at newmediaems.com (Ed LaFrance)
Date: Tue Dec 9 15:52:12 2003
Subject: [ic] Interchange fails after second session with Japaneese locale
In-Reply-To: <200312091512.23904.cwenham@synesmedia.com>
Message-ID: <5.2.1.1.0.20031209125302.02f31420@mail.newmediaems.com>
At 03:12 PM 12/9/2003 -0500, you wrote:
> Interchange 4.9.8 on FreeBSD 4.6 with MySQL database is failing only on the
>second or third user session when using a Japanese locale for the front-end
>(store, not Admin UI).
>
> Interchange keeps working fine, with Japaneese translations, for the first
>session. However, if you open up another browser and visit the same site you
>get an Internal Server Error, and the error.log reports this:
>
>nyn /nyn.cgi/index.html Runtime error: ?it@C not a database, cannot use as
>products file
>
> Even as the second visitor is getting only Internal Server Errors, the
> first
>visitor can still be browsing. If the first visitor closes his browser and
>then re-starts it, he'll start getting the same errors, too.
>
> Restarting Interchange has no effect and neither does deleting the .gdbm
> file
>or the contents of the session and tmp directories. The only way to briefly
>"reset" the catalog is to temporarily switch to en_US and back, like this:
>
> 1) Restore the original locale.txt
> 2) Change the locale in variables.txt back to en_US
> 3) Delete locale.gdbm and variables.gdbm
> 3) Restart the server and check the English version.
> 4) Replace locale.txt with the Japaneese version, change LOCALE back to
>ja_JP.
> 5) Restart and check in browser. First session works fine, second session
>fails again.
>
> There are three other English-language catalogs running on the same
>Interchange daemon installation, and they're unaffected, they don't even fail
>down when the Japaneese catalog does.
>
> I've tried putting the locale table into a MySQL database instead of gdbm,
>but this doesn't change the odd behavior.
>
> Does anyone know why Interchange might fail for subsequent sessions
> after the
>first, but in such a way that the first session can continue to work for as
>long as its still valid, _AND_ that the only way to reset the catalog is to
>temporarily switch back?
>
>Regards,
>--
>Chris Wenham - Synesmedia, Inc.
You've translated the ProductFiles directive to Japanese. Make sure the
ProductFiles row in the locale table is empty (except for the key, of
course) and restart IC. While you are in there, check for any other
directives which should not be translated.
- Ed L.
===============================================================
New Media E.M.S. Technology Solutions for Business
11630 Fair Oaks Blvd., #250 eCommerce | Consulting | Hosting
Fair Oaks, CA 95628 edl@newmediaems.com
(916) 961-0446 http://www.newmediaems.com
(866) 519-4680 Toll-Free (916) 961-0447 Fax
===============================================================
From mike at perusion.com Tue Dec 9 16:31:54 2003
From: mike at perusion.com (Mike Heins)
Date: Tue Dec 9 16:32:39 2003
Subject: [ic] Interchange fails after second session with Japaneese locale
In-Reply-To: <200312091512.23904.cwenham@synesmedia.com>
References: <200312091512.23904.cwenham@synesmedia.com>
Message-ID: <20031209213154.GA25683@bill.heins.net>
Quoting Christopher Wenham (cwenham@synesmedia.com):
>
> Interchange 4.9.8 on FreeBSD 4.6 with MySQL database is failing only on the
[snip]
> Does anyone know why Interchange might fail for subsequent sessions after the
> first, but in such a way that the first session can continue to work for as
> long as its still valid, _AND_ that the only way to reset the catalog is to
> temporarily switch back?
Are you running in PreFork mode? Sounds like a POSIX::setlocale() is sticking
somehow.
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295
Fast, reliable, cheap. Pick two and we'll talk. -- unknown
From ic at oneil.org Tue Dec 9 18:12:02 2003
From: ic at oneil.org (Rick O'Neil)
Date: Tue Dec 9 18:13:02 2003
Subject: [ic] Re: Setting up catalogs on multiple domains
In-Reply-To: <200312091700.hB9H0eHT004690@icdevgroup.org>
Message-ID: <4.1.20031209142132.00e3a508@127.0.0.1>
>Rick,
>
>You might want to make sure you have a tmp directory under the catalog
>and that you have a directory for your session cache for the second catalog.
>
>Also make sure that the permisions on your interchange socket allow the
>second catalog to write to the socket. On some systems with plesk I've
>had to set the permissions to 0666 using the following in the
>interchange.cfg
>
>SocketPerms 0666
>
>Shawn Mathews
>shawn@stuckinrealtime.us
Shawn,
Thanks again for the tips. I do in fact have a tmp directory and a session
cache directory both under the catalog I'm trying to get going (as well as
the one I have running successfully). I did add the socket permissions line
to interchange.cfg, but that didn't seem to make any difference.
Other information that I've uncovered in looking around that may be useful:
I am in fact running plesk on my system - I found detailed instructions on
Interchangeville for running IC on a plesk system:
http://interchangeville.com/forum/viewtopic.php?t=952
The main thing that is different is I wasn't running in INET mode - I was
running in UNIX mode. I tried running makecat as described in the message
using INET mode, but that doesn't make any difference (I still get an
internal server error when I try to go to the catalog). However, here is
where it gets interesting - I have been running IC in UNIX mode for
catalog1 on domain1 and I can run as many catalogs on domain1 as I want
(while using UNIX mode). If I switch to INET mode then try to go to the
catalogs the message I get for all domain1 catalogs is that the IC server
is unavailable, but for catalog2 on domain2 I continue to get an internal
server error.
The other difference that I see is that the user interchange is running as
isn't "interch" but rather the user for domain1. Since the user for domain1
and domain2 are both a member of the "psacln" group I didn't think it
necessary to run as "interch". However, the one difference I can think of
is that "interch", as described in the Interchangeville post, would be a
full shell account, but the account for domain1 is a plesk virtual host
account - could this cause the problems I'm seeing? It seems unlikely to me
since I did go ahead and create an "interch" user account and followed the
directions there to a "t" and I continue to get the same behavior from IC
(internal server error for catalog2 running on domain2).
I appreciate your help so far, Shawn, but do you, or anybody else, have any
other suggestions?
-Rick
From kaleb at zeald.com Wed Dec 10 07:37:05 2003
From: kaleb at zeald.com (Kaleb Kelly)
Date: Tue Dec 9 18:38:14 2003
Subject: [ic] No shipping cost for one item?
Message-ID: <200312101237.05686.kaleb@zeald.com>
Hi,
Im trying to make one item (only) not include shipping costs. I carnt seem to
think of / find a solution.
Shipping is calculated by price.
Thanks in advance for any help.
Kaleb Kelly,
Zeald Ltd.
http://www.zeald.com
From shawn at stuckinrealtime.us Wed Dec 10 00:10:02 2003
From: shawn at stuckinrealtime.us (Shawn Mathews)
Date: Wed Dec 10 01:51:49 2003
Subject: [ic] Re: Setting up catalogs on multiple domains
In-Reply-To: <4.1.20031209142132.00e3a508@127.0.0.1>
References: <4.1.20031209142132.00e3a508@127.0.0.1>
Message-ID: <3FD6AAAA.1030703@stuckinrealtime.us>
Rick,
I was never able to get those instructions to work properly on all of my
domains.
I eventually switched to mod_interchange as the way to talk to my
catalogs because the cgi's would not run consistently because of the
suexec thing that plesk uses.
I also had some success using mod_perl to run tlink.pl under different
domains.
Shawn Mathews
shawn@stuckinrealtime.us
From DB at M-and-D.com Wed Dec 10 07:37:30 2003
From: DB at M-and-D.com (DB)
Date: Wed Dec 10 07:38:14 2003
Subject: [ic] No shipping cost for one item?
Message-ID: <3FD7138A.3080609@M-and-D.com>
> Hi,
> Im trying to make one item (only) not include shipping costs. I carnt seem to
> think of / find a solution.
>
> Shipping is calculated by price.
>
> Thanks in advance for any help.
>
> Kaleb Kelly,
> Zeald Ltd.
> http://www.zeald.com
One way I can think of is to calculate shipping by weight, then assign a
weight of zero to that one item. You could assign the weights of all
other items to be the same as the price and then not display the wieght
(which would obviously not reflect actual weights). Maybe not a perfect
solution but it should work...
DB
From joshua at kingdomdesign.com Wed Dec 10 08:09:36 2003
From: joshua at kingdomdesign.com (Joshua Lavin)
Date: Wed Dec 10 08:10:19 2003
Subject: [ic] No shipping cost for one item?
In-Reply-To: <200312101237.05686.kaleb@zeald.com>
Message-ID: <1AA2D8CC-2B12-11D8-9990-0030654BBC4C@kingdomdesign.com>
On Wednesday, December 10, 2003, at 06:37 AM, Kaleb Kelly wrote:
> Hi,
> Im trying to make one item (only) not include shipping costs. I carnt
> seem to
> think of / find a solution.
>
> Shipping is calculated by price.
>
> Thanks in advance for any help.
>
> Kaleb Kelly,
> Zeald Ltd.
> http://www.zeald.com
I'm doing free shipping on one item by checking for that item on the
checkout page, and if ordered, erasing the shipping, but only if they
haven't selected a faster shipping method (my default is 'flat'). It's
pretty limited, but here's the code:
[if ordered 1003227]
[and value mv_shipmode eq "flat"]
[assign shipping=0.00]
[else]
[assign clear=1]
[/else]
[/if]
Josh
From dave at bluecomconsulting.com.au Wed Dec 10 08:28:42 2003
From: dave at bluecomconsulting.com.au (Dave O'Shaughnessy)
Date: Wed Dec 10 08:29:21 2003
Subject: [ic] Question about Interchange's capabilities
Message-ID: <3FD71F8A.2060304@bluecomconsulting.com.au>
Hi all, I've been using AgoraCart but seem to have hit a problem with
what I want to do, so I'm looking at trying out Interchange, but need to
know if it will fit my needs first. I have mobile phones for sale, and
the user can buy phones on plans with no upfront cost, so the base price
of the phone is $0, and cost is added on through options on the product.
My required features are;
1) At the shopping cart view and the checkout view I want to have two
colums instead of total cost;
* Monthly Bill
* Upfront Cost
These two colums would have their values selected via drop down boxes on
the product. So on one box they pick which phone plan (affecting the
monthly bill) and the other box they pick either monthly payment (adding
to monthly bill) or outright purchase (adding to upfront cost, which is
intially $0). Ideally I'd like to also have checkbox option so they can
request a gold number, adding $200 to the upfront cost.
2) Be able to customise the checkout order form to either;
a. add a lot of fields and use error checking on the fields (some fields
are only required if another field is selected etc), or
b. Let me insert my own html forms that appear after the checkout is
submitted, to gather extra info.
Sorry for the lengthy post, but I really wanted to make sure that this
can be done before I install the cart. Thanks,
Dave.
From reid at vianet.ca Wed Dec 10 10:38:27 2003
From: reid at vianet.ca (Reid Sutherland)
Date: Wed Dec 10 10:41:57 2003
Subject: [ic] Environment function woes.
Message-ID: <3FD73DF3.4000801@vianet.ca>
Please CC me as this email is not on this list -- thanks.
Hi,
I'm trying to set the environment variable for GNUPGHOME, and so far
I've had no luck. This is what I've done.
- added 'SetEnv GNUPGHOME path_to_catalog/.gnupg' to Apache (virtualhost)
- patched suexec to allow GNUPGHOME to pass (just in case)
- wrote a test script and I can see GNUPGHOME from %ENV
- added GNUPGHOME to Environment in my ic.cfg
- can see GNUPGHOME in admin/genconfig too
After doing all this, it still does not come up in admin/env_vars.html
for my session.
Any ideas?
-reid
From racke at linuxia.de Wed Dec 10 11:05:59 2003
From: racke at linuxia.de (Stefan Hornburg)
Date: Wed Dec 10 11:06:16 2003
Subject: [ic] Environment function woes.
In-Reply-To: <3FD73DF3.4000801@vianet.ca>
References: <3FD73DF3.4000801@vianet.ca>
Message-ID: <20031210170559.65ff6c16.racke@linuxia.de>
On Wed, 10 Dec 2003 10:38:27 -0500
Reid Sutherland wrote:
> Please CC me as this email is not on this list -- thanks.
>
> Hi,
>
> I'm trying to set the environment variable for GNUPGHOME, and so far
> I've had no luck. This is what I've done.
>
> - added 'SetEnv GNUPGHOME path_to_catalog/.gnupg' to Apache (virtualhost)
> - patched suexec to allow GNUPGHOME to pass (just in case)
> - wrote a test script and I can see GNUPGHOME from %ENV
> - added GNUPGHOME to Environment in my ic.cfg
> - can see GNUPGHOME in admin/genconfig too
>
> After doing all this, it still does not come up in admin/env_vars.html
> for my session.
If you need to set GNUPGHOME so Interchange has the correct location
for GPG keys, I suggest to set it in the init script for Interchange:
export GNUPGHOME=/your/gnupg/path/.gnupg
Ciao
Racke
--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team
From edl at newmediaems.com Wed Dec 10 11:50:36 2003
From: edl at newmediaems.com (Ed LaFrance)
Date: Wed Dec 10 11:46:54 2003
Subject: [ic] Re: Setting up catalogs on multiple domains
In-Reply-To: <4.1.20031209142132.00e3a508@127.0.0.1>
References: <200312091700.hB9H0eHT004690@icdevgroup.org>
Message-ID: <5.2.1.1.0.20031210084634.02e65f80@mail.newmediaems.com>
At 03:12 PM 12/9/2003 -0800, you wrote:
> >Rick,
> >
> >You might want to make sure you have a tmp directory under the catalog
> >and that you have a directory for your session cache for the second catalog.
> >
> >Also make sure that the permisions on your interchange socket allow the
> >second catalog to write to the socket. On some systems with plesk I've
> >had to set the permissions to 0666 using the following in the
> >interchange.cfg
> >
> >SocketPerms 0666
> >
> >Shawn Mathews
> >shawn@stuckinrealtime.us
>
>Shawn,
>
>Thanks again for the tips. I do in fact have a tmp directory and a session
>cache directory both under the catalog I'm trying to get going (as well as
>the one I have running successfully). I did add the socket permissions line
>to interchange.cfg, but that didn't seem to make any difference.
>
>Other information that I've uncovered in looking around that may be useful:
>
>I am in fact running plesk on my system - I found detailed instructions on
>Interchangeville for running IC on a plesk system:
>http://interchangeville.com/forum/viewtopic.php?t=952
>
>The main thing that is different is I wasn't running in INET mode - I was
>running in UNIX mode. I tried running makecat as described in the message
>using INET mode, but that doesn't make any difference (I still get an
>internal server error when I try to go to the catalog). However, here is
>where it gets interesting - I have been running IC in UNIX mode for
>catalog1 on domain1 and I can run as many catalogs on domain1 as I want
>(while using UNIX mode). If I switch to INET mode then try to go to the
>catalogs the message I get for all domain1 catalogs is that the IC server
>is unavailable, but for catalog2 on domain2 I continue to get an internal
>server error.
>
>The other difference that I see is that the user interchange is running as
>isn't "interch" but rather the user for domain1. Since the user for domain1
>and domain2 are both a member of the "psacln" group I didn't think it
>necessary to run as "interch". However, the one difference I can think of
>is that "interch", as described in the Interchangeville post, would be a
>full shell account, but the account for domain1 is a plesk virtual host
>account - could this cause the problems I'm seeing? It seems unlikely to me
>since I did go ahead and create an "interch" user account and followed the
>directions there to a "t" and I continue to get the same behavior from IC
>(internal server error for catalog2 running on domain2).
>
>I appreciate your help so far, Shawn, but do you, or anybody else, have any
>other suggestions?
>
>-Rick
Dear Rick -
I run interchange on Plesk-managed systems. Try disabling suexec, which is
by default used by Plesk. Just located the binary 'suexec' (depending on
which Plesk dist you use, location can vary), and rename it to
suexec.disabled. Then restart apache, and check your catalog again. If you
still get a 500 error, try toggling the suid bit on the vlink file for the
catalog.
- Ed L.
===============================================================
New Media E.M.S. Technology Solutions for Business
11630 Fair Oaks Blvd., #250 eCommerce | Consulting | Hosting
Fair Oaks, CA 95628 edl@newmediaems.com
(916) 961-0446 http://www.newmediaems.com
(866) 519-4680 Toll-Free (916) 961-0447 Fax
===============================================================
From Sales at rackst.com Wed Dec 10 12:11:17 2003
From: Sales at rackst.com (Rackst.com Sales )
Date: Wed Dec 10 12:11:25 2003
Subject: [ic] Question about Interchange's capabilities
In-Reply-To: <3FD71F8A.2060304@bluecomconsulting.com.au>
References: <3FD71F8A.2060304@bluecomconsulting.com.au>
Message-ID: <1071076277.3fd753b5ef4ec@webmail.rackst.com>
Let me tell you, you give me Interchange and a MYSQL database and I can do
anthing a man can do with a program, I mean you can do with interchange
anything, the limit is the sky, however interchange is not easy, you must work
on it and know what you doing.
Good luck
Quoting Dave O'Shaughnessy :
> Hi all, I've been using AgoraCart but seem to have hit a problem with
> what I want to do, so I'm looking at trying out Interchange, but need to
> know if it will fit my needs first. I have mobile phones for sale, and
> the user can buy phones on plans with no upfront cost, so the base price
> of the phone is $0, and cost is added on through options on the product.
> My required features are;
>
> 1) At the shopping cart view and the checkout view I want to have two
> colums instead of total cost;
>
> * Monthly Bill
> * Upfront Cost
>
> These two colums would have their values selected via drop down boxes on
> the product. So on one box they pick which phone plan (affecting the
> monthly bill) and the other box they pick either monthly payment (adding
> to monthly bill) or outright purchase (adding to upfront cost, which is
> intially $0). Ideally I'd like to also have checkbox option so they can
> request a gold number, adding $200 to the upfront cost.
>
>
> 2) Be able to customise the checkout order form to either;
> a. add a lot of fields and use error checking on the fields (some fields
> are only required if another field is selected etc), or
> b. Let me insert my own html forms that appear after the checkout is
> submitted, to gather extra info.
>
>
> Sorry for the lengthy post, but I really wanted to make sure that this
> can be done before I install the cart. Thanks,
>
> Dave.
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>
-----------
Alexander A Daree
Sales & Support Engineer
Rackst.com
(517)490-4352
alex@rackst.com
Visit www.rackst.com for all your Computer & Internet needs
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
From edl at newmediaems.com Wed Dec 10 12:37:18 2003
From: edl at newmediaems.com (Ed LaFrance)
Date: Wed Dec 10 12:33:34 2003
Subject: [ic] Question about Interchange's capabilities
In-Reply-To: <3FD71F8A.2060304@bluecomconsulting.com.au>
Message-ID: <5.2.1.1.0.20031210093505.02eefae0@mail.newmediaems.com>
At 09:28 PM 12/10/2003 +0800, you wrote:
>Hi all, I've been using AgoraCart but seem to have hit a problem with what
>I want to do, so I'm looking at trying out Interchange, but need to know
>if it will fit my needs first. I have mobile phones for sale, and the user
>can buy phones on plans with no upfront cost, so the base price of the
>phone is $0, and cost is added on through options on the product. My
>required features are;
>
>1) At the shopping cart view and the checkout view I want to have two
>colums instead of total cost;
>
>* Monthly Bill
>* Upfront Cost
>
>These two colums would have their values selected via drop down boxes on
>the product. So on one box they pick which phone plan (affecting the
>monthly bill) and the other box they pick either monthly payment (adding
>to monthly bill) or outright purchase (adding to upfront cost, which is
>intially $0). Ideally I'd like to also have checkbox option so they can
>request a gold number, adding $200 to the upfront cost.
>
>
>2) Be able to customise the checkout order form to either;
>a. add a lot of fields and use error checking on the fields (some fields
>are only required if another field is selected etc), or
>b. Let me insert my own html forms that appear after the checkout is
>submitted, to gather extra info.
>
>
>Sorry for the lengthy post, but I really wanted to make sure that this can
>be done before I install the cart. Thanks,
>
>Dave.
Dave -
All this and more is doable with interchange, and the built-in features of
the foundation store demo will get you quite a ways along, but you will
have to roll up your sleeves and do some work. Most people find the
learning curve for customizing interchange projects to be fairly steep, so
you might consider securing one of the competent consultants on this list
for the rough spots.
- Ed
===============================================================
New Media E.M.S. Technology Solutions for Business
11630 Fair Oaks Blvd., #250 eCommerce | Consulting | Hosting
Fair Oaks, CA 95628 edl@newmediaems.com
(916) 961-0446 http://www.newmediaems.com
(866) 519-4680 Toll-Free (916) 961-0447 Fax
===============================================================
From ic at oneil.org Wed Dec 10 16:39:37 2003
From: ic at oneil.org (Rick O'Neil)
Date: Wed Dec 10 16:41:49 2003
Subject: [ic] Re: Setting up catalogs on multiple domains SOLVED
In-Reply-To: <5.2.1.1.0.20031210084634.02e65f80@mail.newmediaems.com>
References: <4.1.20031209142132.00e3a508@127.0.0.1>
<200312091700.hB9H0eHT004690@icdevgroup.org>
Message-ID: <4.1.20031210133014.00e51580@127.0.0.1>
>> >Rick,
>> >
>> >You might want to make sure you have a tmp directory under the catalog
>> >and that you have a directory for your session cache for the second
catalog.
>> >
>> >Also make sure that the permisions on your interchange socket allow the
>> >second catalog to write to the socket. On some systems with plesk I've
>> >had to set the permissions to 0666 using the following in the
>> >interchange.cfg
>> >
>> >SocketPerms 0666
>> >
>> >Shawn Mathews
>> >shawn@stuckinrealtime.us
>>
>>Shawn,
>>
>>Thanks again for the tips. I do in fact have a tmp directory and a session
>>cache directory both under the catalog I'm trying to get going (as well as
>>the one I have running successfully). I did add the socket permissions line
>>to interchange.cfg, but that didn't seem to make any difference.
>>
>>Other information that I've uncovered in looking around that may be useful:
>>
>>I am in fact running plesk on my system - I found detailed instructions on
>>Interchangeville for running IC on a plesk system:
>>http://interchangeville.com/forum/viewtopic.php?t=952
>>
>>The main thing that is different is I wasn't running in INET mode - I was
>>running in UNIX mode. I tried running makecat as described in the message
>>using INET mode, but that doesn't make any difference (I still get an
>>internal server error when I try to go to the catalog). However, here is
>>where it gets interesting - I have been running IC in UNIX mode for
>>catalog1 on domain1 and I can run as many catalogs on domain1 as I want
>>(while using UNIX mode). If I switch to INET mode then try to go to the
>>catalogs the message I get for all domain1 catalogs is that the IC server
>>is unavailable, but for catalog2 on domain2 I continue to get an internal
>>server error.
>>
>>The other difference that I see is that the user interchange is running as
>>isn't "interch" but rather the user for domain1. Since the user for domain1
>>and domain2 are both a member of the "psacln" group I didn't think it
>>necessary to run as "interch". However, the one difference I can think of
>>is that "interch", as described in the Interchangeville post, would be a
>>full shell account, but the account for domain1 is a plesk virtual host
>>account - could this cause the problems I'm seeing? It seems unlikely to me
>>since I did go ahead and create an "interch" user account and followed the
>>directions there to a "t" and I continue to get the same behavior from IC
>>(internal server error for catalog2 running on domain2).
>>
>>I appreciate your help so far, Shawn, but do you, or anybody else, have any
>>other suggestions?
>>
>>-Rick
>
>Dear Rick -
>
>I run interchange on Plesk-managed systems. Try disabling suexec, which is
>by default used by Plesk. Just located the binary 'suexec' (depending on
>which Plesk dist you use, location can vary), and rename it to
>suexec.disabled. Then restart apache, and check your catalog again. If you
>still get a 500 error, try toggling the suid bit on the vlink file for the
>catalog.
>
>- Ed L.
Ed & Shawn,
Thanks for your help. I disabled suexec as Ed suggested and everything is
working beautifully. I'm curious though, everything I've read about Plesk
and IC states/implies that suexec is required - why the misconception?
Thanks again, I'll be launching this afternoon.
-Rick
From asc at vineyard.net Wed Dec 10 16:58:42 2003
From: asc at vineyard.net (Aaron Straup Cope)
Date: Wed Dec 10 16:59:45 2003
Subject: [ic] [permissions] who is on first?
Message-ID: <3FD79712.7040304@vineyard.net>
Hi,
I am in the process of investigating Interchange for by clients. So far,
the process has gone relatively smoothly but I have encountered a
problem updating the status on a pending order. Specifically, the action
is denied and I am redirected to the admin login page. The error logs
indicate that I have "attempted database update without permission,
table=transactions".
I am running an "out of the box" install using the default "foundation"
store and DBM files.
I have checked the actual file system permissions and they are fine. I
have poked around the icdevgroup site and google and the last ~3 months
list archives but have been unable to find anything that might help
explain what's going on.
When the program is complaining about permissions, is it complaining
about file-system permissions or it's own internal table of allowable
actions for a user? (I am logged in a the site admin/super user.)
Pointers or suggestions would be much appreciated. Thanks,
From edl at newmediaems.com Wed Dec 10 18:01:36 2003
From: edl at newmediaems.com (Ed LaFrance)
Date: Wed Dec 10 17:57:51 2003
Subject: [ic] Re: Setting up catalogs on multiple domains SOLVED
In-Reply-To: <4.1.20031210133014.00e51580@127.0.0.1>
References: <5.2.1.1.0.20031210084634.02e65f80@mail.newmediaems.com>
<4.1.20031209142132.00e3a508@127.0.0.1>
<200312091700.hB9H0eHT004690@icdevgroup.org>
Message-ID: <5.2.1.1.0.20031210145901.02fd2428@mail.newmediaems.com>
At 01:39 PM 12/10/2003 -0800, you wrote:
> >> >Rick,
> >> >
> >> >You might want to make sure you have a tmp directory under the catalog
> >> >and that you have a directory for your session cache for the second
>catalog.
> >> >
> >> >Also make sure that the permisions on your interchange socket allow the
> >> >second catalog to write to the socket. On some systems with plesk I've
> >> >had to set the permissions to 0666 using the following in the
> >> >interchange.cfg
> >> >
> >> >SocketPerms 0666
> >> >
> >> >Shawn Mathews
> >> >shawn@stuckinrealtime.us
> >>
> >>Shawn,
> >>
> >>Thanks again for the tips. I do in fact have a tmp directory and a session
> >>cache directory both under the catalog I'm trying to get going (as well as
> >>the one I have running successfully). I did add the socket permissions line
> >>to interchange.cfg, but that didn't seem to make any difference.
> >>
> >>Other information that I've uncovered in looking around that may be useful:
> >>
> >>I am in fact running plesk on my system - I found detailed instructions on
> >>Interchangeville for running IC on a plesk system:
> >>http://interchangeville.com/forum/viewtopic.php?t=952
> >>
> >>The main thing that is different is I wasn't running in INET mode - I was
> >>running in UNIX mode. I tried running makecat as described in the message
> >>using INET mode, but that doesn't make any difference (I still get an
> >>internal server error when I try to go to the catalog). However, here is
> >>where it gets interesting - I have been running IC in UNIX mode for
> >>catalog1 on domain1 and I can run as many catalogs on domain1 as I want
> >>(while using UNIX mode). If I switch to INET mode then try to go to the
> >>catalogs the message I get for all domain1 catalogs is that the IC server
> >>is unavailable, but for catalog2 on domain2 I continue to get an internal
> >>server error.
> >>
> >>The other difference that I see is that the user interchange is running as
> >>isn't "interch" but rather the user for domain1. Since the user for domain1
> >>and domain2 are both a member of the "psacln" group I didn't think it
> >>necessary to run as "interch". However, the one difference I can think of
> >>is that "interch", as described in the Interchangeville post, would be a
> >>full shell account, but the account for domain1 is a plesk virtual host
> >>account - could this cause the problems I'm seeing? It seems unlikely to me
> >>since I did go ahead and create an "interch" user account and followed the
> >>directions there to a "t" and I continue to get the same behavior from IC
> >>(internal server error for catalog2 running on domain2).
> >>
> >>I appreciate your help so far, Shawn, but do you, or anybody else, have any
> >>other suggestions?
> >>
> >>-Rick
> >
> >Dear Rick -
> >
> >I run interchange on Plesk-managed systems. Try disabling suexec, which is
> >by default used by Plesk. Just located the binary 'suexec' (depending on
> >which Plesk dist you use, location can vary), and rename it to
> >suexec.disabled. Then restart apache, and check your catalog again. If you
> >still get a 500 error, try toggling the suid bit on the vlink file for the
> >catalog.
> >
> >- Ed L.
>
>Ed & Shawn,
>
>Thanks for your help. I disabled suexec as Ed suggested and everything is
>working beautifully. I'm curious though, everything I've read about Plesk
>and IC states/implies that suexec is required - why the misconception?
>
>Thanks again, I'll be launching this afternoon.
>
>-Rick
You can get it working with suexec enabled, but it takes quite a bit of
fiddling with vlink ownerships, group affiliations and socket perms to get
it right. Disabling suexec is just another (possibly less desireable) way
to get there.
- Ed L.
===============================================================
New Media E.M.S. Technology Solutions for Business
11630 Fair Oaks Blvd., #250 eCommerce | Consulting | Hosting
Fair Oaks, CA 95628 edl@newmediaems.com
(916) 961-0446 http://www.newmediaems.com
(866) 519-4680 Toll-Free (916) 961-0447 Fax
===============================================================
From edl at newmediaems.com Wed Dec 10 18:07:35 2003
From: edl at newmediaems.com (Ed LaFrance)
Date: Wed Dec 10 18:03:50 2003
Subject: [ic] [permissions] who is on first?
In-Reply-To: <3FD79712.7040304@vineyard.net>
Message-ID: <5.2.1.1.0.20031210150259.02fd00d8@mail.newmediaems.com>
At 04:58 PM 12/10/2003 -0500, you wrote:
>Hi,
>
>I am in the process of investigating Interchange for by clients. So far,
>the process has gone relatively smoothly but I have encountered a problem
>updating the status on a pending order. Specifically, the action is denied
>and I am redirected to the admin login page. The error logs indicate that
>I have "attempted database update without permission, table=transactions".
>
>I am running an "out of the box" install using the default "foundation"
>store and DBM files.
>
>I have checked the actual file system permissions and they are fine. I
>have poked around the icdevgroup site and google and the last ~3 months
>list archives but have been unable to find anything that might help
>explain what's going on.
>
>When the program is complaining about permissions, is it complaining about
>file-system permissions or it's own internal table of allowable actions
>for a user? (I am logged in a the site admin/super user.)
That message would suggest a problem with logical permissions within the
UI, not file system permissions.
- Ed L.
===============================================================
New Media E.M.S. Technology Solutions for Business
11630 Fair Oaks Blvd., #250 eCommerce | Consulting | Hosting
Fair Oaks, CA 95628 edl@newmediaems.com
(916) 961-0446 http://www.newmediaems.com
(866) 519-4680 Toll-Free (916) 961-0447 Fax
===============================================================
From mike at perusion.com Wed Dec 10 18:38:19 2003
From: mike at perusion.com (Mike Heins)
Date: Wed Dec 10 18:38:29 2003
Subject: [ic] [permissions] who is on first?
In-Reply-To: <5.2.1.1.0.20031210150259.02fd00d8@mail.newmediaems.com>
References: <3FD79712.7040304@vineyard.net>
<5.2.1.1.0.20031210150259.02fd00d8@mail.newmediaems.com>
Message-ID: <20031210233819.GA5598@bill.heins.net>
Quoting Ed LaFrance (edl@newmediaems.com):
> At 04:58 PM 12/10/2003 -0500, you wrote:
> >Hi,
> >
> >I am in the process of investigating Interchange for by clients. So far,
> >the process has gone relatively smoothly but I have encountered a problem
> >updating the status on a pending order. Specifically, the action is denied
> >and I am redirected to the admin login page. The error logs indicate that
> >I have "attempted database update without permission, table=transactions".
> >
> >I am running an "out of the box" install using the default "foundation"
> >store and DBM files.
> >
> >I have checked the actual file system permissions and they are fine. I
> >have poked around the icdevgroup site and google and the last ~3 months
> >list archives but have been unable to find anything that might help
> >explain what's going on.
> >
> >When the program is complaining about permissions, is it complaining about
> >file-system permissions or it's own internal table of allowable actions
> >for a user? (I am logged in a the site admin/super user.)
>
> That message would suggest a problem with logical permissions within the
> UI, not file system permissions.
>
Also, if you are using DBM you are set up for problems. We now
require SQL for catalogs if you are going to use the Admin UI.
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295
Some people have twenty years of experience, some people have
one year of experience twenty times over. -- Anonymous
From mike at perusion.com Wed Dec 10 18:48:43 2003
From: mike at perusion.com (Mike Heins)
Date: Wed Dec 10 18:48:56 2003
Subject: Out of Office AutoReply: [ic] [permissions] who is on first?
In-Reply-To: <03FAD7796512D411BE0E00A0CC5A64100147A4D7@PLUTO>
References: <03FAD7796512D411BE0E00A0CC5A64100147A4D7@PLUTO>
Message-ID: <20031210234843.GB5680@bill.heins.net>
Quoting Don Johnson (djohnson@horizon.sk.ca):
> Hello,
>
> Thank you for your e-mail. I am out of the office delivering training
> sessions on the following days: December 10, 11, 16, 17 and 18.
>
> You may call me on my cell at 221-1110 and leave a message, which I will
> return during a break or noon hour.
>
>
>
> In the event of an emergency please contact the office @ 306.665.5666 and
> ask to be either redirected to sales, service or a manager as required.
>
Hi,
Please get an autoresponder that was not written by a clueless newbie.
It should never reply to Priority: list, Priority: bulk, or Priority: junk
email.
Regards,
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295
Prove you aren't stupid. Say NO to Passport.
From jon at endpoint.com Wed Dec 10 22:27:36 2003
From: jon at endpoint.com (Jon Jensen)
Date: Wed Dec 10 22:27:51 2003
Subject: [ic] Interchange 5.0.0 release candidate 2
Message-ID:
Fellow Interchange users,
Interchange 5.0 is close at hand. The second release candidate is now
available, and we ask you to please take a few minutes to test this so
that the 5.0 final release will be as bug-free as possible.
The tarball and RPMs are here:
http://ftp.icdevgroup.org/interchange/5.0-rc2/
Please read the read-me-rpm file before downloading any RPMs. Due to
vendors shipping threaded Perls, it's a little more complicated now to use
the RPMs. You can always build your own with the src RPM, of course. The
read-me-rpm file explains things.
Debian packages are here:
http://ftp.icdevgroup.org/interchange/debian/5.0.0-rc2/
We'd like to get any test reports back by Thursday night or Friday morning
if possible, in anticipation of a Monday release.
Thanks,
Jon
From gabi at jpostmail.com Thu Dec 11 08:30:26 2003
From: gabi at jpostmail.com (Gabi)
Date: Thu Dec 11 08:30:47 2003
Subject: [ic] Two interchange version possible ?
Message-ID: <20031211133026.GA13848@ie.jpost.com>
Hi All .
I'm sucessfully running 4.8.3 interchange version on Debian Woody
,installed from packages .
And I whould like to test release candidate .
Does it possible to run on same box second version of interchange
(on spare domain and demo store supplyed with it of couse ) ?
Thanks , Gabi .
From interchange-users at hertell.com Thu Dec 11 09:55:33 2003
From: interchange-users at hertell.com (Rene Hertell)
Date: Thu Dec 11 09:55:39 2003
Subject: [ic] Two interchange version possible ?
In-Reply-To: <20031211133026.GA13848@ie.jpost.com>
Message-ID:
> Hi All .
>
>
> I'm sucessfully running 4.8.3 interchange version on Debian Woody
> ,installed from packages .
>
> And I whould like to test release candidate .
> Does it possible to run on same box second version of interchange
> (on spare domain and demo store supplyed with it of couse ) ?
Just install the new release in an other directory, and run it from there.
When you create a new catalog with the release candidate, then make sure
that you don't replace your other installations by e.g. using same name for
catalog.
Rene
From sandy at scotwebshops.com Thu Dec 11 13:02:21 2003
From: sandy at scotwebshops.com (Sandy Thomson)
Date: Thu Dec 11 13:01:43 2003
Subject: [ic] Protx Payment Module Authentication
In-Reply-To:
References:
Message-ID: <3FD8B12D.3020106@scotwebshops.com>
Hi all,
I have been trying to get protx set up and configured with our
customised version of interchange.
Currently, I am at the stage of working out what everything does, and
trying to get a transaction completed through the protx vsp test server.
One of the major things I am unclear about is authentication. I have
read the Protx site and module documentation over and over and over, but
nothing is mentioned about this.
I assume due to the requirement of the SSL module, it uses this in some
shape or form.
I have orders going into the transaction table ok, and the following
relevant lines in my catalog.cfg file:
Route protx <
I've been trying to set my shipping options to offer only a few of the
shipping methods, I searched the list and google in general, I read the help
pages and they say "Select one of the currently existing shipping methods
from the list and click "edit method" to change its name, enable or disable
it". For the life of me there is no "box" in my control panel by "enable this
method" as described in the docs.
I found one other message stating the same during my searches but no answer to
the question.
Please help.
BTW: Not afraid of shell and/or editing text files and/or manually going into
MySql through shell, where are those settings stored?
TIA
Rick
From lyn at zolotek.net Thu Dec 11 17:02:16 2003
From: lyn at zolotek.net (Lyn St George)
Date: Thu Dec 11 17:02:10 2003
Subject: [ic] Protx Payment Module Authentication
Message-ID:
On Thu, 11 Dec 2003 18:02:21 +0000, Sandy Thomson wrote:
>Hi all,
>I have been trying to get protx set up and configured with our
>customised version of interchange.
>Currently, I am at the stage of working out what everything does, and
>trying to get a transaction completed through the protx vsp test server.
>
>One of the major things I am unclear about is authentication. I have
>read the Protx site and module documentation over and over and over, but
>nothing is mentioned about this.
>I assume due to the requirement of the SSL module, it uses this in some
>shape or form.
Protx authenticate you by your IP address, plus user id.
>I have orders going into the transaction table ok, and the following
>relevant lines in my catalog.cfg file:
>
>Route protx < id our_id
> host the_protx_host.co.uk
> attach 1
> report etc/report
> currency GBP
> txtype PAYMENT
>EOR
>
>Route default cascade "newmain sales_log new_sales_log copy_user log protx"
>
>
>I also have the correct 'Require module' line at the top of the file,
>and have totally culled the admin stuff from interchange.
>Any hints on starting the transaction process would be greatly
>appreciated :-)
Starting with basics: the 'require' line is in interchange.cfg (not catalog.cfg),
MV_PAYMENT_MODE is set to Protx in variable.txt, and you did restart
Interchange ("apply changes") after adding these?
>Cheers.
>
>Sandy Thomson.
-
Cheers
Lyn St George
+---------------------------------------------------------------------------------
+ http://www.zolotek.net .. eCommerce hosting, consulting
+----------------------------------------------------------------------------------
From asc at vineyard.net Thu Dec 11 17:19:08 2003
From: asc at vineyard.net (Aaron Straup Cope)
Date: Thu Dec 11 17:26:10 2003
Subject: [Fwd: Re: [ic] [permissions] who is on first?]
Message-ID: <3FD8ED5C.3040102@vineyard.net>
Apologies if this message is arriving for a second time. My email client
is wigging out and I'm not sure it was ever really sent the first
time... :-(
-------- Original Message --------
Subject: Re: [ic] [permissions] who is on first?
Date: Thu, 11 Dec 2003 14:37:22 -0500
From: Aaron Straup Cope
Reply-To: asc@vineyard.net
To: interchange-users@icdevgroup.org
References: <3FD79712.7040304@vineyard.net>
<5.2.1.1.0.20031210150259.02fd00d8@mail.newmediaems.com>
<20031210233819.GA5598@bill.heins.net>
Mike Heins wrote:
>>>When the program is complaining about permissions, is it complaining about
>>>file-system permissions or it's own internal table of allowable actions
>>>for a user? (I am logged in a the site admin/super user.)
>>
>>That message would suggest a problem with logical permissions within the
>>UI, not file system permissions.
>>
>
>
> Also, if you are using DBM you are set up for problems. We now
> require SQL for catalogs if you are going to use the Admin UI.
----
Thanks all for the speedy responses. Sadly, I am unable to "fix" the
problem despite :
* moving everything over to MySQL (...Using MySQL, DSN=...done.)
* giving the user in question complete access over everything via the
'Edit Permissions' UI interface - specifically : view, edit, create
and delete (but not HIDE) permissions on all the tables listed. (I
made sure to "apply changes".)
And yet when I try to change the status on an order, I get redirected to
the login page and Interchange has forgotten who I am.
Could it a cookie thing? I'm using Mozilla/Firebird set to alert me
whenever a new cookie is set and I'm not seeing anything. I tried to
gleen something by looking at the actual HTTP headers (included below)
but I didn't suggest an obvious solution to me.
Any suggestions on where to look next, or where to start adding
gratuitous "print STDERR" statements would be much appreciated.
Thanks,
----
# The program is being run through cgiwrap with a set up rewrite [PT]
# directives to hide the ugly URLs
# Trying to update status on an item
POST /aaronstore/ui.html?id=5tZsWd8H HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 333
mv_doit=set&mv_click=process_filter&mv_nextpage=admin%2Forder_view&code=TEST0003&mv_data_table=transactions&ui_meta_specific=&mv_data_key=code&mv_update_empty=1&mv_data_fields=code+status+archived+deleted&status=&status=shipped&ui_filter%3Astatus=nullselect&deleted=0&archived=0&lines_shipped=TEST0003-1&mv_click=Change+global+status
HTTP/1.x 302 moved
Set-Cookie: MV_SESSION_ID=FLXbbsI9:127.0.0.1;
path=/cgi-bin/cgiwrap/asc/aaronstore;
Set-Cookie: MV_SESSION_ID=FLXbbsI9:127.0.0.1;
path=/cgi-bin/cgiwrap/asc/aaronstore;
Set-Cookie: MV_SESSION_ID=FLXbbsI9:127.0.0.1;
path=/cgi-bin/cgiwrapd/asc/aaronstore;
Set-Cookie: MV_SESSION_ID=FLXbbsI9:127.0.0.1;
path=/cgi-bin/cgiwrapd/asc/aaronstore;
Location:
/aaronstore/admin/login?mv_session_id=FLXbbsI9&mv_pc=1&destination=admin%2forder_view
# Login page
GET
/aaronstore/admin/login?mv_session_id=FLXbbsI9&mv_pc=1&destination=admin%2forder_view
HTTP/1.1
X-Track: SESSION=FLXbbsI9&VIEWPAGE=admin/login
Set-Cookie: MV_SESSION_ID=FLXbbsI9:127.0.0.1;
path=/cgi-bin/cgiwrap/asc/aaronstore;
Set-Cookie: MV_SESSION_ID=FLXbbsI9:127.0.0.1;
path=/cgi-bin/cgiwrap/asc/aaronstore;
Set-Cookie: MV_SESSION_ID=FLXbbsI9:127.0.0.1;
path=/cgi-bin/cgiwrapd/asc/aaronstore;
Set-Cookie: MV_SESSION_ID=FLXbbsI9:127.0.0.1;
path=/cgi-bin/cgiwrapd/asc/aaronstore;
From prtyof5 at attglobal.net Fri Dec 12 01:59:21 2003
From: prtyof5 at attglobal.net (Jon)
Date: Fri Dec 12 01:59:58 2003
Subject: [ic] Full Cart Loses Security
Message-ID: <3FD96749.ECA28AEF@attglobal.net>
Using fairly vanilla IC 4.9.3
Static IP for single domain and SSL.
With the cart empty there doesn't appear to be any session issues.
With anything in the cart when the user goes to the checkout page
the browser lock icon appears and then quickly disappears.
Anyone else experienced that ?
Jon
From mnow at speednetllc.com Fri Dec 12 02:25:09 2003
From: mnow at speednetllc.com (mnow)
Date: Fri Dec 12 02:23:25 2003
Subject: [ic] 404 on Admin page
Message-ID: <000201c3c081$1951a0c0$4f02a8c0@Workgroup>
Just installed 4.9.9 and Foundation on RH9.0.
Did a Makecat to set up a new store which worked OK
for a few days and on day 3, I am unable to access the Admin
page to try and reset the Foundation to the new site.
I can still access the new (Foundation) site but get a 404 error
when trying to get to the Admin page.
Any thoughts for this problem?
Thanks,
Mark
From allmanj at houseofireland.com Fri Dec 12 06:32:42 2003
From: allmanj at houseofireland.com (John Allman)
Date: Fri Dec 12 06:21:45 2003
Subject: [ic] sending mail in interchange 4.6.5
Message-ID: <3FD9A75A.6050909@houseofireland.com>
Hi - i'm attempting to send a mail to us when a user accesses a
particular page (the end of a sign up process (for a new feature on the
site)) but, after much rummaging i've found that the [mail] tag does not
seem to exist in ic 4.6.5. Unfortunately there is a good reason why i
cannot upgrade (it is on my to do list though).
I can't find documentation on how to do this in earlier versions of
interchange. Looking about the source has led me to believe i might be
able to use Vend::Order::send_mail? Can anyone show me how i could do
this? When i try calling it from a perl block i get Undefined subroutine
in the error log.
thanks
John Allman
From racke at linuxia.de Fri Dec 12 06:39:35 2003
From: racke at linuxia.de (Stefan Hornburg)
Date: Fri Dec 12 06:39:36 2003
Subject: [ic] sending mail in interchange 4.6.5
In-Reply-To: <3FD9A75A.6050909@houseofireland.com>
References: <3FD9A75A.6050909@houseofireland.com>
Message-ID: <20031212123935.3cdadca8.racke@linuxia.de>
On Fri, 12 Dec 2003 11:32:42 +0000
John Allman wrote:
> Hi - i'm attempting to send a mail to us when a user accesses a
> particular page (the end of a sign up process (for a new feature on the
> site)) but, after much rummaging i've found that the [mail] tag does not
> seem to exist in ic 4.6.5. Unfortunately there is a good reason why i
> cannot upgrade (it is on my to do list though).
>
> I can't find documentation on how to do this in earlier versions of
> interchange. Looking about the source has led me to believe i might be
> able to use Vend::Order::send_mail? Can anyone show me how i could do
> this? When i try calling it from a perl block i get Undefined subroutine
> in the error log.
Have you tried to use the email usertag from IC 4.8 ? This should work,
at least with some minor modifications.
Bye
Racke
--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team
From allmanj at houseofireland.com Fri Dec 12 07:43:51 2003
From: allmanj at houseofireland.com (John Allman)
Date: Fri Dec 12 07:32:53 2003
Subject: [ic] sending mail in interchange 4.6.5
In-Reply-To: <20031212123935.3cdadca8.racke@linuxia.de>
References: <3FD9A75A.6050909@houseofireland.com>
<20031212123935.3cdadca8.racke@linuxia.de>
Message-ID: <3FD9B807.80909@houseofireland.com>
Stefan Hornburg wrote:
>Have you tried to use the email usertag from IC 4.8 ? This should work,
>at least with some minor modifications.
>
>Bye
> Racke
>
>
>
>
actually - there appears to be an email usertag in 4.6.5 which i hadn't
noticed. am attempting to use this now...
It's almost working. But something appears to be stripping the domain
part of the email address out. allmanj@houseofireland.com becomes
allmanj.com. Any idea what's causing this and how to fix it?
thanks
John Allman
From allmanj at houseofireland.com Fri Dec 12 07:52:45 2003
From: allmanj at houseofireland.com (John Allman)
Date: Fri Dec 12 07:41:46 2003
Subject: [ic] sending mail in interchange 4.6.5
In-Reply-To: <3FD9B807.80909@houseofireland.com>
References: <3FD9A75A.6050909@houseofireland.com> <20031212123935.3cdadca8.racke@linuxia.de>
<3FD9B807.80909@houseofireland.com>
Message-ID: <3FD9BA1D.5070908@houseofireland.com>
John Allman wrote:
> Stefan Hornburg wrote:
>
>> Have you tried to use the email usertag from IC 4.8 ? This should work,
>> at least with some minor modifications.
>>
>> Bye
>> Racke
>>
> actually - there appears to be an email usertag in 4.6.5 which i
> hadn't noticed. am attempting to use this now...
>
> It's almost working. But something appears to be stripping the domain
> part of the email address out. allmanj@houseofireland.com becomes
> allmanj.com. Any idea what's causing this and how to fix it?
actually - escaping the @ symbol fixes it. All working now. Much thanks
John Allman
From DB at M-and-D.com Fri Dec 12 08:04:58 2003
From: DB at M-and-D.com (DB)
Date: Fri Dec 12 08:05:01 2003
Subject: [ic] Full Cart Loses Security
Message-ID: <3FD9BCFA.2060105@M-and-D.com>
> Using fairly vanilla IC 4.9.3
> Static IP for single domain and SSL.
>
> With the cart empty there doesn't appear to be any session issues.
> With anything in the cart when the user goes to the checkout page
> the browser lock icon appears and then quickly disappears.
> Anyone else experienced that ?
>
> Jon
Maybe one of the images or scripts on the page is called with a
nonsecure URL? It is best to use relative links if you can. I'd have to
see the page to really know.
DB
From pshempel at linuxhardcore.com Fri Dec 12 08:51:55 2003
From: pshempel at linuxhardcore.com (Philip S. Hempel)
Date: Fri Dec 12 08:52:08 2003
Subject: [ic] Images and the Admin UI
Message-ID: <1071237115.15299.30.camel@starfire>
I am using 5.0 pre cvs
Non-threaded perl 5.8.1
Here is my dilemma, we have a number of products that use the same
image.
Problem we have is in 4.9/5.0 the UI has changed in some way that allows
an upload of zero bit file essentially overwriting the original file or
zeroing out the file.
What we do to cause this is to upload the image into one item, then edit
additional items placing the same image name into the image of the other
products that use it.
Is there some way to remedy this? It really would be nice to tell the UI
at least not to attempt an upload for the image and to use an existing
image.
The only way I have been able to keep this from happening for our store
is to change the files ownership to root:root or something other than
the stores user.
I know that I can change the UI in some way to work like the UI did in
the 4.6 era for our system alone, but I don't think I am the only one
that would run into this same difficulty.
The function something like selecting
use existing image: yes no
if yes offer image choices from the server or input filename, if not
that at least allow entering a filename that would not place a post into
the request.
if no allow upload choices
This would then help to get rid of that empty post that occurs when
changing the image name, as long as the person who edits the product
remembers to choose the correct option.
Thanks and any suggestions are welcome.
Philip S. Hempel
From pshempel at linuxhardcore.com Fri Dec 12 08:53:38 2003
From: pshempel at linuxhardcore.com (Philip S. Hempel)
Date: Fri Dec 12 08:53:49 2003
Subject: [ic] 404 on Admin page
In-Reply-To: <000201c3c081$1951a0c0$4f02a8c0@Workgroup>
References: <000201c3c081$1951a0c0$4f02a8c0@Workgroup>
Message-ID: <1071237217.15299.32.camel@starfire>
On Fri, 2003-12-12 at 02:25, mnow wrote:
> Just installed 4.9.9 and Foundation on RH9.0.
> Did a Makecat to set up a new store which worked OK
> for a few days and on day 3, I am unable to access the Admin
> page to try and reset the Foundation to the new site.
> I can still access the new (Foundation) site but get a 404 error
> when trying to get to the Admin page.
>
> Any thoughts for this problem?
SSL?
>
> Thanks,
> Mark
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
--
Philip S. Hempel Network, Systems, Security
Cell (269) 208-2665 Administrator
Home (269) 461-3214 in UNIX, LINUX, Microsoft
http://linuxhardcore.com/ for more than 10 years
From tverhagen at alamerce.nl Fri Dec 12 09:09:33 2003
From: tverhagen at alamerce.nl (Ton Verhagen)
Date: Fri Dec 12 09:09:49 2003
Subject: [ic] Images and the Admin UI
In-Reply-To: <1071237115.15299.30.camel@starfire>
Message-ID: <5.2.0.9.0.20031212150421.03e317b8@verhagen.net>
Quoting Philip S. Hempel" :
>I am using 5.0 pre cvs
>Non-threaded perl 5.8.1
>
>Here is my dilemma, we have a number of products that use the same
>image.
>
>Problem we have is in 4.9/5.0 the UI has changed in some way that allows
>an upload of zero bit file essentially overwriting the original file or
>zeroing out the file.
>
>What we do to cause this is to upload the image into one item, then edit
>additional items placing the same image name into the image of the other
>products that use it.
>
>Is there some way to remedy this? It really would be nice to tell the UI
>at least not to attempt an upload for the image and to use an existing
>image.
>
>The only way I have been able to keep this from happening for our store
>is to change the files ownership to root:root or something other than
>the stores user.
>
>I know that I can change the UI in some way to work like the UI did in
>the 4.6 era for our system alone, but I don't think I am the only one
>that would run into this same difficulty.
>
>The function something like selecting
>
>use existing image: yes no
>
>if yes offer image choices from the server or input filename, if not
>that at least allow entering a filename that would not place a post into
>the request.
>
>if no allow upload choices
>
>This would then help to get rid of that empty post that occurs when
>changing the image name, as long as the person who edits the product
>remembers to choose the correct option.
>
>Thanks and any suggestions are welcome.
Dear Philip,
As you probably know, one can do almost anything with Interchange.
You can achieve what you want by the following:
1. Click the meta link aof the image field
2. Go to tab 'Advanced'
3. Add /* to the path in the 'Directory' field (e.g. change images/items to
images/items/*)
4. Click OK
Now you will have a pull down box containing the existing
images show up on your form.
Good luck !
Best regards,
Ton
--
Alamerce Nederland --- Cornerstone of eBusiness
Phone +31-40-2374381 info@alamerce.nl http://www.alamerce.nl
eCommerce Solutions -- Consulting -- Website & Interchange Hosting
From andrew at mapsdownunder.com.au Fri Dec 12 09:57:44 2003
From: andrew at mapsdownunder.com.au (Andrew Rich)
Date: Fri Dec 12 09:36:36 2003
Subject: [ic] Mike's demo - Product Tree not working IE5.0
Message-ID:
Hi All
Just wondering if anyone would know why Mike's demo (5) Product Tree
wouldn't show on early MS IE 5.0 (40 bit).
Is ok in IE 6.
URL is www.itdownunder.com.au
This was not in SSL either.
Is it a style sheet issue?
I was looking at building a new site based on this demo (my foundation sites
a working ok).
Regards
_______________________________________
Andrew Rich
Maps Downunder
From prtyof5 at attglobal.net Fri Dec 12 10:06:57 2003
From: prtyof5 at attglobal.net (Jon)
Date: Fri Dec 12 10:07:36 2003
Subject: [ic] Full Cart Loses Security
References: <3FD9BCFA.2060105@M-and-D.com>
Message-ID: <3FD9D991.E36E7924@attglobal.net>
> > Using fairly vanilla IC 4.9.3
> > Static IP for single domain and SSL.
> >
> > With the cart empty there doesn't appear to be any session issues.
> > With anything in the cart when the user goes to the checkout page
> > the browser lock icon appears and then quickly disappears.
> > Anyone else experienced that ?
> >
> > Jon
>
> Maybe one of the images or scripts on the page is called with a
> nonsecure URL? It is best to use relative links if you can. I'd have to
> see the page to really know.
>
> DB
>
Very good DB !! I had trouble some time back with button tag images
and did something so the button tag could find the image. Otherwise
it would always default to the specified text. So when I removed the
src= line the problem seems solved. One other interesting part I noticed
this morning is that the losing of the security indicator was not a problem
with NetScape only IE.
Now I need to figure out why the button tag can't find my images.
Again though... that bit of information you provided sent me right to the
problem !!
Thank again !!!!
Jon
From pshempel at linuxhardcore.com Fri Dec 12 10:14:44 2003
From: pshempel at linuxhardcore.com (Philip S. Hempel)
Date: Fri Dec 12 10:14:57 2003
Subject: [ic] Images and the Admin UI
In-Reply-To: <5.2.0.9.0.20031212150421.03e317b8@verhagen.net>
References: <5.2.0.9.0.20031212150421.03e317b8@verhagen.net>
Message-ID: <1071242083.5826.3.camel@starfire>
On Fri, 2003-12-12 at 09:09, Ton Verhagen wrote:
> Quoting Philip S. Hempel" :
> >I am using 5.0 pre cvs
> >Non-threaded perl 5.8.1
> >
> >Here is my dilemma, we have a number of products that use the same
> >image.
> >
> >Problem we have is in 4.9/5.0 the UI has changed in some way that allows
> >an upload of zero bit file essentially overwriting the original file or
> >zeroing out the file.
> >
> >What we do to cause this is to upload the image into one item, then edit
> >additional items placing the same image name into the image of the other
> >products that use it.
> >
> >Is there some way to remedy this? It really would be nice to tell the UI
> >at least not to attempt an upload for the image and to use an existing
> >image.
> >
> >The only way I have been able to keep this from happening for our store
> >is to change the files ownership to root:root or something other than
> >the stores user.
> >
> >I know that I can change the UI in some way to work like the UI did in
> >the 4.6 era for our system alone, but I don't think I am the only one
> >that would run into this same difficulty.
> >
> >The function something like selecting
> >
> >use existing image: yes no
> >
> >if yes offer image choices from the server or input filename, if not
> >that at least allow entering a filename that would not place a post into
> >the request.
> >
> >if no allow upload choices
> >
> >This would then help to get rid of that empty post that occurs when
> >changing the image name, as long as the person who edits the product
> >remembers to choose the correct option.
> >
> >Thanks and any suggestions are welcome.
>
> Dear Philip,
>
> As you probably know, one can do almost anything with Interchange.
>
> You can achieve what you want by the following:
>
> 1. Click the meta link aof the image field
> 2. Go to tab 'Advanced'
> 3. Add /* to the path in the 'Directory' field (e.g. change images/items to
> images/items/*)
> 4. Click OK
>
But to do this in every store I work with or put up is a pain in the
rear. The point I wanted to make is that I believe I am not the only one
to have seen this happen and or try doing what I have done.
The present functionality of the product images upload is just that, an
upload function and does not allow you to modify without upload.
> Now you will have a pull down box containing the existing
> images show up on your form.
>
> Good luck !
>
>
> Best regards,
>
> Ton
>
> --
> Alamerce Nederland --- Cornerstone of eBusiness
> Phone +31-40-2374381 info@alamerce.nl http://www.alamerce.nl
>
> eCommerce Solutions -- Consulting -- Website & Interchange Hosting
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
--
Philip S. Hempel Network, Systems, Security
Cell (269) 208-2665 Administrator
Home (269) 461-3214 in UNIX, LINUX, Microsoft
http://linuxhardcore.com/ for more than 10 years
From interchange at tssphoto.com Fri Dec 12 10:47:34 2003
From: interchange at tssphoto.com (Chris Bair)
Date: Fri Dec 12 10:48:20 2003
Subject: [ic] Errors when trying to use state for shipping selection
Message-ID:
I'm running into some errors when I try to restrict different
shipping modes based on the sate. I have the different shipping modes
in the shipmode column in the state table using spaces to separate
them, just like you do in the country table. The error I'm getting
looks like this:
Runtime error: Can't locate object method "single" via package
"Vend::Table::GDBM" (perhaps you forgot to load "Vend::Table::GDBM"?)
at /home/inkjet/interchange/lib/Vend/Ship.pm line 429.
and the code for the shipping selection looks like this:
although I have also tried:
I started out on IC 4.8.7, tried it on 4.9.9 and my current test
server is running 5.0.0 RC2 just for kicks and giggles. I even
grabbed the current Bundle:Interchange and the kitchensink just in
case.
Has anyone out there been able to get this working or is it just a
broken feature that isn't ready for use yet?
From mike at perusion.com Fri Dec 12 11:08:01 2003
From: mike at perusion.com (Mike Heins)
Date: Fri Dec 12 11:08:17 2003
Subject: [ic] Mike's demo - Product Tree not working IE5.0
In-Reply-To:
References:
Message-ID: <20031212160801.GA26244@bill.heins.net>
Quoting Andrew Rich (andrew@mapsdownunder.com.au):
> Hi All
>
> Just wondering if anyone would know why Mike's demo (5) Product Tree
> wouldn't show on early MS IE 5.0 (40 bit).
>
> Is ok in IE 6.
>
> URL is www.itdownunder.com.au
>
> This was not in SSL either.
>
> Is it a style sheet issue?
>
> I was looking at building a new site based on this demo (my foundation sites
> a working ok).
MSIE 5.0's CSS is not up to snuff, and I guess our default browser
recognition string thinks it is.
If you set this in the catalog.cfg:
Variable MV_DHTML_BROWSER MSIE\s+5.5.*Windows|MSIE\s+[67]\.|Gecko
it should send those to the old tree.
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295
Any man who is under 30, and is not liberal, has not heart; and any man
who is over 30, and is not a conservative, has not brains.
-- Winston Churchill
From frank at goldissue.com Fri Dec 12 11:22:48 2003
From: frank at goldissue.com (frank)
Date: Fri Dec 12 11:17:56 2003
Subject: [ic] item image upload fails (msie) on two machines
Message-ID: <3FD9EB58.6040506@goldissue.com>
Hi,
I have a customer who is having trouble uploading images (items) through
the user interface (win 98 msie).
On one occasion I was with him, and images (jpegs) produced by photoshop
would not upload, while images downloaded from images.google.com would
upload.
Often an error would appear on the browser (page not found).
I have checked the apache logfile and no images have been posted by my
client in 4 days, whereas he claims to have tried.
Also he has emailed me the pics which did not upload. I renamed them and
uploaded them from linux ok.
Now he is having trouble uploading from msie win XP at home.
Anyone have any ideas?
Frank Reitzenstein.
From frank at goldissue.com Fri Dec 12 11:31:58 2003
From: frank at goldissue.com (frank)
Date: Fri Dec 12 11:27:04 2003
Subject: [ic] item image upload fails (msie) on two machines
In-Reply-To: <3FD9EB58.6040506@goldissue.com>
References: <3FD9EB58.6040506@goldissue.com>
Message-ID: <3FD9ED7E.4030604@goldissue.com>
That's IC4.9.9
frank wrote:
> Hi,
>
> I have a customer who is having trouble uploading images (items)
> through the user interface (win 98 msie).
>
> On one occasion I was with him, and images (jpegs) produced by
> photoshop would not upload, while images downloaded from
> images.google.com would upload.
>
> Often an error would appear on the browser (page not found).
>
> I have checked the apache logfile and no images have been posted by my
> client in 4 days, whereas he claims to have tried.
>
> Also he has emailed me the pics which did not upload. I renamed them
> and uploaded them from linux ok.
>
> Now he is having trouble uploading from msie win XP at home.
>
> Anyone have any ideas?
>
> Frank Reitzenstein.
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>
From jerry at digitalfm.com Fri Dec 12 11:27:13 2003
From: jerry at digitalfm.com (Jerry)
Date: Fri Dec 12 11:28:51 2003
Subject: [ic] item image upload fails (msie) on two machines
In-Reply-To: <3FD9EB58.6040506@goldissue.com>
Message-ID:
> From: interchange-users-bounces@icdevgroup.org
> [mailto:interchange-users-bounces@icdevgroup.org]On Behalf Of frank
> Sent: Friday, December 12, 2003 11:23 AM
> To: interchange-users@icdevgroup.org; serventy@ami.com.au
> Subject: [ic] item image upload fails (msie) on two machines
>
>
> Hi,
>
> I have a customer who is having trouble uploading images (items) through
> the user interface (win 98 msie).
>
> On one occasion I was with him, and images (jpegs) produced by photoshop
> would not upload, while images downloaded from images.google.com would
> upload.
>
> Often an error would appear on the browser (page not found).
>
> I have checked the apache logfile and no images have been posted by my
> client in 4 days, whereas he claims to have tried.
>
> Also he has emailed me the pics which did not upload. I renamed them and
> uploaded them from linux ok.
>
> Now he is having trouble uploading from msie win XP at home.
>
> Anyone have any ideas?
>
> Frank Reitzenstein.
You renamed them and they uploaded ok?
Maybe something like spaces in the file names?
The file upload facilities don't deal with that
too well. I've seen it cause problems before.
Jerry
From frank at goldissue.com Fri Dec 12 11:35:36 2003
From: frank at goldissue.com (frank)
Date: Fri Dec 12 11:30:40 2003
Subject: [ic] item image upload fails (msie) on two machines
In-Reply-To: <3FD9EB58.6040506@goldissue.com>
References: <3FD9EB58.6040506@goldissue.com>
Message-ID: <3FD9EE58.1030109@goldissue.com>
> Hi,
>
> I have a customer who is having trouble uploading images (items)
> through the user interface (win 98 msie).
>
> On one occasion I was with him, and images (jpegs) produced by
> photoshop would not upload, while images downloaded from
> images.google.com would upload.
>
> Often an error would appear on the browser (page not found).
>
> I have checked the apache logfile and no images have been posted by my
> client in 4 days, whereas he claims to have tried.
>
> Also he has emailed me the pics which did not upload. I renamed them
> and uploaded them from linux ok.
>
> Now he is having trouble uploading from msie win XP at home.
>
> Anyone have any ideas?
>
> Frank Reitzenstein.
>
Interchange version is 4.9.9 and he now tells me that the problem occurs
while trying to overwrite images.
From mike at perusion.com Fri Dec 12 11:31:19 2003
From: mike at perusion.com (Mike Heins)
Date: Fri Dec 12 11:31:24 2003
Subject: [ic] Errors when trying to use state for shipping selection
In-Reply-To:
References:
Message-ID: <20031212163119.GA26459@bill.heins.net>
Quoting Chris Bair (interchange@tssphoto.com):
> I'm running into some errors when I try to restrict different
> shipping modes based on the sate. I have the different shipping modes
> in the shipmode column in the state table using spaces to separate
> them, just like you do in the country table. The error I'm getting
> looks like this:
>
> Runtime error: Can't locate object method "single" via package
> "Vend::Table::GDBM" (perhaps you forgot to load "Vend::Table::GDBM"?)
> at /home/inkjet/interchange/lib/Vend/Ship.pm line 429.
>
> and the code for the shipping selection looks like this:
>
>
>
> although I have also tried:
>
>
>
> I started out on IC 4.8.7, tried it on 4.9.9 and my current test
> server is running 5.0.0 RC2 just for kicks and giggles. I even
> grabbed the current Bundle:Interchange and the kitchensink just in
> case.
>
> Has anyone out there been able to get this working or is it just a
> broken feature that isn't ready for use yet?
You want SQL tables to do this, I think. As the number of GDBM users
dwindles, things are not often fully tested using that table type.
Any tag which uses SQL queries (as that one does).
I think we have to start putting a "requires SQL" in some cases.
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295
Being against torture ought to be sort of a bipartisan thing.
-- Karl Lehenbauer
From frank at goldissue.com Fri Dec 12 11:43:44 2003
From: frank at goldissue.com (frank)
Date: Fri Dec 12 11:38:46 2003
Subject: [ic] item image upload fails (msie) on two machines
In-Reply-To:
References:
Message-ID: <3FD9F040.3010005@goldissue.com>
Jerry wrote:
>>From: interchange-users-bounces@icdevgroup.org
>>[mailto:interchange-users-bounces@icdevgroup.org]On Behalf Of frank
>>Sent: Friday, December 12, 2003 11:23 AM
>>To: interchange-users@icdevgroup.org; serventy@ami.com.au
>>Subject: [ic] item image upload fails (msie) on two machines
>>
>>
>>Hi,
>>
>>I have a customer who is having trouble uploading images (items) through
>>the user interface (win 98 msie).
>>
>>On one occasion I was with him, and images (jpegs) produced by photoshop
>>would not upload, while images downloaded from images.google.com would
>>upload.
>>
>>Often an error would appear on the browser (page not found).
>>
>>I have checked the apache logfile and no images have been posted by my
>>client in 4 days, whereas he claims to have tried.
>>
>>Also he has emailed me the pics which did not upload. I renamed them and
>>uploaded them from linux ok.
>>
>>Now he is having trouble uploading from msie win XP at home.
>>
>>Anyone have any ideas?
>>
>>Frank Reitzenstein.
>>
>>
>
>You renamed them and they uploaded ok?
>Maybe something like spaces in the file names?
>The file upload facilities don't deal with that
>too well. I've seen it cause problems before.
>
>Jerry
>
I have not seen evidence that renaming fixed the problem. Mozilla on
Linux is OK but we had problems on two versions of msie. It is only on
overwriting now apparently.
>
>
From edl at newmediaems.com Fri Dec 12 11:55:58 2003
From: edl at newmediaems.com (Ed LaFrance)
Date: Fri Dec 12 11:52:07 2003
Subject: [ic] Errors when trying to use state for shipping selection
In-Reply-To:
Message-ID: <5.2.1.1.0.20031212085258.02e12030@mail.newmediaems.com>
At 08:47 AM 12/12/2003 -0700, you wrote:
>I'm running into some errors when I try to restrict different shipping
>modes based on the sate. I have the different shipping modes in the
>shipmode column in the state table using spaces to separate them, just
>like you do in the country table. The error I'm getting looks like this:
>
>Runtime error: Can't locate object method "single" via package
>"Vend::Table::GDBM" (perhaps you forgot to load "Vend::Table::GDBM"?) at
>/home/inkjet/interchange/lib/Vend/Ship.pm line 429.
>
>and the code for the shipping selection looks like this:
>
>
>
>although I have also tried:
>
>
>
>I started out on IC 4.8.7, tried it on 4.9.9 and my current test server is
>running 5.0.0 RC2 just for kicks and giggles. I even grabbed the current
>Bundle:Interchange and the kitchensink just in case.
>
>Has anyone out there been able to get this working or is it just a broken
>feature that isn't ready for use yet?
This could have something to do with your Perl or database setup. Are you
using the internal db or an external one (such as MySQL) for the state
table (i.e. do you have state.sql or state.gdbm in your products/ dir)? Are
you saying the shipping selector on the checkout page is empty? Does it
work with the country table (which is the default setup)?
- Ed
===============================================================
New Media E.M.S. Technology Solutions for Business
11630 Fair Oaks Blvd., #250 eCommerce | Consulting | Hosting
Fair Oaks, CA 95628 edl@newmediaems.com
(916) 961-0446 http://www.newmediaems.com
(866) 519-4680 Toll-Free (916) 961-0447 Fax
===============================================================
From tverhagen at alamerce.nl Fri Dec 12 12:04:24 2003
From: tverhagen at alamerce.nl (Ton Verhagen)
Date: Fri Dec 12 12:04:35 2003
Subject: [ic] Images and the Admin UI
In-Reply-To: <1071242083.5826.3.camel@starfire>
References: <5.2.0.9.0.20031212150421.03e317b8@verhagen.net>
<5.2.0.9.0.20031212150421.03e317b8@verhagen.net>
Message-ID: <5.2.0.9.0.20031212180040.03df0fe0@verhagen.net>
Quoting Philip S. Hempel" :
>On Fri, 2003-12-12 at 09:09, Ton Verhagen wrote:
> > Quoting Philip S. Hempel" :
>[snip]
> > >use existing image: yes no
> > >
> > >if yes offer image choices from the server or input filename, if not
> > >that at least allow entering a filename that would not place a post into
> > >the request.
> > >
> > >if no allow upload choices
> > >
> > >This would then help to get rid of that empty post that occurs when
> > >changing the image name, as long as the person who edits the product
> > >remembers to choose the correct option.
> > >
> > >Thanks and any suggestions are welcome.
> >
> > Dear Philip,
> >
> > As you probably know, one can do almost anything with Interchange.
> >
> > You can achieve what you want by the following:
> >
> > 1. Click the meta link aof the image field
> > 2. Go to tab 'Advanced'
> > 3. Add /* to the path in the 'Directory' field (e.g. change
> images/items to
> > images/items/*)
> > 4. Click OK
> >
>
>But to do this in every store I work with or put up is a pain in the
>rear. The point I wanted to make is that I believe I am not the only one
>to have seen this happen and or try doing what I have done.
Well, you could set the mv_metadata for those product fields
in the template of course.
>The present functionality of the product images upload is just that, an
>upload function and does not allow you to modify without upload.
Best regards,
Ton
--
Alamerce Nederland --- Cornerstone of eBusiness
Phone +31-40-2374381 info@alamerce.nl http://www.alamerce.nl
eCommerce Solutions -- Consulting -- Website & Interchange Hosting
From mike at perusion.com Fri Dec 12 12:45:30 2003
From: mike at perusion.com (Mike Heins)
Date: Fri Dec 12 12:45:40 2003
Subject: [ic] Images and the Admin UI
In-Reply-To: <1071237115.15299.30.camel@starfire>
References: <1071237115.15299.30.camel@starfire>
Message-ID: <20031212174530.GA27803@bill.heins.net>
Quoting Philip S. Hempel (pshempel@linuxhardcore.com):
> I am using 5.0 pre cvs
> Non-threaded perl 5.8.1
>
> Here is my dilemma, we have a number of products that use the same
> image.
>
> Problem we have is in 4.9/5.0 the UI has changed in some way that allows
> an upload of zero bit file essentially overwriting the original file or
> zeroing out the file.
>
> What we do to cause this is to upload the image into one item, then edit
> additional items placing the same image name into the image of the other
> products that use it.
Then you need to use a different widget than the imagehelper widget.
The box you are typing into is not a text box, it is a file element.
It is designed to upload a file, not input text info into the database.
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295
How far can you open your mind before your brains fall out?
From interchange at tssphoto.com Fri Dec 12 14:28:03 2003
From: interchange at tssphoto.com (Chris Bair)
Date: Fri Dec 12 14:29:50 2003
Subject: [ic] Errors when trying to use state for shipping selection
In-Reply-To: <5.2.1.1.0.20031212085258.02e12030@mail.newmediaems.com>
References: <5.2.1.1.0.20031212085258.02e12030@mail.newmediaems.com>
Message-ID:
>At 08:47 AM 12/12/2003 -0700, you wrote:
>>I'm running into some errors when I try to restrict different
>>shipping modes based on the sate. I have the different shipping
>>modes in the shipmode column in the state table using spaces to
>>separate them, just like you do in the country table. The error I'm
>>getting looks like this:
>>
>>Runtime error: Can't locate object method "single" via package
>>"Vend::Table::GDBM" (perhaps you forgot to load
>>"Vend::Table::GDBM"?) at /home/inkjet/interchange/lib/Vend/Ship.pm
>>line 429.
>>
>>and the code for the shipping selection looks like this:
>>
>>
>>
>>although I have also tried:
>>
>>
>>
>>I started out on IC 4.8.7, tried it on 4.9.9 and my current test
>>server is running 5.0.0 RC2 just for kicks and giggles. I even
>>grabbed the current Bundle:Interchange and the kitchensink just in
>>case.
>>
>>Has anyone out there been able to get this working or is it just a
>>broken feature that isn't ready for use yet?
>
>This could have something to do with your Perl or database setup.
>Are you using the internal db or an external one (such as MySQL) for
>the state table (i.e. do you have state.sql or state.gdbm in your
>products/ dir)? Are you saying the shipping selector on the checkout
>page is empty? Does it work with the country table (which is the
>default setup)?
>
>- Ed
Using the GDBM. It works great with the country table. Looks like I'm
going to try out using MySQL. I've been meaning to do that anyway for
the possible performance gains, this should prove interesting.
From interchange at tssphoto.com Fri Dec 12 14:30:46 2003
From: interchange at tssphoto.com (Chris Bair)
Date: Fri Dec 12 14:31:44 2003
Subject: [ic] Errors when trying to use state for shipping selection
In-Reply-To: <20031212163119.GA26459@bill.heins.net>
References:
<20031212163119.GA26459@bill.heins.net>
Message-ID:
>Quoting Chris Bair (interchange@tssphoto.com):
>> I'm running into some errors when I try to restrict different
>> shipping modes based on the sate. I have the different shipping modes
>> in the shipmode column in the state table using spaces to separate
>> them, just like you do in the country table. The error I'm getting
>> looks like this:
>>
>> Runtime error: Can't locate object method "single" via package
>> "Vend::Table::GDBM" (perhaps you forgot to load "Vend::Table::GDBM"?)
>> at /home/inkjet/interchange/lib/Vend/Ship.pm line 429.
>>
>> and the code for the shipping selection looks like this:
>>
>>
>>
>> although I have also tried:
>>
>>
>>
>> I started out on IC 4.8.7, tried it on 4.9.9 and my current test
>> server is running 5.0.0 RC2 just for kicks and giggles. I even
>> grabbed the current Bundle:Interchange and the kitchensink just in
>> case.
>>
>> Has anyone out there been able to get this working or is it just a
>> broken feature that isn't ready for use yet?
>
>You want SQL tables to do this, I think. As the number of GDBM users
>dwindles, things are not often fully tested using that table type.
>Any tag which uses SQL queries (as that one does).
>
>I think we have to start putting a "requires SQL" in some cases.
In case I run into issues with MySQL (I have a text file uploaded
every 6 hours that syncs inventory and prices to our on-site order
database - I'm not sure how I'm going to do this with MySQL yet) is
there a way to make this work with GDBM?
From tech at khouse.org Fri Dec 12 14:49:25 2003
From: tech at khouse.org (Russell Mann)
Date: Fri Dec 12 14:46:50 2003
Subject: [ic] price based shipping charges with a different price field
(bug?)
Message-ID:
Hello,
IC 4.8.3. I have a membership that is delinated by the field "user_active"
being non zero, non null. In my catalog.cfg, I have this:
--------------------------
PriceField CommonAdjust
CommonAdjust pricing:price_group,q3,q4,q5,q10, ;products:price, ;$
AutoModifier pricing:price_group
AutoModifier products:gift_cert
NonTaxableField nontaxable
UserDB default scratch user_active
Autoload <{user_active}) {
$Config->{CommonAdjust} = ' pricing:price_group,q3,q4,q5,q10,
;products:member_price, ;$';
}
[/perl]
EOR
--------------------------
This works perfectly for changing the price on the product page when called
by: [item-price], and in the basket all the way through checkout to receipt.
The problem comes in calculating shipping. One of my shipping options is
free shipping for orders over $10.00
This is what is in my products/shipping.asc file.
--------------------------
free Free Shipping - U.S. price 0 9.99 e Please select
$10.00 or more of products to get Free Shipping.
{'PriceDivide' => "1",}
free Free Shipping - U.S. price 10 99999999 0.00
{'PriceDivide' => "1",}
--------------------------
This works perfectly with this code in the ord/checkout.html page:
--------------------------
--------------------------
The problem comes when I set the regular price of the item to $11, and the
member price to $9. The system seems to be calculating the "price" for the
shipping from the price FIELD, instead of the [item-price]. For example, in
this situation, the non-member should get the product for $11, and have free
shipping. The member should get it for $9, but have no free shipping. This
isn't what happens. Instead, they both get the product for the right price
($11, and $9 resepectively) but both get free shipping.
This seems to be something in the internal workings of IC that might be a
bug. Shouldn't price based shipping charges be calculated on the modified
price that the customer is seeing? Where would I go to track this down?
Thanks,
Russell Mann
From bill at worldwideimpact.com Fri Dec 12 16:21:37 2003
From: bill at worldwideimpact.com (Bill Carr)
Date: Fri Dec 12 16:22:03 2003
Subject: [ic] Form action set automatically update_user
Message-ID: <1071264096.11980.242.camel@localhost>
IC 4.9.9
I would like to have a way to override the update_user() call built into
form action 'set'. If I am using the table-editor to edit a table that
has some of the same column names as my userdb table I do not want my
values updated. I could not find a way to do this with out the
following hack.
--- /home/bill/download/interchange-4.9.9/lib/Vend/Dispatch.pm
2003-10-28 12:22:29.000000000 -0500
+++ /ic/lib/Vend/Dispatch.pm 2003-12-12 16:15:39.000000000 -0500
@@ -534,9 +534,9 @@
return 1;
},
set => sub {
- update_user() unless
$CGI::values{mv_data_auto_number};
+ update_user() unless
$CGI::values{mv_data_auto_number} || $CGI::values{mv_no_update_user};
update_data();
- update_user() if
$CGI::values{mv_data_auto_number};
+ update_user() if
$CGI::values{mv_data_auto_number} && !$CGI::values{mv_no_update_user};
return 1;
},
autoset => sub {
--
Bill Carr
Worldwide Impact
bill@worldwideimpact.com
413-253-6700
From mike at perusion.com Fri Dec 12 17:05:40 2003
From: mike at perusion.com (Mike Heins)
Date: Fri Dec 12 17:05:48 2003
Subject: [ic] Form action set automatically update_user
In-Reply-To: <1071264096.11980.242.camel@localhost>
References: <1071264096.11980.242.camel@localhost>
Message-ID: <20031212220540.GA2047@bill.heins.net>
Quoting Bill Carr (bill@worldwideimpact.com):
> IC 4.9.9
>
> I would like to have a way to override the update_user() call built into
> form action 'set'. If I am using the table-editor to edit a table that
> has some of the same column names as my userdb table I do not want my
> values updated. I could not find a way to do this with out the
> following hack.
>
> --- /home/bill/download/interchange-4.9.9/lib/Vend/Dispatch.pm
> 2003-10-28 12:22:29.000000000 -0500
> +++ /ic/lib/Vend/Dispatch.pm 2003-12-12 16:15:39.000000000 -0500
> @@ -534,9 +534,9 @@
> return 1;
> },
> set => sub {
> - update_user() unless
> $CGI::values{mv_data_auto_number};
> + update_user() unless
> $CGI::values{mv_data_auto_number} || $CGI::values{mv_no_update_user};
> update_data();
> - update_user() if
> $CGI::values{mv_data_auto_number};
> + update_user() if
> $CGI::values{mv_data_auto_number} && !$CGI::values{mv_no_update_user};
> return 1;
> },
> autoset => sub {
Won't the usual method work?
FormAction set <update('values')
unless $CGI->{mv_data_auto_number} || $CGI->{mv_no_update_user};
$Tag->update('data');
$Tag->update('values') if $CGI->{mv_data_auto_number};
#Debug("In user form action");
return 1;
}
EOR
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295
People who want to share their religious views with you
almost never want you to share yours with them. -- Dave Barry
From mike at perusion.com Fri Dec 12 17:58:59 2003
From: mike at perusion.com (Mike Heins)
Date: Fri Dec 12 17:59:08 2003
Subject: [ic] Form action set automatically update_user
In-Reply-To: <20031212220540.GA2047@bill.heins.net>
References: <1071264096.11980.242.camel@localhost>
<20031212220540.GA2047@bill.heins.net>
Message-ID: <20031212225859.GA2609@bill.heins.net>
Quoting Mike Heins (mike@perusion.com):
> Quoting Bill Carr (bill@worldwideimpact.com):
> > IC 4.9.9
> >
> > I would like to have a way to override the update_user() call built into
> > form action 'set'. If I am using the table-editor to edit a table that
> > has some of the same column names as my userdb table I do not want my
> > values updated. I could not find a way to do this with out the
> > following hack.
> >
> > --- /home/bill/download/interchange-4.9.9/lib/Vend/Dispatch.pm
> > 2003-10-28 12:22:29.000000000 -0500
> > +++ /ic/lib/Vend/Dispatch.pm 2003-12-12 16:15:39.000000000 -0500
> > @@ -534,9 +534,9 @@
> > return 1;
> > },
> > set => sub {
> > - update_user() unless
> > $CGI::values{mv_data_auto_number};
> > + update_user() unless
> > $CGI::values{mv_data_auto_number} || $CGI::values{mv_no_update_user};
> > update_data();
> > - update_user() if
> > $CGI::values{mv_data_auto_number};
> > + update_user() if
> > $CGI::values{mv_data_auto_number} && !$CGI::values{mv_no_update_user};
> > return 1;
> > },
> > autoset => sub {
>
> Won't the usual method work?
>
> FormAction set < sub {
> $Tag->update('values')
> unless $CGI->{mv_data_auto_number} || $CGI->{mv_no_update_user};
> $Tag->update('data');
> $Tag->update('values') if $CGI->{mv_data_auto_number};
> #Debug("In user form action");
> return 1;
> }
> EOR
Another thing which should work is adding
hidden.mv_values_space=temporary
to the table-editor tag. That will make it send the values to a
different area of the session.
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295
How far can you open your mind before your brains fall out?
From prtyof5 at attglobal.net Sat Dec 13 03:13:31 2003
From: prtyof5 at attglobal.net (Jon)
Date: Sat Dec 13 03:14:10 2003
Subject: [ic] Stock-Alert
Message-ID: <3FDACA2A.A52AED79@attglobal.net>
Using the stock-alert code posted some time back
With mod_rewrites the form action process-target
doesn't seem to find the mv_nextpage=stock-alert-added
With
it seems to be going off in the weeds somewhere
and not to stock-alert-added as expected.
Has anyone else encountered ??
Jon
From prtyof5 at attglobal.net Sat Dec 13 03:38:13 2003
From: prtyof5 at attglobal.net (Jon)
Date: Sat Dec 13 03:38:43 2003
Subject: [ic] Stock-Alert
References: <3FDACA2A.A52AED79@attglobal.net>
Message-ID: <3FDACFF5.F7BEE040@attglobal.net>
> Using the stock-alert code posted some time back
>
> With mod_rewrites the form action process-target
> doesn't seem to find the mv_nextpage=stock-alert-added
> With
>
> it seems to be going off in the weeds somewhere
> and not to stock-alert-added as expected.
>
> Has anyone else encountered ??
>
BTW, IC 4.9.3
A little more details...
It appears as if the check_alert_form section isn't functioning.
If I add the line with *** for the mv_nextpage variable then
it basically functions but of course no input verification
will function.