Notice: Undefined index: subtract in /~~~~/~~~~/public_html/Opencart/catalog/model/checkout/order.php on line 75
I searched and found someone mentioning that missing 'subtract' field in product page is causing problem. But I actually do have 'subtract' field when I checked 'product' through phpmyadmin.
I looked through order.php file to see if there is any typos but I couldn't find any.
BTW, line 75 on order.php looks like this if it helps..
$this->db->query("INSERT INTO " . DB_PREFIX . "order_product SET order_id = '" . (int)$order_id . "', product_id = '" . (int)$product['product_id'] . "', name = '" . $this->db->escape($product['name']) . "', model = '" . $this->db->escape($product['model']) . "', price = '" . (float)$product['price'] . "', total = '" . (float)$product['total'] . "', tax = '" . (float)$product['tax'] . "', quantity = '" . (int)$product['quantity'] . "', subtract = '" . (int)$product['subtract'] . "'");
Example: http://demo.opencart.com/index.php?rout ... ry&path=24eka7a wrote:Price Low -> High and Price High -> Low
Sorting on pages is not working
AND
http://www.site.com/index.php?route=che ... s/shipping
This error occurs when the checkout address is left blank.
Code: Select all
Notice: Undefined index: firstname in C:\wamp\www\opencart-tr_v148b_tam_surum\catalog\controller\checkout\address.php on line 307Notice: Undefined index: lastname in C:\wamp\www\opencart-tr_v148b_tam_surum\catalog\controller\checkout\address.php on line 311Notice: Undefined index: address_1 in C:\wamp\www\opencart-tr_v148b_tam_surum\catalog\controller\checkout\address.php on line 315Notice: Undefined index: city in C:\wamp\www\opencart-tr_v148b_tam_surum\catalog\controller\checkout\address.php on line 319Notice: Undefined index: country_id in C:\wamp\www\opencart-tr_v148b_tam_surum\catalog\controller\checkout\address.php on line 323Notice: Undefined index: zone_id in C:\wamp\www\opencart-tr_v148b_tam_surum\catalog\controller\checkout\address.php on line 327
Sorry, forgot to include I did install patch..Qphoria wrote:Did you get the 1.4.8b version/patch? that was fixed in 1.4.8b
I'll go back and reapply patch and see if that fixes it
Update:
Reapplying patch fixed that bug

somehow that bug survived my brutal update procedure!

Thanks for quick reply!
No, have a closer look at that pageicareless wrote:Add comment and click "save" order in edit order / admin page. Detail of product option gone.
Is it a bug?

Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.

2010-06-25 18:14:46 - PHP Notice: Undefined variable: subtotal in /home/xxxxxxxxxxxxxxxxxxxx/shop/catalog/view/theme/csc_standard/template/module/cart.tpl on line 19.
I know my way around a little so I could probably fix it if pointed in the right direction. Anybody?

Opencart 1.4.9.1
Global Options Mod
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter

Opencart 1.4.9.1
Global Options Mod
Write it and I make it stickyJAY6390 wrote:This subtotal bug seems to be coming up a lot. Perhaps a sticky in the template/bug forums would be a good idea?

Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Code: Select all
<div style="text-align: right;"><?php echo $text_subtotal; ?> <?php echo $subtotal; ?></div>
Code: Select all
<table cellpadding="0" cellspacing="0" align="right" style="display:inline-block;">
<?php foreach ($totals as $total) { ?>
<tr>
<td align="right"><span class="cart_module_total"><b><?php echo $total['title']; ?></b></span></td>
<td align="right"><span class="cart_module_total"><?php echo $total['text']; ?></span></td>
</tr>
<?php } ?>
</table>
<div style="padding-top:5px;text-align:center;clear:both;"><a href="<?php echo $view; ?>"><?php echo $text_view; ?></a> | <a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a></div>
this does not work for me. after update product.php I got empty white website. check my product.php in attachment and my http://www.musiclandia.sk with resultOSWorX wrote:In ../catalog/model/catalog/product.php:i2Paq wrote:I agreed, does not work on my store either.akarikuu wrote:Hello,
Sort by price seems not to work (in my shop 1.4.8b and also in demo.opencart.com)
It seems not even order by price considering it a string instead of a number?!
I found this topic: http://forum.opencart.com/viewtopic.php?f=31&t=13002 but i did not help me.
Is this a Bug?
FIND ALL SECTIONS LIKE THIS:Code: Select all
$sort_data = array( 'pd.name', 'p.sort_order', 'special', 'rating' );
Change them to be:Now sorting after price works.Code: Select all
$sort_data = array( 'pd.name', 'p.sort_order', 'special', 'rating', 'p.price' );
Should be about 5-6 places
Attachments
my product.php, please just rename zip to php, do not extract
1. DO NOT COPY ALL FILES TO MAKE A NEW TEMPLATE. USE THE TEMPLATE OVERRIDE.
IF THE TEMPLATE DOES NOT PROPERLY USE THE OVERRIDE SYSTEM, THEN TELL YOUR TEMPLATE MAKER TO TAKE A HIKE
After fixing this price bug the compatibility is missing because I have changed official 1.4.8b for something else.
I do not know what you are talking about because I am total beginner here but what I know is that I have one template and one opencart installation working together only with opencart's bug

I set Invoice Prefix to "2010106" and Invoice Start No to 001 and I expected to have invoice numbers 2010106001, 2010106002, 2010106003.... but I get 20101061, 20101062, 20101063 - there are not zeroes I think this is not right
Users browsing this forum: No registered users and 9 guests