Re: urgent hel needed in checkout
Quote:
Originally Posted by
directpc
for the first error, here is the contents around line 123
line 121 </td>
line 122 </tr>
123 <?php
124 } // end foreach ($productArray as $product)
125 ?>
126 <!-- Finished loop through all products /-->
Okay ... did you get that directly from the file on the server, or a copy of the file that's already on your PC?
Re: urgent hel needed in checkout
latest version, my hosting company went down the other day, saying something on security on their servers, i have addons, do you mean like google checkout etc, i stopped the google checkout ages ago though as this was causing problems. I have a few payment addons, paypal, nocheq, then just some feeders for google, yahoo etc
Quote:
Originally Posted by
DrByte
Also,
- what version of Zen Cart?
- when did these problems "start"? Have you or your hosting company been changing anything lately?
- what addons are installed on your site?
Re: urgent hel needed in checkout
got from server, then saved on pc and added line numbers
Quote:
Originally Posted by
DrByte
Okay ... did you get that directly from the file on the server, or a copy of the file that's already on your PC?
Re: urgent hel needed in checkout
Quote:
Originally Posted by
directpc
sorry line 115 to 130
<?php
}
if ($product['checkBoxDelete'] ) {
echo zen_draw_checkbox_field('cart_delete[]', $product['id']);
}
?>
</td>
</tr>
<?php
} // end foreach ($productArray as $product)
?>
<!-- Finished loop through all products /-->
</table>
<div id="cartSubTotal"><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $cartShowTotal; ?></div>
<br class="clearBoth" />
That looks like it comes from the shopping-cart page, not the checkout-payment page (which the error message mentioned).
Re: urgent hel needed in checkout
sorry your right, im making this even harder! lol
here is the proper one
Code:
<?php
foreach($payment_modules->modules as $pm_code => $pm) {
if(substr($pm, 0, strrpos($pm, '.')) == 'googlecheckout') {
unset($payment_modules->modules[$pm_code]);
}
}
line 123 <?php
foreach($payment_modules->modules as $pm_code => $pm) {
if(substr($pm, 0, strrpos($pm, '.')) == 'googlecheckout') {
unset($payment_modules->modules[$pm_code]);
}
}
$selection = $payment_modules->selection();
if (sizeof($selection) > 1) {
Re: urgent hel needed in checkout
Quote:
Originally Posted by
directpc
my hosting company went down the other day
So, what has happened to your site?
Is it still on the same server? Did it get moved to another server?
Did they do a restore from backup of some sort?
Do *you* have backups on your PC, taken regularly from what's been on your server?
Re: urgent hel needed in checkout
uhm google checkout????
Quote:
Originally Posted by
directpc
sorry your right, im making this even harder! lol
here is the proper one
<?php
foreach($payment_modules->modules as $pm_code => $pm) {
if(substr($pm, 0, strrpos($pm, '.')) == 'googlecheckout') {
unset($payment_modules->modules[$pm_code]);
}
}
line 123 <?php
foreach($payment_modules->modules as $pm_code => $pm) {
if(substr($pm, 0, strrpos($pm, '.')) == 'googlecheckout') {
unset($payment_modules->modules[$pm_code]);
}
}
$selection = $payment_modules->selection();
if (sizeof($selection) > 1) {
Re: urgent hel needed in checkout
Quote:
Originally Posted by
directpc
Code:
<?php
foreach($payment_modules->modules as $pm_code => $pm) {
if(substr($pm, 0, strrpos($pm, '.')) == 'googlecheckout') {
unset($payment_modules->modules[$pm_code]);
}
}
line 123 <?php
foreach($payment_modules->modules as $pm_code => $pm) {
if(substr($pm, 0, strrpos($pm, '.')) == 'googlecheckout') {
unset($payment_modules->modules[$pm_code]);
}
}
$selection = $payment_modules->selection();
if (sizeof($selection) > 1) {
Notice how you've got code repeated before line 123?
You should remove that repeated code.
Re: urgent hel needed in checkout
Quote:
Originally Posted by
directpc
uhm google checkout????
Yes, the problem is definitely in part of google checkout code in your template file.
Re: urgent hel needed in checkout
Im on the same server, they say there new securirty shut the system down when somebody tried to hack, but it looks like everything is the same according to them. I have tried uploading the backups that i have and they have the same effect, so many this has been going on longer than i though, and i have this feeling its google checkout
Quote:
Originally Posted by
DrByte
So, what has happened to your site?
Is it still on the same server? Did it get moved to another server?
Did they do a restore from backup of some sort?
Do *you* have backups on your PC, taken regularly from what's been on your server?