Online Merchant v2.4 Joli

API Changelog

v2.4.2 (Beta)

Language Definitions
Admin
categories.txt text_products_gtin
currencies.txt text_info_set_as_default
main.txt email_type_html
email_type_plain
newsletters.txt error_newsletter_module_not_exists
orders.txt email_separator_html
email_text_order_number_html
email_text_invoice_url_html
email_text_date_ordered_html
email_text_status_update_html
email_text_comments_update_html

Legend: Added Deleted

Shop
create_account.txt email_greet_mr_html
email_greet_ms_html
email_greet_none_html
email_welcome_html
email_text_html
email_contact_html
email_warning_html
main.txt product_updated
password_forgotten.txt email_password_reset_body_html
shopping_cart.txt text_cart_button_update
text_cart_button_remove

Legend: Added Deleted

OSC\OM\Db
save($table, array $data, array $where_condition = null, array $options = null) $options parameter added:
['prefix_tables' => true]
delete($table, array $where_condition = [], array $options = null) $options parameter added:
['prefix_tables' => true]
Newsletter Modules

$content_html has been added as a parameter to the constructor of newsletter modules.

$content is used for plain text email content, and $content_html for html email content.

class newsletter
{
    public function __construct($title, $content, $content_html = null)
    {
        ...
    }
}
Apps Support for Shipping and Order Total Modules

Apps can now include shipping and order total modules.

OSC\OM\ErrorHandler

The custom error handler is now only activated if the OSC/Work/Logs directory is writable.

OSC\OM\Mail

The setBody($html) method is now setBody($text, $html = null). If no html version is passed in the $html parameter, a html version of $text is formed by parsing it through nl2br().

OSC\OM\OSCOM

The link() method now replaces backslash and curly brace characters with their appropiate url encoded code.

Database Schema
address_format address_format varchar 128 to 255
address_summary varchar 48 to 255
banners banners_title varchar 64 to 255
banners_image varchar 64 to 255
banners_group varchar 10 to 255
categories categories_image varchar 64 to 255
categories_description categories_name varchar 32 to 255
categories_seo_keywords varchar 128 to 255
categories_seo_title varchar 128 to 255
configuration_group configuration_group_title varchar 64 to 255
currencies title varchar 32 to 255
geo_zones geo_zone_name varchar 32 to 255
languages name varchar 32 to 255
directory varchar 32 to 255
manufacturers manufacturers_name varchar 32 to 255
manufacturers_image varchar 64 to 255
manufacturers_info manufacturers_seo_keywords varchar 128 to 255
manufacturers_seo_title varchar 128 to 255
newsletters added content_html text not_null
orders_products products_model varchar 64 to 255
products_name varchar 64 to 255
products_attributes products_options varchar 32 to 255
products_options_values varchar 32 to 255
orders_status orders_status_name varchar 32 to 255
orders_total class varchar 32 to 255
products products_model varchar 64 to 255
products_image varchar 64 to 255
added products_gtin char(14)
products_description products_name varchar 64 to 255
products_seo_keywords varchar 128 to 255
products_seo_title varchar 128 to 255
products_images image varchar 64 to 255
products_options products_options_name varchar 32 to 255
products_options_values products_options_values_name varchar 64 to 255
sessions sesskey varchar 128 to 255
tax_class tax_class_title varchar 32 to 255
whos_online session_id varchar 128 to 255
zones zone_code varchar 32 to 255