Quantcast
Channel: Phoca Forum
Viewing all articles
Browse latest Browse all 2041

Phoca Cart • Re: Placeholder in infoscreen

$
0
0
I did it now in a very simple way.
Created an override of view->info->default.php

NEar the the call of the paymentInfo

Code:

$paymentDescription = PhocacartPayment::getInfoDescriptionById((int)$this->t['infodata']['payment_id']);
I added the following lines

Code:

$order = new PhocacartOrderView();$common= $order->getItemCommon($this->t['infodata']['order_id']);$orderNumber= PhocacartOrder::getOrderNumber($this->t['infodata']['order_id'], $common->date, $common->order_number);$bas= $order->getItemBaS($this->t['infodata']['order_id'], 1);//$totalBrutto= $order->getItemTotal($orderId, 0, 'brutto');$r = PhocacartText::prepareReplaceText($order, $this->t['infodata']['order_id'], $common, $bas);$paymentDescription = PhocacartText::completeText($paymentDescription,$r);
After that lines the original code continues

Code:

if ($paymentDescription != '') {        echo '<div class="ph-info-payment-description">'.HTMLHelper::_('content.prepare', $paymentDescription).'</div>';    }
Now you can use every placeholder like in the email contents.
For me it was very important to show some paymentinformations,
because sometimes my infomails got filtered by the SPAM-System and my customers don't always know where to find the SPAM-Folder :wink:
Maybe this helps somebody else, or maybe it find its way into the core files.

I followed your instructions but could not reproduce result

Image

Statistics: Posted by Nidzo — 16 May 2024, 18:24



Viewing all articles
Browse latest Browse all 2041

Trending Articles