
Originally Posted by
Ajeh
Do you need this in the database table orders_products field products_name or do you need this in the email of the order or where precisely ...
In fact, everywhere, and I figured out
After heavy brainstorming
here is the answer:
in includes/classes/orders.php
line 155, I replaced:
Code:
$index = 0;
$orders_products_query = "select orders_products_id, products_id, products_name,
products_model, products_price, products_tax,
products_quantity, final_price,
onetime_charges,
products_priced_by_attribute, product_is_free, products_discount_type,
products_discount_type_from
from " . TABLE_ORDERS_PRODUCTS . "
where orders_id = '" . (int)$order_id . "'";
by
Code:
$orders_products_query = "select op.orders_products_id, op.products_id, op.products_name,
op.products_model, op.products_price, op.products_tax,
op.products_quantity, op.final_price,
op.onetime_charges,
op.products_priced_by_attribute, op.product_is_free, op.products_discount_type,
op.products_discount_type_from, pd.products_description
from " . TABLE_ORDERS_PRODUCTS . " op left join " .TABLE_PRODUCTS_DESCRIPTION . " on (op.products_id = pd.products.id)
where orders_id = '" . (int)$order_id . "'";
line 190, I replaced
Code:
'name' => $orders_products->fields['products_name'],
by
Code:
'name' => $orders_products->fields['products_name'] . " (". $orders_products->fields['products_description'] .")",
line 422, I replaced
Code:
'name' => $products[$i]['name'],
by
Code:
'name' => $products[$i]['name']. " (". $products[$i]['description'] .")",
and there we go:
http://www.thefrenchybee.com/bulk/
I think I will leave Excel alone :-)
Bookmarks