
Originally Posted by
wakeleymb
Okay, the first thing I've noticed is that the collect_info.php is slightly larger than the collect_info.pho_ozpRestore.
This implies that the file has the additional code needed for ozpost to function.
Would I be wrong in assuming pre-existing dimensions are being correctly displayed if the product is edited?
When resaving this product, do the dimensions then revert to zero, or do the pre-exiting dimensions get retained.
The collect_info.php file is the one that reads the database for existing dimensions and displays them on the edit screen.
The update_product.php file is responsible for taking what is on the edit screen and writing them back to the database.
Depending on what is going on will determine which of these files is at fault.

Originally Posted by
wakeleymb
Cache OzPost does not exist.
That's good (I think). This should only exist if the installation code detects that there was a problem copying the modified files to their intended locations.

Originally Posted by
wakeleymb
English.php_ozpRestore exists
The mystery deepens, as it seems that in your case the installer has successfully created its backup files.
"Catching Angels" is apparently missing the update_product.php_ozpRestore file.

Originally Posted by
wakeleymb
I've tried renaming the restore files, uninstalling and reinstalling but it doesn't work.
Time to get your hands dirty. :)
Could you please check the update_product.php file (not the backup) and let me know if the following lines of code exist?
Code:
$tmp_value = zen_db_prepare_input($_POST['products_height']);
$products_height = (!zen_not_null($tmp_value) || $tmp_value=='' || $tmp_value == 0) ? 0 : $tmp_value;
$tmp_value = zen_db_prepare_input($_POST['products_width']);
$products_width = (!zen_not_null($tmp_value) || $tmp_value=='' || $tmp_value == 0) ? 0 : $tmp_value;
$tmp_value = zen_db_prepare_input($_POST['products_length']);
$products_length = (!zen_not_null($tmp_value) || $tmp_value=='' || $tmp_value == 0) ? 0 : $tmp_value;
$dangerous_goods = (($_POST['dangerous_goods']) == 1) ? 1:0 ;
Code:
'products_weight' => $products_weight,
'products_height' => $products_height,
'products_width' => $products_width,
'products_length' => $products_length,
'dangerous_goods' => $dangerous_goods,
And that the collect_info.php file contains
Code:
'products_weight' => '',
'products_height' => '',
'products_width' => '',
'products_length' => '',
'dangerous_goods' => '',
If they don't, then the ozpost installer has failed to patch them for some reason. If this is the case, and you are feeling adventurous then adding these lines yourself will probably take care of the problem.
The weight related lines won't need to be added as they are already a part of the files. I've included them above as a guide as to where these new lines should/need to be inserted.
There are *other* lines in the collect_info.php files that may/will also need to be added, but they are a little messy to deal with, and from the sounds of things these aren't missing from your installation (If they were, the dimension fields wouldn't be showing up at all when editing a product).
I would also be interested in knowing if the Dangerous Goods checkbox appears on your edit screen (just below the dimension fields) as this will tell me if these 'other lines' exist due to the previous install, or whether they've been added by the upgrade.
Just as a FYI, the code that does these updates is/was a little tricky, in that with some installs all four fields need to be added (length, width, height & Dangerous Goods), but with other installations only the Dangerous goods needed to be added because the dimensions exist from a previous install.
If you find doing any of this troublesome, or if you would simply prefer to not go this route I will be more than happy to take a first hand look at it and rectify the problem for you. If so, please go to
http://shop.vcsweb.com/index.php?mai...roducts_id=219 and fill in the order details. Select Cheque or money order as your payment method, but DO NOT PAY. I consider this to be my problem to solve so it will be a freebie.
This offer is also open to John@Catching Angels too. I really need to get to the bottom of this ASAP.
Cheers
RodG
Bookmarks