i upgraded my site a while back but have had no reported problems from customers howeve i have recently had to check my checkout procedure on my website as a customer reported strange writing after pressing confirm order and the payment was being processed, i activated a test product at 1p and checkout when i do checkout i get the attached screenshot.
the order.php file shows this part to be responsible...
Code:
// for low stock email
if ( $stock_left <= STOCK_REORDER_LEVEL ) {
// WebMakers.com Added: add to low stock email
$this->email_low_stock .= 'ID# ' . zen_get_prid($this->products[$i]['id']) . ', ' . $this->products[$i]['model'] . ', ' . $this->products[$i]['name'] . ', ' . 'Stock: ' . $stock_left . "\n\n";
// kuroi: trigger and details for attribute low stock email
} elseif ($attribute_stock_left <= STOCK_REORDER_LEVEL) {
$this->email_low_stock .= 'ID# ' . zen_get_prid($this->products[$i]['id']) . ', ' . $this->products[$i]['model'] . ', ' . $this->products[$i]['name'] . ', ';
foreach($this->products[$i]['attributes'] as $attributes){
$this->email_low_stock .= $attributes['option'] . ': ' . $attributes['value'] . ', ';
}
$this->email_low_stock .= 'Stock: ' . $attribute_stock_left . "\n\n";
}
cananyone help me im a noob at coding and the company who does the card processing wont help as it appears to be "the templates fault" card payments process fine and the order goes through btw the screenshot is what happens instead of redirecting to the checkout successful page obviously this doesnt look good for the customers who do choose to place an order
Bookmarks