Zen-Cartバグ)差引残高0の場合の注文ステータス
Blog 5月 31st, 2010Zen-Cart v1.3.0.2で
一般設定>クーポン券の設定>差引残高0の場合の注文ステータス
が反映されないというバグを発見しましたので、ご報告いたします。
修正方法は
includes\classes\order.php
550行目付近
[code]
if ($this->info[‘total’] == 0) {
if (DEFAULT_ZERO_BALANCE_ORDERS_STATUS_ID == 0) {
$this->info[‘order_status’] = DEFAULT_ORDERS_STATUS_ID;
} else {
$this->info[‘order_status’] = DEFAULT_ZERO_BALANCE_ORDERS_STATUS_ID;
}
}
[/code]
を
[code]
/*
// moved to function create
if ($this->info[‘total’] == 0) {
if (DEFAULT_ZERO_BALANCE_ORDERS_STATUS_ID == 0) {
$this->info[‘order_status’] = DEFAULT_ORDERS_STATUS_ID;
} else {
$this->info[‘order_status’] = DEFAULT_ZERO_BALANCE_ORDERS_STATUS_ID;
}
}
*/
[/code]
のようにコメントアウトし、そのあとのfunction createの頭
[code]
function create($zf_ot_modules, $zf_mode = 2) {
global $db;
[/code]
に以下を追加すればOKです。
[code]
function create($zf_ot_modules, $zf_mode = 2) {
global $db;
if ($this->info[‘total’] == 0) {
if (DEFAULT_ZERO_BALANCE_ORDERS_STATUS_ID == 0) {
$this->info[‘order_status’] = DEFAULT_ORDERS_STATUS_ID;
} else {
if ($_SESSION[‘payment’] != ‘freecharger’) {
$this->info[‘order_status’] = DEFAULT_ZERO_BALANCE_ORDERS_STATUS_ID;
}
}
}
[/code]
11月 16th, 2015 at 9:32:59
It’s strangely enough simple to use though the Trove Hack cheatengine is
wealthy with amazing attributes. The panel is clear and straightforward, and lets you enjoy with
the numbers with a few of mouse clicks. Since Trove Hack cheat engine makes altering the sport and does all-the job foryou a smooth approach, you do not need
any computer programming expertise. You could actually seize cheat documents from your machine for particular sources or
tasks should you not feel just like altering the records yourself.
You will be guided by the article through the procedure,
just how to get any cheat files that are extra,
and HOWTO use the engine. It’s userfriendly and you may have the ability to start owning the overall game totally very quickly.
11月 19th, 2015 at 6:18:27
Outra forma de criar um website de vendas é através de um CMS, ou seja, Sistema de Gerenciamento de
Conteúdo.
12月 1st, 2015 at 6:28:06
Doubtless, more games will be offered by potential revisions, just like in case of Our Speaking Mary.
12月 7th, 2015 at 5:25:43
Make sure that you take backups before you install
any new ROMs. As one of the biggest models of the 60s, Jill
Kennington talks about what it was like to be a part of the
swinging London scene and how today’s styles are inspired by the looks that she introduced to the world.
It had started being developed back in 2011 and now its second installment is scheduled for release the same month as “Fallout 4” in November.
12月 10th, 2015 at 6:55:28
So far we’ve brought you “Trixie”, “Twitch”, “Stretch”,
“Sparks,” “Mr. Ritiesh plays an intense crime journalist in Rann, a movie about the conscience of journalists and the business of media.
ll do next: to buy the movie, to rent it or to watch it online on that
site.
12月 20th, 2015 at 1:09:17
También me agrada tocar el piano, leer, danzar, oír música,
hacer deportes, y evidentemente, viajar!
1月 28th, 2016 at 4:18:31
Hello, constantly i used to check blog posts here in the early hours in the daylight, since
i love to gain knowledge of more and more.
2月 8th, 2016 at 1:48:09
Para se chegar na era atual do marketing and advertising de relacionamento, promoting veio
mudando e agregando novas características através dos tempos, passando
pela era da produção, era das vendas, era do promoting e culminando, nos
dias atuais, na era do advertising and marketing de relacionamento,
conforme detalhamento a seguir.
3月 7th, 2016 at 4:42:23
You will eat foods that are very good for you, benefit from nutrition, and not experience the complications that
can result from extreme calorie restrictions.
3月 8th, 2016 at 6:23:50
É incrivel, sou cliente Ford há anos, já tive Ford Mondeo
2000 CLX embora completado da Europa e manutenção rosto, não me deu problemas,
Ford Focus hatch GLX 1.6 gas 2004 sem comentários foi melhor sege que já tive e que cai na besteira de
troca-lo pelo novo Focus, e além do novo Focus, possuo um Ford Fiesta Class
hatch 1.0 Flex 2008 que é um supimpa carro.
3月 8th, 2016 at 13:57:52
The unboxing video now signs up with existing credit records that consist
of a hoverboard-caused house fire in Australia
and also a minimum of a dozen hoverboard fire investigations in the United States.
While most unboxing videos are all about celebrating enjoyable brand-new products, this certain program is all fired up with dissatisfaction.
3月 9th, 2016 at 12:03:59
Testemunho do Programa com Reconstrução desde Cabelo desde Roberto com Lucca – Programa Vencendo em direção
a Calva.
3月 13th, 2016 at 10:41:47
Sites mais utilizados pelos investidores e pelo Juliano
Fontes são Bolsa Esportiva Betfair e SportingBet Existem
muitos outrem sites também, porém se você distinguir porquê funciona esses dois já é suficiente!
3月 18th, 2016 at 15:04:04
De que maneira eu já diz acima, eu acredito que isso é Destreza Mais Saudável e também
Eficiente Com Controlar Diabetes Gênero de 2
(E também Pré-Diabetes) Em 30 Dias Ou Menos, Naturalmente E Sem Efeitos Colaterais.
3月 20th, 2016 at 21:17:30
His prequels did establish how these events played out, but have universally panned as failures.
But if you are a beginner, simply do your best to match
story elements to this structure. And yeah, yeah, I know that my quotes are a
little off, but I’m doing this from memory.
3月 29th, 2016 at 19:04:34
Curso Mamãe Sarada lhe ensina tudo que for necessário neste ramo de emagrecimento,
não importando se você é um iniciante que
não sabe nada ou se você já entende do mercado, pois ele te dá
as ferramentas necessárias para crescer dentro deste mercado e estratégias avançadas para obter sucesso em
seus negócios.
4月 7th, 2016 at 21:22:07
La Dirección General de Capacitación va a contar con tres
días hábiles para revisar que el centro de
trabajo haya efectuado las acciones antes descritas,
en el caso de cumplirse se procederá a brindarle
el servicio.
4月 24th, 2016 at 0:01:57
Essa 1 menstruação atras próprio espirito santo me alertou enquanto
caro rebento estiver assistindo, com inicio eu n entendi
mais mesmo assim eeu tirei.
5月 8th, 2016 at 21:56:07
Mientras que los servicios de telecomunicaciones se extendían por varios territorios dde México, en mil
novecientos ochenta y seiis Doon Alejandro Á. Guerrero realiza la adquisición de las compañías Cablemex,
TV Cable, Visión por Cable de México, Cable de Tuula y
Telecable de Chihuahua, en un estratégico movimiento comercial.
6月 6th, 2016 at 1:06:53
Convenient Tips: The BBB (Bbb) is a source made use of by many consumers
who wish to work with a trustworthy, dependable company which handles customer issues rather.
6月 6th, 2016 at 5:59:52
In this globe of Net trade, your JV business name need to be simple
to kind right into a LINK or in a Google search.
6月 8th, 2016 at 16:08:15
Hi, How are you. It is nice to see that we have the
very same enthusiasm. I’ve been reading things that is associated to technology considering
that 2008 and I really enjoy this career. Right now I’m gathering various sources of tech related news
which I can put together and share to everyone that have terrific interest with the most current patterns, devices,
devices, and innovation. If you believe you can likewise share some helpful insights or
concepts, just visit my website on the link that I have attached when you are complimentary and I will happily accept any of your recommendations or remarks.
Have fun and have a great day my friend.
6月 8th, 2016 at 17:33:35
Pretty nice post. I just stumbled upon your blog and wanted
to say that I have really loved surfing around your blog posts.
In any case Iwill be subscribing to your rss feed and I hope you write again very soon!
6月 22nd, 2016 at 19:25:26
It’s okay to click a wrong button or change your mind in the middle – you can easily undo.
However, after the cancellation of Porsche’s heavy tank the unit was delayed whilst waiting for Henschel Tigers to accompany its Panzer
IIIs, and instead was sent to the Eastern Front.
After a pilot completes 16 missions, each of which will give small faction boosts with the
Gallente as a whole, he will receive a storyline mission with
an agent from the Federation itself.
6月 23rd, 2016 at 5:29:28
Fórmula 47 funciona porque livramento faz apreender todo processo com emagrecimento, nada disso com vários matérias que estão disponíveis nas redes sociais que apenas mandam você executar e também pronto.
7月 4th, 2016 at 6:22:35
It’s been a while since I’ve found a blog site deserving to be called an expert blog site.
Once again I will visit your blog site much more
commonly and also hopefully you could additionally check my blog as well as let me understand exactly what much more
can I do to boost it.