fulluvscents, on 10 February 2012 - 02:23 PM, said:
@varina
Here are your updated instructions. If they work, let me know and I'll add it as a compatibility feature.
2- Open catalog/checkout_confirmation.php
Find:
-----
require('includes/application_top.php');
Add after:
----------
$_SESSION['FixOrder'] = "";
Find: (Put the entire sentence because there are two equal sentences, the last)
-----
for ($i=0, $n=sizeof($products); $i<$n; $i++)
{
Add after:
----------
$_SESSION['FixOrder'] = $_SESSION['FixOrder'] . $products[$i]['name'] . " x " . $products[$i]['qty'] . " ";
Find:
-----
if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes']))
while (list($option, $value) = each($products[$i]['attributes']))
{
echo tep_draw_hidden_field('attr[' . $products[$i]['id'] . '][' . $option . ']', $value);
$attributes = tep_db_query("select popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VALUES . " poval, " . TABLE_PRODUCTS_ATTRIBUTES . " pa where pa.products_id = '" . (int)$products[$i]['id'] . "' and pa.options_id = '" . (int)$option . "' and pa.options_id = popt.products_options_id and pa.options_values_id = '" . (int)$value . "' and pa.options_values_id = poval.products_options_values_id and popt.language_id = '" . (int)$languages_id . "' and poval.language_id = '" . (int)$languages_id . "'");
$attributes_values = tep_db_fetch_array($attributes);
$productAttributes .= '<br /><small><i> - ' . $attributes_values['products_options_name'] . ' ' . $attributes_values['products_options_values_name'] . '</i></small>';
}
Replace with this:
------------------
if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes']))
while (list($option, $value) = each($products[$i]['attributes']))
{
echo tep_draw_hidden_field('attr[' . $products[$i]['id'] . '][' . $option . ']', $value);
$attributes = tep_db_query("select popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VALUES . " poval, " . TABLE_PRODUCTS_ATTRIBUTES . " pa where pa.products_id = '" . (int)$products[$i]['id'] . "' and pa.options_id = '" . (int)$option . "' and pa.options_id = popt.products_options_id and pa.options_values_id = '" . (int)$value . "' and pa.options_values_id = poval.products_options_values_id and popt.language_id = '" . (int)$languages_id . "' and poval.language_id = '" . (int)$languages_id . "'");
$attributes_values = tep_db_fetch_array($attributes);
$productAttributes .= '<br /><small><i> - ' . $attributes_values['products_options_name'] . ' ' . $attributes_values['products_options_values_name'] . '</i></small>';
$_SESSION['FixOrder'] = $_SESSION['FixOrder'] . "(". $attributes_values['products_options_name'] . ': ' . $attributes_values['products_options_values_name'] .")";
}
$_SESSION['FixOrder'] = $_SESSION['FixOrder'] ." | ";
Edited to change code for Varina.
Thanks for converting this for me. Unfortunately it didn't do what it was supposed to. I got a input text box instead of my item name. Without any coding in checkout.php I got the same thing yesterday. So it looked all pretty but didn't do anything.
I double checked the add on's coding in 3 page checkout, and while it kind of worked, it didn't quite give me what I wanted with more than one item in the cart.
I need to abandon that add on and find a better one. Grr...
It is so annoying that they changed the Paypal checkout from v 2.2. I really liked the itemized descriptions...now I have to try and find something else that will work.
fulluvscents, on 10 February 2012 - 04:42 PM, said:
I also uploaded a fix to the breadcrumb issue.
AAAAAAAAAAAAAAAAAHHHHHHHHHHHHHHHHHHHHHHHHH!!
I do believe this thing is bug free. Now, THAT is refreshing.
if I missed anything, then please let me know / remind me.
@varina & @oxwivi Tell me how those last compatibility instructions work for you. When I have working instructions for merging other contributions, I'll get them uploaded and cross referenced with the other contribs.
Yay on the breadcrumbs. I downloaded your newest version and things look great.
Two little things I would like to modify...
The hang time on the error boxes - how do I make it longer? (a lot of our customers are old and slow...and the box disappears kind of quick...)
A space below (between) the products. I am a little OCD too, and those darn touching images really bother me, and I've tried a bunch of different ways to add a space, and can't find the right way to do it.
Thanks.
-V









