Forums / General Questions / "one time charge" in the confirmation email

"one time charge" in the confirmation email

Locked

Views: 2,029

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
14 Aug 2009, 4:25 PM
#1
rastabloke avatar

rastabloke

New Zenner

Join Date:
Dec 2008
Posts:
45
Plugin Contributions:
0

"one time charge" in the confirmation email

I know what your thinking... this has been answered!

For the product page, the current fix works, but it does not remove it from the confirmation email.

As far as I can tell, I need to edit this in the /includes/classes/order.php file

Line #870 : ($this->products[$i]['onetime_charges'] !=0 ? "\n" . TEXT_ONETIME_CHARGES_EMAIL . $currencies->display_price($this->products[$i]['onetime_charges'], $this->products[$i]['tax'], 1) : '') .

Line #880 : '</td></tr>' . "\n" . '<tr><td class="product-details">' . nl2br(TEXT_ONETIME_CHARGES_EMAIL) . '</td>' . "\n" .

I can go into the english.php file and make it so (TEXT_ONETIME_CHARGES_EMAIL) equals "", but it still show the one time dollar amount.

Any suggestions?

18 Aug 2009, 7:25 PM
#2
rastabloke avatar

rastabloke

New Zenner

Join Date:
Dec 2008
Posts:
45
Plugin Contributions:
0

Re: "one time charge" in the confirmation email

Anyone?.. this seems like it would be a pretty simple fix:unsure:

19 Aug 2009, 4:43 PM
#3
rastabloke avatar

rastabloke

New Zenner

Join Date:
Dec 2008
Posts:
45
Plugin Contributions:
0

Re: "one time charge" in the confirmation email

**Tried posting this elsewhere, but nobody has even looked at it in a week.:yuck:
**
I know what your thinking... this has been answered.. It has for the product page, but not for the confirmation email.

For the product page, the current fix works, but it does not remove it from the confirmation email.

As far as I can tell, I need to edit this in the /includes/classes/order.php file

Line #870 : ($this->products[$i]['onetime_charges'] !=0 ? "\n" . TEXT_ONETIME_CHARGES_EMAIL . $currencies->display_price($this->products[$i]['onetime_charges'], $this->products[$i]['tax'], 1) : '') .

Line #880 : '</td></tr>' . "\n" . '<tr><td class="product-details">' . nl2br(TEXT_ONETIME_CHARGES_EMAIL) . '</td>' . "\n" .

I can go into the english.php file and make it so (TEXT_ONETIME_CHARGES_EMAIL) equals "", but it still show the one time dollar amount.

Any suggestions?

19 Aug 2009, 6:31 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: "one time charge" in the confirmation email

You've already identified the part of the code to change.
What happened when you changed it?

Your duplicate posts have been merged. *

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

19 Aug 2009, 7:00 PM
#5
rastabloke avatar

rastabloke

New Zenner

Join Date:
Dec 2008
Posts:
45
Plugin Contributions:
0

Re: "one time charge" in the confirmation email

Thank you for replying, this is the last little hurdle before we launch the cart:)

I was fairly certain that this was the code to edit, I just don't know which part to change to what.

In my experience with shopping carts, its best not to go in and start pulling apart the code without a clue:flex:

19 Aug 2009, 8:18 PM
#6
rastabloke avatar

rastabloke

New Zenner

Join Date:
Dec 2008
Posts:
45
Plugin Contributions:
0

Re: "one time charge" in the confirmation email

If I wasn't clear, I don't know which part of the code to edit:lamo:

Your help is VERY APPRECIATED!

19 Aug 2009, 8:45 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: "one time charge" in the confirmation email

I'm having a hard time understanding why you're not disclosing to your customer where certain charges are coming from?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 Aug 2009, 12:16 PM
#8
rastabloke avatar

rastabloke

New Zenner

Join Date:
Dec 2008
Posts:
45
Plugin Contributions:
0

Re: "one time charge" in the confirmation email

Thank you for the reply. ** In the confirmation email, the attribute name says "-one time charge $25", and it says the "one time charges may apply" on top.
**
My boss feels that this is redundant,
and wants it removed.

I'm getting better at working with Zen Cart, and I really do think it is the best cart out there... but I still don't feel completely comfortable changing code without a little direction. I've searched up and down, this question does not seem to be answered.

This is one of the last little things I need to complete in the cart configuration. Needless to say, I'm about ready to just start dissecting that bit of code and see what happens. :cry:

20 Aug 2009, 5:14 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: "one time charge" in the confirmation email

Remove these lines:```
($this->products[$i]['onetime_charges'] !=0 ? "\n" . TEXT_ONETIME_CHARGES_EMAIL . $currencies->display_price($this->products[$i]['onetime_charges'], $this->products[$i]['tax'], 1) : '') .

and
  ($this->products[$i]['onetime_charges'] !=0 ?
  '</td></tr>' . "\n" . '<tr><td class="product-details">' . nl2br(TEXT_ONETIME_CHARGES_EMAIL) . '</td>' . "\n" .
  '<td>' . $currencies->display_price($this->products[$i]['onetime_charges'], $this->products[$i]['tax'], 1) : '') .

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 Aug 2009, 5:16 PM
#10
rastabloke avatar

rastabloke

New Zenner

Join Date:
Dec 2008
Posts:
45
Plugin Contributions:
0

Re: "one time charge" in the confirmation email

Thank you:clap:

17 Oct 2009, 9:16 PM
#11
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: "one time charge" in the confirmation email

One time charges are very misleading to POTENTIAL buyers. Many places like sams club etc have a one time charge when you sign up. I can see how a customer who only gets the warning without an explanation could leave the site quickly rather than have to pay for some initiation fee. We definetly need a switch here to allow us to turn it on or off.

In my case, a flat rush fee is listed as an attribute for a service I perform. However I dont want to charge them the flat fee for each item in the cart in the event they order more than one. So I have it as a one time charge. They really dont need to read a huge ALARM at the top of the page that more or less says "danger will robertson".

It would be more accurate to say "You may be eligible for a one time discount".

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!