Zen Cart Logo
Forums / General Questions / payment email question

payment email question

Views: 781

Results 1 to 10 of 10
22 Aug 2011, 3:53 PM
#1
hootienchyna avatar

hootienchyna

New Zenner

Join Date:
Sep 2009
Posts:
70
Plugin Contributions:
0

payment email question

On my payment received emails i am seeing this in the payment details section when a customer uses a discount code.
is this normal

Description:MODULES_PAYMENT_PAYPALWPP_LINEITEM_TEXT_DISCOUNTS_SHORT,

22 Aug 2011, 5:25 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: payment email question

No

Seeing a constant- which is what your are seeing usually means that there is a mis-edit of that define for that constant

Used the dev tool kit in the admin > tools- to locate the file

22 Aug 2011, 5:55 PM
#3
hootienchyna avatar

hootienchyna

New Zenner

Join Date:
Sep 2009
Posts:
70
Plugin Contributions:
0

Re: payment email question

no matter what i do in there i cant find the file

23 Aug 2011, 2:51 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: payment email question

no matter what i do in there i cant find the file

Look at
/includes/languages/english/modules/payment/paypalwpp.php

define('MODULES_PAYMENT_PAYPALWPP_LINEITEM_TEXT_DISCOUNTS_SHORT', 'Discounts'); 
25 Aug 2011, 6:54 PM
#5
hootienchyna avatar

hootienchyna

New Zenner

Join Date:
Sep 2009
Posts:
70
Plugin Contributions:
0

Re: payment email question

i did not see define all i found was that line here

// add line items for discounts such as gift certificates and coupons
if ($creditsApplied > 0) {
$numberOfLineItemsProcessed++;
$k = $numberOfLineItemsProcessed;
$optionsLI["L_NAME$k"] = MODULES_PAYMENT_PAYPALWPP_LINEITEM_TEXT_DISCOUNTS_SHORT;
$optionsLI["L_DESC$k"] = MODULES_PAYMENT_PAYPALWPP_LINEITEM_TEXT_DISCOUNTS_LONG;
$optionsLI["L_AMT$k"] = (-1 * $creditsApplied);
$optionsLI["L_QTY$k"] = 1;
$subTotalLI -= $creditsApplied;

25 Aug 2011, 7:02 PM
#6
hootienchyna avatar

hootienchyna

New Zenner

Join Date:
Sep 2009
Posts:
70
Plugin Contributions:
0

Re: payment email question

disregard this was looking in wrong spot

hootienchyna:

i did not see define all i found was that line here

// add line items for discounts such as gift certificates and coupons
if ($creditsApplied > 0) {
$numberOfLineItemsProcessed++;
$k = $numberOfLineItemsProcessed;
$optionsLI["L_NAME$k"] = MODULES_PAYMENT_PAYPALWPP_LINEITEM_TEXT_DISCOUNTS_SHORT;
$optionsLI["L_DESC$k"] = MODULES_PAYMENT_PAYPALWPP_LINEITEM_TEXT_DISCOUNTS_LONG;
$optionsLI["L_AMT$k"] = (-1 * $creditsApplied);
$optionsLI["L_QTY$k"] = 1;
$subTotalLI -= $creditsApplied;

25 Aug 2011, 7:07 PM
#7
hootienchyna avatar

hootienchyna

New Zenner

Join Date:
Sep 2009
Posts:
70
Plugin Contributions:
0

Re: payment email question

kobra:

Look at
/includes/languages/english/modules/payment/paypalwpp.php

define('MODULES_PAYMENT_PAYPALWPP_LINEITEM_TEXT_DISCOUNTS_SHORT', 'Discounts');



Ok i looked in the section you suggested and it has a lot of defines listed but the one i need i guess.

now what do i do
25 Aug 2011, 10:35 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: payment email question

The define line I posted is directly from the file specified

26 Aug 2011, 3:43 PM
#9
hootienchyna avatar

hootienchyna

New Zenner

Join Date:
Sep 2009
Posts:
70
Plugin Contributions:
0

Re: payment email question

kobra:

The define line I posted is directly from the file specified

can i just add that line to the file ? if so where is the proper spot for it to go

26 Aug 2011, 8:39 PM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: payment email question

can i just add that line to the file ?
If it is not there, you have a bad file as one should not need to add it

Post your install particulars...