| Current Path : /proc/thread-self/root/proc/thread-self/root/proc/1908984/root/proc/1147586/cwd/ |
| Current File : //proc/thread-self/root/proc/thread-self/root/proc/1908984/root/proc/1147586/cwd/install.tar |
asanpardakht.payzito 0000644 00000000056 15234447560 0010641 0 ustar 00 1402/12/26 23:20:43 - Installed 1.1.0 version. behpardakht.payzito 0000644 00000000056 15234447560 0010455 0 ustar 00 1402/12/26 23:19:58 - Installed 1.1.0 version. index.html 0000644 00000000000 15234447560 0006541 0 ustar 00 parsian.payzito 0000644 00000000056 15234447560 0007635 0 ustar 00 1402/12/26 23:20:36 - Installed 1.1.0 version. pasargad.payzito 0000644 00000000056 15234447560 0007762 0 ustar 00 1402/12/26 23:20:30 - Installed 1.1.3 version. payzito.payzito 0000644 00000000057 15234447560 0007700 0 ustar 00 1402/12/26 23:20:53 - Updated to 2.2.8 version. sadad.payzito 0000644 00000000056 15234447560 0007254 0 ustar 00 1402/12/26 23:20:24 - Installed 1.1.1 version. samankish.payzito 0000644 00000000056 15234447560 0010156 0 ustar 00 1402/12/26 23:20:13 - Installed 1.1.2 version. virtuemart.payzito 0000644 00000000056 15234447560 0010402 0 ustar 00 1402/12/26 23:20:49 - Installed 1.2.1 version. zarinpal.payzito 0000644 00000000056 15234447560 0010020 0 ustar 00 1402/12/26 23:19:52 - Installed 1.1.7 version. install.sql 0000644 00000164272 15234761600 0006753 0 ustar 00 -- VirtueMart table SQL script
-- This will install all the tables need to run VirtueMart
--
-- Table structure for table `#__virtuemart_adminmenuentries`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_adminmenuentries` (
`id` tinyint(1) unsigned NOT NULL AUTO_INCREMENT,
`module_id` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT 'The ID of the VM Module, this Item is assigned to',
`parent_id` tinyint(1) unsigned NOT NULL DEFAULT '0',
`name` char(64) NOT NULL DEFAULT '0',
`link` char(64) NOT NULL DEFAULT '0',
`depends` char(64) NOT NULL DEFAULT '' COMMENT 'Names of the Parameters, this Item depends on',
`icon_class` char(96),
`uikit_icon` char(96),
`ordering` int(1) NOT NULL DEFAULT '0',
`published` tinyint(1) NOT NULL DEFAULT '1',
`tooltip` char(128),
`view` char(32),
`task` char(32),
PRIMARY KEY (`id`),
KEY `module_id` (`module_id`),
KEY `published` (`published`),
KEY `ordering` (`ordering`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='Administration Menu Items' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_calcs`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_calcs` (
`virtuemart_calc_id` int(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_vendor_id` int(1) UNSIGNED NOT NULL DEFAULT '1' COMMENT 'Belongs to vendor',
`calc_jplugin_id` int(1) NOT NULL DEFAULT '0',
`calc_name` varchar(64) NOT NULL DEFAULT '' COMMENT 'Name of the rule',
`calc_descr` varchar(128) NOT NULL DEFAULT '' COMMENT 'Description',
`calc_kind` varchar(16) NOT NULL DEFAULT '' COMMENT 'Discount/Tax/Margin/Commission',
`calc_value_mathop` varchar(8) NOT NULL DEFAULT '' COMMENT 'the mathematical operation like (+,-,+%,-%)',
`calc_value` decimal(10,4) NOT NULL DEFAULT '0.0000' COMMENT 'The Amount',
`calc_currency` smallint(1) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Currency of the Rule',
`calc_shopper_published` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Visible for Shoppers',
`calc_vendor_published` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Visible for Vendors',
`publish_up` datetime COMMENT 'Startdate if nothing is set = permanent',
`publish_down` datetime COMMENT 'Enddate if nothing is set = permanent',
`for_override` tinyint(1) NOT NULL DEFAULT '0',
`has_categories` tinyint(1),
`has_shoppergroups` tinyint(1),
`has_manufacturers` tinyint(1),
`has_countries` tinyint(1),
`has_states` tinyint(1),
`calc_params` varchar(15359) NOT NULL DEFAULT '',
`ordering` int(1) NOT NULL DEFAULT '0',
`shared` tinyint(1) NOT NULL DEFAULT '0',
`published` tinyint(1) NOT NULL DEFAULT '1',
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
`locked_on` datetime,
`locked_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_calc_id`),
KEY `virtuemart_vendor_id` (`virtuemart_vendor_id`),
KEY `published` (`published`),
KEY `calc_kind` (`calc_kind`),
KEY `shared` (`shared`),
KEY `publish_up` (`publish_up`),
KEY `publish_down` (`publish_down`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_calc_categories`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_calc_categories` (
`id` int(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_calc_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`virtuemart_category_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `virtuemart_calc_id` (`virtuemart_calc_id`,`virtuemart_category_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `#__virtuemart_calc_manufacturers` (
`id` int(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_calc_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`virtuemart_manufacturer_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `virtuemart_calc_id` (`virtuemart_calc_id`,`virtuemart_manufacturer_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_calc_shoppergroups`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_calc_shoppergroups` (
`id` int(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_calc_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`virtuemart_shoppergroup_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `virtuemart_calc_id` (`virtuemart_calc_id`,`virtuemart_shoppergroup_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_calc_countries`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_calc_countries` (
`id` int(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_calc_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`virtuemart_country_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `virtuemart_calc_id` (`virtuemart_calc_id`,`virtuemart_country_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_calc_states`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_calc_states` (
`id` int(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_calc_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`virtuemart_state_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `virtuemart_calc_id` (`virtuemart_calc_id`,`virtuemart_state_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `#__virtuemart_carts` (
`virtuemart_cart_id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_user_id` INT(1) UNSIGNED NOT NULL,
`virtuemart_vendor_id` INT(1) UNSIGNED NOT NULL,
`cartData` VARBINARY(50000),
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_cart_id`),
KEY `virtuemart_vendor_id` (`virtuemart_vendor_id`),
KEY `virtuemart_user_id` (`virtuemart_user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 COMMENT='Used to store the cart';
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_categories`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_categories` (
`virtuemart_category_id` int(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`category_parent_id` int(1) UNSIGNED,
`virtuemart_vendor_id` int(1) UNSIGNED NOT NULL DEFAULT '1' COMMENT 'Belongs to vendor',
`category_template` varchar(128),
`category_layout` varchar(64),
`category_product_layout` varchar(64),
`products_per_row` varchar(1) NOT NULL DEFAULT '',
`limit_list_step` varchar(32),
`limit_list_initial` smallint(1) UNSIGNED,
`hits` int(1) unsigned NOT NULL DEFAULT '0',
`cat_params` varchar(15359) NOT NULL DEFAULT '',
`metarobot` varchar(40) NOT NULL DEFAULT '',
`metaauthor` varchar(64) NOT NULL DEFAULT '',
`ordering` int(1) NOT NULL DEFAULT '0',
`shared` tinyint(1) NOT NULL DEFAULT '0',
`published` tinyint(1) NOT NULL DEFAULT '1',
`has_children` tinyint(1),
`has_medias` tinyint(1),
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
`locked_on` datetime,
`locked_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_category_id`),
UNIQUE KEY `category_parent_id` (`category_parent_id`,`virtuemart_category_id`),
KEY `virtuemart_vendor_id` (`virtuemart_vendor_id`),
KEY `published` (`published`),
KEY `shared` (`shared`),
KEY `ordering` (`ordering`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 COMMENT='Product Categories are stored here' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Obsolete since vm3.6.12
-- Table structure for table `#__virtuemart_category_categories`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_category_categories` (
`id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`category_parent_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`category_child_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`ordering` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `category_child_id` (`category_child_id`),
KEY `ordering` (`ordering`),
UNIQUE KEY `category_parent_id` (`category_parent_id`,`category_child_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 COMMENT='Category child-parent relation list';
--
-- Table structure for table `#__virtuemart_category_medias`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_category_medias` (
`id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_category_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`virtuemart_media_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`ordering` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `ordering` (`virtuemart_category_id`, `ordering`),
UNIQUE KEY `virtuemart_category_id` (`virtuemart_category_id`,`virtuemart_media_id`),
UNIQUE KEY `virtuemart_media_id` (`virtuemart_media_id`,`virtuemart_category_id`),
KEY `virtuemart_media_id_uid` (`virtuemart_media_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_countries`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_countries` (
`virtuemart_country_id` int(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_worldzone_id` tinyint(1) NOT NULL DEFAULT '1',
`country_name` varchar(64),
`country_3_code` char(3),
`country_2_code` char(2),
`country_num_code` char(3),
`ordering` int(1) NOT NULL DEFAULT '0',
`published` tinyint(1) NOT NULL DEFAULT '0',
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
`locked_on` datetime,
`locked_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_country_id`),
UNIQUE KEY `country_3_code` (`country_3_code`),
UNIQUE KEY `country_2_code` (`country_2_code`),
UNIQUE KEY `country_num_code` (`country_num_code`),
KEY `country_name` (`country_name`),
KEY `ordering` (`ordering`),
KEY `published` (`published`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 COMMENT='Country records' ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_coupons`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_coupons` (
`virtuemart_coupon_id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_vendor_id` INT(1) UNSIGNED NOT NULL,
`coupon_code` varchar(32) NOT NULL DEFAULT '',
`percent_or_total` enum('percent','total') NOT NULL DEFAULT 'percent',
`coupon_type` enum('gift','permanent') NOT NULL DEFAULT 'gift',
`coupon_value` decimal(15,5) NOT NULL DEFAULT '0.00000',
`coupon_start_date` datetime,
`coupon_expiry_date` datetime,
`coupon_value_valid` decimal(15,5) NOT NULL DEFAULT '0.00000',
`coupon_used` varchar(200) NOT NULL DEFAULT '',
`coupon_value_max` decimal(15,5) NOT NULL DEFAULT '0.00000',
`virtuemart_shoppergroup_ids` text,
`virtuemart_shopper_ids` text,
`virtuemart_product_ids` text,
`virtuemart_category_ids` text,
`virtuemart_coupon_max_attempt_per_user` TINYINT(4) NOT NULL,
`published` tinyint(1) NOT NULL DEFAULT '1',
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
`locked_on` datetime,
`locked_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_coupon_id`),
KEY `virtuemart_vendor_id` (`virtuemart_vendor_id`),
KEY `coupon_code` (`coupon_code`),
KEY `coupon_type` (`coupon_type`),
KEY `published` (`published`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 COMMENT='Used to store coupon codes' ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_currencies`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_currencies` (
`virtuemart_currency_id` int(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_vendor_id` int(1) UNSIGNED NOT NULL DEFAULT '1',
`currency_name` varchar(64),
`currency_code_2` char(2),
`currency_code_3` char(3),
`currency_numeric_code` int(4),
`currency_exchange_rate` decimal(12,5),
`currency_symbol` varchar(8),
`currency_decimal_place` varchar(8),
`currency_decimal_symbol` varchar(8),
`currency_thousands` varchar(8),
`currency_positive_style` varchar(64),
`currency_negative_style` varchar(64),
`ordering` int(1) NOT NULL DEFAULT '0',
`shared` tinyint(1) NOT NULL DEFAULT '1',
`published` tinyint(1) NOT NULL DEFAULT '1',
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
`locked_on` datetime,
`locked_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_currency_id`),
KEY `ordering` (`ordering`),
KEY `currency_name` (`currency_name`),
KEY `published` (`published`),
KEY `shared` (`shared`),
KEY `virtuemart_vendor_id` (`virtuemart_vendor_id`),
UNIQUE KEY `currency_code_3` (`currency_code_3`),
KEY `currency_numeric_code` (`currency_numeric_code`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 COMMENT='Used to store currencies';
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_customs`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_customs` (
`virtuemart_custom_id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`custom_parent_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`virtuemart_vendor_id` int(1) UNSIGNED NOT NULL DEFAULT '1',
`custom_jplugin_id` int(1) NOT NULL DEFAULT '0',
`custom_element` varchar(50) NOT NULL DEFAULT '',
`admin_only` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1:Display in admin only',
`custom_title` varchar(255) NOT NULL DEFAULT '' COMMENT 'field title',
`show_title` tinyint(1) NOT NULL DEFAULT '1',
`custom_tip` varchar(255) NOT NULL DEFAULT '' COMMENT 'tip',
`custom_value` varchar(4095) COMMENT 'default value',
`custom_desc` varchar(4095) COMMENT 'description or unit',
`field_type` varchar(2) NOT NULL DEFAULT '0' COMMENT 'S:string,I:int,P:parent, B:bool,D:date,T:time,H:hidden',
`is_list` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'list of values',
`is_hidden` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1:hidden',
`is_cart_attribute` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Add attributes to cart',
`is_input` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Add input to cart',
`searchable` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Available as search filter',
`layout_pos` varchar(24) COMMENT 'Layout Position',
`custom_params` text,
`virtuemart_shoppergroup_id` varchar(255) NOT NULL,
`shared` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'valid for all vendors?',
`published` tinyint(1) NOT NULL DEFAULT '1',
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`ordering` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
`locked_on` datetime,
`locked_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_custom_id`),
KEY `field_type_searchable_published` (`field_type`, `searchable`, `published`),
KEY `custom_parent_id` (`custom_parent_id`),
KEY `virtuemart_vendor_id` (`virtuemart_vendor_id`),
KEY `custom_element` (`custom_element`),
KEY `field_type` (`field_type`),
KEY `is_cart_attribute` (`is_cart_attribute`),
KEY `is_input` (`is_input`),
KEY `searchable` (`searchable`),
KEY `shared` (`shared`),
KEY `published` (`published`),
KEY `ordering` (`ordering`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='custom fields definition' AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `#__virtuemart_invoices` (
`virtuemart_invoice_id` int(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_vendor_id` int(1) UNSIGNED NOT NULL DEFAULT '1',
`virtuemart_order_id` int(1) UNSIGNED,
`invoice_number` varchar(64),
`order_status` char(3),
`xhtml` text,
`o_hash` varchar(33),
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
`locked_on` datetime,
`locked_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_invoice_id`),
UNIQUE KEY `invoice_number` (`invoice_number`,`virtuemart_vendor_id`),
KEY `virtuemart_order_id` (`virtuemart_order_id`),
KEY `virtuemart_vendor_id` (`virtuemart_vendor_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='custom fields definition' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_manufacturers`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_manufacturers` (
`virtuemart_manufacturer_id` int(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_manufacturercategories_id` int(1),
`metarobot` varchar(400),
`metaauthor` varchar(400),
`hits` int(1) unsigned NOT NULL DEFAULT '0',
`published` tinyint(1) NOT NULL DEFAULT '1',
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
`locked_on` datetime,
`locked_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_manufacturer_id`),
UNIQUE KEY `virtuemart_manufacturercategories_id` (`virtuemart_manufacturer_id`,`virtuemart_manufacturercategories_id`),
KEY `published` (`published`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='Manufacturers are those who deliver products' AUTO_INCREMENT=1 ;
--
-- Table structure for table `#__virtuemart_manufacturer_medias`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_manufacturer_medias` (
`id` int(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_manufacturer_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`virtuemart_media_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`ordering` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `ordering` (`ordering`),
UNIQUE KEY `virtuemart_manufacturer_id` (`virtuemart_manufacturer_id`,`virtuemart_media_id`),
UNIQUE KEY `virtuemart_media_id` (`virtuemart_media_id`,`virtuemart_manufacturer_id`),
KEY `virtuemart_media_id_uid` (`virtuemart_media_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_manufacturercategories`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_manufacturercategories` (
`virtuemart_manufacturercategories_id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`published` tinyint(1) NOT NULL DEFAULT '1',
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
`locked_on` datetime,
`locked_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_manufacturercategories_id`),
KEY `published` (`published`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='Manufacturers are assigned to these categories' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_medias` (was `#__virtuemart_product_files`)
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_medias` (
`virtuemart_media_id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_vendor_id` int(1) UNSIGNED NOT NULL DEFAULT '1',
`file_title` varchar(126) NOT NULL DEFAULT '',
`file_description` varchar(254) NOT NULL DEFAULT '',
`file_meta` varchar(254) NOT NULL DEFAULT '',
`file_class` varchar(64) NOT NULL DEFAULT '',
`file_mimetype` varchar(64) NOT NULL DEFAULT '',
`file_type` varchar(32) NOT NULL DEFAULT '',
`file_url` varchar(900) NOT NULL DEFAULT '',
`file_url_thumb` varchar(900) NOT NULL DEFAULT '',
`file_is_product_image` tinyint(1) NOT NULL DEFAULT '0',
`file_is_downloadable` tinyint(1) NOT NULL DEFAULT '0',
`file_is_forSale` tinyint(1) NOT NULL DEFAULT '0',
`file_params` varchar(12287) NOT NULL DEFAULT '',
`file_lang` varchar(500) NOT NULL DEFAULT '',
`shared` tinyint(1) NOT NULL DEFAULT '0',
`published` tinyint(1) NOT NULL DEFAULT '1',
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
`locked_on` datetime,
`locked_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_media_id`),
KEY `virtuemart_vendor_id` (`virtuemart_vendor_id`),
KEY `published` (`published`),
KEY `file_type` (`file_type`),
KEY `shared` (`shared`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='Additional Images and Files which are assigned to products' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_migration_oldtonew_ids` (only used for migration)
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_migration_oldtonew_ids` (
`id` smallint(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`cats` longblob,
`catsxref` blob,
`manus` longblob,
`mfcats` blob,
`shoppergroups` longblob,
`products` longblob,
`products_start` int(1),
`orderstates` blob,
`orders` longblob,
`attributes` longblob,
`relatedproducts` longblob,
`orders_start` int(1),
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 COMMENT='xref table for vm1 ids to vm2 ids' ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_modules`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_modules` (
`module_id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`module_name` char(191),
`module_description` varchar(15359),
`module_perms` char(191),
`published` tinyint(1) NOT NULL DEFAULT '1',
`is_admin` enum('0','1') NOT NULL DEFAULT '0',
`ordering` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`module_id`),
KEY `module_name` (`module_name`),
KEY `ordering` (`ordering`),
KEY `published` (`published`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='VirtueMart Core Modules, not: Joomla modules' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_orders`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_orders` (
`virtuemart_order_id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_user_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`virtuemart_vendor_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`order_note` varchar(5000),
`order_number` varchar(64),
`customer_number` varchar(32),
`order_pass` varchar(34),
`order_create_invoice_pass` varchar(32),
`invoice_locked` tinyint(1) NOT NULL DEFAULT '0',
`order_total` decimal(15,5) NOT NULL DEFAULT '0.00000',
`order_salesPrice` decimal(15,5) NOT NULL DEFAULT '0.00000',
`order_billTaxAmount` decimal(15,5) NOT NULL DEFAULT '0.00000',
`order_billTax` varchar(400),
`order_billDiscountAmount` decimal(15,5) NOT NULL DEFAULT '0.00000',
`order_discountAmount` decimal(15,5) NOT NULL DEFAULT '0.00000',
`order_subtotal` decimal(15,5),
`order_tax` decimal(12,5),
`order_shipment` decimal(12,5),
`order_shipment_tax` decimal(10,5),
`order_payment` decimal(12,2),
`order_payment_tax` decimal(10,5),
`coupon_discount` decimal(12,2) NOT NULL DEFAULT '0.00',
`coupon_code` varchar(32),
`order_discount` decimal(12,2) NOT NULL DEFAULT '0.00',
`order_currency` smallint(1),
`order_status` char(3),
`user_currency_id` smallint(1),
`user_currency_rate` DECIMAL(12,6) NOT NULL DEFAULT '1.000000',
`user_shoppergroups` varchar(30),
`payment_currency_id` smallint(1),
`payment_currency_rate` DECIMAL(12,6) NOT NULL DEFAULT '1.000000',
`virtuemart_paymentmethod_id` int(1) UNSIGNED,
`virtuemart_shipmentmethod_id` int(1) UNSIGNED,
`delivery_date` varchar(200),
`order_language` varchar(7),
`ip_address` char(45) NOT NULL DEFAULT '',
`STsameAsBT` tinyint(1) NOT NULL DEFAULT '0',
`paid` decimal(15,5) NOT NULL DEFAULT '0.00000',
`paid_on` datetime,
`o_hash` varchar(33),
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
`locked_on` datetime,
`locked_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_order_id`),
KEY `virtuemart_user_id` (`virtuemart_user_id`),
KEY `virtuemart_vendor_id` (`virtuemart_vendor_id`),
KEY `order_number` (`order_number`),
KEY `virtuemart_paymentmethod_id` (`virtuemart_paymentmethod_id`),
KEY `virtuemart_shipmentmethod_id` (`virtuemart_shipmentmethod_id`),
KEY `order_status` (`order_status`),
KEY `created_on` (`created_on`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='Used to store all orders' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_order_histories`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_order_histories` (
`virtuemart_order_history_id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_order_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`order_status_code` char(1) NOT NULL DEFAULT '0',
`customer_notified` tinyint(1) NOT NULL DEFAULT '0',
`comments` varchar(15359),
`paid` decimal(15,5) NOT NULL DEFAULT '0.00000',
`o_hash` varchar(33),
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_order_history_id`),
KEY `virtuemart_order_id` (`virtuemart_order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='Stores all actions and changes that occur to an order' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_order_items`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_order_items` (
`virtuemart_order_item_id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_order_id` int(1) UNSIGNED,
`virtuemart_vendor_id` int(1) UNSIGNED NOT NULL DEFAULT '1',
`virtuemart_product_id` int(1),
`order_item_sku` varchar(255) NOT NULL DEFAULT '',
`order_item_name` varchar(4096) NOT NULL DEFAULT '',
`product_quantity` int(1),
`product_item_price` decimal(15,5),
`product_priceWithoutTax` decimal(15,5),
`product_tax` decimal(15,5),
`product_basePriceWithTax` decimal(15,5),
`product_discountedPriceWithoutTax` decimal(15,5),
`product_final_price` decimal(15,5) NOT NULL DEFAULT '0.00000',
`product_subtotal_discount` decimal(15,5) NOT NULL DEFAULT '0.00000',
`product_subtotal_with_tax` decimal(15,5) NOT NULL DEFAULT '0.00000',
`order_item_currency` INT(1),
`order_status` char(3),
`product_attribute` mediumtext,
`delivery_date` varchar(200),
`paid` decimal(15,5) NOT NULL DEFAULT '0.00000',
`oi_hash` varchar(33),
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_order_item_id`),
KEY `virtuemart_product_id` (`virtuemart_product_id`),
KEY `virtuemart_order_id` (`virtuemart_order_id`),
KEY `virtuemart_vendor_id` (`virtuemart_vendor_id`),
KEY `order_status` (`order_status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='Stores all items (products) which are part of an order' AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `#__virtuemart_order_item_histories` (
`virtuemart_order_item_history_id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_order_item_id` INT(1) UNSIGNED NOT NULL,
`virtuemart_order_id` int(1) UNSIGNED,
`virtuemart_vendor_id` int(1) UNSIGNED NOT NULL DEFAULT '1',
`virtuemart_product_id` int(1),
`action` varchar(191) NOT NULL DEFAULT '',
`order_item_sku` varchar(255) NOT NULL DEFAULT '',
`order_item_name` varchar(4096) NOT NULL DEFAULT '',
`product_quantity` int(1),
`product_item_price` decimal(15,5),
`product_priceWithoutTax` decimal(15,5),
`product_tax` decimal(15,5),
`product_basePriceWithTax` decimal(15,5),
`product_discountedPriceWithoutTax` decimal(15,5),
`product_final_price` decimal(15,5) NOT NULL DEFAULT '0.00000',
`product_subtotal_discount` decimal(15,5) NOT NULL DEFAULT '0.00000',
`product_subtotal_with_tax` decimal(15,5) NOT NULL DEFAULT '0.00000',
`order_item_currency` INT(1),
`order_status` char(3),
`product_attribute` mediumtext,
`delivery_date` varchar(200),
`paid` decimal(15,5) NOT NULL DEFAULT '0.00000',
`oi_hash` varchar(33),
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_order_item_history_id`),
KEY `virtuemart_order_id` (`virtuemart_order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='Stores all actions and changes that occur to an order item only' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_order_calc_rules`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_order_calc_rules` (
`virtuemart_order_calc_rule_id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_calc_id` int(1) UNSIGNED,
`virtuemart_order_id` int(1) UNSIGNED,
`virtuemart_vendor_id` int(1) UNSIGNED NOT NULL DEFAULT '1',
`virtuemart_order_item_id` int(1),
`calc_rule_name` varchar(64) NOT NULL DEFAULT '' COMMENT 'Name of the rule',
`calc_kind` varchar(16) NOT NULL DEFAULT '' COMMENT 'Discount/Tax/Margin/Commission',
`calc_mathop` varchar(16) NOT NULL DEFAULT '' COMMENT 'Discount/Tax/Margin/Commission',
`calc_amount` decimal(15,5) NOT NULL DEFAULT '0.00000',
`calc_result` decimal(15,5) NOT NULL DEFAULT '0.00000',
`calc_value` decimal(15,5) NOT NULL DEFAULT '0.00000',
`calc_currency` int(1),
`calc_params` varchar(15359) NOT NULL DEFAULT '',
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_order_calc_rule_id`),
KEY `virtuemart_calc_id` (`virtuemart_calc_id`),
KEY `virtuemart_order_id` (`virtuemart_order_id`),
KEY `virtuemart_vendor_id` (`virtuemart_vendor_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='Stores all calculation rules which are part of an order' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_orderstates`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_orderstates` (
`virtuemart_orderstate_id` tinyint(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_vendor_id` int(1) UNSIGNED NOT NULL DEFAULT '1',
`order_status_code` char(3) NOT NULL DEFAULT '',
`order_status_name` varchar(64),
`order_status_color` varchar(64),
`order_status_description` varchar(12359),
`order_stock_handle` char(1) NOT NULL DEFAULT 'A',
`order_status_email_layout` VARCHAR(128) NOT NULL DEFAULT '',
`ordering` int(1) NOT NULL DEFAULT '0',
`published` tinyint(1) NOT NULL DEFAULT '1',
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
`locked_on` datetime,
`locked_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_orderstate_id`),
UNIQUE KEY `order_status_code` (`order_status_code`),
KEY `ordering` (`ordering`),
KEY `virtuemart_vendor_id` (`virtuemart_vendor_id`),
KEY `published` (`published`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='All available order statuses' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_paymentmethods`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_paymentmethods` (
`virtuemart_paymentmethod_id` int(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_vendor_id` int(1) UNSIGNED NOT NULL DEFAULT '1',
`payment_jplugin_id` int(1) NOT NULL DEFAULT '0',
`payment_element` varchar(50) NOT NULL DEFAULT '',
`payment_params` text,
`currency_id` int(1) UNSIGNED,
`shared` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'valide for all vendors?',
`ordering` int(1) NOT NULL DEFAULT '0',
`published` tinyint(1) NOT NULL DEFAULT '1',
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
`locked_on` datetime,
`locked_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_paymentmethod_id`),
KEY `payment_jplugin_id` (`payment_jplugin_id`),
KEY `virtuemart_vendor_id` (`virtuemart_vendor_id`),
KEY `payment_element` (`payment_element`,`virtuemart_vendor_id`),
KEY `ordering` (`ordering`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='The payment methods of your store' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_paymentmethod_shoppergroups`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_paymentmethod_shoppergroups` (
`id` int(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_paymentmethod_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`virtuemart_shoppergroup_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `virtuemart_paymentmethod_id` (`virtuemart_paymentmethod_id`,`virtuemart_shoppergroup_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='xref table for paymentmethods to shoppergroup' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_products`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_products` (
`virtuemart_product_id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_vendor_id` int(1) UNSIGNED NOT NULL DEFAULT '1',
`product_parent_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`product_sku` varchar(192),
`product_gtin` varchar(64),
`product_mpn` varchar(64),
`product_weight` decimal(10,4),
`product_weight_uom` varchar(7),
`product_length` decimal(10,4),
`product_width` decimal(10,4),
`product_height` decimal(10,4),
`product_lwh_uom` varchar(7),
`product_url` varchar(255),
`product_in_stock` int(1) NOT NULL DEFAULT '0',
`product_ordered` int(1) NOT NULL DEFAULT '0',
`product_stockhandle` varchar(24) NOT NULL DEFAULT '0',
`low_stock_notification` int(1) UNSIGNED NOT NULL DEFAULT '0',
`product_available_date` datetime,
`product_availability` varchar(32),
`product_special` tinyint(1) NOT NULL DEFAULT '0',
`product_discontinued` tinyint(1) NOT NULL DEFAULT '0',
`product_sales` int(1) NOT NULL DEFAULT '0',
`product_unit` varchar(8),
`product_packaging` decimal(8,4) UNSIGNED,
`product_params` varchar(255) NOT NULL,
`product_canon_category_id` INT(1),
`hits` int(1) unsigned,
`intnotes` text,
`metarobot` varchar(400),
`metaauthor` varchar(400),
`layout` varchar(16),
`published` tinyint(1) NOT NULL DEFAULT '0',
`pordering` int(1) UNSIGNED NOT NULL DEFAULT '0',
`has_categories` tinyint(1),
`has_manufacturers` tinyint(1),
`has_medias` tinyint(1),
`has_prices` tinyint(1),
`has_shoppergroups` tinyint(1),
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
`locked_on` datetime,
`locked_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_product_id`),
KEY `virtuemart_vendor_id` (`virtuemart_vendor_id`),
KEY `product_parent_id` (`product_parent_id`),
KEY `product_special` (`product_special`),
KEY `product_discontinued` (`product_discontinued`),
KEY `product_in_stock` (`product_in_stock`),
KEY `product_ordered` (`product_ordered`),
KEY `product_sku` (`product_sku`),
KEY `published` (`published`),
KEY `pordering` (`pordering`),
KEY `created_on` (`created_on`),
KEY `modified_on` (`modified_on`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='All products are stored here.' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_product_categories`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_product_categories` (
`id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_product_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`virtuemart_category_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`ordering` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `virtuemart_product_id` (`virtuemart_product_id`,`virtuemart_category_id`),
UNIQUE KEY `virtuemart_category_id` (`virtuemart_category_id`,`virtuemart_product_id`),
KEY `virtuemart_product_id_uid` (`virtuemart_product_id`),
KEY `virtuemart_category_id_uid` (`virtuemart_category_id`),
KEY `ordering` (`ordering`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 COMMENT='Maps Products to Categories';
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_product_shoppergroups`
--
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_product_shoppergroups` (
`id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_product_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`virtuemart_shoppergroup_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `virtuemart_product_id` (`virtuemart_product_id`,`virtuemart_shoppergroup_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 COMMENT='Maps Products to Categories';
-- --------------------------------------------------------
--
-- Table structure `#__virtuemart_product_customfields`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_product_customfields` (
`virtuemart_customfield_id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'field id',
`virtuemart_product_id` int(1) NOT NULL DEFAULT '0',
`virtuemart_custom_id` int(1) NOT NULL DEFAULT '1' COMMENT 'custom group id',
`customfield_value` varchar(2500) COMMENT 'field value',
`customfield_price` decimal(15,6) COMMENT 'price',
`disabler` INT(1) UNSIGNED NOT NULL DEFAULT '0',
`override` INT(1) UNSIGNED NOT NULL DEFAULT '0',
`noninheritable` INT(1) UNSIGNED NOT NULL DEFAULT '0',
`customfield_params` text COMMENT 'Param for Plugins',
`product_sku` varchar(64),
`product_gtin` varchar(64),
`product_mpn` varchar(64),
`published` tinyint(1) NOT NULL DEFAULT '1',
`ordering` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_customfield_id`),
UNIQUE KEY `unique_custf_prd_value` (`virtuemart_customfield_id`,`virtuemart_product_id`,`virtuemart_custom_id`,`customfield_value`(50)),
KEY `unique_cust_prd_value` (`virtuemart_custom_id`,`virtuemart_product_id`,`customfield_value`(50)),
KEY `customfield_value` (`customfield_value`(50)),
KEY `virtuemart_product_id` (`virtuemart_product_id`,`ordering`),
KEY `virtuemart_custom_id` (`virtuemart_custom_id`),
KEY `published` (`published`),
KEY `ordering` (`ordering`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='custom fields' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_product_medias`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_product_medias` (
`id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_product_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`virtuemart_media_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`ordering` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `virtuemart_media_id_uid` (`virtuemart_media_id`),
UNIQUE KEY `virtuemart_product_id` (`virtuemart_product_id`,`virtuemart_media_id`),
UNIQUE KEY `virtuemart_media_id` (`virtuemart_media_id`,`virtuemart_product_id`),
KEY `ordering` (`virtuemart_product_id`, `ordering`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_product_manufacturers`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_product_manufacturers` (
`id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_product_id` int(1),
`virtuemart_manufacturer_id` int(1) UNSIGNED,
PRIMARY KEY (`id`),
UNIQUE KEY `virtuemart_product_id` (`virtuemart_product_id`,`virtuemart_manufacturer_id`),
UNIQUE KEY `virtuemart_manufacturer_id` (`virtuemart_manufacturer_id`,`virtuemart_product_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 COMMENT='Maps a product to a manufacturer';
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_product_prices`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_product_prices` (
`virtuemart_product_price_id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_product_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`virtuemart_shoppergroup_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`product_price` decimal(15,6),
`override` tinyint(1),
`product_override_price` decimal(15,5),
`product_tax_id` int(1),
`product_discount_id` int(1),
`product_currency` smallint(1),
`product_price_publish_up` datetime,
`product_price_publish_down` datetime,
`price_quantity_start` int(1) unsigned NOT NULL default '0',
`price_quantity_end` int(1) unsigned NOT NULL default '0',
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_product_price_id`),
KEY `virtuemart_product_id` (`virtuemart_product_id`),
KEY `product_price` (`product_price`),
KEY `virtuemart_shoppergroup_id` (`virtuemart_shoppergroup_id`),
KEY `product_price_publish_up` (`product_price_publish_up`),
KEY `product_price_publish_down` (`product_price_publish_down`),
KEY `price_quantity_start` (`price_quantity_start`),
KEY `price_quantity_end` (`price_quantity_end`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='Holds price records for a product' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_rating_reviews`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_rating_reviews` (
`virtuemart_rating_review_id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_rating_vote_id` INT(1) UNSIGNED,
`virtuemart_product_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`comment` varchar(15359),
`review_ok` tinyint(1) NOT NULL DEFAULT '0',
`review_rates` int(1) UNSIGNED NOT NULL DEFAULT '0',
`review_ratingcount` int(1) UNSIGNED NOT NULL DEFAULT '0',
`review_rating` decimal(10,2) NOT NULL DEFAULT '0.00',
`review_language` varchar(10),
`review_editable` tinyint(1) NOT NULL DEFAULT '1',
`lastip` char(50) NOT NULL DEFAULT '0',
`published` tinyint(1) NOT NULL DEFAULT '1',
`customer` varchar(128) NOT NULL DEFAULT '',
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
`locked_on` datetime,
`locked_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_rating_review_id`),
KEY `virtuemart_rating_vote_id` (`virtuemart_rating_vote_id`),
KEY `virtuemart_product_id` (`virtuemart_product_id`,`created_by`),
KEY `created_on` (`created_on`),
KEY `created_by` (`created_by`),
KEY `published` (`published`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_ratings`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_ratings` (
`virtuemart_rating_id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_product_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`rates` int(1) NOT NULL DEFAULT '0',
`ratingcount` int(1) UNSIGNED NOT NULL DEFAULT '0',
`rating` decimal(10,1) NOT NULL DEFAULT '0.0',
`published` tinyint(1) NOT NULL DEFAULT '1',
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_rating_id`),
UNIQUE KEY `virtuemart_product_id` (`virtuemart_product_id`,`virtuemart_rating_id`),
KEY `published` (`published`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 COMMENT='Stores all ratings for a product';
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_rating_votes`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_rating_votes` (
`virtuemart_rating_vote_id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_product_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`vote` int(1) NOT NULL DEFAULT '0',
`lastip` char(50) NOT NULL DEFAULT '0',
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_rating_vote_id`),
KEY `virtuemart_product_id` (`virtuemart_product_id`,`created_by`),
KEY `created_by` (`created_by`),
KEY `created_on` (`created_on`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 COMMENT='Stores all ratings for a product';
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_shipmentmethods`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_shipmentmethods` (
`virtuemart_shipmentmethod_id` int(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_vendor_id` int(1) UNSIGNED NOT NULL DEFAULT '1',
`shipment_jplugin_id` int(1) NOT NULL DEFAULT '0',
`shipment_element` varchar(50) NOT NULL DEFAULT '',
`shipment_params` text,
`currency_id` int(1) UNSIGNED,
`ordering` int(1) NOT NULL DEFAULT '0',
`shared` tinyint(1) NOT NULL DEFAULT '0',
`published` tinyint(1) NOT NULL DEFAULT '1',
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
`locked_on` datetime,
`locked_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_shipmentmethod_id`),
KEY `shipment_jplugin_id` (`shipment_jplugin_id`),
KEY `shipment_element` (`shipment_element`,`virtuemart_vendor_id`),
KEY `ordering` (`ordering`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='Shipment created from the shipment plugins' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_shipmentmethods_shoppergroups`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_shipmentmethod_shoppergroups` (
`id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_shipmentmethod_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`virtuemart_shoppergroup_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `virtuemart_shipmentmethod_id` (`virtuemart_shipmentmethod_id`,`virtuemart_shoppergroup_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='xref table for shipment to shoppergroup' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_shoppergroups`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_shoppergroups` (
`virtuemart_shoppergroup_id` int(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_vendor_id` int(1) UNSIGNED NOT NULL DEFAULT '1',
`shopper_group_name` varchar(128),
`shopper_group_desc` varchar(255),
`custom_price_display` tinyint(1) NOT NULL DEFAULT '0',
`price_display` blob,
`default` tinyint(1) NOT NULL DEFAULT '0',
`sgrp_additional` tinyint(1) NOT NULL DEFAULT '0',
`ordering` int(1) NOT NULL DEFAULT '0',
`shared` tinyint(1) NOT NULL DEFAULT '0',
`published` tinyint(1) NOT NULL DEFAULT '1',
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
`locked_on` datetime,
`locked_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_shoppergroup_id`),
UNIQUE KEY `virtuemart_vendor_id` (`virtuemart_vendor_id`,`virtuemart_shoppergroup_id`),
KEY `shopper_group_name` (`shopper_group_name`),
KEY `ordering` (`ordering`),
KEY `shared` (`shared`),
KEY `published` (`published`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='Shopper Groups that users can be assigned to' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_states`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_states` (
`virtuemart_state_id` int(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_vendor_id` int(1) UNSIGNED NOT NULL DEFAULT '1',
`virtuemart_country_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`virtuemart_worldzone_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`state_name` varchar(64),
`state_3_code` char(3),
`state_2_code` char(2),
`ordering` int(1) NOT NULL DEFAULT '0',
`shared` tinyint(1) NOT NULL DEFAULT '1',
`published` tinyint(1) NOT NULL DEFAULT '1',
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
`locked_on` datetime,
`locked_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_state_id`),
KEY `virtuemart_vendor_id` (`virtuemart_vendor_id`),
UNIQUE KEY `state_3_code` (`virtuemart_vendor_id`,`virtuemart_country_id`,`state_3_code`),
UNIQUE KEY `state_2_code` (`virtuemart_vendor_id`,`virtuemart_country_id`,`state_2_code`),
KEY `virtuemart_country_id` (`virtuemart_country_id`),
KEY `ordering` (`ordering`),
KEY `shared` (`shared`),
KEY `published` (`published`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='States that are assigned to a country' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_userfields`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_userfields` (
`virtuemart_userfield_id` int(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_vendor_id` int(1) UNSIGNED NOT NULL DEFAULT '1',
`userfield_jplugin_id` int(1) NOT NULL DEFAULT '0',
`name` varchar(250) NOT NULL DEFAULT '',
`title` varchar(255) NOT NULL DEFAULT '',
`description` varchar(2048),
`type` varchar(70) NOT NULL DEFAULT '',
`maxlength` int(1),
`size` int(1),
`required` tinyint(4) NOT NULL DEFAULT '0',
`cols` int(1),
`rows` int(1),
`value` varchar(255),
`default` varchar(255),
`placeholder` varchar(255),
`registration` tinyint(1) NOT NULL DEFAULT '0',
`shipment` tinyint(1) NOT NULL DEFAULT '0',
`account` tinyint(1) NOT NULL DEFAULT '1',
`cart` tinyint(1) NOT NULL DEFAULT '0',
`readonly` tinyint(1) NOT NULL DEFAULT '0',
`calculated` tinyint(1) NOT NULL DEFAULT '0',
`sys` tinyint(4) NOT NULL DEFAULT '0',
`userfield_params` text,
`ordering` int(1) NOT NULL DEFAULT '0',
`shared` tinyint(1) NOT NULL DEFAULT '0',
`published` tinyint(1) NOT NULL DEFAULT '1',
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
`locked_on` datetime,
`locked_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_userfield_id`),
KEY `virtuemart_vendor_id` (`virtuemart_vendor_id`),
UNIQUE KEY `name` (`name`),
KEY `ordering` (`ordering`),
KEY `shared` (`shared`),
KEY `published` (`published`),
KEY `account` (`account`),
KEY `shipment` (`shipment`),
KEY `cart` (`cart`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='Holds the fields for the user information' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_userfield_values`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_userfield_values` (
`virtuemart_userfield_value_id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_userfield_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`fieldtitle` varchar(255) NOT NULL DEFAULT '',
`fieldvalue` varchar(255) NOT NULL DEFAULT '',
`sys` tinyint(4) NOT NULL DEFAULT '0',
`ordering` int(1) NOT NULL DEFAULT '0',
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_userfield_value_id`),
KEY `virtuemart_userfield_id` (`virtuemart_userfield_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='Holds the different values for dropdown and radio lists' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_vendors`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_vendors` (
`virtuemart_vendor_id` int(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`vendor_name` varchar(64),
`vendor_currency` int(1),
`vendor_accepted_currencies` varchar(1536) NOT NULL DEFAULT '',
`vendor_params` varchar(14335) NOT NULL DEFAULT '',
`metarobot` varchar(20),
`metaauthor` varchar(64),
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
`locked_on` datetime,
`locked_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_vendor_id`),
KEY `vendor_name` (`vendor_name`),
KEY `vendor_currency` (`vendor_currency`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='Vendors manage their products in your store' AUTO_INCREMENT=1 ;
--
-- Table structure for table `#__virtuemart_vendor_medias`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_vendor_medias` (
`id` int(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_vendor_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`virtuemart_media_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`ordering` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `virtuemart_vendor_id` (`virtuemart_vendor_id`,`virtuemart_media_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `#__virtuemart_vendor_users` (
`id` int(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_vendor_user_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`virtuemart_user_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `virtuemart_vendor_user_id` (`virtuemart_vendor_user_id`,`virtuemart_user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_vmusers`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_vmusers` (
`virtuemart_user_id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_vendor_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`user_is_vendor` tinyint(1) NOT NULL DEFAULT '0',
`customer_number` varchar(32),
`virtuemart_paymentmethod_id` int(1) UNSIGNED,
`virtuemart_shipmentmethod_id` int(1) UNSIGNED,
`agreed` tinyint(1) NOT NULL DEFAULT '0',
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
`locked_on` datetime,
`locked_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_user_id`),
KEY `virtuemart_vendor_id` (`virtuemart_vendor_id`),
UNIQUE KEY `u_virtuemart_user_id` (`virtuemart_user_id`,`virtuemart_vendor_id`),
KEY `user_is_vendor` (`user_is_vendor`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 COMMENT='Holds the unique user data' ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_vmuser_shoppergroups`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_vmuser_shoppergroups` (
`id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_user_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`virtuemart_shoppergroup_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `virtuemart_user_id` (`virtuemart_user_id`,`virtuemart_shoppergroup_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 COMMENT='xref table for users to shopper group' ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_waitingusers`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_waitingusers` (
`virtuemart_waitinguser_id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_product_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`virtuemart_user_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`notify_email` varchar(150) NOT NULL DEFAULT '',
`notified` tinyint(1) NOT NULL DEFAULT '0',
`notify_date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP() ON UPDATE CURRENT_TIMESTAMP(),
`ordering` int(1) NOT NULL DEFAULT '0',
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_waitinguser_id`),
KEY `virtuemart_product_id` (`virtuemart_product_id`),
KEY `notify_email` (`notify_email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='Stores notifications, users waiting f. products out of stock' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_worldzones`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_worldzones` (
`virtuemart_worldzone_id` smallint(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_vendor_id` int(1) UNSIGNED,
`zone_name` varchar(255),
`zone_cost` decimal(10,2),
`zone_limit` decimal(10,2),
`zone_description` varchar(14335),
`zone_tax_rate` int(1) UNSIGNED NOT NULL DEFAULT '0',
`ordering` int(1) NOT NULL DEFAULT '0',
`shared` tinyint(1) NOT NULL DEFAULT '0',
`published` tinyint(1) NOT NULL DEFAULT '1',
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
`locked_on` datetime,
`locked_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_worldzone_id`),
KEY `virtuemart_vendor_id` (`virtuemart_vendor_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='The Zones managed by the Zone Shipment Module' AUTO_INCREMENT=1 ;
install_country_data.sql 0000644 00000004554 15234761600 0011523 0 ustar 00 -- VirtueMart table data SQL script
-- This inserts country data into the VirtueMart tables
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40000 ALTER TABLE `#__virtuemart_countries` DISABLE KEYS */;
INSERT IGNORE INTO `#__virtuemart_countries` (`virtuemart_country_id`,`country_name`, `country_3_code`, `country_2_code`, `country_num_code`, `published`) VALUES
(443, "کهکیلویه و بویراحمد", "BOK", "BO", "001", 1),
(444, "اردبیل", "ARD", "AR", "002", 1),
(445, "آذربایجان غربی", "AZG", "AG", "003", 1),
(446, "آذربایجان شرقی", "AZS", "AS", "004", 1),
(447, "بوشهر", "BUS", "BU", "005", 1),
(448, "چهارمحال و بختیاری", "CMB", "CM", "006", 1),
(449, "اصفهان", "ESF", "ES", "007", 1),
(450, "فارس", "FAR", "FA", "008", 1),
(451, "گیلان", "GIL", "GI", "009", 1),
(452, "گلستان", "GOR", "GO", "010", 1),
(453, "همدان", "HAM", "HA", "011", 1),
(454, "هرمزگان", "HOR", "HO", "012", 1),
(455, "ایلام", "ILA", "IL", "013", 1),
(456, "کرمان", "KER", "KE", "014", 1),
(457, "کرمانشاه", "BAK", "BA", "015", 1),
(458, "خراسان جنوبی", "KHJ", "KJ", "016", 1),
(459, "خراسان رضوی", "KHR", "KR", "017", 1),
(460, "خراسان شمالی", "KHS", "KS", "018", 1),
(461, "خوزستان", "KHU", "KH", "019", 1),
(462, "کردستان", "KRD", "KO", "020", 1),
(463, "لرستان", "LOR", "LO", "021", 1),
(464, "مرکزی", "MRK", "MR", "022", 1),
(465, "مازندران", "MAZ", "MZ", "023", 1),
(466, "قزوین", "QAS", "QA", "024", 1),
(467, "قم", "QOM", "QO", "025", 1),
(468, "سمنان", "SEM", "SE", "026", 1),
(469, "سیستان و بلوچستان", "SBA", "SB", "027", 1),
(470, "تهران", "TEH", "TE", "028", 1),
(471, "یزد", "YAZ", "YA", "029", 1),
(472, "زنجان", "ZAN", "ZA", "030", 1),
(746, "البرز", "ALR", "AK", "031", 1);
/*!40000 ALTER TABLE `#__virtuemart_countries` ENABLE KEYS */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
install_essential_data.sql 0000644 00000041600 15234761600 0012000 0 ustar 00 -- VirtueMart table data SQL script
-- This will insert all essential data into the VirtueMart tables
--
-- Configuration data has been moved to virtuemart.cfg
--
--
-- Dumping data for table `#__virtuemart_adminmenuentries`
--
INSERT IGNORE INTO `#__virtuemart_adminmenuentries` (`id`, `module_id`, `parent_id`, `name`, `link`, `depends`, `icon_class`,`uikit_icon`, `ordering`, `published`, `tooltip`, `view`, `task`) VALUES
(1 , 1, 0, 'COM_VIRTUEMART_CATEGORY_S', '', '', 'vmicon vmicon-16-folder_camera', 'category', 1, 1, '', 'category', ''),
(2, 1, 0, 'COM_VIRTUEMART_PRODUCT_S', '', '', 'vmicon vmicon-16-camera', 'product', 2, 1, '', 'product', ''),
(3, 1, 0, 'COM_VIRTUEMART_PRODUCT_CUSTOM_FIELD_S', '', '', 'vmicon vmicon-16-document_move','customfield', 5, 1, '', 'custom', ''),
(4, 1, 0, 'COM_VIRTUEMART_PRODUCT_INVENTORY', '', '', 'vmicon vmicon-16-price_watch','inventory', 7, 1, '', 'inventory', ''),
(5, 1, 0, 'COM_VIRTUEMART_CALC_S', '', '', 'vmicon vmicon-16-calculator','calculator', 8, 1, '', 'calc', ''),
(6, 1, 0, 'COM_VIRTUEMART_REVIEW_RATE_S', '', '', 'vmicon vmicon-16-comments', 'comments',9, 1, '', 'ratings', ''),
(7, 2, 0, 'COM_VIRTUEMART_ORDER_S', '', '', 'vmicon vmicon-16-page_white_stack','cart', 1, 1, '', 'orders', ''),
(8, 2, 0, 'COM_VIRTUEMART_COUPON_S', '', '', 'vmicon vmicon-16-shopping','gift-box', 10, 1, '', 'coupon', ''),
(9, 2, 0, 'COM_VIRTUEMART_REPORT', '', '', 'vmicon vmicon-16-chart_bar', 'revenue',3, 1, '', 'report',''),
(10, 2, 0, 'COM_VIRTUEMART_USER_S', '', '', 'vmicon vmicon-16-user', 'user', 4, 1, '', 'user', ''),
(11, 2, 0, 'COM_VIRTUEMART_SHOPPERGROUP_S', '', '', 'vmicon vmicon-16-user-group', 'users' , 5, 1, '', 'shoppergroup', ''),
(12, 3, 0, 'COM_VIRTUEMART_MANUFACTURER_S', '', '', 'vmicon vmicon-16-wrench_orange', 'manufacturer', 1, 1, '', 'manufacturer', ''),
(13, 3, 0, 'COM_VIRTUEMART_MANUFACTURER_CATEGORY_S', '', '', 'vmicon vmicon-16-folder_wrench', 'category', 2, 1, '', 'manufacturercategories', ''),
(14, 4, 0, 'COM_VIRTUEMART_STORE', '', '', 'vmicon vmicon-16-reseller_account_template', 'shop', 1, 1, '', 'user', 'editshop'),
(15, 4, 0, 'COM_VIRTUEMART_MEDIA_S', '', '', 'vmicon vmicon-16-pictures', 'image', 2, 1, '', 'media', ''),
(16, 4, 0, 'COM_VIRTUEMART_SHIPMENTMETHOD_S', '', '', 'vmicon vmicon-16-lorry', 'shipment', 3, 1, '', 'shipmentmethod', ''),
(17, 4, 0, 'COM_VIRTUEMART_PAYMENTMETHOD_S', '', '', 'vmicon vmicon-16-creditcards', 'credit-card', 4, 1, '', 'paymentmethod', ''),
(18, 5, 0, 'COM_VIRTUEMART_CONFIGURATION', '', '', 'vmicon vmicon-16-config', 'cog', 1, 1, '', 'config', ''),
(19, 5, 0, 'COM_VIRTUEMART_USERFIELD_S', '', '', 'vmicon vmicon-16-participation_rate', 'id-card', 2, 1, '', 'userfields', ''),
(20, 5, 0, 'COM_VIRTUEMART_ORDERSTATUS_S', '', '', 'vmicon vmicon-16-document_editing', 'future', 3, 1, '', 'orderstatus', ''),
(21, 5, 0, 'COM_VIRTUEMART_CURRENCY_S', '', '', 'vmicon vmicon-16-coins', 'currencies', 5, 1, '', 'currency', ''),
(22, 5, 0, 'COM_VIRTUEMART_COUNTRY_S', '', '', 'vmicon vmicon-16-globe', 'world',6, 1, '', 'country', ''),
(23, 11, 0, 'COM_VIRTUEMART_MIGRATION_UPDATE', '', '', 'vmicon vmicon-16-installer_box', 'lifesaver', 0, 1, '', 'updatesmigration', ''),
(24, 11, 0, 'COM_VIRTUEMART_ABOUT', '', '', 'vmicon vmicon-16-info', 'lifesaver',10, 1, '', 'about', ''),
(25, 11, 0, 'COM_VIRTUEMART_HELP_TOPICS', 'http://docs.virtuemart.net/', '', 'vmicon vmicon-16-help', 'lifesaver',5, 1, '', '', ''),
(26, 11, 0, 'COM_VIRTUEMART_COMMUNITY_FORUM', 'http://forum.virtuemart.net/', '', 'vmicon vmicon-16-reseller_programm','lifesaver', 7, 1, '', '', ''),
(27, 11, 0, 'COM_VIRTUEMART_STATISTIC_SUMMARY', '', '', 'vmicon vmicon-16-info','lifesaver', 1, 1, '', 'virtuemart', ''),
(28, 11, 0, 'COM_VIRTUEMART_LOG', '', '', 'vmicon vmicon-16-info', 'lifesaver',2, 1, '', 'log', ''),
(29, 11, 0, 'COM_VIRTUEMART_SUPPORT', '', '', 'vmicon vmicon-16-help', 'lifesaver',3, 1, '', 'support', '');
--
-- Dumping data for table `#__virtuemart_modules`
--
INSERT IGNORE INTO `#__virtuemart_modules` (`module_id`, `module_name`, `module_description`, `module_perms`, `published`, `is_admin`, `ordering`) VALUES
(1, 'product', 'Here you can administer your online catalog of products. Categories , Products (view=product), Attributes, Product Types, Product Files (view=media), Inventory, Calculation Rules, Customer Reviews ', 'storeadmin,admin', 1, 0, 1),
(2, 'order', 'View Order and Update Order Status: Orders , Coupons , Revenue Report ,Shopper , Shopper Groups ', 'admin,storeadmin', 1, 0, 2),
(3, 'manufacturer', 'Manage the manufacturers of products in your store.', 'storeadmin,admin', 1, 0, 3),
(4, 'store', 'Store Configuration: Store Information, Payment Methods , Shipment, Shipment Rates', 'storeadmin,admin', 1, 0, 4),
(5, 'configuration', 'Configuration: shop configuration , currencies (view=currency), Credit Card List, Countries, userfields, order status ', 'admin,storeadmin', 1, 1, 5),
(6, 'msgs', 'This module is unprotected an used for displaying system messages to users. We need to have an area that does not require authorization when things go wrong.', 'none', 0, 0, 99),
(7, 'shop', 'This is the Washupito store module. This is the demo store included with the VirtueMart distribution.', 'none', 1, 0, 99),
(8, 'store', 'Store Configuration: Store Information, Payment Methods , Shipment, Shipment Rates', 'storeadmin,admin', 1, 0, 4),
(9, 'account', 'This module allows shoppers to update their account information and view previously placed orders.', 'shopper,storeadmin,admin,demo', 1,0, 99),
(10, 'checkout', '', 'none', 0, 0, 99),
(11, 'tools', 'Tools', 'admin', 1, 1, 8),
(13, 'zone', 'This is the zone-shipment module. Here you can manage your shipment costs according to Zones.', 'admin,storeadmin', 0, 0, 11);
--
-- Dumping data for table `#__virtuemart_orderstates`
--
INSERT IGNORE INTO `#__virtuemart_orderstates` (`virtuemart_orderstate_id`, `order_status_code`, `order_status_name`, `order_status_description`, `order_stock_handle`, `ordering`, `virtuemart_vendor_id`) VALUES
(1, 'P', 'COM_VIRTUEMART_ORDER_STATUS_PENDING', '', 'R',1, 1),
(2, 'U', 'COM_VIRTUEMART_ORDER_STATUS_CONFIRMED_BY_SHOPPER', '', 'R',2, 1),
(3, 'C', 'COM_VIRTUEMART_ORDER_STATUS_CONFIRMED', '', 'R', 3, 1),
(4, 'X', 'COM_VIRTUEMART_ORDER_STATUS_CANCELLED', '', 'A',4, 1),
(5, 'R', 'COM_VIRTUEMART_ORDER_STATUS_REFUNDED', '', 'A',5, 1),
(6, 'S', 'COM_VIRTUEMART_ORDER_STATUS_SHIPPED', '', 'O',6, 1),
(7, 'F', 'COM_VIRTUEMART_ORDER_STATUS_COMPLETED', '', 'R',7, 1),
(8, 'D', 'COM_VIRTUEMART_ORDER_STATUS_DENIED', '', 'A',8, 1);
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_userinfos`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_userinfos` (
`virtuemart_userinfo_id` int(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_user_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`address_type` char(2) NOT NULL DEFAULT '',
`address_type_name` varchar(32) NOT NULL DEFAULT '',
`company` varchar(64),
`title` varchar(32),
`last_name` varchar(96),
`first_name` varchar(96),
`middle_name` varchar(96),
`phone_1` varchar(32),
`phone_2` varchar(32),
`fax` varchar(32),
`address_1` varchar(96) NOT NULL DEFAULT '',
`address_2` varchar(64),
`city` varchar(96) NOT NULL DEFAULT '',
`virtuemart_state_id` smallint(1) UNSIGNED NOT NULL DEFAULT '0',
`virtuemart_country_id` smallint(1) UNSIGNED NOT NULL DEFAULT '0',
`zip` varchar(32) NOT NULL DEFAULT '',
`agreed` tinyint(1) NOT NULL DEFAULT '0',
`tos` tinyint(1) NOT NULL DEFAULT '0',
`customer_note` varchar(5000) NOT NULL DEFAULT '',
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
`locked_on` datetime,
`locked_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_userinfo_id`),
KEY `i_virtuemart_user_id` (`virtuemart_userinfo_id`,`virtuemart_user_id`),
KEY `virtuemart_user_id` (`virtuemart_user_id`,`address_type`),
KEY `address_type` (`address_type`),
KEY `address_type_name` (`address_type_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci AUTO_INCREMENT=1 COMMENT='Customer Information, BT = BillTo and ST = ShipTo';
-- --------------------------------------------------------
--
-- Table structure for table `#__virtuemart_order_userinfos`
--
CREATE TABLE IF NOT EXISTS `#__virtuemart_order_userinfos` (
`virtuemart_order_userinfo_id` INT(1) UNSIGNED NOT NULL AUTO_INCREMENT,
`virtuemart_order_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`virtuemart_user_id` int(1) UNSIGNED NOT NULL DEFAULT '0',
`address_type` char(2),
`address_type_name` varchar(32),
`company` varchar(64),
`title` varchar(32),
`last_name` varchar(96),
`first_name` varchar(96),
`middle_name` varchar(96),
`phone_1` varchar(32),
`phone_2` varchar(32),
`fax` varchar(32),
`address_1` varchar(96) NOT NULL DEFAULT '',
`address_2` varchar(64) ,
`city` varchar(96) NOT NULL DEFAULT '',
`virtuemart_state_id` smallint(1) UNSIGNED NOT NULL DEFAULT '0',
`virtuemart_country_id` smallint(1) UNSIGNED NOT NULL DEFAULT '0',
`zip` varchar(32) NOT NULL DEFAULT '',
`email` varchar(128),
`agreed` tinyint(1) NOT NULL DEFAULT '0',
`tos` tinyint(1) NOT NULL DEFAULT '0',
`customer_note` varchar(5000) NOT NULL DEFAULT '',
`created_on` datetime,
`created_by` int(1) NOT NULL DEFAULT '0',
`modified_on` datetime,
`modified_by` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`virtuemart_order_userinfo_id`),
KEY `virtuemart_order_id` (`virtuemart_order_id`),
KEY `virtuemart_user_id` (`virtuemart_user_id`,`address_type`),
KEY `address_type` (`address_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci COMMENT='Stores the BillTo and ShipTo Information at order time' AUTO_INCREMENT=1 ;
--
-- Dumping data for table `#__virtuemart_userfields`
--
INSERT IGNORE INTO `#__virtuemart_userfields` (`virtuemart_userfield_id`, `virtuemart_vendor_id`, `userfield_jplugin_id`, `name`, `title`, `description`, `type`, `maxlength`, `size`, `required`, `cols`, `rows`, `value`, `default`, `registration`, `shipment`, `account`, `cart`, `readonly`, `calculated`, `sys`, `userfield_params`, `ordering`, `shared`, `published`) VALUES
(5, 0, 0, 'email', 'COM_VIRTUEMART_REGISTER_EMAIL', '', 'emailaddress', 100, 30, 1, NULL, NULL, NULL, NULL, 1, 0, 1, 0,0, 0, 1, NULL, 4, 0, 1),
(6, 0, 0, 'name', 'COM_VIRTUEMART_USER_DISPLAYED_NAME', '', 'text', 400, 30, 1, 0, 0, '', NULL, 1, 0, 1, 0, 0, 0, 1, '', 8, 0, 1),
(7, 0, 0, 'username', 'COM_VIRTUEMART_USERNAME', '', 'text', 150, 30, 1, 0, 0, '', NULL, 1, 0, 1, 0, 0, 0, 1, '', 6, 0, 1),
(8, 0, 0, 'password', 'COM_VIRTUEMART_SHOPPER_FORM_PASSWORD_1', '', 'password', 100, 30, 1, NULL, NULL, NULL, NULL, 1, 0, 1, 0, 0, 0, 1, NULL, 10, 0, 1),
(9, 0, 0, 'password2', 'COM_VIRTUEMART_SHOPPER_FORM_PASSWORD_2', '', 'password', 100, 30, 1, NULL, NULL, NULL, NULL, 1, 0, 1, 0, 0, 0, 1, NULL, 12, 0, 1),
(15, 0, 0, 'agreed', 'COM_VIRTUEMART_I_AGREE_TO_TOS', '', 'checkbox', NULL, NULL, 0, NULL, NULL, NULL, NULL, 0, 0, 0, 0, 0, 0, 1, NULL, 13, 0, 1),
(16, 0, 0, 'tos', 'COM_VIRTUEMART_STORE_FORM_TOS', '', 'custom', NULL, NULL, 1, NULL, NULL, NULL, NULL, 0, 0, 0, 1, 0, 0, 1, NULL, 14, 0, 1),
(17, 0, 0, 'customer_note', 'COM_VIRTUEMART_CNOTES_CART', '', 'textarea', 2500, NULL, 0, 60, 1, NULL, NULL, 0, 0, 0, 1, 0, 0, 1, NULL, 13, 0, 1),
(20, 0, 0, 'address_type_name', 'COM_VIRTUEMART_USER_FORM_ADDRESS_LABEL', '', 'text', 32, 30, 1, NULL, NULL, NULL, 'COM_VIRTUEMART_USER_FORM_ST_LABEL', 0, 1, 0, 0, 0, 0, 1, NULL, 16, 0, 1),
(21, 0, 0, 'delimiter_billto', 'COM_VIRTUEMART_USER_FORM_BILLTO_LBL', '', 'delimiter', 25, 30, 0, NULL, NULL, NULL, NULL, 1, 0, 1, 0, 0, 0, 0, NULL, 18, 0, 1),
(22, 0, 0, 'company', 'COM_VIRTUEMART_SHOPPER_FORM_COMPANY_NAME', '', 'text', 64, 30, 0, NULL, NULL, NULL, NULL, 1, 1, 1, 0, 0, 0, 1, NULL, 20, 0, 1),
(23, 0, 0, 'title', 'COM_VIRTUEMART_SHOPPER_FORM_TITLE', '', 'select', 0, 210, 0, NULL, NULL, NULL, NULL, 1, 0, 1, 0, 0, 0, 1, NULL, 22, 0, 1),
(24, 0, 0, 'first_name', 'COM_VIRTUEMART_SHOPPER_FORM_FIRST_NAME', '', 'text', 32, 30, 1, NULL, NULL, NULL, NULL, 1, 1, 1, 0, 0, 0, 1, NULL, 24, 0, 1),
(25, 0, 0, 'middle_name', 'COM_VIRTUEMART_SHOPPER_FORM_MIDDLE_NAME', '', 'text', 32, 30, 0, NULL, NULL, NULL, NULL, 1, 1, 1, 0, 0, 0, 1, NULL, 26, 0, 1),
(26, 0, 0, 'last_name', 'COM_VIRTUEMART_SHOPPER_FORM_LAST_NAME', '', 'text', 32, 30, 1, NULL, NULL, NULL, NULL, 1, 1, 1, 0, 0, 0, 1, NULL, 28, 0, 1),
(27, 0, 0, 'address_1', 'COM_VIRTUEMART_SHOPPER_FORM_ADDRESS_1', '', 'text', 64, 30, 1, NULL, NULL, NULL, NULL, 1, 1, 1, 0, 0, 0, 1, NULL, 30, 0, 1),
(28, 0, 0, 'address_2', 'COM_VIRTUEMART_SHOPPER_FORM_ADDRESS_2', '', 'text', 64, 30, 0, NULL, NULL, NULL, NULL, 1, 1, 1, 0, 0, 0, 1, NULL, 32, 0, 1),
(29, 0, 0, 'zip', 'COM_VIRTUEMART_SHOPPER_FORM_ZIP', '', 'text', 32, 30, 1, NULL, NULL, NULL, NULL, 1, 1, 1, 0, 0, 0, 1, NULL, 34, 0, 1),
(35, 0, 0, 'city', 'COM_VIRTUEMART_SHOPPER_FORM_CITY', '', 'text', 32, 30, 1, NULL, NULL, NULL, NULL, 1, 1, 1, 0, 0, 0, 1, NULL, 36, 0, 1),
(36, 0, 0, 'virtuemart_country_id', 'COM_VIRTUEMART_SHOPPER_FORM_COUNTRY', '', 'select', 0, 210, 1, NULL, NULL, NULL, NULL, 1, 1, 1, 0, 0, 0, 1, NULL, 38, 0, 1),
(37, 0, 0, 'virtuemart_state_id', 'COM_VIRTUEMART_SHOPPER_FORM_STATE', '', 'select', 0, 210, 1, NULL, NULL, NULL, NULL, 1, 1, 1, 0, 0, 0, 1, NULL, 40, 0, 1),
(38, 0, 0, 'phone_1', 'COM_VIRTUEMART_SHOPPER_FORM_PHONE', '', 'text', 32, 30, 0, NULL, NULL, NULL, NULL, 1, 1, 1, 0, 0, 0, 1, NULL, 42, 0, 1),
(39, 0, 0, 'phone_2', 'COM_VIRTUEMART_SHOPPER_FORM_PHONE2', '', 'text', 32, 30, 0, NULL, NULL, NULL, NULL, 1, 1, 1, 0, 0, 0, 1, NULL, 44, 0, 1),
(40, 0, 0, 'fax', 'COM_VIRTUEMART_SHOPPER_FORM_FAX', '', 'text', 32, 30, 0, NULL, NULL, NULL, NULL, 1, 1, 1, 0, 0, 0, 1, NULL, 46, 0, 1),
(41, 0, 0, 'delimiter_sendregistration', 'COM_VIRTUEMART_BUTTON_SEND_REG', '', 'delimiter', 25, 30, 0, NULL, NULL, NULL, NULL, 0, 0, 0, 0, 0, 0, 0, NULL, 2, 0, 1),
(42, 0, 0, 'delimiter_userinfo', 'COM_VIRTUEMART_ORDER_PRINT_CUST_INFO_LBL', '', 'delimiter', NULL, NULL, 0, NULL, NULL, NULL, NULL, 1, 0, 1, 0, 0, 0, 0, NULL, 14, 0, 1),
(50, 0, 0, 'tax_exemption_number', 'COM_VIRTUEMART_SHOPPER_FORM_TAXEXEMPTION_NBR', 'Vendors can set here a tax exemption number for a shopper. This field is only changeable by administrators.', 'text', 10, 0, 0, 0, 0, NULL, NULL, 0, 0, 1, 1, 0, 0, 0, NULL, 48, 0, 0),
(51, 0, 0, 'tax_usage_type', 'COM_VIRTUEMART_SHOPPER_FORM_TAX_USAGE', 'Federal, national, educational, public, or similar often get a special tax. This field is only writable by administrators.', 'select', 0, 0, 0, 0, 0, NULL, NULL, 0, 0, 1, 1, 0, 0, 0, NULL, 50, 0, 0);
INSERT IGNORE INTO `#__virtuemart_userfield_values` ( `virtuemart_userfield_id`, `fieldtitle`, `fieldvalue`, `sys`, `ordering`) VALUES
( 23, 'COM_VIRTUEMART_SHOPPER_TITLE_MR', 'Mr', 0, 0),
( 23, 'COM_VIRTUEMART_SHOPPER_TITLE_MRS', 'Mrs', 0, 1),
( 51, 'None', '', 0, 0),
( 51, 'Non-resident (Canada)', 'R', 0, 1),
( 51, 'Federal government (United States)', 'A', 0, 1),
( 51, 'State government (United States)', 'B', 0, 2),
( 51, 'Tribe / Status Indian / Indian Band (both)', 'C', 0, 3),
( 51, 'Foreign diplomat (both)', 'D', 0, 4),
( 51, 'Charitable or benevolent org (both)', 'E', 0, 5),
( 51, 'Religious or educational org (both)', 'F', 0, 6),
( 51, 'Resale (both)', 'G', 0, 7),
( 51, 'Commercial agricultural production (both)', 'H', 0, 8),
( 51, 'Industrial production / manufacturer (both)', 'I', 0, 9),
( 51, 'Direct pay permit (United States)', 'J', 0, 10),
( 51, 'Direct mail (United States)', 'K', 0, 11),
( 51, 'Other (both)', 'L', 0, 12),
( 51, 'Local government (United States)', 'N', 0, 13),
( 51, 'Commercial aquaculture (Canada)', 'P', 0, 14),
( 51, 'Commercial Fishery (Canada)', 'Q', 0, 15);
--
-- Dumping data for table `#__virtuemart_customs`
--
INSERT IGNORE INTO `#__virtuemart_customs` ( `virtuemart_custom_id`, `custom_parent_id`, `virtuemart_vendor_id`, `custom_jplugin_id`, `custom_element`, `admin_only`, `custom_title`, `show_title`, `custom_tip`, `custom_value`, `custom_desc`, `field_type`, `is_list`, `is_hidden`, `is_cart_attribute`, `is_input`, `layout_pos`, `custom_params`, `shared`, `published`, `ordering`) VALUES
(1,0, 0, 0, '0', 0, 'COM_VIRTUEMART_RELATED_PRODUCTS', 1, 'COM_VIRTUEMART_RELATED_PRODUCTS_TIP', 'related_products', 'COM_VIRTUEMART_RELATED_PRODUCTS_DESC', 'R', 0, 0, 0, 0, 'related_products', 'wPrice="1"|wImage="1"|wDescr="1"|', 0, 1, 0),
(2,0, 0, 0, '0', 0, 'COM_VIRTUEMART_RELATED_CATEGORIES', 1, 'COM_VIRTUEMART_RELATED_CATEGORIES_TIP', 'related_categories', 'COM_VIRTUEMART_RELATED_CATEGORIES_DESC', 'Z', 0, 0, 0, 0, 'related_categories', 'wImage="1"|wDescr="1"|', 0, 1, 0);
INSERT IGNORE INTO `#__virtuemart_shoppergroups` (`virtuemart_shoppergroup_id`, `virtuemart_vendor_id`, `shopper_group_name`, `shopper_group_desc`, `default`, `shared`, `published`) VALUES
(2, 1, 'COM_VIRTUEMART_SHOPPERGROUP_DEFAULT', 'COM_VIRTUEMART_SHOPPERGROUP_DEFAULT_TIP', 1, 1, 1),
(1, 1, 'COM_VIRTUEMART_SHOPPERGROUP_GUEST', 'COM_VIRTUEMART_SHOPPERGROUP_GUEST_TIP', 2, 1, 1); install_required_data.sql 0000644 00000103355 15234761600 0011637 0 ustar 00 -- VirtueMart table data SQL script
-- This inserts required data into the VirtueMart tables
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET FOREIGN_KEY_CHECKS=0 */;
-- Dumping data for table #__virtuemart_currencies:
/*!40000 ALTER TABLE `#__virtuemart_currencies` DISABLE KEYS */;
INSERT IGNORE INTO `#__virtuemart_currencies` (`virtuemart_currency_id`, `virtuemart_vendor_id`, `currency_name`, `currency_code_2`, `currency_code_3`, `currency_numeric_code`, `currency_exchange_rate`, `currency_symbol`, `currency_decimal_place`, `currency_decimal_symbol`, `currency_thousands`, `currency_positive_style`, `currency_negative_style`) VALUES
(2, 1, "United Arab Emirates dirham", "", "AED", 784, 0.00000, "د.إ", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(4, 1, "Albanian lek", "", "ALL", 8, 0.00000, "Lek", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(5, 1, "Netherlands Antillean gulden", "", "ANG", 532, 0.00000, "ƒ", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(7, 1, "Argentine peso", "", "ARS", 32, 0.00000, "$", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(9, 1, "Australian dollar", "", "AUD", 36, 0.00000, "$", "2", ".", "", "{symbol} {number}", "{sign}{symbol} {number}"),
(10, 1, "Aruban florin", "", "AWG", 533, 0.00000, "ƒ", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(11, 1, "Barbadian dollar", "", "BBD", 52, 0.00000, "$", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(12, 1, "Bangladeshi taka", "", "BDT", 50, 0.00000, "৳", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(15, 1, "Bahraini dinar", "", "BHD", 48, 0.00000, "ب.د", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(16, 1, "Burundian franc", "", "BIF", 108, 0.00000, "Fr", "0", "", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(17, 1, "Bermudian dollar", "", "BMD", 60, 0.00000, "$", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(18, 1, "Brunei dollar", "", "BND", 96, 0.00000, "$", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(19, 1, "Bolivian boliviano", "", "BOB", 68, 0.00000, "$b", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(20, 1, "Brazilian real", "", "BRL", 986, 0.00000, "R$", "2", ",", ".", "{symbol} {number}", "{symbol} {sign}{number}"),
(21, 1, "Bahamian dollar", "", "BSD", 44, 0.00000, "$", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(22, 1, "Bhutanese ngultrum", "", "BTN", 64, 0.00000, "BTN", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(24, 1, "Botswana pula", "", "BWP", 72, 0.00000, "P", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(25, 1, "Belize dollar", "", "BZD", 84, 0.00000, "BZ$", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(26, 1, "Canadian dollar", "", "CAD", 124, 0.00000, "$", "2", ".", ",", "{symbol}{number}", "{symbol}{sign}{number}"),
(27, 1, "Swiss franc", "", "CHF", 756, 0.00000, "CHF", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(28, 1, "Unidad de Fomento", "", "CLF", 990, 0.00000, "CLF", "0", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(29, 1, "Chilean peso", "", "CLP", 152, 0.00000, "$", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(30, 1, "Chinese renminbi yuan", "", "CNY", 156, 0.00000, "元", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(31, 1, "Colombian peso", "", "COP", 170, 0.00000, "$", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(32, 1, "Costa Rican colón", "", "CRC", 188, 0.00000, "₡", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(33, 1, "Czech koruna", "", "CZK", 203, 0.00000, "Kč", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(34, 1, "Cuban peso", "", "CUP", 192, 0.00000, "₱", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(35, 1, "Cape Verdean escudo", "", "CVE", 132, 0.00000, "$", "0", "", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(40, 1, "Danish krone", "", "DKK", 208, 0.00000, "kr", "2", ".", ",", "{symbol}{number}", "{symbol}{sign}{number}"),
(41, 1, "Dominican peso", "", "DOP", 214, 0.00000, "RD$", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(42, 1, "Algerian dinar", "", "DZD", 12, 0.00000, "د.ج", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(44, 1, "Egyptian pound", "", "EGP", 818, 0.00000, "£", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(46, 1, "Ethiopian birr", "", "ETB", 230, 0.00000, "ETB", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(47, 1, "Euro", "", "EUR", 978, 0.00000, "€", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(49, 1, "Fijian dollar", "", "FJD", 242, 0.00000, "$", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(50, 1, "Falkland pound", "", "FKP", 238, 0.00000, "£", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(52, 1, "British pound", "", "GBP", 826, 0.00000, "£", "2", ".", ",", "{symbol}{number}", "{symbol}{sign}{number}"),
(54, 1, "Gibraltar pound", "", "GIP", 292, 0.00000, "£", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(55, 1, "Gambian dalasi", "", "GMD", 270, 0.00000, "D", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(56, 1, "Guinean franc", "", "GNF", 324, 0.00000, "Fr", "0", "", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(58, 1, "Guatemalan quetzal", "", "GTQ", 320, 0.00000, "Q", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(60, 1, "Guyanese dollar", "", "GYD", 328, 0.00000, "$", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(61, 1, "Hong Kong dollar", "", "HKD", 344, 0.00000, "元", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(62, 1, "Honduran lempira", "", "HNL", 340, 0.00000, "L", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(63, 1, "Haitian gourde", "", "HTG", 332, 0.00000, "G", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(64, 1, "Hungarian forint", "", "HUF", 348, 0.00000, "Ft", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(65, 1, "Indonesian rupiah", "", "IDR", 360, 0.00000, "Rp", "0", "", "", "{symbol}{number}", "{symbol}{sign}{number}"),
(67, 1, "Israeli new sheqel", "", "ILS", 376, 0.00000, "₪", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(68, 1, "Indian rupee", "", "INR", 356, 0.00000, "₨", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(69, 1, "Iraqi dinar", "", "IQD", 368, 0.00000, "ع.د", "0", "", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(70, 1, "Iranian rial", "", "IRR", 364, 0.00000, "﷼", "2", ",", "", "{number} {symbol}", "{sign}{number}{symbol}"),
(73, 1, "Jamaican dollar", "", "JMD", 388, 0.00000, "J$", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(74, 1, "Jordanian dinar", "", "JOD", 400, 0.00000, "د.ا", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(75, 1, "Japanese yen", "", "JPY", 392, 0.00000, "¥", "0", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(76, 1, "Kenyan shilling", "", "KES", 404, 0.00000, "Sh", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(77, 1, "Cambodian riel", "", "KHR", 116, 0.00000, "៛", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(78, 1, "Comorian franc", "", "KMF", 174, 0.00000, "Fr", "0", "", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(79, 1, "North Korean won", "", "KPW", 408, 0.00000, "₩", "0", "", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(80, 1, "South Korean won", "", "KRW", 410, 0.00000, "₩", "0", "", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(81, 1, "Kuwaiti dinar", "", "KWD", 414, 0.00000, "د.ك", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(82, 1, "Cayman Islands dollar", "", "KYD", 136, 0.00000, "$", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(83, 1, "Lao kip", "", "LAK", 418, 0.00000, "₭", "0", "", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(84, 1, "Lebanese pound", "", "LBP", 422, 0.00000, "£", "0", "", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(85, 1, "Sri Lankan rupee", "", "LKR", 144, 0.00000, "₨", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(86, 1, "Liberian dollar", "", "LRD", 430, 0.00000, "$", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(87, 1, "Lesotho loti", "", "LSL", 426, 0.00000, "L", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(89, 1, "Libyan dinar", "", "LYD", 434, 0.00000, "ل.د", "3", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(90, 1, "Moroccan dirham", "", "MAD", 504, 0.00000, "د.م.", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(92, 1, "Mongolian tögrög", "", "MNT", 496, 0.00000, "₮", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(93, 1, "Macanese pataca", "", "MOP", 446, 0.00000, "P", "1", ",", "", "{symbol}{number}", "{symbol}{sign}{number}"),
(94, 1, "Mauritanian ouguiya", "", "MRO", 478, 0.00000, "UM", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(96, 1, "Mauritian rupee", "", "MUR", 480, 0.00000, "₨", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(97, 1, "Maldivian rufiyaa", "", "MVR", 462, 0.00000, "ރ.", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(98, 1, "Malawian kwacha", "", "MWK", 454, 0.00000, "MK", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(100, 1, "Malaysian ringgit", "", "MYR", 458, 0.00000, "RM", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(102, 1, "Nigerian naira", "", "NGN", 566, 0.00000, "₦", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(105, 1, "Norwegian krone", "", "NOK", 578, 0.00000, "kr", "2", ",", "", "{symbol}{number}", "{symbol}{sign}{number}"),
(106, 1, "Nepalese rupee", "", "NPR", 524, 0.00000, "₨", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(107, 1, "New Zealand dollar", "", "NZD", 554, 0.00000, "$", "2", ",", "", "{number} {symbol}", "{symbol}{sign}{number}"),
(108, 1, "Omani rial", "", "OMR", 512, 0.00000, "﷼", "3", ".", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(109, 1, "Panamanian balboa", "", "PAB", 590, 0.00000, "B/.", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(110, 1, "Peruvian nuevo sol", "", "PEN", 604, 0.00000, "S/.", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(111, 1, "Papua New Guinean kina", "", "PGK", 598, 0.00000, "K", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(112, 1, "Philippine peso", "", "PHP", 608, 0.00000, "₱", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(113, 1, "Pakistani rupee", "", "PKR", 586, 0.00000, "₨", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(114, 1, "Polish Złoty", "", "PLN", 985, 0.00000, "zł", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(116, 1, "Paraguayan guaraní", "", "PYG", 600, 0.00000, "₲", "0", "", ".", "{symbol} {number}", "{symbol} {sign}{number}"),
(117, 1, "Qatari riyal", "", "QAR", 634, 0.00000, "﷼", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(118, 1, "Romanian leu", "", "RON", 946, 0.00000, "lei", "2", ",", ".", "{number} {symbol}", "{sign}{number} {symbol}"),
(119, 1, "Rwandan franc", "", "RWF", 646, 0.00000, "Fr", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(120, 1, "Saudi riyal", "", "SAR", 682, 0.00000, "﷼", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(121, 1, "Solomon Islands dollar", "", "SBD", 90, 0.00000, "$", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(122, 1, "Seychellois rupee", "", "SCR", 690, 0.00000, "₨", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(124, 1, "Swedish krona", "", "SEK", 752, 0.00000, "kr", "2", ",", ".", "{number} {symbol}", "{sign}{number} {symbol}"),
(125, 1, "Singapore dollar", "", "SGD", 702, 0.00000, "$", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(126, 1, "Saint Helenian pound", "", "SHP", 654, 0.00000, "£", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(127, 1, "Sierra Leonean leone", "", "SLL", 694, 0.00000, "Le", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(128, 1, "Somali shilling", "", "SOS", 706, 0.00000, "S", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(130, 1, "São Tomé and Príncipe dobra", "", "STD", 678, 0.00000, "Db", "0", "", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(131, 1, "Russian ruble", "", "RUB", 643, 0.00000, "руб", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(132, 1, "Salvadoran colón", "", "SVC", 222, 0.00000, "$", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(133, 1, "Syrian pound", "", "SYP", 760, 0.00000, "£", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(134, 1, "Swazi lilangeni", "", "SZL", 748, 0.00000, "L", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(135, 1, "Thai baht", "", "THB", 764, 0.00000, "฿", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(136, 1, "Tunisian dinar", "", "TND", 788, 0.00000, "د.ت", "3", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(137, 1, "Tongan paʻanga", "", "TOP", 776, 0.00000, "T$", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(139, 1, "Türk Lirası", "", "TRY", 949, 0.00000, "TL", "2", ",", ".", "{number} {symbol}", "{sign}{number} {symbol}"),
(140, 1, "Trinidad and Tobago dollar", "", "TTD", 780, 0.00000, "TT$", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(141, 1, "New Taiwan dollar", "", "TWD", 901, 0.00000, "NT$", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(142, 1, "Tanzanian shilling", "", "TZS", 834, 0.00000, "Sh", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(144, 1, "United States dollar", "", "USD", 840, 0.00000, "$", "2", ".", ",", "{symbol}{number}", "{symbol}{sign}{number}"),
(147, 1, "Vietnamese Dong", "", "VND", 704, 0.00000, "₫", "0", "", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(148, 1, "Vanuatu vatu", "", "VUV", 548, 0.00000, "Vt", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(149, 1, "Samoan tala", "", "WST", 882, 0.00000, "T", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(151, 1, "Yemeni rial", "", "YER", 886, 0.00000, "﷼", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(152, 1, "Serbian dinar", "", "RSD", 941, 0.00000, "Дин.", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(153, 1, "South African rand", "", "ZAR", 710, 0.00000, "R", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(154, 1, "Zambian kwacha", "", "ZMK", 894, 0.00000, "ZK", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(156, 1, "Zimbabwean dollar", "", "ZWD", 932, 0.00000, "Z$", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(158, 1, "Armenian dram", "", "AMD", 51, 0.00000, "դր.", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(159, 1, "Myanmar kyat", "", "MMK", 104, 0.00000, "K", "2", ",", "", "{number} {symbol}", "{symbol} {sign}{number}"),
(160, 1, "Croatian kuna", "", "HRK", 191, 0.00000, "kn", "2", ",", ".", "{number} {symbol}", "{sign}{number} {symbol}"),
(161, 1, "Eritrean nakfa", "", "ERN", 232, 0.00000, "Nfk", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(162, 1, "Djiboutian franc", "", "DJF", 262, 0.00000, "Fr", "0", "", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(163, 1, "Icelandic króna", "", "ISK", 352, 0.00000, "kr", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(164, 1, "Kazakhstani tenge", "", "KZT", 398, 0.00000, "лв", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(165, 1, "Kyrgyzstani som", "", "KGS", 417, 0.00000, "лв", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(166, 1, "Latvian lats", "", "LVL", 428, 0.00000, "Ls", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(167, 1, "Lithuanian litas", "", "LTL", 440, 0.00000, "Lt", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(168, 1, "Mexican peso", "", "MXN", 484, 0.00000, "$", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(169, 1, "Moldovan leu", "", "MDL", 498, 0.00000, "L", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(170, 1, "Namibian dollar", "", "NAD", 516, 0.00000, "$", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(171, 1, "Nicaraguan córdoba", "", "NIO", 558, 0.00000, "C$", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(172, 1, "Ugandan shilling", "", "UGX", 800, 0.00000, "Sh", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(173, 1, "Macedonian denar", "", "MKD", 807, 0.00000, "ден", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(174, 1, "Uruguayan peso", "", "UYU", 858, 0.00000, "$", "0", "", "", "{symbol}{number}", "{symbol}{sign}{number}"),
(175, 1, "Uzbekistani som", "", "UZS", 860, 0.00000, "лв", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(176, 1, "Azerbaijani manat", "", "AZN", 934, 0.00000, "ман", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(177, 1, "Ghanaian cedi", "", "GHS", 936, 0.00000, "₵", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(178, 1, "Venezuelan bolívar", "", "VEF", 937, 0.00000, "Bs", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(179, 1, "Sudanese pound", "", "SDG", 938, 0.00000, "£", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(180, 1, "Uruguay Peso", "", "UYI", 940, 0.00000, "UYI", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(181, 1, "Mozambican metical", "", "MZN", 943, 0.00000, "MT", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(182, 1, "WIR Euro", "", "CHE", 947, 0.00000, "€", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(183, 1, "WIR Franc", "", "CHW", 948, 0.00000, "CHW", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(184, 1, "Central African CFA franc", "", "XAF", 950, 0.00000, "Fr", "0", "", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(185, 1, "East Caribbean dollar", "", "XCD", 951, 0.00000, "$", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(186, 1, "West African CFA franc", "", "XOF", 952, 0.00000, "Fr", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(187, 1, "CFP franc", "", "XPF", 953, 0.00000, "F", "0", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(188, 1, "Surinamese dollar", "", "SRD", 968, 0.00000, "$", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(189, 1, "Malagasy ariary", "", "MGA", 969, 0.00000, "MGA", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(190, 1, "Unidad de Valor Real", "", "COU", 970, 0.00000, "COU", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(191, 1, "Afghan afghani", "", "AFN", 971, 0.00000, "؋", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(192, 1, "Tajikistani somoni", "", "TJS", 972, 0.00000, "ЅМ", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(193, 1, "Angolan kwanza", "", "AOA", 973, 0.00000, "Kz", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(194, 1, "Belarusian ruble", "", "BYR", 974, 0.00000, "p.", "0", "", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(195, 1, "Bulgarian lev", "", "BGN", 975, 0.00000, "лв", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(196, 1, "Congolese franc", "", "CDF", 976, 0.00000, "Fr", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(197, 1, "Bosnia and Herzegovina convert", "", "BAM", 977, 0.00000, "KM", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(198, 1, "Mexican Unid", "", "MXV", 979, 0.00000, "MXV", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(199, 1, "Ukrainian hryvnia", "", "UAH", 980, 0.00000, "₴", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(200, 1, "Georgian lari", "", "GEL", 981, 0.00000, "ლ", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}"),
(201, 1, "Mvdol", "", "BOV", 984, 0.00000, "BOV", "2", ",", "", "{number} {symbol}", "{sign}{number} {symbol}");
/*!40000 ALTER TABLE `#__virtuemart_currencies` ENABLE KEYS */;
/*!40000 ALTER TABLE `#__virtuemart_states` DISABLE KEYS */;
INSERT IGNORE INTO `#__virtuemart_states` (`virtuemart_state_id`, `virtuemart_country_id`, `virtuemart_worldzone_id`, `state_name`, `state_3_code`, `state_2_code`, `published`) VALUES
(1, 466, 0, "قزوین", "QAS", "QA", 1),
(2, 468, 0, "سمنان", "SEM", "SE", 1),
(3, 469, 0, "زابل", "SBA", "SB", 1),
(4, 470, 0, "تهران", "TEH", "TE", 1),
(5, 471, 0, "یزد", "YAZ", "YA", 1),
(6, 472, 0, "زنجان", "ZAN", "ZA", 1),
(7, 470, 0, "پیشوا ورامین", "PIS","PS", 1),
(8, 470, 0, "اسلامشهر", "ESL", "EL",1),
(9, 470, 0, "باقر شهر", "BAG", "BG",1),
(10, 470, 0, "پاکدشت", "PAK", "PK", 1),
(11, 470, 0, "چهاردانگه", "CHA", "CH", 1),
(12, 470, 0, "دماوند", "DAM", "DM", 1),
(13, 470, 0, "رباط کریم", "RBK", "RK", 1),
(14, 470, 0, "رودهن", "ROD", "RD", 1),
(15, 470, 0, "شهر ری", "RAY", "RY", 1),
(16, 470, 0, "شهر قدس", "GOD", "GD", 1),
(17, 470, 0, "شهرک اندیشه", "ANS", "AN", 1),
(18, 470, 0, "شهریار", "SHA", "SH", 1),
(19, 470, 0, "فیروزکوه", "FTR", "FR", 1),
(20, 470, 0, "قرچک", "GAR", "GA", 1),
(21, 470, 0, "پردیس", "PAR", "PD", 1),
(22, 470, 0, "ورامین", "VAR", "VR", 1),
(23, 746, 0, "کرج", "ALB", "AK", 1),
(24, 746, 0, "مشکین دشت", "MSH", "ME", 1),
(25, 746, 0, "نظرآباد", "NZR", "NZ", 1),
(26, 746, 0, "حصارک", "HES", "H3", 1),
(27, 746, 0, "فردیس", "FRD", "FD", 1),
(28, 746, 0, "مهرشهر", "MEH", "MH", 1),
(29, 746, 0, "ماهدشت", "MAH", "MD", 1),
(30, 746, 0, "کمالشهر", "KAM", "KM", 1),
(31, 746, 0, "محمدشهر", "MOM", "MM", 1),
(32, 746, 0, "هشتگرد", "HAG", "HG", 1),
(33, 472, 0, "آب بر", "ABB", "AB", 1),
(34, 472, 0, "ابهر", "ABR", "BR", 1),
(35, 472, 0, "خرمدره", "KRM", "OM", 1),
(36, 472, 0, "خدابنده", "BAN", "BN", 1),
(37, 472, 0, "هیدج", "HID", "HD", 1),
(38, 468, 0, "دامغان", "DMG", "DG", 1),
(39, 468, 0, "گرمسار", "GRM", "GM", 1),
(40, 468, 0, "شاهرود", "SHR", "SR", 1),
(41, 469, 0, "زاهدان", "ZAH", "ZH", 1),
(42, 450, 0, "کوار", "KVR", "KV", 1),
(43, 450, 0, "آباده", "ABD", "AD", 1),
(44, 450, 0, "ارسنجان", "ARS", "AJ", 1),
(45, 450, 0, "اقلید", "OGL", "OG", 1),
(46, 450, 0, "بیضاء", "BZA", "BZ", 1),
(47, 450, 0, "جهرم", "JRM", "JM", 1),
(48, 450, 0, "خرامه", "KRA", "KA", 1),
(49, 450, 0, "خفر", "KFR", "KF", 1),
(50, 450, 0, "داراب", "DRB", "DB", 1),
(51, 450, 0, "صفاشهر", "SFA", "SP", 1),
(52, 450, 0, "فسا", "FSA", "FS", 1),
(53, 450, 0, "قادرآباد", "GDR", "GR", 1),
(54, 450, 0, "فیروزآباد", "FIR", "FI", 1),
(55, 450, 0, "کازرون", "KZR", "KZ", 1),
(56, 450, 0, "مرودشت", "MRV", "RV", 1),
(57, 450, 0, "نورآباد ممسنی", "NOR", "NR", 1),
(58, 450, 0, "نیریز", "NRZ", "RZ", 1),
(59, 466, 0, "آبیک", "YEK", "YK", 1),
(60, 466, 0, "اقبالیه", "EGH", "EH", 1),
(61, 466, 0, "الوند", "ALV", "AV", 1),
(62, 466, 0, "بوئین زهرا", "BNZ", "BH", 1),
(63, 466, 0, "تاکستان", "TAK", "TK", 1),
(64, 466, 0, "شهرستانک", "SNK", "SK", 1),
(65, 466, 0, "کوهین", "KOH", "KN", 1),
(66, 466, 0, "محمدیه", "ZIB", "ZB", 1),
(67, 466, 0, "محمودآباد نمونه", "MAN", "MN", 1),
(68, 471, 0, "اردکان", "ADK", "DA", 1),
(69, 471, 0, "طبس", "TBS", "TS", 1),
(70, 471, 0, "تفت", "TFT", "TT", 1),
(71, 471, 0, "مهریز", "MRZ", "HZ", 1),
(72, 471, 0, "میبد", "MBD", "BD", 1),
(73, 468, 0, "میامی", "MMY", "MY", 1),
(797, 450, 0, "شیراز", "SHZ", "SZ", 1),
(798, 446, 0, "تبریز", "TBR", "TB", 1),
(799, 446, 0, "ایلخچی", "ILK", "IK", 1),
(800, 446, 0, "آذر شهر", "AZR", "AZ", 1),
(801, 446, 0, "اسکو", "OSK", "OS", 1),
(802, 446, 0, "اهر", "AHR", "AH", 1),
(803, 446, 0, "بناب", "BNB", "BB", 1),
(804, 446, 0, "ترکمانچای", "TRK", "TR", 1),
(805, 446, 0, "تسوج", "TSJ", "TJ", 1),
(806, 446, 0, "جلفا (هادیشهر)", "JLF", "JF", 1),
(807, 446, 0, "سردرود", "SRD", "SD", 1),
(808, 446, 0, "شبستر", "SBT", "SB", 1),
(809, 446, 0, "عجبشیر", "AJB", "JA",1),
(810, 446, 0, "کلیبر", "KLB", "KB", 1),
(811, 446, 0, "مراغه", "MRG", "MG", 1),
(812, 446, 0, "مرند", "MRD", "MR", 1),
(813, 446, 0, "ملکان", "MLK", "MK", 1),
(814, 446, 0, "میانه", "MIN", "MI", 1),
(815, 446, 0, "هشترود", "HRD", "HR", 1),
(816, 445, 0, "ارومیه", "ORM", "OR", 1),
(817, 445, 0, "اشنویه", "OSH", "OH", 1),
(818, 445, 0, "بوکان", "BOK", "BK", 1),
(819, 445, 0, "پلدشت", "POL", "PL", 1),
(820, 445, 0, "پیرانشهر", "PIR", "PR", 1),
(821, 445, 0, "چالدران", "CHL", "CL", 1),
(822, 445, 0, "چایپاره", "CPR", "CR", 1),
(823, 445, 0, "خوی", "KOY", "KY", 1),
(824, 445, 0, "سردشت", "SAR", "SA", 1),
(825, 445, 0, "سلماس", "SAL", "SL", 1),
(826, 445, 0, "شاهین دژ", "DEZ", "DZ", 1),
(827, 445, 0, "شوط", "SOT", "ST", 1),
(828, 445, 0, "گوگ تپه", "GOG", "GG", 1),
(829, 445, 0, "ماکو", "MAK", "MO", 1),
(830, 445, 0, "مهاباد", "MHA", "MA", 1),
(831, 445, 0, "میاندواب", "MND", "DO", 1),
(832, 445, 0, "نقده", "NAG", "NA", 1),
(833, 445, 0, "تکاب", "TKB", "TA", 1),
(834, 444, 0, "اردبیل", "ARB", "AL", 1),
(835, 444, 0, "بیله سوار", "BIL", "BL", 1),
(836, 444, 0, "پارس آباد مغان", "MOG", "PA", 1),
(837, 444, 0, "خلخال", "KAL", "KL", 1),
(838, 444, 0, "مشکین شهر", "MOS", "MS", 1),
(839, 444, 0, "گرمی", "GER", "GY", 1),
(840, 449, 0, "اصفهان", "ESF", "EF", 1),
(841, 449, 0, "دستگرد برخوار", "DST", "DS", 1),
(842, 449, 0, "درچه", "DRC", "DC", 1),
(843, 449, 0, "کلیشاد", "KLS", "KS", 1),
(844, 449, 0, "آران و بیدگل", "ARN", "AG", 1),
(845, 449, 0, "اردستان", "ART", "AT", 1),
(846, 449, 0, "بادرود", "BAD", "BA", 1),
(847, 449, 0, "تیران", "TIR", "TI", 1),
(848, 449, 0, "خمینی شهر", "KHO", "KI", 1),
(849, 449, 0, "خوانسار", "KAN", "KT", 1),
(850, 449, 0, "زواره", "ZAV", "ZV", 1),
(851, 449, 0, "شهرضا", "REZ", "RA", 1),
(852, 449, 0, "شاهین شهر", "SNS", "SS", 1),
(853, 449, 0, "فلاورجان", "FLJ", "FJ", 1),
(854, 449, 0, "کاشان", "KAS", "SN", 1),
(855, 449, 0, "گلپایگان", "GOL", "GL", 1),
(856, 449, 0, "مبارکه", "MOB", "MB", 1),
(857, 449, 0, "نائین", "NAN", "NN", 1),
(858, 449, 0, "نجف آباد", "NAJ", "NJ", 1),
(859, 455, 0, "ایلام", "ELM", "EM", 1),
(860, 455, 0, "آبدانان", "ABN", "BI", 1),
(861, 455, 0, "ارکوازملکشاهی", "ARK", "ML", 1),
(862, 455, 0, "دره شهر", "DRH", "RH", 1),
(863, 455, 0, "دهلران", "DEH", "LO", 1),
(864, 455, 0, "سرآبله", "ABL", "BP", 1),
(865, 448, 0, "شهرکرد", "KRD", "KD", 1),
(866, 448, 0, "بروجن", "BRJ", "BJ", 1),
(867, 448, 0, "فرخ شهر", "FRK", "FK", 1),
(868, 448, 0, "فارسان", "FRS", "FN", 1),
(869, 458, 0, "بیرجند", "BIR", "BO", 1),
(870, 458, 0, "فردوس", "FER", "FE", 1),
(871, 458, 0, "قائن", "GEN", "GN", 1),
(872, 459, 0, "مشهد", "MAS", "MV", 1),
(873, 459, 0, "نیشابور", "NAI", "NI", 1),
(874, 459, 0, "بردسکن", "BAR", "BS", 1),
(875, 459, 0, "تایباد", "TIB", "TD", 1),
(876, 459, 0, "تربت جام", "TRJ", "TM", 1),
(877, 459, 0, "تربت حیدریه", "TBH", "TH", 1),
(878, 459, 0, "خواف", "KAF", "KW", 1),
(879, 459, 0, "سبزوار", "SVR", "SV", 1),
(880, 459, 0, "سرخس", "SAK", "RS", 1),
(881, 459, 0, "گلبهار", "GOB", "GB", 1),
(882, 459, 0, "فریمان", "FRI", "RI", 1),
(883, 459, 0, "فیض آباد", "FZA", "FZ", 1),
(884, 459, 0, "قوچان", "GOC", "GC", 1),
(885, 459, 0, "کاشمر", "KSM", "SM", 1),
(886, 459, 0, "گناباد", "GON", "GO", 1),
(887, 460, 0, "آشخانه", "ASH", "AA", 1),
(888, 460, 0, "اسفراین", "SFR", "SF", 1),
(889, 460, 0, "بجنورد", "BJN", "JN", 1),
(890, 460, 0, "شیروان", "SRV", "VA", 1),
(891, 461, 0, "اهواز", "AHV", "HV", 1),
(892, 461, 0, "بهبهان", "BEH", "BE", 1),
(893, 461, 0, "خرمشهر", "KHR", "RM", 1),
(894, 461, 0, "دزفول", "DZF", "DF", 1),
(895, 461, 0, "رامهرمز", "RAM", "RR", 1),
(896, 461, 0, "اندیمشک", "AND", "AI", 1),
(897, 461, 0, "آبادان", "ABA", "DH", 1),
(898, 461, 0, "شوش دانیال", "DAN", "DL", 1),
(899, 461, 0, "شوشتر", "STR", "TV", 1),
(900, 461, 0, "مسجد سلیمان", "MSM", "SI", 1),
(901, 467, 0, "قم", "QOM", "QM", 1),
(902, 462, 0, "سنندج", "SAN", "SJ", 1),
(903, 462, 0, "بانه", "BNE", "NE", 1),
(904, 462, 0, "بیجار", "BJR", "JR", 1),
(905, 462, 0, "دیواندره", "DIV", "DV", 1),
(906, 462, 0, "سقز", "SAG", "SG", 1),
(907, 462, 0, "قروه", "GRV", "VE", 1),
(908, 462, 0, "سروآباد", "SAD", "SX", 1),
(909, 462, 0, "کامیاران", "KMR", "YA", 1),
(910, 462, 0, "مریوان", "MAR", "RN", 1),
(911, 456, 0, "کرمان", "KER", "KG", 1),
(912, 456, 0, "بردسیر", "BRD", "BX", 1),
(913, 456, 0, "جیرفت", "JIR", "JI", 1),
(914, 456, 0, "شهداد", "SHD", "DD", 1),
(915, 456, 0, "راور", "RAV", "RE", 1),
(916, 456, 0, "رفسنجان", "RAF", "RF", 1),
(917, 456, 0, "زرند", "ZRD", "ZD", 1),
(918, 456, 0, "سیرجان", "SIR", "RJ", 1),
(919, 457, 0, "کرمانشاه", "KRS", "RG", 1),
(920, 457, 0, "اسلام آباد غرب", "ESA", "EA", 1),
(921, 457, 0, "ثلاث باباجان", "SLS", "SQ", 1),
(922, 457, 0, "جوانرود", "JAV", "JV", 1),
(923, 457, 0, "روانسر", "RVN", "VN", 1),
(924, 457, 0, "سر پل ذهاب", "SPZ", "PZ", 1),
(925, 457, 0, "سنقر", "SNG", "NG", 1),
(926, 457, 0, "هرسین", "HRS", "HS", 1),
(927, 457, 0, "صحنه", "SHN", "HN", 1),
(928, 457, 0, "کنگاور", "KNA", "VC", 1),
(929, 457, 0, "گیلانغرب", "GLG", "LG", 1),
(930, 443, 0, "گچساران", "GCS", "CA", 1),
(931, 443, 0, "دهدشت", "DED", "DX", 1),
(932, 443, 0, "یاسوج", "YAS", "YS", 1),
(933, 452, 0, "گرگان", "GRG", "GE", 1),
(934, 452, 0, "بندر ترکمن", "BTR", "BT", 1),
(935, 452, 0, "علی آباد کتول", "AAC", "AC", 1),
(936, 452, 0, "کردکوی", "KRK", "KK", 1),
(937, 452, 0, "کلاله", "KLL", "LL", 1),
(938, 452, 0, "گنبد کاووس", "GKV", "GV", 1),
(939, 454, 0, "بستک", "BST", "BM", 1),
(940, 453, 0, "همدان", "HAM", "HM", 1),
(941, 453, 0, "اسد آباد", "ASA", "AE", 1),
(942, 453, 0, "بهار", "BHR", "HY", 1),
(943, 453, 0, "تویسرکان", "TSR", "TC", 1),
(944, 453, 0, "رزن", "RZN", "ZN", 1),
(945, 453, 0, "کبودرآهنگ", "KAB", "KQ", 1),
(946, 453, 0, "قروه درجزین", "GRJ", "GJ", 1),
(947, 453, 0, "لاله جین", "LLG", "LJ", 1),
(948, 453, 0, "ملایر", "MLY", "LY", 1),
(949, 453, 0, "نهاوند", "NHV", "NV", 1),
(950, 451, 0, "رشت", "RAS", "RC", 1),
(951, 451, 0, "آستانه اشرفیه", "ASS", "AX", 1),
(952, 451, 0, "آستارا", "AST", "SO", 1),
(953, 451, 0, "بندر انزلی", "ANZ", "ZL", 1),
(954, 451, 0, "تالش", "TAL", "TL", 1),
(955, 451, 0, "چابکسر", "CHS", "CS", 1),
(956, 451, 0, "رودسر", "RDS", "AO", 1),
(957, 451, 0, "سنگر", "SGR", "DK", 1),
(958, 451, 0, "صومعه سرا", "SSR", "VJ", 1),
(959, 451, 0, "لاهیجان", "LAJ", "LH", 1),
(960, 451, 0, "لشت نشاء", "LAS", "LS", 1),
(961, 451, 0, "لنگرود", "LAN", "LN", 1),
(962, 451, 0, "ماسال", "MSL", "MP", 1),
(963, 463, 0, "خرم آباد", "LRS", "LT", 1),
(964, 463, 0, "ازنا", "AZN", "FV", 1),
(965, 463, 0, "الشتر", "ALS", "DJ", 1),
(966, 463, 0, "الیگودرز", "ALG", "GZ", 1),
(967, 463, 0, "بروجرد", "BJD", "GH", 1),
(968, 463, 0, "درود", "DRD", "KU", 1),
(969, 463, 0, "کوهدشت", "KOD", "JD", 1),
(970, 465, 0, "آمل", "AML", "AM", 1),
(971, 465, 0, "بابل", "BAB", "BU", 1),
(972, 465, 0, "بابلسر", "BSR", "BQ", 1),
(973, 465, 0, "بهشهر", "BHS", "BF", 1),
(974, 465, 0, "تنکابن", "TON", "TN", 1),
(975, 465, 0, "جویبار", "JOY", "JY", 1),
(976, 465, 0, "چالوس", "CLO", "CO", 1),
(977, 465, 0, "رامسر", "RMS", "RQ", 1),
(978, 465, 0, "رویان", "ROY", "RO", 1),
(979, 465, 0, "ساری", "SRY", "SY", 1),
(980, 465, 0, "سلمانشهر", "SLM", "SE", 1),
(981, 465, 0, "شیرود", "SRO", "SW", 1),
(982, 465, 0, "قائم شهر", "GHA", "GW", 1),
(983, 465, 0, "کلاردشت", "KLA", "KC", 1),
(984, 465, 0, "سوادکوه", "SAV", "VD", 1),
(985, 465, 0, "فریدونکنار", "FDN", "ON", 1),
(986, 465, 0, "کیاکلا", "KKL", "OB", 1),
(987, 465, 0, "گلوگاه", "GLO", "OL", 1),
(988, 465, 0, "محمود آباد", "MAD", "HJ", 1),
(989, 465, 0, "نشتارود", "NSH", "NS", 1),
(990, 465, 0, "نکا", "NEK", "NK", 1),
(991, 465, 0, "نوشهر", "NOS", "OQ", 1),
(992, 464, 0, "ساوه", "SVE", "SU", 1),
(993, 464, 0, "آشتیان", "ATI", "TY", 1),
(994, 464, 0, "اراک", "ARA", "KP", 1),
(995, 464, 0, "فراهان", "FRH", "FH", 1),
(996, 464, 0, "تفرش", "TAF", "TF", 1),
(997, 464, 0, "خمین", "KHM", "OI", 1),
(998, 464, 0, "میلاجرد", "MLJ", "MJ", 1),
(999, 464, 0, "کمیجان", "KMJ", "JK", 1),
(1000, 464, 0, "محلات", "MLA", "LA", 1),
(1001, 470, 0, "پرند", "PRA", "PN", 1);
/*!40000 ALTER TABLE `#__virtuemart_states` ENABLE KEYS */;
/*!40014 SET FOREIGN_KEY_CHECKS=1 */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
install_sample_data.sql 0000644 00000152426 15234761600 0011303 0 ustar 00 INSERT IGNORE INTO `#__virtuemart_calcs` (`virtuemart_calc_id`, `calc_name`, `calc_descr`, `calc_kind`, `calc_value_mathop`, `calc_value`, `calc_currency`, `ordering`, `published`) VALUES
(1, 'Tax 20%', 'common vat, if your shop needs only one VAT, just use it without any category set', 'VatTax', '+%', 20.0000, 47, 0, 1),
(2, 'Discount 5% for ladies', 'The discount is based on net price with VAT, the tax amount is recalculated based on the new net price', 'DATax', '-%', 5.0000, 47, 0, 1),
(3, 'Tax 10%', 'as example for the category product variants', 'VatTax', '+%', 10.0000, 47, 0, 1),
(4, 'Tax 7%', 'as example for the category product attributes', 'VatTax', '+%', 7.0000, 47, 0, 1);
INSERT IGNORE INTO `#__virtuemart_calc_categories` (`virtuemart_calc_id`, `virtuemart_category_id`) VALUES
(1, 2),
(1, 3),
(1, 4),
(1, 7),
(1, 8),
(1, 9),
(2, 9),
(3, 11),
(4, 12);
INSERT IGNORE INTO `#__virtuemart_categories` (`virtuemart_category_id`, `virtuemart_vendor_id`, `ordering`, `shared`, `published`) VALUES
(2, 1, 2, 1, 1),
(3, 1, 3, 1, 1),
(4, 1, 4, 1, 1),
(7, 1, 5, 1, 1),
(8, 1, 7, 1, 1),
(9, 1, 6, 1, 1),
(11, 1, 1, 1, 1),
(12, 1, 0, 1, 1);
INSERT IGNORE INTO `#__virtuemart_categories_XLANG` (`virtuemart_category_id`, `category_name`, `category_description`, `metadesc`, `metakey`, `customtitle`, `slug`) VALUES
(2, 'Product pattern', '<p><span style="background-color: #fcdb73; text-align: center; padding: 5px 40px;">Example for usage of product pattern. For showcase reason the PATTERN is NOT unpublished.</span></p>', '', '', '', 'product-pattern'),
(3, 'Pagination', '<p>Use this category to test the ordering of products. Sort order by Name, SKU, Manufacturer (more available in vmconfig > product order settings)<br />Additionally filter by Manufacturer,</p> <p style="background-color: #fcdb73; text-align: center; padding: 5px 40px;"><strong>Advise:</strong> There are three pattern HGD#0, CEG#0, FAC#0. The last two digits represent the sort order.</p>', '', '', '', 'pagination'),
(4, 'Headpiece', '', '', '', '', 'headpiece'),
(7, 'Wear', '', '', '', '', 'wear'),
(8, 'Mister', '<p>Sample for Subcategory. <br />Select superordinated category in VM BE > <em>Product Categories</em> > Your Category in section <em>Details > Category Ordering </em></p>', '', '', '', 'mister'),
(9, 'Lady', '<p>Sample for Subcategory. <br />Select superordinated category in VM BE > <em>Product Categories</em> > Your Category in section <em>Details > Category Ordering </em></p>', '', '', '', 'lady'),
(11, 'Product variants', '<p><span style="background-color: #fcdb73; text-align: center; padding: 5px 40px;">Product variants by customfields w/ user input.</span></p>', '', '', '', 'product-variants'),
(12, 'Product attributes', '<p><span style="background-color: #fcdb73; text-align: center; padding: 5px 40px;">Products using customfields as attribute.</span></p>', '', '', '', 'product-attributes');
INSERT IGNORE INTO `#__virtuemart_category_categories` (`id`, `category_parent_id`, `category_child_id`, `ordering`) VALUES
(2, 0, 2, 4),
(3, 0, 3, 6),
(4, 0, 4, 6),
(11, 0, 11, 1),
(7, 0, 7, 5),
(8, 7, 8, 8),
(9, 7, 9, 7),
(12, 0, 12, 2);
INSERT IGNORE INTO `#__virtuemart_category_medias` (`virtuemart_category_id`, `virtuemart_media_id`, `ordering`) VALUES
(12, 10, 1),
(3, 10, 1),
(2, 10, 1),
(7, 11, 1),
(4, 12, 1),
(8, 11, 1),
(11, 10, 1),
(9, 13, 1);
INSERT IGNORE INTO `#__virtuemart_coupons` (`virtuemart_coupon_id`, `virtuemart_vendor_id`, `coupon_code`, `percent_or_total`, `coupon_type`, `coupon_value`, `coupon_start_date`, `coupon_expiry_date`, `coupon_value_valid`, `coupon_used`, `published`, `created_on`, `created_by`, `modified_on`, `modified_by`, `locked_on`, `locked_by`) VALUES
(1, 1,'Sample Coupon', 'total', 'permanent', 0.01000, '', '', 0.00000, '0', 1, '', 635, '', 635, '', 0);
INSERT IGNORE INTO `#__virtuemart_customs` (`virtuemart_custom_id`, `custom_parent_id`, `ordering`, `field_type`, `is_cart_attribute`, `is_input`, `is_list`, `searchable`, `layout_pos`, `custom_title`, `custom_tip`, `custom_desc`, `custom_value`, `custom_params`, `show_title`, `published`) VALUES
(01, 0, 0, 'R', 0, 0, 0, 0,'related_products','COM_VIRTUEMART_RELATED_PRODUCTS','COM_VIRTUEMART_RELATED_PRODUCTS_TIP','COM_VIRTUEMART_RELATED_PRODUCTS_DESC', 'related_products','wPrice="1"|wImage="1"|wDescr="1"|', 1, 1),
(02, 0, 0, 'Z', 0, 0, 0, 0, 'related_categories','COM_VIRTUEMART_RELATED_CATEGORIES','COM_VIRTUEMART_RELATED_CATEGORIES_TIP','COM_VIRTUEMART_RELATED_CATEGORIES_DESC', 'related_categories','wImage="1"|wDescr="1"|', 1, 1),
(09, 0, 0, 'G', 0, 0, 0, 0, '','Group','Group','set of cart attribute', '','', 1, 1),
(100, 0, 0, 'S', 0, 0, 0, 1, '','String','Also with tooltip','For additional searchable product attributes displayed in a consistent format in the product description', '','', 1, 1),
(98, 0, 0, 'S', 1, 0, 0, 1, '','String, searchable attribute','Show charactistic product attributs in the cart','For additional searchable product attributes displayed in a consistent format in the product description and cart.', '','', 1, 1),
(96, 0, 0, 'S', 0, 1, 0, 0, 'addtocart','String, is input','Select a variant','Combine customfields of the same type to create flexible selections (dropdowns, radio lists)', '','addEmpty="0"|selectType="0"|', 1, 1),
(95, 0, 0, 'S', 0, 1, 0, 0, 'addtocart','String, is input optional','Select a variant','Combine customfields of the same type to create flexible selections (dropdowns, radio lists)', '','addEmpty="1"|selectType="0"|', 1, 1),
(94, 0, 0, 'S', 0, 1, 1, 0, 'addtocart','String, is input list','Select a colour','Directly create a reusable dropdown by using values seperated by ;', 'White;Red;Green;Blue;Yellow;Black','addEmpty="0"|selectType="0"|', 1, 1),
(93, 0, 0, 'S', 0, 1, 1, 0, 'addtocart','String, is input list optional','Select a colour','Directly create a reusable dropdown by using values seperated by ;', 'Floral;Paisly;Fret;Camouflage;Checker','addEmpty="1"|selectType="0"|', 1, 1),
(92, 0, 0, 'S', 0, 1, 2, 0, 'addtocart','String, is input admin list','Select a colour','Admin list for faster product editing, combine customfields of the same type, but the choice is predefined', 'White;Red;Green;Blue;Yellow;Black','addEmpty="0"|selectType="0"|', 1, 1),
(91, 0, 0, 'S', 0, 1, 2, 0, 'addtocart','String, is input admin list optional','Select optional pattern','Admin list with empty option', 'Floral;Paisly;Fret;Camouflage;Checker','addEmpty="1"|selectType="0"|', 1, 1),
(90, 0, 0, 'S', 0, 1, 0, 0, 'addtocart','String, is input radio','Select a variant','Combine Customfields of the same type to create flexible selections (dropdowns, radio lists)', '','addEmpty="0"|selectType="1"|', 1, 1),
(89, 0, 0, 'S', 0, 1, 0, 0, 'addtocart','String, is input radio optional','Select a variant','Combine Customfields of the same type to create flexible selections (dropdowns, radio lists)', '','addEmpty="1"|selectType="1"|', 1, 1),
(88, 0, 0, 'S', 0, 1, 1, 0, 'addtocart','String, is input list radio','Select a variant','Directly create a reusable dropdown by using values seperated by ;', 'White;Black','addEmpty="0"|selectType="1"|', 1, 1),
(87, 0, 0, 'S', 0, 1, 1, 0, 'addtocart','String, is input list radio optional','Select optional variant','Directly create a reusable dropdown by using values seperated by ;', 'Floral;Paisly;Camouflage','addEmpty="1"|selectType="1"|', 1, 1),
(86, 0, 0, 'S', 0, 1, 2, 0, 'addtocart','String, is input admin list radio','Select variant','Combine Customfields of the same type to create flexible selections (dropdowns, radio lists), but the choice is predefined', 'Red;Green;Blue;','addEmpty="0"|selectType="1"|', 1, 1),
(84, 0, 0, 'S', 0, 1, 2, 0, 'addtocart','String, is input admin list radio optional','Select optional variant','Combine Customfields of the same type to create flexible selections (dropdowns, radio lists), but the choice is predefined', 'Fret;Checker','addEmpty="1"|selectType="1"|', 1, 1),
(80, 0, 0, 'M', 0, 1, 0, 0, 'addtocart','Media, is input','Select a variant','Combine customfields of the same type to create flexible selections (dropdowns, radio lists)', '','addEmpty="0"|selectType="0"|', 1, 1),
(79, 0, 0, 'M', 0, 1, 0, 0, 'addtocart','Media, is input optional','Select a variant','Combine customfields of the same type to create flexible selections (dropdowns, radio lists)', '','addEmpty="1"|selectType="1"|', 1, 1),
(78, 0, 0, 'M', 0, 1, 1, 0, 'addtocart','Media, is input list','Select a colour','Directly create a reusable dropdown by using values seperated by ;', '11;29','addEmpty="0"|selectType="1"|', 1, 1),
(77, 0, 0, 'M', 0, 1, 1, 0, 'addtocart','Media, is input list optional','Select a colour','Directly create a reusable dropdown by using values seperated by ;', '21;22;23','addEmpty="1"|selectType="1"|', 1, 1),
(76, 0, 0, 'M', 0, 1, 2, 0, 'addtocart','Media, is input admin list','Select a colour','Admin list for faster product editing, combine customfields of the same type, but the choice is predefined', '11;29','addEmpty="0"|selectType="1"|', 1, 1),
(74, 0, 0, 'M', 0, 1, 2, 0, 'addtocart','Media, is input admin list optional','Select optional pattern','Admin list with empty option', '21;22;23','addEmpty="1"|selectType="1"|', 1, 1),
(11, 9, 1, 'S', 1, 0, 0, 0, '','String, attribute','Use values separated by ; to directly select the value in the backend','', '','', 1, 1),
(12, 0, 0, 'S', 1, 0, 1, 0, '','String, list','Use values separated by ; to directly select the value in the backend','', 'Cotton;Wool;Flax;Nylon;Polyester','', 1, 1),
(13, 0, 0, 'S', 1, 1, 0, 0, 'addtocart','String, is input','Select a variant','', 'Combine Customfields of the same type to create flexible selections (dropdowns, radio lists)','', 1, 1),
(14, 0, 0, 'S', 1, 1, 2, 0, 'addtocart','String, admin list','Select a variant','', 'Cotton;Wool;Flax;Nylon;Polyester','', 1, 1),
(15, 9, 0, 'M', 1, 0, 1, 0, '','Media, list','Also with tooltip','extra Image', '20;21;22;23;24','', 1, 1),
(16, 9, 3, 'X', 0, 0, 0, 0, '','Editor','Show extra conditions','Testimonial', 'Use the texteditor to display extra text at predefined positions','', 1, 1),
(17, 0, 0, 'D', 1, 0, 0, 0, 'addtocart','Date','Show date','Next delivery', '','', 1, 1),
(18, 0, 0, 'T', 0, 0, 0, 0, 'addtocart','Time','Show time','Workshop at ', '','', 1, 1),
(20, 0, 0, 'A', 1, 0, 0, 0, 'ontop','Generic Child Variant','Also with tooltip','', 'Use extra children tab for faster product editing','withParent="0"|parentOrderable="0"|wPrice="1"|', 1, 1),
(21, 0, 0, 'C', 1, 0, 0, 0, 'addtocart','Multi Variant','Also with tooltip','', 'Use admin lists for faster product editing','usecanonical="1"|showlabels="0"|sCustomId="11"|selectoptions="0"|clabels="0"|options="0"|', 1, 1),
(22, 0, 0, 'M', 1, 1, 0, 0, 'addtocart','Media, paid','Also with tooltip','paid extra Image', '','width="0"|height="0"|addEmpty="0"|selectType="1"|', 1, 1),
(23, 0, 0, 'S', 1, 1, 0, 0, 'addtocart','String, is input alternative','Select a variant','', 'Combine Customfields of the same type to create flexible selections (dropdowns, radio lists)','', 1, 1),
(24, 0, 0, 'P', 0, 0, 0, 0, '','Property','','', '','', 0, 1);
INSERT IGNORE INTO `#__virtuemart_product_customfields` (`virtuemart_customfield_id`, `virtuemart_product_id`, `virtuemart_custom_id`, `customfield_price`, `customfield_value`) VALUES
(10000, 2000, 100, 0, 'Simple String'),
(10001, 2000, 98, 0, 'String, in cart'),
(10002, 2000, 96, 0, 'String variant A'),
(10003, 2000, 96, 1, 'String variant B'),
(10004, 2000, 96, 2, 'String variant C'),
(10005, 2000, 95, 4, 'String asset D'),
(10006, 2000, 95, 5, 'String asset E'),
(10007, 2000, 94, 0, 'Red'),
(10008, 2000, 93, 3, 'Red'),
(10009, 2000, 92, 0, 'Green'),
(10010, 2000, 92, 5, 'Blue'),
(10011, 2000, 92, 6, 'Black'),
(10012, 2000, 91, 8, 'Camouflage'),
(10013, 2000, 91, 11, 'Paisly'),
(10014, 2000, 91, 11, 'Floral'),
(10015, 2000, 91, 9, 'Fret'),
(10020, 2001, 90, 0, 'Stringvariant A'),
(10021, 2001, 90, 1, 'Stringvariant B'),
(10022, 2001, 90, 2, 'Stringvariant C'),
(10023, 2001, 89, 4, 'String asset D'),
(10024, 2001, 89, 5, 'String asset E'),
(10025, 2001, 88, 0, 'Red'),
(10026, 2001, 87, 3, 'Red'),
(10027, 2001, 86, 5, 'Green'),
(10028, 2001, 86, 6, 'Blue'),
(10029, 2001, 86, 7, 'Black'),
(10030, 2001, 84, 0, 'Camouflage'),
(10031, 2001, 84, 4, 'Paisly'),
(10032, 2001, 84, 8, 'Floral'),
(10033, 2001, 84, 9, 'Fret'),
(10040, 2003, 80, 0, '24'),
(10041, 2003, 80, 1, '25'),
(10042, 2003, 80, 2, '26'),
(10043, 2003, 79, 4, '21'),
(10044, 2003, 79, 5, '23'),
(10045, 2003, 78, 0, '11'),
(10046, 2003, 77, 3, '29'),
(10047, 2003, 76, 5, '11'),
(10048, 2003, 76, 6, '29'),
(10049, 2003, 74, 0, '21'),
(10050, 2003, 74, 4, '22'),
(10051, 2003, 74, 8, '23');
INSERT IGNORE INTO `#__virtuemart_manufacturercategories` (`virtuemart_manufacturercategories_id`, `published`) VALUES
(1, 1);
INSERT IGNORE INTO `#__virtuemart_manufacturercategories_XLANG` (`virtuemart_manufacturercategories_id`, `mf_category_name`, `mf_category_desc`, `slug`) VALUES
(1, 'default', 'This is the default manufacturer category ', 'default');
INSERT IGNORE INTO `#__virtuemart_manufacturers` (`virtuemart_manufacturer_id`, `virtuemart_manufacturercategories_id`, `published`) VALUES
(1, 1, 1),
(2, 1, 1),
(3, 1, 1);
INSERT IGNORE INTO `#__virtuemart_manufacturers_XLANG` (`virtuemart_manufacturer_id`, `mf_name`, `mf_email`, `mf_desc`, `mf_url`, `slug`) VALUES
(1, 'Manufacturer', 'manufacturer@example.org', '<p>An example for a manufacturer</p>', 'http://virtuemart.net', 'manufacturer'),
(2, 'Default', 'example@manufacturer.net', '<p>Default manufacturer</p>', 'http://virtuemart.net', 'default'),
(3, 'Producer', 'info@producer.com', '<p>An example for another manufacturer.</p>', 'http://virtuemart.net', 'producer');
INSERT IGNORE INTO `#__virtuemart_manufacturer_medias` (`virtuemart_manufacturer_id`, `virtuemart_media_id`, `ordering`) VALUES
(3, 5, 1),
(1, 6, 1),
(2, 5, 1);
INSERT IGNORE INTO `#__virtuemart_medias` (`virtuemart_media_id`, `file_is_product_image`, `file_type`, `file_mimetype`, `file_title`, `file_description`, `file_meta`, `file_url`, `file_url_thumb`, `file_params`, `published`) VALUES
(01, 0, 'vendor', 'image/gif','ShopLogo','Used in the invoice','virtuemart shop','images/virtuemart/vendor/vendor.gif', 'images/virtuemart/vendor/resized/vendor_0x90.gif', '', 1),
(05, 0, 'manufacturer', 'image/jpeg', 'Manufacturer','','','images/virtuemart/manufacturer/manufacturer.jpg', '', '', 1),
(06, 0, 'manufacturer', 'image/jpeg', 'Producer','','','images/virtuemart/manufacturer/producer.jpg', '', '', 1),
(10, 0, 'category', 'image/jpeg', 'student hat', 'Products in this category showing tips and tricks','student_hat_16','images/virtuemart/category/student_hat_16.jpg', '', '', 1),
(11, 0, 'product', 'image/png', 'T-Shirts', 'Warp5 T-Shirts','virtuemart warp5','images/virtuemart/product/tshirt5.png', '', '', 1),
(12, 0, 'product', 'image/png', 'Hats', 'Hat #1','virtuemart #1','images/virtuemart/product/hat1.png', '', '', 1),
(13, 0, 'product', 'image/png', 'Skirts', 'Skirt #1','virtuemart #1','images/virtuemart/product/skirt1.png', '', '', 1),
(20, 1, 'product', 'image/jpeg', 'VM Cart Logo','The Famous VirtueMart Cart Logo','virtuemart cart logo','images/virtuemart/product/cart_logo.jpg', '', '', 1),
(21, 1, 'product', 'image/png', 'Hat 1','VirtueMart Sample','virtuemart sample','images/virtuemart/product/hat1.png', '', '', 1),
(22, 1, 'product', 'image/png', 'Hat 2','VirtueMart Sample','virtuemart sample','images/virtuemart/product/hat2.png', '', '', 1),
(23, 1, 'product', 'image/png', 'Hat 3','VirtueMart Sample','virtuemart sample','images/virtuemart/product/hat3.png', '', '', 1),
(24, 1, 'product', 'image/png', 'shirt 1','VirtueMart Sample','virtuemart sample','images/virtuemart/product/shirt1.png', '', '', 1),
(25, 1, 'product', 'image/png', 'shirt 2','VirtueMart Sample','virtuemart sample','images/virtuemart/product/shirt2.png', '', '', 1),
(26, 1, 'product', 'image/png', 'Coat','','','images/virtuemart/product/coat1.png', '', '', 1),
(27, 1, 'product', 'image/png', 'Skirt 1','VirtueMart Sample','virtuemart sample','images/virtuemart/product/skirt1.png', '', '', 1),
(28, 1, 'product', 'image/png', 'Skirt 2','VirtueMart Sample','virtuemart sample','images/virtuemart/product/skirt2.png', '', '', 1),
(29, 1, 'product', 'image/png', 'T-Shirt EightBall','VirtueMart Sample','virtuemart sample','images/virtuemart/product/tshirt8.png', '', '', 1);
#Common associations for patterns
INSERT IGNORE INTO `#__virtuemart_products` (`virtuemart_product_id`, `product_parent_id`, `product_sku`, `product_weight`, `product_weight_uom`, `product_length`, `product_width`, `product_height`, `product_lwh_uom`, `product_in_stock`, `product_params`, `published`) VALUES
(9, 0, 'root', 0.1, 'KG', 0.1000, 0.1000, 0.1000, 'M', 10, 'min_order_level=""|max_order_level=""|step_order_level=""|product_box="1"|', 0);
INSERT IGNORE INTO `#__virtuemart_products_XLANG` (`virtuemart_product_id`, `product_name`, `slug`, `product_s_desc`, `product_desc`) VALUES
(9, 'Root Pattern', 'root', '','<p>This product is derived from a pattern for other products. It is a parent product and has multiple child products. <br />You can set several settings (content, customfields) for parent product. Childs of this parent will basically have the same settings as the parent automatically inherit except you overwrite the settings.<br /><br /></p>\r\n<p>In this case product price is set in pattern.</p><p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p>\r\n<p>At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p>\r\n<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. <br /><br /></p>');
INSERT IGNORE INTO `#__virtuemart_product_manufacturers` (`virtuemart_product_id`, `virtuemart_manufacturer_id`) VALUES
(9, 1),
(163, 2),
(170, 3),
(200, 2),
(204, 3),
(300, 3);
INSERT IGNORE INTO `#__virtuemart_product_prices` (`virtuemart_product_id`, `product_price`, `product_currency`) VALUES
(9, 10.000000, 47);
INSERT IGNORE INTO `#__virtuemart_product_medias` (`virtuemart_product_id`, `virtuemart_media_id`, `ordering`) VALUES
(9, 20, 1);
#Product attributes
INSERT IGNORE INTO `#__virtuemart_products` (`virtuemart_product_id`, `product_parent_id`, `product_sku`, `product_special`, `product_in_stock`, `product_weight`, `published`, `pordering`) VALUES
(163, 9, '', 0, 20, NULL, 1, 1),
(164, 163, '', 0, 20, 5.0000, 1, 2),
(165, 163, 'DP2', 0, 20, 1.0000, 1, 3),
(166, 163, 'DP3', 0, 20, 10.0000, 1, 4),
(167, 163, 'CFD', 0, 20, 10.0000, 1, 5),
(168, 163, 'MPRS', 0, 20, 10.0000, 1, 6),
(169, 163, 'MP002', 0, 20, 10.0000, 1, 7);
INSERT IGNORE INTO `#__virtuemart_products_XLANG` (`virtuemart_product_id`, `product_name`, `slug`, `product_s_desc`, `product_desc`) VALUES
(163, 'PATTERN Product attributes', 'pattern-product-attributes', '', ''),
(164, 'Default product', 'default-product', '', ''),
(165, 'Free product', 'free-product', 'It\'s a free Product!', '<p>This product shows how a free product is set up. The shopper can purchase without beeing charged. In all cases the shopper needs to checkout.</p>\r\n<p>It can be used e.g. if you want to offer catalogues or sample products.</p>'),
(166, 'String & list, editor', 'string,-list,-editor', 'Default product with customfield string & editor. ', '<p>Please note: this example for string is no cart attribute, if you want to display the string detail in cart please enable Cart attribut in custom prototype.</p>'),
(167, 'Images & list', 'images-list', 'Showcase image customfield.', '<p>Use customfield to display an image or image list on desired layout position. <br /><br />Customfield image allows to display any of your media images, while image list provides a preset based on list in customfied prototype.<br />See for details be > Custom Fields > Image list</p>'),
(168, 'Multiple price ranges', 'multiple-price-ranges', 'Price ranges for product quantity.', '<p>Price ranges for product quantity. Test out the price changes following the values below<br /><br />100€ 1-5 pcs</p>\r\n<p>80€ 6-10 pcs</p>\r\n<p>70€ 11- pcs</p>'),
(169, 'Multiple prices', 'multiple-price-group', 'Mutliple prices per shoppergroups.', '<p>Your shoppergroup changes your price. Login to preview.<br /><br />100€ Guest</p>\r\n<p>80€ Registered</p>\r\n<p>50€ Gold Member</p>');
INSERT IGNORE INTO `#__virtuemart_product_customfields` (`virtuemart_product_id`, `virtuemart_custom_id`, `disabler`, `override`, `customfield_value`, `customfield_price`, `ordering`, `customfield_params`) VALUES
(166, 16, 0, 0, '<p><strong>Editor field content.</strong> We have additional room here for more information. Use of <em>WYSIWYG</em> editor customfield here.</p>', NULL, 2, ''),
(166, 12, 0, 0, 'Polyester', NULL, 1, ''),
(166, 100, 0, 0, 'My string content here', NULL, 0, ''),
(167, 15, 0, 0, '11', NULL, 2, 'width="0"|height="0"|'),
(167, 15, 0, 0, '10', NULL, 1, 'width="0"|height="0"|'),
(167, 16, 0, 0, '1', NULL, 0, 'width="0"|height="0"|');
INSERT IGNORE INTO `#__virtuemart_product_prices` (`virtuemart_product_id`, `virtuemart_shoppergroup_id`, `product_price`, `product_currency`, `price_quantity_start`, `price_quantity_end`) VALUES
(163, 0, 10.000000, 47, NULL, NULL),
(165, 0, 0.00001, 47, NULL, NULL),
(168, 0, 100.000000, 47, 0, 5),
(168, 0, 80.000000, 47, 6, 10),
(168, 0, 70.000000, 47, 11, 0),
(169, 0, 100.000000, 47, 0, 0),
(169, 2, 80.000000, 47, 0, 0),
(169, 4, 50.000000, 47, 0, 0);
INSERT IGNORE INTO `#__virtuemart_product_categories` (`virtuemart_product_id`, `virtuemart_category_id`, `ordering`) VALUES
(164, 12, 0),
(165, 12, 1),
(166, 12, 2),
(167, 12, 3),
(168, 12, 4),
(169, 12, 5);
INSERT IGNORE INTO `#__virtuemart_ratings` (`virtuemart_rating_id`, `virtuemart_product_id`, `rates`, `ratingcount`, `rating`, `published`) VALUES
(160, 164, 5, 1, 4.9, 1),
(161, 165, 4, 1, 4.3, 1),
(162, 166, 5, 1, 4.8, 1),
(163, 167, 5, 1, 4.2, 1),
(164, 168, 4, 1, 3.8, 1),
(165, 169, 5, 1, 5.0, 1);
#Showcase patterns
INSERT IGNORE INTO `#__virtuemart_products` (`virtuemart_product_id`, `product_parent_id`, `product_sku`, `product_special`, `product_in_stock`, `product_weight`, `published`, `pordering`) VALUES
(200, 9, '005', 0, 10, 0.1000, 1, 1),
(201, 200, '006', 0, 10, 0.1000, 1, 2),
(202, 200, '007', 0, 10, NULL, 1, 3),
(203, 200, '008', 0, 10, 4.0000, 1, 4),
(204, 9, '009', 0, 10, 0.4000, 1, 5),
(205, 204, '010', 0, 10, NULL, 1, 6),
(206, 204, '011', 0, 10, NULL, 1, 7),
(207, 204, '012', 0, 10, NULL, 1, 8);
INSERT IGNORE INTO `#__virtuemart_products_XLANG` (`virtuemart_product_id`, `product_name`, `slug`, `product_s_desc`, `product_desc`) VALUES
(200, 'Basic PATTERN', 'basic-pattern', 'Showcase for pattern usage.', '<p>This product is used as a pattern for other products. It is a parent product and has multiple child products. <br />You can set several settings (content, customfields) for parent product. Childs of this parent will basically have the same settings as the parent automatically inherit except you overwrite the settings.<br /><br /></p>\r\n<p>In this case product price is set in pattern.</p>'),
(201, 'Basic child', 'basic-pattern-1', 'This is a basic child of Product PATTERN.', '<p>This is a basic child of Product PATTERN. You see inherited settings, only Product description is overwritten.<br /></p>'),
(202, 'Basic price overwrite', 'basic-price-overwrite', 'This is a basic child of Product PATTERN. You see inherited settings.', '<p>This is a basic child of Product PATTERN. You see inherited settings. <br />Overwritten are following setting/content:<br />- Product desc<br />- Product price<br /></p>'),
(203, 'Basic multiple overwrites', 'basic-multiple-overwrites', 'Multiple overwrites short desc.', '<p>This is a child of Product PATTERN. Most inherited settings are overwritten: <br />- Short desc<br />- Product desc<br />- Product price<br />- Product Images<br />- Product Dimension and Weight (Units in Box)<br /></p>'),
(204, 'Advanced PATTERN', 'advanced-pattern', 'Showcase advanced pattern usage.', '<p>This product is used as a pattern for other products. It is a parent product and has multiple child products. <br />You can set several settings (content, customfields) for parent product. Childs of this parent will basically have the same settings as the parent inherited until you overwrite.</p>\r\n<p>One of the hugest advantages is stock control ability.</p>'),
(205, 'Advanced child', 'advanced-child', '', '<p>This is a basic child of Product PATTERN. You see inherited settings, only Product description is overwritten.<br /></p>'),
(206, 'Advanced price overwrite', 'advanced-price-overwrite', '', '<p>This is a advanced child of Advanced PATTERN. You see inherited settings. <br />Overwritten are following setting/content:<br />- Product desc<br />- Product price<br /></p>'),
(207, 'Advanced multiple overrides', 'advanced-multiple-overrides', 'Advanced multiple overrides', '<p>This is a child of Product PATTERN. Most inherited settings are overwritten: <br />- Short desc<br />- Product desc<br />- Product price<br />- Product Images<br />- Product Dimension and Weight (Units in Box)<br />- Customfields<br /></p>');
INSERT IGNORE INTO `#__virtuemart_product_categories` (`virtuemart_product_id`, `virtuemart_category_id`, `ordering`) VALUES
(200, 2, 0),
(201, 2, 1),
(202, 2, 2),
(203, 2, 3),
(204, 2, 4),
(205, 2, 5),
(206, 2, 6),
(207, 2, 7);
INSERT IGNORE INTO `#__virtuemart_product_customfields` (`virtuemart_customfield_id`, `virtuemart_product_id`, `virtuemart_custom_id`, `disabler`, `override`, `customfield_value`, `customfield_price`, `ordering`, `customfield_params`) VALUES
(200, 204, 100, 0, 0, 'Customfield string 1: Child content', NULL, 0, ''),
(201, 204, 100, 0, 0, 'Customfield string 2: Child content', NULL, 1, ''),
(202, 204, 16, 0, 0, '<p>Advanced PATTERN content <br />>> This customfields are assigned in parent product.</p>', NULL, 2, ''),
(203, 207, 16, 0, 202, '<p>Advanced PATTERN content <br />>> This customfields are assigned in parent product.<br /><br />Enable overrides in plugin customfields and set your new content.<br />You can add customfields additional to inherited.</p>', NULL, 2, ''),
(204, 207, 100, 0, 201, 'Override for string 2', NULL, 1, ''),
(205, 207, 100, 200, 0, 'Disables string 1 of parent', NULL, 0, ''),
(206, 207, 15, 0, 0, '21', NULL, 3, ''),
(276, 207, 13, 0, 0, 'A Variant', 0.00001, 10, ''),
(277, 207, 13, 0, 0, 'B Variant', 5.00, 11, ''),
(278, 207, 13, 0, 0, 'C Variant', 10.00, 12, ''),
(279, 207, 13, 0, 0, 'D Variant', -5.00, 13, '');
INSERT IGNORE INTO `#__virtuemart_product_medias` (`virtuemart_product_id`, `virtuemart_media_id`, `ordering`) VALUES
(203, 21, 1),
(207, 22, 1);
INSERT IGNORE INTO `#__virtuemart_product_prices` (`virtuemart_product_id`, `virtuemart_shoppergroup_id`, `product_price`, `product_currency`, `price_quantity_start`, `price_quantity_end`) VALUES
(200, 0, 33.000000, 47, NULL, NULL),
(204, 0, 25.000000, 47, NULL, NULL),
(207, 0, 80.000000, 47, 6, 10),
(207, 0, 50.000000, 47, 11, 0);
INSERT IGNORE INTO `#__virtuemart_ratings` (`virtuemart_rating_id`, `virtuemart_product_id`, `rates`, `ratingcount`, `rating`, `published`) VALUES
(200, 200, 5, 1, 5.0, 1),
(201, 201, 5, 1, 4.9, 1),
(202, 202, 4, 1, 3.0, 1),
(203, 203, 5, 1, 4.9, 1),
(204, 204, 5, 1, 4.4, 1),
(205, 205, 4, 1, 4.0, 1),
(206, 206, 5, 1, 4.9, 1),
(207, 207, 5, 1, 4.9, 1);
#Product variants
INSERT IGNORE INTO `#__virtuemart_products` (`virtuemart_product_id`, `product_parent_id`, `product_sku`, `product_special`, `product_in_stock`, `product_weight`, `published`, `pordering`) VALUES
(170, 9, '', 0, 10, NULL, 1, 0),
(171, 170, 'CSIV', 0, 11, NULL, 1, 0),
(172, 170, 'GCCV', 0, 12, NULL, 1, 0),
(173, 172, 'GCV-A', 0, 13, NULL, 1, 1),
(174, 172, 'GCV-B', 0, 14, NULL, 1, 2),
(175, 172, 'GCV-C', 0, 15, NULL, 1, 3),
(176, 170, 'CSIV', 0, 11, NULL, 1, 0);
INSERT IGNORE INTO `#__virtuemart_products_XLANG` (`virtuemart_product_id`, `product_name`, `slug`, `product_s_desc`, `product_desc`) VALUES
(170, 'PATTERN Product variants', 'pattern-product-variants', '', ''),
(171, 'Customfield string', 'customfield-string', '', ''),
(172, 'Generic child variant', 'generic-child-cart-variant', 'Default product generic child variant and cart variant.', '<p>Showcase to present the combination of product price, child variant price, and cart variant price:<br /><br />Child variant -> full overrideable genuine product, stock control per variant</p>\r\n<p>Cart variant -> easy to use variant, add price, no stock control</p>'),
(173, 'generic child variant A', 'generic-child-variant-a', '', ''),
(174, 'generic child variant B', 'generic-child-variant-b', 'Default product generic child variant and cart variant.', '<p>This product is a showcase to present the combination of product price, child variant price, and cart variant price.<br /><br />Cart variant -> easy to use, add price (+0.50€) no variant stock control</p>\r\n<p><br />Child variant -> full overrideable genuine product as variant</p>'),
(175, 'generic child variant C', 'generic-child-variant-c', 'Default product generic child variant and cart variant.', '<p>This product is a showcase to present the combination of product price, child variant price, and cart variant price.<br /><br />Cart variant -> easy to use, add price (+0.50€) no variant stock control</p>\r\n<p><br />Child variant -> full overrideable genuine product as variant</p>'),
(176, 'Customfield image variant', 'customfield-image-variant', 'Product image variant', '<p>This product is a showcase for customfield image variant as shopper selection</p>');
INSERT IGNORE INTO `#__virtuemart_product_categories` (`virtuemart_product_id`, `virtuemart_category_id`, `ordering`) VALUES
(170, 11, 0),
(171, 11, 1),
(172, 11, 3),
(176, 11, 10);
INSERT IGNORE INTO `#__virtuemart_product_customfields` (`virtuemart_product_id`, `virtuemart_custom_id`, `disabler`, `override`, `customfield_value`, `customfield_price`, `ordering`, `customfield_params`) VALUES
(171, 100, 0, 0, 'My customfield string content', NULL, 0, ''),
(171, 12, 0, 0, 'My customfield cart string content', NULL, 0, ''),
(171, 69, 0, 0, '6', NULL, 3, 'width="0"|height="0"|'),
(171, 69, 0, 0, '7', 3.000000, 5, 'width="0"|height="0"|'),
(171, 69, 0, 0, '8', 2.000000, 4, 'width="0"|height="0"|'),
(171, 14, 0, 0, 'Cotton', NULL, 1, ''),
(171, 14, 0, 0, 'Wool', 4.000000, 2, ''),
(171, 14, 0, 0, 'Flax', 7.000000, 3, ''),
(171, 13, 0, 0, 'Advanced', NULL, 0, ''),
(171, 13, 0, 0, 'Expert', 4.900000, 3, ''),
(172, 20, 0, 0, 'product_sku', NULL, 0, 'withParent="0"|parentOrderable="0"|wPrice=0|'),
(176, 22, 0, 0, '21', NULL, 1, ''),
(176, 22, 0, 0, '22', 5.00, 2, '');
INSERT IGNORE INTO `#__virtuemart_ratings` (`virtuemart_rating_id`, `virtuemart_product_id`, `rates`, `ratingcount`, `rating`, `published`) VALUES
(170, 170, 5, 1, 4.6, 1),
(171, 171, 4, 1, 4.0, 1),
(172, 172, 5, 1, 4.9, 1);
#Examples Clothing
INSERT IGNORE INTO `#__virtuemart_products` (`virtuemart_product_id`, `product_parent_id`, `product_sku`, `product_special`, `product_weight_uom`, `product_weight`, `product_lwh_uom`, `product_length`, `product_width`, `product_height`, `product_in_stock`, `product_sales`, `published`, `pordering`) VALUES
(153, 9, '', 0, 'KG', NULL, 'M', NULL, NULL, NULL, 0, 0, 1, 0),
(154, 9, 'PR-DST', 1, 'G', 200.0000, 'CM', 40.0000, 40.0000, 40.0000, 50, 0, 1, 1),
(155, 9, 'MA-SS', 1, 'G', 200.0000, 'CM', 40.0000, 40.0000, 40.0000, 50, 0, 1, 2),
(156, 153, 'MA-ZP', 0, 'G', 200.0000, 'CM', 40.0000, 40.0000, 3.0000, 20, 0, 1, 3),
(157, 153, 'MA-H2J', 0, 'G', 300.0000, 'CM', 45.0000, 45.0000, 10.0000, 5, 0, 1, 4),
(158, 153, 'DESKR', 0, 'G', 200.0000, 'CM', 35.0000, 35.0000, 5.0000, 100, 0, 1, 5),
(159, 9, '', 0, 'KG', NULL, 'M', NULL, NULL, NULL, 0, 0, 1, 0),
(160, 159, 'XSF', 1, 'G', 150.0000, 'CM', 30.0000, 30.0000, 30.0000, 30, 0, 1, 1),
(161, 159, 'PRCB', 1, 'G', 100.0000, 'CM', 20.0000, 20.0000, 20.0000, 20, 0, 1, 2),
(162, 159, 'TPCM', 1, 'G', 150.0000, 'CM', 35.0000, 30.0000, 15.0000, 30, 0, 1, 3),
(195, 154, 'DS-Small', 0, 'G', NULL, 'CM', NULL, NULL, NULL, 20, 0, 1, 1),
(196, 154, 'DS-Large', 0, 'G', NULL, 'CM', NULL, NULL, NULL, 20, 0, 1, 2),
(197, 155, 'TS-Small', 0, 'G', NULL, 'CM', NULL, NULL, NULL, 30, 0, 1, 1),
(198, 155, 'TS-Medium', 0, 'G', NULL, 'CM', NULL, NULL, NULL, 30, 0, 1, 2),
(199, 155, 'TS-Large', 0, 'G', NULL, 'CM', NULL, NULL, NULL, 20, 0, 1, 3);
INSERT IGNORE INTO `#__virtuemart_products_XLANG` (`virtuemart_product_id`, `product_name`, `slug`, `product_s_desc`, `product_desc`) VALUES
(153, 'PATTERN Wear', 'pattern-wear', '', ''),
(154, 'Dress Shirt with tie', 'dress-shirt-with-tie', 'Fine feathers make fine birds - time to get serious.', '<p>Refresh yourself with genuine VM dress.</p>'),
(155, 'T-Shirt classic blue', 't-shirt-classic-blue', 'Freetime & leisure 360° comrade.', '<p>The first print VM shirt available - the one - the virtue. Profit by introductory offer </p>'),
(156, 'Zipper pullover', 'zipper-pullover', 'Your winter season friend. ', ''),
(157, 'H20 Jacket', 'h20-jacket', 'Hard rain? Cold? - keep yourself dry & warm.', ''),
(158, 'Skirt "Knock-Rock"', 'skirt-knock-rock', 'Redesigned traditional pattern. Decently highlighted VM emblem.', ''),
(159, 'PATTERN Headpiece', 'pattern-headpiece', '', ''),
(160, 'Safety Helmet', 'safety-helmet', 'Masterclass protection, your everyday safety.', ''),
(161, 'Cap "Baseball"', 'cap-baseball', 'Need something genuine for your freetime?', ''),
(162, 'Cowboy Hat', 'cowboy-hat', 'Classic pattern, durable stiff brim resists sun & moisture.', ''),
(195, 'Dress Shirt with tie - small', 'dress-shirt-with-tie-s', '', ''),
(196, 'Dress Shirt with tie - large', 'dress-shirt-with-tie-l', '', ''),
(197, 'T-Shirt classic blue - small', 't-shirt-classic-s', '', ''),
(198, 'T-Shirt classic blue - medium', 't-shirt-classic-m', '', ''),
(199, 'T-Shirt classic blue - large', 't-shirt-classic-l', '', '');
INSERT IGNORE INTO `#__virtuemart_product_manufacturers` (`virtuemart_product_id`, `virtuemart_manufacturer_id`) VALUES
(153, 2),
(154, 3),
(155, 3),
(159, 2);
INSERT IGNORE INTO `#__virtuemart_product_categories` (`virtuemart_product_id`, `virtuemart_category_id`, `ordering`) VALUES
(156, 9, 0),
(161, 4, 0),
(156, 7, 0),
(160, 4, 0),
(158, 9, 0),
(155, 8, 0),
(158, 7, 0),
(155, 9, 0),
(155, 7, 0),
(154, 7, 0),
(157, 7, 0),
(157, 9, 0),
(157, 8, 0),
(154, 8, 0),
(156, 8, 0),
(162, 4, 0);
INSERT IGNORE INTO `#__virtuemart_product_customfields` (`virtuemart_customfield_id`, `virtuemart_product_id`, `virtuemart_custom_id`, `disabler`, `override`, `customfield_value`, `customfield_price`, `ordering`, `customfield_params`) VALUES
(400, 153, 11, 0, 0, 'Stiched genuine VM logo, color: black', NULL, 0, ''),
(401, 153, 13, 0, 0, 'Basic', NULL, 1, ''),
(402, 153, 13, 0, 0, 'Handmade', 100.000000, 2, ''),
(403, 153, 14, 0, 0, 'Cotton', NULL, 3, ''),
(404, 153, 14, 0, 0, 'Wool', NULL, 4, ''),
(405, 153, 14, 0, 0, 'Polyester', NULL, 5, ''),
(406, 153, 16, 0, 0, '<p>Wear pattern data field using customfield editor.</p>', NULL, 6, ''),
(407, 154, 11, 0, 0, 'Stiched genuine VM logo, color: black', NULL, 0, ''),
(408, 154, 100, 0, 0, 'Machine-washable', NULL, 3, ''),
(412, 154, 20, 0, 0, 'product_sku', NULL, 1, 'withParent="0"|parentOrderable="0"|wPrice=0|'),
(413, 154, 13, 0, 0, 'Silver Buttons', 0.00001, 2, ''),
(414, 154, 13, 0, 0, 'Gold Buttons', 10, 2, ''),
(415, 155, 20, 0, 0, 'product_sku', NULL, 0, 'withParent="0"|parentOrderable="0"|wPrice=0|'),
(416, 155, 11, 0, 0, 'Stiched genuine VM logo, color: black', NULL, 1, ''),
(417, 155, 12, 0, 0, 'Flax', NULL, 2, ''),
(418, 155, 100, 0, 0, 'Machine-washable', NULL, 3, ''),
(425, 156, 14, 0, 404, 'Wool', NULL, 5, ''),
(426, 156, 14, 0, 0, 'Flax', 12.99, 6, ''),
(427, 156, 14, 0, 0, 'Nylon', 7.99, 3, ''),
(428, 156, 14, 0, 405, 'Polyester', 3.99, 4, ''),
(429, 156, 16, 0, 406, '<p>Wear pattern data field using customfield editor override for Zipper.</p>', NULL, 7, ''),
(430, 157, 13, 0, 402, 'Handmade', NULL, 2, ''),
(431, 157, 14, 0, 0, 'Nylon', NULL, 3, ''),
(432, 157, 14, 0, 0, 'Polyester', NULL, 3, ''),
(433, 157, 16, 0, 404, '<p>Wear pattern data field using customfield editor, override for H2O jacket</p>', NULL, 4, ''),
(434, 158, 13, 0, 402, 'Handmade', NULL, 2, ''),
(435, 158, 14, 0, 0, 'Cotton', NULL, 3, ''),
(436, 158, 14, 0, 0, 'Wool', 35.83333, 3, ''),
(437, 158, 14, 0, 0, 'Flax', 15.83333, 3, ''),
(438, 158, 16, 0, 404, '<p>Wear pattern data field using customfield editor, Skirt "Knock-Rock."</p>', NULL, 4, ''),
(439, 159, 100, 0, 0, '', NULL, 1, ''),
(440, 159, 16, 0, 0, '<p>Example text for customfield editor position default.</p>', NULL, 2, ''),
(441, 159, 11, 0, 0, '', NULL, 0, ''),
(442, 160, 11, 0, 441, 'Color: yellow, Logo: monochrome', NULL, 0, ''),
(443, 160, 100, 0, 439, 'Stiched VM logo', NULL, 1, ''),
(444, 160, 13, 0, 0, 'Retail', NULL, 1, ''),
(445, 160, 13, 0, 0, 'Bulk', -2.00, 2, ''),
(446, 161, 11, 0, 441, 'Color: red, Logo: monochrome', NULL, 0, ''),
(447, 161, 13, 0, 0, 'Size: S', NULL, 1, ''),
(448, 161, 13, 0, 0, 'Size: M', NULL, 2, ''),
(449, 161, 13, 0, 0, 'Size: L', NULL, 3, ''),
(450, 161, 13, 0, 0, 'Size: Uni', 2.00, 4, ''),
(451, 161, 100, 0, 439, 'Stiched VM logo', NULL, 1, ''),
(452, 162, 11, 0, 441, 'Color: brown, Logo: monochrome', NULL, 0, ''),
(453, 162, 100, 0, 439, 'Stiched VM logo', NULL, 1, ''),
(454, 162, 14, 0, 0, 'Standard', NULL, 2, ''),
(455, 162, 14, 0, 0, 'Waxed', 10.00, 3, ''),
(456, 162, 13, 0, 0, 'Size: M', NULL, 4, ''),
(457, 162, 13, 0, 0, 'Size: L', NULL, 5, ''),
(458, 162, 13, 0, 0, 'Size: XL', NULL, 6, ''),
(473, 195, 14, 0, 0, 'Cotton', NULL, 2, ''),
(474, 195, 14, 0, 0, 'Wool', NULL, 2, ''),
(475, 195, 14, 0, 0, 'Flax', NULL, 2, ''),
(477, 195, 13, 0, 413, 'Silver Buttons', 0.00001, 2, ''),
(478, 195, 13, 0, 414, 'Gold Buttons', 10.00, 2, ''),
(479, 196, 14, 0, 0, 'Cotton', NULL, 2, ''),
(480, 196, 14, 0, 0, 'Wool', NULL, 2, ''),
(481, 196, 14, 0, 0, 'Flax', NULL, 2, ''),
(483, 196, 13, 0, 413, 'Silver Buttons', 0.00001, 2, ''),
(484, 196, 13, 0, 414, 'Gold Buttons', 14.00, 2, ''),
(459, 197, 23, 0, 0, '5D', 0.00001, 2, ''),
(460, 197, 23, 0, 0, '10D', 5.00, 2, ''),
(461, 197, 13, 0, 0, 'Industry made', 0.00001, 5, ''),
(462, 197, 13, 0, 0, 'Hand made', 20.00, 6, ''),
(463, 198, 23, 0, 0, '20D', NULL, 2, ''),
(464, 198, 23, 0, 0, '30D', 10.00, 3, ''),
(465, 198, 23, 0, 0, '40D', 15.00, 4, ''),
(466, 198, 13, 0, 0, 'Industry made', 0.00001, 5, ''),
(467, 198, 13, 0, 0, 'Hand made', 20.00, 6, ''),
(468, 199, 23, 0, 0, '30D', NULL, 2, ''),
(469, 199, 23, 0, 0, '40D', 20.00, 3, ''),
(470, 199, 23, 0, 0, '50D', 30.00, 4, ''),
(471, 199, 13, 0, 0, 'Industry made', 0.00001, 5, ''),
(472, 199, 13, 0, 0, 'Hand made', 25.00, 6, '');
INSERT IGNORE INTO `#__virtuemart_product_prices` (`virtuemart_product_id`, `product_price`, `product_currency`) VALUES
(161, 15.833330, 47),
(160, 40.833330, 47),
(158, 140.833330, 47),
(157, 207.500000, 47),
(156, 49.166670, 47),
(154, 40.833330, 47);
INSERT IGNORE INTO `#__virtuemart_product_prices` (`virtuemart_product_id`, `virtuemart_shoppergroup_id`, `product_price`, `override`, `product_override_price`, `product_currency`, `price_quantity_start`, `price_quantity_end`) VALUES
(155, 0, 24.166670, 0, 19.00000, 47, 0, 0);
INSERT IGNORE INTO `#__virtuemart_product_medias` (`virtuemart_product_id`, `virtuemart_media_id`, `ordering`) VALUES
(154, 24, 1),
(155, 29, 1),
(156, 25, 1),
(157, 26, 1),
(158, 13, 1),
(160, 22, 1),
(161, 21, 1),
(162, 23, 1),
(164, 20, 2),
(164, 21, 3),
(164, 22, 4),
(164, 23, 5),
(164, 24, 6),
(164, 25, 7),
(164, 26, 8),
(164, 27, 9),
(164, 28, 10),
(164, 29, 11);
INSERT IGNORE INTO `#__virtuemart_ratings` (`virtuemart_rating_id`, `virtuemart_product_id`, `rates`, `ratingcount`, `rating`, `published`) VALUES
(150, 154, 5, 1, 4.6, 1),
(151, 155, 5, 1, 4.8, 1),
(152, 156, 4, 1, 3.8, 1),
(153, 157, 5, 1, 5.0, 1),
(154, 158, 5, 1, 4.4, 1),
(155, 160, 4, 1, 4.2, 1),
(156, 161, 5, 1, 5.0, 1),
(157, 162, 5, 1, 4.7, 1);
#Multivariant
INSERT IGNORE INTO `#__virtuemart_products` (`virtuemart_product_id`, `product_parent_id`, `product_sku`, `product_special`, `product_in_stock`, `published`, `product_lwh_uom`,`product_width`) VALUES
(300, 170, 'MV Parent', 1, 10, 1, 'CM', 56.0);
INSERT IGNORE INTO `#__virtuemart_products_XLANG` (`virtuemart_product_id`, `product_name`, `slug`, `product_s_desc`, `product_desc`) VALUES
(300, 'Multi Variant', 'multi-variant', 'Depended Multivariants', 'The new Multi variant feature lets manage you 100s of product variants in the parent. The product content is replaced by the selected product');
INSERT IGNORE INTO `#__virtuemart_product_categories` (`virtuemart_product_id`, `virtuemart_category_id`, `ordering`) VALUES
(300,11,16);
INSERT IGNORE INTO `#__virtuemart_product_prices` (`virtuemart_product_id`, `product_price`, `product_currency`) VALUES
(300, 10, 47),
(301, 8, 47),
(302, 8.2, 47),
(303, 8.5, 47),
(304, 8.7, 47),
(305, 9.9, 47),
(306, 10, 47),
(307, 10.3, 47),
(308, 10.5, 47),
(309, 10.8, 47),
(310, 12, 47),
(311, 12.4, 47),
(312, 12.7, 47),
(313, 12.9, 47),
(314, 13.5, 47),
(315, 14.5, 47);
INSERT IGNORE INTO `#__virtuemart_products` (`virtuemart_product_id`, `product_parent_id`, `product_sku`, `product_in_stock`, `published`, `product_width`, `product_length`, `pordering`) VALUES
(301, 300, 'MV 2', 8, 1, 46.0, 68.5, 0),
(302, 300, 'MV 3', 5, 1, 46.0, 68.5, 1),
(303, 300, 'MV 4', 10, 1, 46.0, 71.0, 2),
(304, 300, 'MV 5', 20, 1, 46.0, 71.0, 3),
(305, 300, 'MV 6', 30, 1, 51.0, 68.5, 10),
(306, 300, 'MV 7', 35, 1, 51.0, 71.0, 11),
(307, 300, 'MV 8', 25, 1, 51.0, 71.0, 12),
(308, 300, 'MV 9', 40, 1, 51.0, 73.5, 13),
(309, 300, 'MV 10', 30, 1, 51.0, 73.5, 14),
(310, 300, 'MV 11', 20, 1, 56.0, 73.5, 20),
(311, 300, 'MV 12', 15, 1, 56.0, 73.5, 21),
(312, 300, 'MV 13', 27, 1, 56.0, 76, 22),
(313, 300, 'MV 14', 24, 1, 56.0, 76, 23),
(314, 300, 'MV 15', 33, 1, 61.0, 76.0, 24),
(315, 300, 'MV 16', 31, 1, 61.0, 76.0, 25);
INSERT IGNORE INTO `#__virtuemart_products_XLANG` (`virtuemart_product_id`, `product_name`, `slug`) VALUES
(301, 'Multi Variant Child', 'multi-variant-2'),
(302, 'Multi Variant Child', 'multi-variant-3'),
(303, 'Multi Variant Child', 'multi-variant-4'),
(304, 'Multi Variant Child', 'multi-variant-5'),
(305, 'Multi Variant Child', 'multi-variant-6'),
(306, 'Multi Variant Child', 'multi-variant-7'),
(307, 'Multi Variant Child', 'multi-variant-8'),
(308, 'Multi Variant Child', 'multi-variant-9'),
(309, 'Multi Variant Child', 'multi-variant-10'),
(310, 'Multi Variant Child', 'multi-variant-11'),
(311, 'Multi Variant Child', 'multi-variant-12'),
(312, 'Multi Variant Child', 'multi-variant-13'),
(313, 'Multi Variant Child', 'multi-variant-14'),
(314, 'Multi Variant Child', 'multi-variant-15'),
(315, 'Multi Variant Child', 'multi-variant-16');
INSERT IGNORE INTO `#__virtuemart_product_customfields` (`virtuemart_customfield_id`, `virtuemart_product_id`, `virtuemart_custom_id`, `disabler`, `override`, `customfield_value`, `customfield_price`, `ordering`, `customfield_params`) VALUES
(300, 300, 21, 0, 0, NULL, NULL, 0, 'usecanonical=0|showlabels=0|sCustomId=100|selectoptions=[{"voption":"product_width","clabel":"1","values":"46.0000\\r\\n51.0000\\r\\n56.0000\\r\\n61.0000"},{"voption":"product_length","clabel":"1","values":"68.5000\\r\\n71.0000\\r\\n73.5000\\r\\n76.0000"},{"voption":"clabels","clabel":"Weave","values":"Advanced\\r\\nPremium"}]|clabels=0|options={"300":["","","0"],"301":["46.0000","68.5000","Advanced"],"302":["46.0000","68.5000","Premium"],"303":["46.0000","71.0000","Advanced"],"304":["46.0000","71.0000","Premium"],"305":["51.0000","68.5000","Advanced"],"306":["51.0000","71.0000","Advanced"],"307":["51.0000","71.0000","Premium"],"308":["51.0000","73.5000","Advanced"],"309":["51.0000","73.5000","Premium"],"310":["56.0000","73.5000","Advanced"],"311":["56.0000","73.5000","Premium"],"312":["56.0000","76.0000","Advanced"],"313":["56.0000","76.0000","Premium"],"314":["61.0000","76.0000","Advanced"],"315":["61.0000","76.0000","Premium"]}|'),
(301, 301, 100, 0, 0, 'Advanced', NULL, 0, ''),
(302, 302, 100, 0, 0, 'Premium', NULL, 0, ''),
(303, 303, 100, 0, 0, 'Advanced', NULL, 0, ''),
(304, 304, 100, 0, 0, 'Premium', NULL, 0, ''),
(305, 305, 100, 0, 0, 'Advanced', NULL, 0, ''),
(306, 306, 100, 0, 0, 'Advanced', NULL, 0, ''),
(307, 307, 100, 0, 0, 'Premium', NULL, 0, ''),
(308, 308, 100, 0, 0, 'Advanced', NULL, 0, ''),
(309, 309, 100, 0, 0, 'Premium', NULL, 0, ''),
(310, 310, 100, 0, 0, 'Advanced', NULL, 0, ''),
(311, 311, 100, 0, 0, 'Premium', NULL, 0, ''),
(312, 312, 100, 0, 0, 'Advanced', NULL, 0, ''),
(313, 313, 100, 0, 0, 'Premium', NULL, 0, ''),
(314, 314, 100, 0, 0, 'Advanced', NULL, 0, ''),
(315, 315, 100, 0, 0, 'Premium', NULL, 0, '');
INSERT IGNORE INTO `#__virtuemart_product_medias` (`virtuemart_product_id`, `virtuemart_media_id`, `ordering`) VALUES
(300, 11, 1),
(302, 29, 1),
(304, 29, 1),
(307, 29, 1),
(309, 29, 1),
(311, 29, 1),
(313, 29, 1),
(315, 29, 1);
INSERT IGNORE INTO `#__virtuemart_ratings` (`virtuemart_rating_id`, `virtuemart_product_id`, `rates`, `ratingcount`, `rating`, `published`) VALUES
(300, 300, 5, 1, 5.0, 1),
(301, 301, 4, 1, 4.0, 1),
(302, 302, 5, 1, 5.0, 1),
(303, 303, 5, 1, 5.0, 1),
(304, 304, 5, 1, 5.0, 1),
(305, 305, 4, 1, 4.0, 1),
(306, 306, 5, 1, 5.0, 1),
(307, 307, 5, 1, 5.0, 1),
(308, 308, 5, 1, 5.0, 1),
(309, 309, 5, 1, 5.0, 1),
(310, 310, 4, 1, 4.0, 1),
(311, 311, 5, 1, 5.0, 1),
(312, 312, 5, 1, 5.0, 1),
(313, 313, 4, 1, 4.0, 1),
(314, 314, 5, 1, 5.0, 1),
(315, 315, 5, 1, 5.0, 1);
#Pagination
INSERT IGNORE INTO `#__virtuemart_products` ( `virtuemart_product_id`, `product_parent_id`, `product_sku`, `product_weight`, `product_length`, `product_width`, `product_height`, `product_in_stock`, `product_sales`, `published`) VALUES
(1000, 9, 'CEG', 1.0, 10, 10, 10, 10, 170, 1),
(1100, 9, 'GHD', 2.0, 20, 20, 10, 20, 180, 1),
(1200, 9, 'FAC', 3.0, 30, 20, 30, 30, 190, 1);
INSERT IGNORE INTO `#__virtuemart_products_XLANG` (`virtuemart_product_id`, `product_name`, `slug`) VALUES
(1000, 'CEG #0 03', 'ceg-0-03'),
(1100, 'GHD #0 08', 'ghd-0-08'),
(1200, 'FAC #0 20', 'fac-0-20');
INSERT IGNORE INTO `#__virtuemart_products` (`virtuemart_product_id`, `product_parent_id`, `product_weight`, `product_in_stock`, `product_sales`, `product_special`, `published`) VALUES
(1001, 1000, 1.1, 20, 50, 0, 1),
(1002, 1000, 1.2, 30, 40, 0, 1),
(1003, 1000, 1.2, 25, 70, 0, 1),
(1004, 1000, 1.1, 20, 50, 0, 1),
(1005, 1000, 1.3, 23, 51, 0, 1),
(1006, 1000, 1.3, 20, 52, 0, 1),
(1007, 1000, 1.1, 20, 53, 0, 1),
(1008, 1000, 1.4, 25, 54, 0, 1),
(1009, 1000, 1.5, 20, 55, 0, 1),
(1010, 1000, 1.8, 30, 56, 0, 1);
INSERT IGNORE INTO `#__virtuemart_products_XLANG` (`virtuemart_product_id`, `product_name`, `slug`) VALUES
(1001, 'CEG #1 06', 'ceg-1-06'),
(1002, 'CEG #2 15', 'ceg-2-15'),
(1003, 'CEG #3 30', 'ceg-3-30'),
(1004, 'CEG #4 17', 'ceg-4-17'),
(1005, 'CEG #5 16', 'ceg-5-16'),
(1006, 'CEG #6 22', 'ceg-6-22'),
(1007, 'CEG #7 23', 'ceg-7-23'),
(1008, 'CEG #8 12', 'ceg-8-12'),
(1009, 'CEG #9 18', 'ceg-9-18'),
(1010, 'CEG #a 33', 'ceg-a-33');
INSERT IGNORE INTO `#__virtuemart_products` (`virtuemart_product_id`, `product_parent_id`, `product_weight`, `product_in_stock`, `product_sales`, `product_special`, `published`) VALUES
(1101, 1100, 2.1, 20, 20, 0, 1),
(1102, 1100, 2.2, 30, 30, 0, 1),
(1103, 1100, 2.2, 25, 40, 0, 1),
(1104, 1100, 2.1, 20, 50, 0, 1),
(1105, 1100, 2.3, 23, 51, 0, 1),
(1106, 1100, 2.5, 20, 52, 0, 1),
(1107, 1100, 2.6, 20, 53, 0, 1),
(1108, 1100, 2.7, 25, 54, 0, 1),
(1109, 1100, 2.8, 20, 55, 0, 1),
(1110, 1100, 2.9, 30, 56, 0, 1);
INSERT IGNORE INTO `#__virtuemart_products_XLANG` (`virtuemart_product_id`, `product_name`, `slug`) VALUES
(1101, 'GHD #1 02', 'ghd-1-02'),
(1102, 'GHD #2 07', 'ghd-2-07'),
(1103, 'GHD #3 05', 'ghd-3-05'),
(1104, 'GHD #4 04', 'ghd-4-04'),
(1105, 'GHD #5 01', 'ghd-5-01'),
(1106, 'GHD #6 32', 'ghd-6-32'),
(1107, 'GHD #7 25', 'ghd-7-25'),
(1108, 'GHD #8 24', 'ghd-8-24'),
(1109, 'GHD #9 27', 'ghd-9-27'),
(1110, 'GHD #a 28', 'ghd-a-28');
INSERT IGNORE INTO `#__virtuemart_products` (`virtuemart_product_id`, `product_parent_id`, `product_weight`, `product_length`, `product_sales`, `product_special`, `published`) VALUES
(1201, 1200, NULL, 20, 20, 0, 1),
(1202, 1200, NULL, 30, 30, 0, 1),
(1203, 1200, NULL, 25, 40, 0, 1),
(1204, 1200, NULL, 20, 50, 0, 1),
(1205, 1200, NULL, 23, 51, 0, 1),
(1206, 1200, NULL, 20, 52, 0, 1),
(1207, 1200, NULL, 20, 53, 0, 1),
(1208, 1200, 3.9, 25, 54, 0, 1),
(1209, 1200, 3.8, 20, 55, 0, 1),
(1210, 1200, 3.7, 30, 56, 0, 1);
INSERT IGNORE INTO `#__virtuemart_products_XLANG` (`virtuemart_product_id`, `product_name`, `slug`) VALUES
(1201, 'FAC #1 19', 'fac-1-19'),
(1202, 'FAC #2 14', 'fac-2-14'),
(1203, 'FAC #3 13', 'fac-3-13'),
(1204, 'FAC #4 11', 'fac-4-11'),
(1205, 'FAC #5 26', 'fac-5-26'),
(1206, 'FAC #6 09', 'fac-6-09'),
(1207, 'FAC #7 31', 'fac-7-31'),
(1208, 'FAC #8 10', 'fac-8-10'),
(1209, 'FAC #9 29', 'fac-9-29'),
(1210, 'FAC #a 12', 'fac-a-12');
INSERT IGNORE INTO `#__virtuemart_product_manufacturers` (`virtuemart_product_id`, `virtuemart_manufacturer_id`) VALUES
(1000, 1),
(1100, 2),
(1200, 3);
INSERT IGNORE INTO `#__virtuemart_product_medias` (`virtuemart_product_id`, `virtuemart_media_id`) VALUES
(1000, 20),
(1100, 20),
(1200, 20);
INSERT IGNORE INTO `#__virtuemart_product_prices` (`virtuemart_product_id`, `product_price`, `product_currency`) VALUES
(1000, 10, 47),
(1100, 50, 47),
(1200, 80, 47);
INSERT IGNORE INTO `#__virtuemart_product_categories` (`virtuemart_product_id`, `virtuemart_category_id`, `ordering`) VALUES
(1000, 3, 3),
(1001, 3, 6),
(1002, 3, 15),
(1003, 3, 30),
(1004, 3, 17),
(1005, 3, 16),
(1006, 3, 22),
(1007, 3, 23),
(1008, 3, 12),
(1009, 3, 18),
(1010, 3, 33),
(1100, 3, 8),
(1101, 3, 2),
(1102, 3, 7),
(1103, 3, 5),
(1104, 3, 4),
(1105, 3, 1),
(1106, 3, 32),
(1107, 3, 25),
(1108, 3, 24),
(1109, 3, 27),
(1110, 3, 28),
(1200, 3, 20),
(1201, 3, 19),
(1202, 3, 14),
(1203, 3, 13),
(1204, 3, 11),
(1205, 3, 26),
(1206, 3, 9),
(1207, 3, 31),
(1208, 3, 10),
(1209, 3, 29),
(1210, 3, 12);
INSERT IGNORE INTO `#__virtuemart_ratings` (`virtuemart_rating_id`, `virtuemart_product_id`, `rates`, `ratingcount`, `rating`, `published`) VALUES
(1000, 1000, 5, 1, 4.8, 1),
(1001, 1001, 5, 1, 4.8, 1),
(1002, 1002, 4, 1, 4.0, 1),
(1003, 1003, 5, 1, 3.8, 1),
(1004, 1004, 5, 1, 4.8, 1),
(1005, 1005, 4, 1, 4.0, 1),
(1006, 1006, 5, 1, 4.8, 1),
(1007, 1007, 5, 1, 4.9, 1),
(1008, 1008, 5, 1, 4.8, 1),
(1009, 1009, 5, 1, 3.8, 1),
(1100, 1100, 5, 1, 4.5, 1),
(1101, 1101, 5, 1, 4.8, 1),
(1102, 1102, 5, 1, 4.8, 1),
(1103, 1103, 5, 1, 4.5, 1),
(1104, 1104, 5, 1, 4.8, 1),
(1105, 1105, 5, 1, 3.8, 1),
(1106, 1106, 5, 1, 4.8, 1),
(1107, 1107, 5, 1, 4.5, 1),
(1108, 1108, 5, 1, 4.8, 1),
(1109, 1109, 5, 1, 4.8, 1),
(1110, 1110, 5, 1, 4.5, 1),
(1200, 1200, 5, 1, 3.8, 1),
(1201, 1201, 5, 1, 4.8, 1),
(1202, 1202, 5, 1, 4.5, 1),
(1203, 1203, 5, 1, 4.5, 1),
(1204, 1204, 5, 1, 3.8, 1),
(1205, 1205, 5, 1, 4.5, 1),
(1206, 1206, 5, 1, 4.5, 1),
(1207, 1207, 5, 1, 4.8, 1),
(1208, 1208, 5, 1, 4.5, 1),
(1209, 1209, 5, 1, 4.5, 1),
(1210, 1210, 5, 1, 4.8, 1);
#Test products
INSERT IGNORE INTO `#__virtuemart_products` ( `virtuemart_product_id`, `product_parent_id`, `product_sku`, `product_weight`, `product_length`, `product_width`, `product_height`, `product_in_stock`, `product_sales`, `published`) VALUES
(1999, 164, 'TP-PARENT', 1.0, 10, 10, 10, 10, 170, 1),
(2000, 1999, 'TP-CF-S', 1.0, 10, 10, 10, 10, 170, 1),
(2001, 1999, 'TP-CF-S-R', 2.0, 20, 20, 10, 20, 180, 1),
(2003, 1999, 'TP-CF-M-R', 2.0, 20, 20, 10, 20, 180, 1);
INSERT IGNORE INTO `#__virtuemart_products_XLANG` (`virtuemart_product_id`, `product_name`, `slug`) VALUES
(1999, 'Parent Test Product for Customfields', 'test-product-for-customfields'),
(2000, 'Test Product for Customfield S', 'test-product-for-customfield-s'),
(2001, 'Test Product for Customfield S with radio', 'test-product-for-customfield-s-radio'),
(2003, 'Test Product for Customfield M with radio', 'test-product-for-customfield-m-radio');
INSERT IGNORE INTO `#__virtuemart_product_customfields` (`virtuemart_product_id`, `virtuemart_custom_id`, `disabler`, `override`, `customfield_value`, `customfield_price`, `ordering`, `customfield_params`) VALUES
(1999, 20, 0, 0, 'product_sku', NULL, 0, 'withParent="0"|parentOrderable="0"|wPrice=0|');
INSERT IGNORE INTO `#__virtuemart_product_categories` (`virtuemart_product_id`, `virtuemart_category_id`, `ordering`) VALUES
(1999, 12, 0);
INSERT IGNORE INTO `#__virtuemart_shoppergroups` (`virtuemart_shoppergroup_id`, `shopper_group_name`, `shopper_group_desc`, `default`, `shared`, `published`) VALUES
( 3,'Wholesale', 'Shoppers that can buy at wholesale.', 0,1,1),
( 4,'Gold Level', 'Gold Level Shoppers.', 0,1,1); joomla2.sql 0000644 00000114733 15234761600 0006645 0 ustar 00 CREATE TABLE IF NOT EXISTS `#__assets` (
`id` int(1) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary Key',
`parent_id` int(1) NOT NULL DEFAULT '0' COMMENT 'Nested set parent.',
`lft` int(1) NOT NULL DEFAULT '0' COMMENT 'Nested set lft.',
`rgt` int(1) NOT NULL DEFAULT '0' COMMENT 'Nested set rgt.',
`level` int(1) unsigned NOT NULL COMMENT 'The cached level in the nested tree.',
`name` varchar(50) NOT NULL COMMENT 'The unique name for the asset.',
`title` varchar(100) NOT NULL COMMENT 'The descriptive title for the asset.',
`rules` varchar(5120) NOT NULL COMMENT 'JSON encoded access control.',
PRIMARY KEY (`id`),
UNIQUE KEY `idx_asset_name` (`name`),
KEY `idx_lft_rgt` (`lft`,`rgt`),
KEY `idx_parent_id` (`parent_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__associations` (
`id` VARCHAR(50) NOT NULL COMMENT 'A reference to the associated item.',
`context` VARCHAR(50) NOT NULL COMMENT 'The context of the associated item.',
`key` CHAR(32) NOT NULL COMMENT 'The key for the association computed from an md5 on associated ids.',
PRIMARY KEY `idx_context_id` (`context`, `id`),
INDEX `idx_key` (`key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `#__banners` (
`id` INTEGER NOT NULL auto_increment,
`cid` INTEGER NOT NULL DEFAULT '0',
`type` INTEGER NOT NULL DEFAULT '0',
`name` VARCHAR(255) NOT NULL DEFAULT '',
`alias` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`imptotal` INTEGER NOT NULL DEFAULT '0',
`impmade` INTEGER NOT NULL DEFAULT '0',
`clicks` INTEGER NOT NULL DEFAULT '0',
`clickurl` VARCHAR(200) NOT NULL DEFAULT '',
`state` TINYINT(3) NOT NULL DEFAULT '0',
`catid` INTEGER UNSIGNED NOT NULL DEFAULT 0,
`description` TEXT NOT NULL,
`custombannercode` VARCHAR(2048) NOT NULL,
`sticky` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0,
`ordering` INTEGER NOT NULL DEFAULT 0,
`metakey` TEXT NOT NULL,
`params` TEXT NOT NULL,
`own_prefix` TINYINT(1) NOT NULL DEFAULT '0',
`metakey_prefix` VARCHAR(255) NOT NULL DEFAULT '',
`purchase_type` TINYINT NOT NULL DEFAULT '-1',
`track_clicks` TINYINT NOT NULL DEFAULT '-1',
`track_impressions` TINYINT NOT NULL DEFAULT '-1',
`checked_out` INTEGER UNSIGNED NOT NULL DEFAULT '0',
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`publish_up` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`publish_down` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`reset` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`language` char(7) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
INDEX `idx_state` (`state`),
INDEX `idx_own_prefix` (`own_prefix`),
INDEX `idx_metakey_prefix` (`metakey_prefix`),
INDEX `idx_banner_catid`(`catid`),
INDEX `idx_language` (`language`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `#__banner_clients` (
`id` INTEGER NOT NULL auto_increment,
`name` VARCHAR(255) NOT NULL DEFAULT '',
`contact` VARCHAR(255) NOT NULL DEFAULT '',
`email` VARCHAR(255) NOT NULL DEFAULT '',
`extrainfo` TEXT NOT NULL,
`state` TINYINT(3) NOT NULL DEFAULT '0',
`checked_out` INTEGER UNSIGNED NOT NULL DEFAULT '0',
`checked_out_time` DATETIME NOT NULL default '0000-00-00 00:00:00',
`metakey` TEXT NOT NULL,
`own_prefix` TINYINT NOT NULL DEFAULT '0',
`metakey_prefix` VARCHAR(255) NOT NULL default '',
`purchase_type` TINYINT NOT NULL DEFAULT '-1',
`track_clicks` TINYINT NOT NULL DEFAULT '-1',
`track_impressions` TINYINT NOT NULL DEFAULT '-1',
PRIMARY KEY (`id`),
INDEX `idx_own_prefix` (`own_prefix`),
INDEX `idx_metakey_prefix` (`metakey_prefix`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `#__banner_tracks` (
`track_date` DATETIME NOT NULL,
`track_type` INTEGER UNSIGNED NOT NULL,
`banner_id` INTEGER UNSIGNED NOT NULL,
`count` INTEGER UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`track_date`, `track_type`, `banner_id`),
INDEX `idx_track_date` (`track_date`),
INDEX `idx_track_type` (`track_type`),
INDEX `idx_banner_id` (`banner_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `#__categories` (
`id` int(1) NOT NULL auto_increment,
`asset_id` INTEGER UNSIGNED NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`parent_id` int(1) unsigned NOT NULL default '0',
`lft` int(1) NOT NULL default '0',
`rgt` int(1) NOT NULL default '0',
`level` int(1) unsigned NOT NULL default '0',
`path` varchar(255) NOT NULL default '',
`extension` varchar(50) NOT NULL default '',
`title` varchar(255) NOT NULL,
`alias` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL default '',
`note` varchar(255) NOT NULL default '',
`description` mediumtext NOT NULL,
`published` tinyint(1) NOT NULL default '0',
`checked_out` int(1) unsigned NOT NULL default '0',
`checked_out_time` datetime NOT NULL default '0000-00-00 00:00:00',
`access` int(1) unsigned NOT NULL default '0',
`params` TEXT NOT NULL,
`metadesc` varchar(1024) NOT NULL COMMENT 'The meta description for the page.',
`metakey` varchar(1024) NOT NULL COMMENT 'The meta keywords for the page.',
`metadata` varchar(2048) NOT NULL COMMENT 'JSON encoded metadata properties.',
`created_user_id` int(1) unsigned NOT NULL default '0',
`created_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_user_id` int(1) unsigned NOT NULL default '0',
`modified_time` datetime NOT NULL default '0000-00-00 00:00:00',
`hits` int(1) unsigned NOT NULL default '0',
`language` char(7) NOT NULL,
PRIMARY KEY (`id`),
KEY `cat_idx` (`extension`,`published`,`access`),
KEY `idx_access` (`access`),
KEY `idx_checkout` (`checked_out`),
KEY `idx_path` (`path`),
KEY `idx_left_right` (`lft`,`rgt`),
KEY `idx_alias` (`alias`),
INDEX `idx_language` (`language`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `#__contact_details` (
`id` int(1) NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
`alias` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL default '',
`con_position` varchar(255) default NULL,
`address` text,
`suburb` varchar(100) default NULL,
`state` varchar(100) default NULL,
`country` varchar(100) default NULL,
`postcode` varchar(100) default NULL,
`telephone` varchar(255) default NULL,
`fax` varchar(255) default NULL,
`misc` mediumtext,
`image` varchar(255) default NULL,
`imagepos` varchar(20) default NULL,
`email_to` varchar(255) default NULL,
`default_con` tinyint(1) unsigned NOT NULL default '0',
`published` tinyint(1) NOT NULL default '0',
`checked_out` int(1) unsigned NOT NULL default '0',
`checked_out_time` datetime NOT NULL default '0000-00-00 00:00:00',
`ordering` int(1) NOT NULL default '0',
`params` text NOT NULL,
`user_id` int(1) NOT NULL default '0',
`catid` int(1) NOT NULL default '0',
`access` int(1) unsigned NOT NULL default '0',
`mobile` varchar(255) NOT NULL default '',
`webpage` varchar(255) NOT NULL default '',
`sortname1` varchar(255) NOT NULL,
`sortname2` varchar(255) NOT NULL,
`sortname3` varchar(255) NOT NULL,
`language` char(7) NOT NULL,
`created` datetime NOT NULL default '0000-00-00 00:00:00',
`created_by` int(1) unsigned NOT NULL default '0',
`created_by_alias` varchar(255) NOT NULL default '',
`modified` datetime NOT NULL default '0000-00-00 00:00:00',
`modified_by` int(1) unsigned NOT NULL default '0',
`metakey` text NOT NULL,
`metadesc` text NOT NULL,
`metadata` text NOT NULL,
`featured` tinyint(3) unsigned NOT NULL default '0' COMMENT 'Set if article is featured.',
`xreference` varchar(50) NOT NULL COMMENT 'A reference to enable linkages to external data sets.',
`publish_up` datetime NOT NULL default '0000-00-00 00:00:00',
`publish_down` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
KEY `idx_access` (`access`),
KEY `idx_checkout` (`checked_out`),
KEY `idx_state` (`published`),
KEY `idx_catid` (`catid`),
KEY `idx_createdby` (`created_by`),
KEY `idx_featured_catid` (`featured`,`catid`),
KEY `idx_language` (`language`),
KEY `idx_xreference` (`xreference`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `#__content` (
`id` int(1) unsigned NOT NULL auto_increment,
`asset_id` INTEGER UNSIGNED NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`title` varchar(255) NOT NULL default '',
`alias` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL default '',
`title_alias` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL default '' COMMENT 'Deprecated in Joomla! 3.0',
`introtext` mediumtext NOT NULL,
`fulltext` mediumtext NOT NULL,
`state` tinyint(3) NOT NULL default '0',
`sectionid` int(1) unsigned NOT NULL default '0',
`mask` int(1) unsigned NOT NULL default '0',
`catid` int(1) unsigned NOT NULL default '0',
`created` datetime NOT NULL default '0000-00-00 00:00:00',
`created_by` int(1) unsigned NOT NULL default '0',
`created_by_alias` varchar(255) NOT NULL default '',
`modified` datetime NOT NULL default '0000-00-00 00:00:00',
`modified_by` int(1) unsigned NOT NULL default '0',
`checked_out` int(1) unsigned NOT NULL default '0',
`checked_out_time` datetime NOT NULL default '0000-00-00 00:00:00',
`publish_up` datetime NOT NULL default '0000-00-00 00:00:00',
`publish_down` datetime NOT NULL default '0000-00-00 00:00:00',
`images` text NOT NULL,
`urls` text NOT NULL,
`attribs` varchar(5120) NOT NULL,
`version` int(1) unsigned NOT NULL default '1',
`parentid` int(1) unsigned NOT NULL default '0',
`ordering` int(1) NOT NULL default '0',
`metakey` text NOT NULL,
`metadesc` text NOT NULL,
`access` int(1) unsigned NOT NULL default '0',
`hits` int(1) unsigned NOT NULL default '0',
`metadata` text NOT NULL,
`featured` tinyint(3) unsigned NOT NULL default '0' COMMENT 'Set if article is featured.',
`language` char(7) NOT NULL COMMENT 'The language code for the article.',
`xreference` varchar(50) NOT NULL COMMENT 'A reference to enable linkages to external data sets.',
PRIMARY KEY (`id`),
KEY `idx_access` (`access`),
KEY `idx_checkout` (`checked_out`),
KEY `idx_state` (`state`),
KEY `idx_catid` (`catid`),
KEY `idx_createdby` (`created_by`),
KEY `idx_featured_catid` (`featured`,`catid`),
KEY `idx_language` (`language`),
KEY `idx_xreference` (`xreference`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `#__content_frontpage` (
`content_id` int(1) NOT NULL default '0',
`ordering` int(1) NOT NULL default '0',
PRIMARY KEY (`content_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `#__content_rating` (
`content_id` int(1) NOT NULL default '0',
`rating_sum` int(1) unsigned NOT NULL default '0',
`rating_count` int(1) unsigned NOT NULL default '0',
`lastip` varchar(50) NOT NULL default '',
PRIMARY KEY (`content_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `#__core_log_searches` (
`search_term` varchar(128) NOT NULL default '',
`hits` int(1) unsigned NOT NULL default '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `#__extensions` (
`extension_id` INT NOT NULL AUTO_INCREMENT,
`name` VARCHAR(100) NOT NULL,
`type` VARCHAR(20) NOT NULL,
`element` VARCHAR(100) NOT NULL,
`folder` VARCHAR(100) NOT NULL,
`client_id` TINYINT(3) NOT NULL,
`enabled` TINYINT(3) NOT NULL DEFAULT '1',
`access` int(1) UNSIGNED NOT NULL DEFAULT '1',
`protected` TINYINT(3) NOT NULL DEFAULT '0',
`manifest_cache` TEXT NOT NULL,
`params` TEXT NOT NULL,
`custom_data` text NOT NULL,
`system_data` text NOT NULL,
`checked_out` int(1) unsigned NOT NULL default '0',
`checked_out_time` datetime NOT NULL default '0000-00-00 00:00:00',
`ordering` int(1) default '0',
`state` int(1) default '0',
PRIMARY KEY (`extension_id`),
INDEX `element_clientid`(`element`, `client_id`),
INDEX `element_folder_clientid`(`element`, `folder`, `client_id`),
INDEX `extension`(`type`,`element`,`folder`,`client_id`),
KEY `access_enabled`(`access`,`enabled`)
) Engine=MyISAM AUTO_INCREMENT=10000 CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__finder_filters` (
`filter_id` int(1) unsigned NOT NULL auto_increment,
`title` varchar(255) NOT NULL,
`alias` varchar(255) NOT NULL,
`state` tinyint(1) NOT NULL default '1',
`created` datetime NOT NULL default '0000-00-00 00:00:00',
`created_by` int(1) unsigned NOT NULL,
`created_by_alias` varchar(255) NOT NULL,
`modified` datetime NOT NULL default '0000-00-00 00:00:00',
`modified_by` int(1) unsigned NOT NULL default '0',
`checked_out` int(1) unsigned NOT NULL default '0',
`checked_out_time` datetime NOT NULL default '0000-00-00 00:00:00',
`map_count` int(1) unsigned NOT NULL default '0',
`data` text NOT NULL,
`params` mediumtext,
PRIMARY KEY (`filter_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__finder_links` (
`link_id` int(1) unsigned NOT NULL auto_increment,
`url` varchar(255) NOT NULL,
`route` varchar(255) NOT NULL,
`title` varchar(255),
`description` varchar(255),
`indexdate` datetime NOT NULL default '0000-00-00 00:00:00',
`md5sum` varchar(32),
`published` tinyint(1) NOT NULL default '1',
`state` int(5) default '1',
`access` int(5) default '0',
`language` varchar(8) NOT NULL,
`publish_start_date` datetime NOT NULL default '0000-00-00 00:00:00',
`publish_end_date` datetime NOT NULL default '0000-00-00 00:00:00',
`start_date` datetime NOT NULL default '0000-00-00 00:00:00',
`end_date` datetime NOT NULL default '0000-00-00 00:00:00',
`list_price` double unsigned NOT NULL default '0',
`sale_price` double unsigned NOT NULL default '0',
`type_id` int(1) NOT NULL,
`object` mediumblob NOT NULL,
PRIMARY KEY (`link_id`),
KEY `idx_type` (`type_id`),
KEY `idx_title` (`title`),
KEY `idx_md5` (`md5sum`),
KEY `idx_url` (`url`(75)),
KEY `idx_published_list` (`published`,`state`,`access`,`publish_start_date`,`publish_end_date`,`list_price`),
KEY `idx_published_sale` (`published`,`state`,`access`,`publish_start_date`,`publish_end_date`,`sale_price`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__finder_links_terms0` (
`link_id` int(1) unsigned NOT NULL,
`term_id` int(1) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__finder_links_terms1` (
`link_id` int(1) unsigned NOT NULL,
`term_id` int(1) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__finder_links_terms2` (
`link_id` int(1) unsigned NOT NULL,
`term_id` int(1) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__finder_links_terms3` (
`link_id` int(1) unsigned NOT NULL,
`term_id` int(1) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__finder_links_terms4` (
`link_id` int(1) unsigned NOT NULL,
`term_id` int(1) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__finder_links_terms5` (
`link_id` int(1) unsigned NOT NULL,
`term_id` int(1) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__finder_links_terms6` (
`link_id` int(1) unsigned NOT NULL,
`term_id` int(1) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__finder_links_terms7` (
`link_id` int(1) unsigned NOT NULL,
`term_id` int(1) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__finder_links_terms8` (
`link_id` int(1) unsigned NOT NULL,
`term_id` int(1) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__finder_links_terms9` (
`link_id` int(1) unsigned NOT NULL,
`term_id` int(1) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__finder_links_termsa` (
`link_id` int(1) unsigned NOT NULL,
`term_id` int(1) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__finder_links_termsb` (
`link_id` int(1) unsigned NOT NULL,
`term_id` int(1) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__finder_links_termsc` (
`link_id` int(1) unsigned NOT NULL,
`term_id` int(1) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__finder_links_termsd` (
`link_id` int(1) unsigned NOT NULL,
`term_id` int(1) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__finder_links_termse` (
`link_id` int(1) unsigned NOT NULL,
`term_id` int(1) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__finder_links_termsf` (
`link_id` int(1) unsigned NOT NULL,
`term_id` int(1) unsigned NOT NULL,
`weight` float unsigned NOT NULL,
PRIMARY KEY (`link_id`,`term_id`),
KEY `idx_term_weight` (`term_id`,`weight`),
KEY `idx_link_term_weight` (`link_id`,`term_id`,`weight`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__finder_taxonomy` (
`id` int(1) unsigned NOT NULL auto_increment,
`parent_id` int(1) unsigned NOT NULL default '0',
`title` varchar(255) NOT NULL,
`state` tinyint(1) unsigned NOT NULL default '1',
`access` tinyint(1) unsigned NOT NULL default '0',
`ordering` tinyint(1) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `parent_id` (`parent_id`),
KEY `state` (`state`),
KEY `ordering` (`ordering`),
KEY `access` (`access`),
KEY `idx_parent_published` (`parent_id`,`state`,`access`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__finder_taxonomy_map` (
`link_id` int(1) unsigned NOT NULL,
`node_id` int(1) unsigned NOT NULL,
PRIMARY KEY (`link_id`,`node_id`),
KEY `link_id` (`link_id`),
KEY `node_id` (`node_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__finder_terms` (
`term_id` int(1) unsigned NOT NULL auto_increment,
`term` varchar(75) NOT NULL,
`stem` varchar(75) NOT NULL,
`common` tinyint(1) unsigned NOT NULL default '0',
`phrase` tinyint(1) unsigned NOT NULL default '0',
`weight` float unsigned NOT NULL default '0',
`soundex` varchar(75) NOT NULL,
`links` int(1) NOT NULL default '0',
PRIMARY KEY (`term_id`),
UNIQUE KEY `idx_term` (`term`),
KEY `idx_term_phrase` (`term`,`phrase`),
KEY `idx_stem_phrase` (`stem`,`phrase`),
KEY `idx_soundex_phrase` (`soundex`,`phrase`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__finder_terms_common` (
`term` varchar(75) NOT NULL,
`language` varchar(3) NOT NULL,
KEY `idx_word_lang` (`term`,`language`),
KEY `idx_lang` (`language`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__finder_tokens` (
`term` varchar(75) NOT NULL,
`stem` varchar(75) NOT NULL,
`common` tinyint(1) unsigned NOT NULL default '0',
`phrase` tinyint(1) unsigned NOT NULL default '0',
`weight` float unsigned NOT NULL default '1',
`context` tinyint(1) unsigned NOT NULL default '2',
KEY `idx_word` (`term`),
KEY `idx_context` (`context`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__finder_tokens_aggregate` (
`term_id` int(1) unsigned NOT NULL,
`map_suffix` char(1) NOT NULL,
`term` varchar(75) NOT NULL,
`stem` varchar(75) NOT NULL,
`common` tinyint(1) unsigned NOT NULL default '0',
`phrase` tinyint(1) unsigned NOT NULL default '0',
`term_weight` float unsigned NOT NULL,
`context` tinyint(1) unsigned NOT NULL default '2',
`context_weight` float unsigned NOT NULL,
`total_weight` float unsigned NOT NULL,
KEY `token` (`term`),
KEY `keyword_id` (`term_id`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__finder_types` (
`id` int(1) unsigned NOT NULL auto_increment,
`title` varchar(100) NOT NULL,
`mime` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `title` (`title`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `#__languages` (
`lang_id` int(1) unsigned NOT NULL auto_increment,
`lang_code` char(7) NOT NULL,
`title` varchar(50) NOT NULL,
`title_native` varchar(50) NOT NULL,
`sef` varchar(50) NOT NULL,
`image` varchar(50) NOT NULL,
`description` varchar(512) NOT NULL,
`metakey` text NOT NULL,
`metadesc` text NOT NULL,
`sitename` varchar(1024) NOT NULL default '',
`published` int(1) NOT NULL default '0',
`access` int(1) unsigned NOT NULL DEFAULT '0',
`ordering` int(1) NOT NULL default '0',
PRIMARY KEY (`lang_id`),
UNIQUE `idx_sef` (`sef`),
UNIQUE `idx_image` (`image`),
UNIQUE `idx_langcode` (`lang_code`),
KEY `idx_access` (`access`),
INDEX `idx_ordering` (`ordering`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `#__menu` (
`id` int(1) NOT NULL AUTO_INCREMENT,
`menutype` varchar(24) NOT NULL COMMENT 'The type of menu this item belongs to. FK to #__menu_types.menutype',
`title` varchar(255) NOT NULL COMMENT 'The display title of the menu item.',
`alias` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The SEF alias of the menu item.',
`note` varchar(255) NOT NULL DEFAULT '',
`path` varchar(1024) NOT NULL COMMENT 'The computed path of the menu item based on the alias field.',
`link` varchar(1024) NOT NULL COMMENT 'The actually link the menu item refers to.',
`type` varchar(16) NOT NULL COMMENT 'The type of link: Component, URL, Alias, Separator',
`published` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'The published state of the menu link.',
`parent_id` int(1) unsigned NOT NULL DEFAULT '1' COMMENT 'The parent menu item in the menu tree.',
`level` int(1) unsigned NOT NULL DEFAULT '0' COMMENT 'The relative level in the tree.',
`component_id` int(1) unsigned NOT NULL DEFAULT '0' COMMENT 'FK to #__extensions.id',
`ordering` int(1) NOT NULL DEFAULT '0' COMMENT 'The relative ordering of the menu item in the tree.',
`checked_out` int(1) unsigned NOT NULL DEFAULT '0' COMMENT 'FK to #__users.id',
`checked_out_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'The time the menu item was checked out.',
`browserNav` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'The click behaviour of the link.',
`access` int(1) unsigned NOT NULL DEFAULT '0' COMMENT 'The access level required to view the menu item.',
`img` varchar(255) NOT NULL COMMENT 'The image of the menu item.',
`template_style_id` int(1) unsigned NOT NULL DEFAULT '0',
`params` TEXT NOT NULL COMMENT 'JSON encoded data for the menu item.',
`lft` int(1) NOT NULL DEFAULT '0' COMMENT 'Nested set lft.',
`rgt` int(1) NOT NULL DEFAULT '0' COMMENT 'Nested set rgt.',
`home` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'Indicates if this menu item is the home or default page.',
`language` char(7) NOT NULL DEFAULT '',
`client_id` tinyint(4) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `idx_client_id_parent_id_alias_language` (`client_id`,`parent_id`,`alias`, `language`),
KEY `idx_componentid` (`component_id`,`menutype`,`published`,`access`),
KEY `idx_menutype` (`menutype`),
KEY `idx_left_right` (`lft`,`rgt`),
KEY `idx_alias` (`alias`),
KEY `idx_path` (`path`(333)),
KEY `idx_language` (`language`),
KEY `home` (`home`),
KEY `client_id` (`client_id`),
KEY `ordering` (`ordering`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `#__menu_types` (
`id` int(1) unsigned NOT NULL auto_increment,
`menutype` varchar(24) NOT NULL,
`title` varchar(48) NOT NULL,
`description` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`),
UNIQUE `idx_menutype` (`menutype`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `#__messages` (
`message_id` int(1) unsigned NOT NULL auto_increment,
`user_id_from` int(1) unsigned NOT NULL default '0',
`user_id_to` int(1) unsigned NOT NULL default '0',
`folder_id` tinyint(3) unsigned NOT NULL DEFAULT '0',
`date_time` datetime NOT NULL default '0000-00-00 00:00:00',
`state` tinyint(1) NOT NULL DEFAULT '0',
`priority` tinyint(1) unsigned NOT NULL DEFAULT '0',
`subject` varchar(255) NOT NULL DEFAULT '',
`message` text NOT NULL,
PRIMARY KEY (`message_id`),
KEY `useridto_state` (`user_id_to`, `state`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `#__messages_cfg` (
`user_id` int(1) unsigned NOT NULL default '0',
`cfg_name` varchar(100) NOT NULL default '',
`cfg_value` varchar(255) NOT NULL default '',
UNIQUE `idx_user_var_name` (`user_id`,`cfg_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `#__modules` (
`id` int(1) NOT NULL AUTO_INCREMENT,
`title` varchar(100) NOT NULL DEFAULT '',
`note` varchar(255) NOT NULL default '',
`content` text NOT NULL,
`ordering` int(1) NOT NULL DEFAULT '0',
`position` varchar(50) NOT NULL DEFAULT '',
`checked_out` int(1) unsigned NOT NULL DEFAULT '0',
`checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`publish_up` datetime NOT NULL default '0000-00-00 00:00:00',
`publish_down` datetime NOT NULL default '0000-00-00 00:00:00',
`published` tinyint(1) NOT NULL DEFAULT '0',
`module` varchar(50) DEFAULT NULL,
`access` int(1) unsigned NOT NULL DEFAULT '0',
`showtitle` tinyint(3) unsigned NOT NULL DEFAULT '1',
`params` TEXT NOT NULL,
`client_id` tinyint(4) NOT NULL DEFAULT '0',
`language` char(7) NOT NULL,
PRIMARY KEY (`id`),
KEY `published` (`published`,`access`),
KEY `newsfeeds` (`module`,`published`),
KEY `idx_language` (`language`),
KEY `ordering` (`ordering`),
KEY `client_id` (`client_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `#__modules_menu` (
`moduleid` int(1) NOT NULL default '0',
`menuid` int(1) NOT NULL default '0',
PRIMARY KEY (`moduleid`,`menuid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `#__newsfeeds` (
`catid` int(1) NOT NULL default '0',
`id` integer(10) UNSIGNED NOT NULL auto_increment,
`name` varchar(100) NOT NULL DEFAULT '',
`alias` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL default '',
`link` varchar(200) NOT NULL DEFAULT '',
`filename` varchar(200) default NULL,
`published` tinyint(1) NOT NULL default '0',
`numarticles` int(1) unsigned NOT NULL default '1',
`cache_time` int(1) unsigned NOT NULL default '3600',
`checked_out` integer(10) unsigned NOT NULL default '0',
`checked_out_time` datetime NOT NULL default '0000-00-00 00:00:00',
`ordering` int(1) NOT NULL default '0',
`rtl` tinyint(4) NOT NULL default '0',
`access` int(1) UNSIGNED NOT NULL DEFAULT '0',
`language` char(7) NOT NULL DEFAULT '',
`params` text NOT NULL,
`created` datetime NOT NULL default '0000-00-00 00:00:00',
`created_by` int(1) unsigned NOT NULL default '0',
`created_by_alias` varchar(255) NOT NULL default '',
`modified` datetime NOT NULL default '0000-00-00 00:00:00',
`modified_by` int(1) unsigned NOT NULL default '0',
`metakey` text NOT NULL,
`metadesc` text NOT NULL,
`metadata` text NOT NULL,
`xreference` varchar(50) NOT NULL COMMENT 'A reference to enable linkages to external data sets.',
`publish_up` datetime NOT NULL default '0000-00-00 00:00:00',
`publish_down` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
KEY `idx_access` (`access`),
KEY `idx_checkout` (`checked_out`),
KEY `idx_state` (`published`),
KEY `idx_catid` (`catid`),
KEY `idx_createdby` (`created_by`),
KEY `idx_language` (`language`),
KEY `idx_xreference` (`xreference`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__overrider` (
`id` int(1) NOT NULL AUTO_INCREMENT COMMENT 'Primary Key',
`constant` varchar(255) NOT NULL,
`string` text NOT NULL,
`file` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `#__redirect_links` (
`id` int(1) unsigned NOT NULL auto_increment,
`old_url` varchar(255) NOT NULL,
`new_url` varchar(255) NOT NULL,
`referer` varchar(150) NOT NULL,
`comment` varchar(255) NOT NULL,
`hits` int(1) unsigned NOT NULL default '0',
`published` tinyint(4) NOT NULL,
`created_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
UNIQUE KEY `idx_link_old` (`old_url`),
KEY `idx_link_modifed` (`modified_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `#__schemas` (
`extension_id` int(1) NOT NULL,
`version_id` varchar(20) NOT NULL,
PRIMARY KEY (`extension_id`, `version_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `#__session` (
`session_id` varchar(200) NOT NULL default '',
`client_id` tinyint(3) unsigned NOT NULL default '0',
`guest` tinyint(4) unsigned default '1',
`time` varchar(14) default '',
`data` text default NULL,
`userid` int(1) default '0',
`username` varchar(150) default '',
`usertype` varchar(50) default '',
PRIMARY KEY (`session_id`),
KEY `whosonline` (`guest`,`usertype`),
KEY `userid` (`userid`),
KEY `time` (`time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `#__updates` (
`update_id` int(1) NOT NULL auto_increment,
`update_site_id` int(1) default '0',
`extension_id` int(1) default '0',
`categoryid` int(1) default '0',
`name` varchar(100) default '',
`description` text NOT NULL,
`element` varchar(100) default '',
`type` varchar(20) default '',
`folder` varchar(20) default '',
`client_id` tinyint(3) default '0',
`version` varchar(10) default '',
`data` text NOT NULL,
`detailsurl` text NOT NULL,
`infourl` text NOT NULL,
PRIMARY KEY (`update_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Available Updates';
CREATE TABLE `#__update_sites` (
`update_site_id` int(1) NOT NULL auto_increment,
`name` varchar(100) default '',
`type` varchar(20) default '',
`location` text NOT NULL,
`enabled` int(1) default '0',
`last_check_timestamp` bigint(20) DEFAULT '0',
PRIMARY KEY (`update_site_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Update Sites';
CREATE TABLE `#__update_sites_extensions` (
`update_site_id` INT DEFAULT 0,
`extension_id` INT DEFAULT 0,
PRIMARY KEY(`update_site_id`, `extension_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT = 'Links extensions to update sites';
CREATE TABLE `#__update_categories` (
`categoryid` int(1) NOT NULL auto_increment,
`name` varchar(20) default '',
`description` text NOT NULL,
`parent` int(1) default '0',
`updatesite` int(1) default '0',
PRIMARY KEY (`categoryid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Update Categories';
CREATE TABLE IF NOT EXISTS `#__template_styles` (
`id` int(1) unsigned NOT NULL AUTO_INCREMENT,
`template` varchar(50) NOT NULL DEFAULT '',
`client_id` tinyint(1) unsigned NOT NULL DEFAULT '0',
`home` tinyint(1) NOT NULL DEFAULT '0',
`title` varchar(255) NOT NULL DEFAULT '',
`params` TEXT NOT NULL,
PRIMARY KEY (`id`),
KEY `idx_template` (`template`),
KEY `idx_home` (`home`),
KEY `client_id` (`client_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
CREATE TABLE IF NOT EXISTS `#__user_usergroup_map` (
`user_id` int(1) unsigned NOT NULL default '0' COMMENT 'Foreign Key to #__users.id',
`group_id` int(1) unsigned NOT NULL default '0' COMMENT 'Foreign Key to #__usergroups.id',
PRIMARY KEY (`user_id`,`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__usergroups` (
`id` int(1) unsigned NOT NULL auto_increment COMMENT 'Primary Key',
`parent_id` int(1) unsigned NOT NULL default '0' COMMENT 'Adjacency List Reference Id',
`lft` int(1) NOT NULL default '0' COMMENT 'Nested set lft.',
`rgt` int(1) NOT NULL default '0' COMMENT 'Nested set rgt.',
`title` varchar(100) NOT NULL default '',
PRIMARY KEY (`id`),
UNIQUE KEY `idx_usergroup_parent_title_lookup` (`parent_id`,`title`),
KEY `idx_usergroup_title_lookup` (`title`),
KEY `idx_usergroup_adjacency_lookup` (`parent_id`),
KEY `idx_usergroup_nested_set_lookup` USING BTREE (`lft`,`rgt`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `#__users` (
`id` int(1) NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '',
`username` varchar(150) NOT NULL default '',
`email` varchar(100) NOT NULL default '',
`password` varchar(100) NOT NULL default '',
`usertype` varchar(25) NOT NULL default '',
`block` tinyint(4) NOT NULL default '0',
`sendEmail` tinyint(4) default '0',
`registerDate` datetime NOT NULL default '0000-00-00 00:00:00',
`lastvisitDate` datetime NOT NULL default '0000-00-00 00:00:00',
`activation` varchar(100) NOT NULL default '',
`params` text NOT NULL,
`lastResetTime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Date of last password reset',
`resetCount` int(1) NOT NULL DEFAULT '0' COMMENT 'Count of password resets since lastResetTime',
PRIMARY KEY (`id`),
KEY `usertype` (`usertype`),
KEY `idx_name` (`name`),
KEY `idx_block` (`block`),
KEY `username` (`username`),
KEY `email` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__user_notes` (
`id` int(1) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(1) unsigned NOT NULL DEFAULT '0',
`catid` int(1) unsigned NOT NULL DEFAULT '0',
`subject` varchar(100) NOT NULL DEFAULT '',
`body` text NOT NULL,
`state` tinyint(3) NOT NULL DEFAULT '0',
`checked_out` int(1) unsigned NOT NULL DEFAULT '0',
`checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_user_id` int(1) unsigned NOT NULL DEFAULT '0',
`created_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_user_id` int(1) unsigned NOT NULL,
`modified_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`review_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`publish_up` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`publish_down` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
KEY `idx_user_id` (`user_id`),
KEY `idx_category_id` (`catid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__user_profiles` (
`user_id` int(1) NOT NULL,
`profile_key` varchar(100) NOT NULL,
`profile_value` varchar(16384) NOT NULL,
`ordering` int(1) NOT NULL default '0',
UNIQUE KEY `idx_user_id_profile_key` (`user_id`,`profile_key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Simple user profile storage table';
CREATE TABLE `#__weblinks` (
`id` int(1) unsigned NOT NULL auto_increment,
`catid` int(1) NOT NULL default '0',
`sid` int(1) NOT NULL default '0',
`title` varchar(250) NOT NULL default '',
`alias` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL default '',
`url` varchar(250) NOT NULL default '',
`description` TEXT NOT NULL,
`date` datetime NOT NULL default '0000-00-00 00:00:00',
`hits` int(1) NOT NULL default '0',
`state` tinyint(1) NOT NULL default '0',
`checked_out` int(1) NOT NULL default '0',
`checked_out_time` datetime NOT NULL default '0000-00-00 00:00:00',
`ordering` int(1) NOT NULL default '0',
`archived` tinyint(1) NOT NULL default '0',
`approved` tinyint(1) NOT NULL default '1',
`access` int(1) NOT NULL default '1',
`params` text NOT NULL,
`language` char(7) NOT NULL DEFAULT '',
`created` datetime NOT NULL default '0000-00-00 00:00:00',
`created_by` int(1) unsigned NOT NULL default '0',
`created_by_alias` varchar(255) NOT NULL default '',
`modified` datetime NOT NULL default '0000-00-00 00:00:00',
`modified_by` int(1) unsigned NOT NULL default '0',
`metakey` text NOT NULL,
`metadesc` text NOT NULL,
`metadata` text NOT NULL,
`featured` tinyint(3) unsigned NOT NULL default '0' COMMENT 'Set if link is featured.',
`xreference` varchar(50) NOT NULL COMMENT 'A reference to enable linkages to external data sets.',
`publish_up` datetime NOT NULL default '0000-00-00 00:00:00',
`publish_down` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
KEY `idx_access` (`access`),
KEY `idx_checkout` (`checked_out`),
KEY `idx_state` (`state`),
KEY `idx_catid` (`catid`),
KEY `idx_createdby` (`created_by`),
KEY `idx_featured_catid` (`featured`,`catid`),
KEY `idx_language` (`language`),
KEY `idx_xreference` (`xreference`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__viewlevels` (
`id` int(1) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary Key',
`title` varchar(100) NOT NULL DEFAULT '',
`ordering` int(1) NOT NULL DEFAULT '0',
`rules` varchar(5120) NOT NULL COMMENT 'JSON encoded access control.',
PRIMARY KEY (`id`),
UNIQUE KEY `idx_assetgroup_title_lookup` (`title`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
script.virtuemart.php 0000644 00000134730 15234761600 0010776 0 ustar 00 <?php
/**
* VirtueMart script file
*
* This file is executed during install/upgrade and uninstall
* @package VirtueMart
* @author Max Milbers, RickG, impleri
* @copyright Copyright (C) 2011- 2021 by the VirtueMart team - All rights reserved.
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL 3, or later see COPYRIGHT.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*/
defined('_JEXEC') or die('Restricted access');
/**
* VirtueMart custom installer class
*/
class com_virtuemartInstallerScript {
var $_db = null;
var $path = null;
/**
* method must be called after preflight
* Sets the paths and loads VMFramework config
*/
public function loadVm($fresh = true) {
static $loaded = false;
if($loaded) return true;
$this->path = $this->getVMPathRoot();
if(!class_exists('VmConfig')){
require_once($this->path .'/administrator/components/com_virtuemart/helpers/config.php');
} else {
if(!defined('VMPATH_ROOT') or $this->path!=VMPATH_ROOT){
//$app = JFactory::getApplication();
//$app->enqueueMessage(JText::_('COM_VM_INSTALL_VMCONFIG_ALREADY_LOADED'),'warning');
if(!class_exists('vmDefines') and file_exists($this->path.'/administrator/components/com_virtuemart/helpers/vmdefines.php')){
require_once( $this->path.'/administrator/components/com_virtuemart/helpers/vmdefines.php');
}
if(class_exists('vmDefines') and method_exists('vmDefines','core')){
vmDefines::core($this->path);
} else {
$this->registerCoreClasses($this->path);
//return false;
}
}
}
VmConfig::loadConfig(true, $fresh, true, false);
VmLanguage::loadJLang('com_virtuemart');
if(!empty($this->path))vmdebug('com_virtuemartInstallerScript loadVm',$this->path);
VmTable::addIncludePath($this->path .'/administrator/components/com_virtuemart/tables');
VmModel::addIncludePath($this->path .'/administrator/components/com_virtuemart/models');
//Maybe it is possible to set this within the xml file note by Max Milbers
VmConfig::ensureMemoryLimit(256);
VmConfig::ensureExecutionTime(300);
$loaded = true;
return true;
}
public function getVMPathRoot(){
$source_path = dirname(__FILE__);//JInstaller::getInstance()->getPath('source');
if(!empty($source_path)){
$len = strlen($source_path);
//We must remove the install folder to get the root
$pos = strrpos($source_path, DIRECTORY_SEPARATOR.'install');
if($pos>($len - 10)){ //Ensure that we just cut the trailing install
$source_path = substr($source_path,0,$pos);
}
$len = strlen($source_path);
$trail = DIRECTORY_SEPARATOR.'administrator'.DIRECTORY_SEPARATOR.'components'.DIRECTORY_SEPARATOR.'com_virtuemart';
$lenTr = strlen($trail);
$pos = strrpos($source_path, $trail);
if( $pos > ($len - ($lenTr+4)) ){ //Ensure that we just cut the trailing install
$source_path = substr($source_path,0,$pos);
}
} else {
$source_path = JPATH_ROOT;
}
return $source_path;
}
public function checkIfUpdate(){
$q = 'SHOW TABLES LIKE "'.$this->_db->getPrefix().'virtuemart_adminmenuentries"'; //=>jos_virtuemart_shipment_plg_weight_countries
$this->_db->setQuery($q);
$res = $this->_db->loadResult();
if($res){
$q = "SELECT count(id) AS idCount FROM `#__virtuemart_adminmenuentries`";
$this->_db->setQuery($q);
$result = $this->_db->loadResult();
if (empty($result)) {
$update = false;
} else {
$update = true;
}
} else {
$update = false;
}
return $update;
}
/**
* Pre-process method (e.g. install/upgrade) and any header HTML
*
* @param string Process type (i.e. install, uninstall, update)
* @param object JInstallerComponent parent
* @return boolean True if VM exists, null otherwise
*/
public function preflight ($type, $parent=null) {
$this->_db = JFactory::getDBO();
$config = JFactory::getConfig();
$type = $config->get( 'dbtype' );
if ($type != 'mysqli' and $type!= 'Jdiction_mysqli') {
JFactory::getApplication()->enqueueMessage('To ensure seemless working with Virtuemart please use MySQLi as database type in Joomla configuration', 'warning');
return false;
}
}
/**
* Install script
* Triggers after database processing
*
* @param object JInstallerComponent parent
* @return boolean True on success
*/
public function install ($loadVm = true) {
if($this->checkIfUpdate()){
return $this->update($loadVm);
}
$this->loadVm(true);
$_REQUEST['install'] = 1;
$this -> joomlaSessionDBToMediumText();
// install essential and required data
// should this be covered in install.sql (or 1.6's JInstaller::parseSchemaUpdates)?
$params = JComponentHelper::getParams('com_languages');
$lang = $params->get('site', 'en-GB');//use default joomla
$lang = strtolower(strtr($lang,'-','_'));
$model = VmModel::getModel('updatesmigration');
$model->execSQLFile($this->path .'/administrator/components/com_virtuemart/install/install.sql');
$model->execSQLFile($this->path .'/administrator/components/com_virtuemart/install/install_essential_data.sql');
$model->execSQLFile($this->path .'/administrator/components/com_virtuemart/install/install_required_data.sql');
$model->execSQLFile($this->path .'/administrator/components/com_virtuemart/install/install_country_data.sql');
$this->createFolders();
$model->setStoreOwner();
$this->setVmLanguages();
$this->installLanguageTables();
$this->checkAddDefaultShoppergroups();
$xmlFile = false;
if(JFile::exists(VMPATH_ROOT .'/virtuemart.xml')){
$xmlFile = VMPATH_ROOT .'/virtuemart.xml';
} else if(JFile::exists(VMPATH_ADMIN .'/virtuemart.xml')){
$xmlFile = VMPATH_ADMIN .'/virtuemart.xml';
}
if($xmlFile)$model->updateJoomlaUpdateServer('component','com_virtuemart',$xmlFile);
$this->deleteSwfUploader();
if(JFolder::exists($this->path .'/administrator/templates/vmadmin') and $this->path!=VMPATH_ROOT){
$this->recurse_copy($this->path .'/administrator/templates/vmadmin',VMPATH_ROOT .'/administrator/templates/vmadmin');
}
$this->addActionLogEntry();
$this->displayFinished(false);
//include($this->path .'/install/install.virtuemart.html.php');
// perhaps a redirect to updatesMigration here rather than the html file?
// $parent->getParent()->setRedirectURL('index.php?option=com_virtuemart&view=updatesMigration');
return true;
}
function createFolders(){
$this->createIndexFolder(JPATH_ROOT .'/images');
$this->createIndexFolder(JPATH_ROOT .'/images/virtuemart');
$this->createIndexFolder(JPATH_ROOT .'/images/virtuemart/shipment');
$this->createIndexFolder(JPATH_ROOT .'/images/virtuemart/payment');
$this->createIndexFolder(JPATH_ROOT .'/images/virtuemart/category');
$this->createIndexFolder(JPATH_ROOT .'/images/virtuemart/category/resized');
$this->createIndexFolder(JPATH_ROOT .'/images/virtuemart/manufacturer');
$this->createIndexFolder(JPATH_ROOT .'/images/virtuemart/manufacturer/resized');
$this->createIndexFolder(JPATH_ROOT .'/images/virtuemart/product');
$this->createIndexFolder(JPATH_ROOT .'/images/virtuemart/product/resized');
$this->createIndexFolder(JPATH_ROOT .'/images/virtuemart/forSale');
$this->createIndexFolder(JPATH_ROOT .'/images/virtuemart/forSale/invoices');
$this->createIndexFolder(JPATH_ROOT .'/images/virtuemart/forSale/resized');
$this->createIndexFolder(JPATH_ROOT .'/images/virtuemart/typeless');
$this->createIndexFolder(JPATH_ROOT .'/images/virtuemart/vendor');
$this->createIndexFolder(JPATH_ROOT .'/images/virtuemart/vendor/resized');
}
/**
* creates a folder with empty html file
*
* @author Max Milbers
*
*/
public function createIndexFolder($path){
if(JFolder::create($path)) {
return true;
}
return false;
}
/**
* Update script
* Triggers after database processing
*
* @param object JInstallerComponent parent
* @return boolean True on success
*/
public function update ($loadVm = true) {
if(!$this->checkIfUpdate()){
return $this->install($loadVm);
}
$loaded = $this->loadVm(false);
if(!$loaded) {
$app = JFactory::getApplication();
$app->enqueueMessage(JText::_('COM_VM_INSTALL_DISABLE_PLUGINS_LOADING_VMCONFIG'),'warning');
//return false;
}
$this->createFolders();
//Delete Cache
$cache = JFactory::getCache();
$cache->clean();
$params = JComponentHelper::getParams('com_languages');
$lang = $params->get('site', 'en-GB');//use default joomla
$lang = strtolower(strtr($lang,'-','_'));
$model = VmModel::getModel('updatesmigration');
//$model = new VirtueMartModelUpdatesMigration(); //JModel::getInstance('updatesmigration', 'VirtueMartModel');
$model->execSQLFile($this->path .'/administrator/components/com_virtuemart/install/install.sql');
$this -> joomlaSessionDBToMediumText();
$this->updateToVm3 = $this->isUpdateToVm3();
$this->alterTable('#__virtuemart_product_prices',
array(
'product_price_vdate' => '`product_price_publish_up` datetime AFTER `product_currency`',
'product_price_edate' => '`product_price_publish_down` datetime AFTER `product_price_publish_up`'
));
$this->alterTable('#__virtuemart_customs',array(
'custom_field_desc' => '`custom_desc` varchar(4095) COMMENT \'description or unit\'',
'custom_params' => '`custom_params` text NOT NULL'
));
$this->alterTable('#__virtuemart_product_customfields',array(
'custom_value' => ' `customfield_value` varchar(2500) COMMENT \'field value\'',
'custom_price' => ' `customfield_price` DECIMAL(15,6) COMMENT \'price\'',
'custom_param' => ' `customfield_params` text COMMENT \'Param for Plugins\''
));
$this->alterTable('#__virtuemart_userfields',array(
'params' => '`userfield_params` text',
));
$this->alterTable('#__virtuemart_orders',array(
'customer_note' => '`oc_note` text COMMENT \'old customer notes\'',
));
$this->alterTable('#__virtuemart_orders',array(
'oc_note' => '`oc_note` text COMMENT \'old customer notes\'',
));
$this->alterTable('#__virtuemart_vendor_users',array(
'virtuemart_vendor_id' => '`virtuemart_vendor_user_id` int(1) UNSIGNED NOT NULL DEFAULT \'0\'',
));
$this->alterTable('#__virtuemart_countries',array(
'country_code' => '`country_num_code` char(3)',
));
$this->moveEditorContentToCustomparams();
JLoader::register('GenericTableUpdater', $this->path .'/administrator/components/com_virtuemart/helpers/tableupdater.php');
$updater = new GenericTableUpdater();
$updater->updateMyVmTables();
$this->installLanguageTables();
$this->checkAddDefaultShoppergroups();
$this->addMissingOrderstati();
$this->adjustMenuParamsCategoryView();
$this->fixOrdersVendorId();
$this->updateAdminMenuEntries();
if($this->updateToVm3){
$this->migrateCustoms();
$this->checkUserfields();
}
//copy sampel media
$src = $this->path .'/assets/images/vmsampleimages';
if(JFolder::exists($src)){
$dst = VMPATH_ROOT .'/images/virtuemart';
$this->recurse_copy($src,$dst);
}
//copy payment/shipment logos to new directory
$dest = JPATH_ROOT .'/images/virtuemart';
$src = JPATH_ROOT .'/images/stories/virtuemart';
if(JFolder::exists($src .'/payment') and !JFolder::exists($dest .'/payment')){
$this->recurse_copy($src .'/payment',$dest .'/payment');
}
if(JFolder::exists($src .'/shipment') and !JFolder::exists($dest .'/shipment')){
$this->recurse_copy($src .'/shipment',$dest .'/shipment');
}
$xmlFile = false;
if(JFile::exists(VMPATH_ROOT .'/virtuemart.xml')){
$xmlFile = VMPATH_ROOT .'/virtuemart.xml';
} else if(JFile::exists(VMPATH_ADMIN .'/virtuemart.xml')){
$xmlFile = VMPATH_ADMIN .'/virtuemart.xml';
}
if($xmlFile) $model->updateJoomlaUpdateServer('component','com_virtuemart', $xmlFile);
//fix joomla BE menu
if(version_compare(JVERSION,'3.7.0','ge')) {
$this->removeOldMenuLinks();
} else {
$this->checkFixJoomlaBEMenuEntries();
}
$this->deleteSwfUploader();
$this->deleteOverridenJoomlaFields();
$this->updateOldConfigEntries();
$model->updateCountryTableISONumbers(true, $this->path);
VirtueMartModelCategory::updateCategories();
if(JFolder::exists($this->path .'/administrator/templates/vmadmin') and $this->path .'/administrator/templates/vmadmin'!=VMPATH_ROOT .'/administrator/templates/vmadmin'){
$this->recurse_copy($this->path .'/administrator/templates/vmadmin',VMPATH_ROOT .'/administrator/templates/vmadmin');
}
$this->addActionLogEntry();
$this->removeMF_nameFromValidSearch();
if($loadVm) $this->displayFinished(true);
return true;
}
private function removeMF_nameFromValidSearch(){
$valid_search_fields = VmConfig::get ('browse_search_fields',array());
if( $key = array_search('mf_name', $valid_search_fields) ){
unset($valid_search_fields[$key]);
VmConfig::set('browse_search_fields',$valid_search_fields);
VmConfig::updateDbEntry();
}
}
private function moveEditorContentToCustomparams(){
if(empty($this->_db)) {
$this->_db = JFactory::getDBO();
}
$q = 'SELECT `virtuemart_customfield_id`, `customfield_value`
FROM `#__virtuemart_product_customfields` as pc
LEFT JOIN `#__virtuemart_customs` c ON pc.virtuemart_custom_id = c.virtuemart_custom_id
WHERE `field_type` = "X" and customfield_value!=""';
$this->_db->setQuery($q);
$res = $this->_db->loadAssocList();
foreach($res as $customfield){
$q = 'UPDATE #__virtuemart_product_customfields SET `customfield_params`="'.$this->_db->escape($customfield['customfield_value']).'", customfield_value="" WHERE virtuemart_customfield_id = "'.$customfield['virtuemart_customfield_id'].'" ';
$this->_db->setQuery($q);
//vmdebug('my query here',$q);
$res = $this->_db->execute();
}
}
private function addActionLogEntry(){
$extension = 'com_virtuemart';
$this->_db = JFactory::getDbo();
$this->_db->setQuery('SELECT `id` FROM #__action_logs_extensions Where extension="'.$extension.'"');
$id = $this->_db->loadResult();
if(!$id){
$this->_db->setQuery(' INSERT into #__action_logs_extensions (extension) VALUES ('.$this->_db->Quote($extension).') ' );
try {
// If it fails, it will throw a RuntimeException
$result = $this->_db->execute();
} catch (RuntimeException $e) {
JFactory::getApplication()->enqueueMessage($e->getMessage());
return false;
}
}
/* $extension = 'com_virtuemart';
$this->_db = JFactory::getDbo();
$this->_db->setQuery('SELECT `id` FROM #__action_log_config Where type_alias="'.$extension.'.product.added"');
$id = $this->_db->loadResult();
if(!$id){
$logConf = new stdClass();
$logConf->id = 0;
$logConf->type_title = 'VM product.added';
$logConf->type_alias = $extension.'.product.added';
$logConf->id_holder = 'virtuemart_product_id';
$logConf->title_holder = 'Für was ist das?';
$logConf->table_name = '#__virtuemart_products';
$logConf->text_prefix = 'COM_VM';
try {
// If it fails, it will throw a RuntimeException
// Insert the object into the table.
$result = $this->_db->insertObject('#__action_log_config', $logConf);
} catch (RuntimeException $e) {
JFactory::getApplication()->enqueueMessage($e->getMessage());
return false;
}
}*/
}
private function installLanguageTables(){
VmModel::getModel('config');
VirtueMartModelConfig::installLanguageTables();
}
private function setVmLanguages(){
$m = VmModel::getModel('config');
$m->setVmLanguages();
}
private function updateOldConfigEntries(){
$config = VmConfig::loadConfig(FALSE, FALSE, true, false);
if(VmConfig::get('featured','none') == 'none'){
$config->set('featured', $config->get('show_featured', 1));
$config->set('discontinued', $config->get('show_discontinued', 0));
$config->set('topten', $config->get('show_topTen', 0));
$config->set('recent', $config->get('show_recent', 0));
$config->set('latest', $config->get('show_latest', 0));
$config->set('featured_rows', $config->get('featured_products_rows',1));
$config->set('discontinued_rows', $config->get('discontinued_products_rows',1));
$config->set('topten_rows', $config->get('topTen_products_rows',1));
$config->set('recent_rows', $config->get('recent_products_rows',1));
$config->set('latest_rows', $config->get('latest_products_rows',1));
$config->set('omitLoaded_topten', $config->get('omitLoaded_topTen',1));
$config->set('showcategory', $config->get('showCategory',1));
$data['virtuemart_config_id'] = 1;
$data['config'] = $config->toString();
$confTable = VmModel::getModel('config')->getTable('configs');
$confTable->bindChecknStore($data);
VmConfig::loadConfig(FALSE, FALSE, true, false);
}
}
private function deleteOverridenJoomlaFields(){
if(JVM_VERSION>0){
if( JFolder::exists(VMPATH_ADMIN .'/fields') ){
if( JFolder::exists(VMPATH_ADMIN .'/fields/jfields') ){
JFolder::delete(VMPATH_ADMIN .'/fields/jfields');
}
$oldJFields = array('filelist','list','radio','text','textarea');
foreach($oldJFields as $field){
$d = VMPATH_ADMIN .'/fields/'.$field.'.php';
if( JFile::exists($d) ){
JFile::delete($d);
}
}
}
}
}
private function deleteSwfUploader(){
if(JVM_VERSION>0){
if( JFolder::exists(VMPATH_ROOT .'/media/system/swf')){
JFolder::delete(VMPATH_ROOT .'/media/system/swf');
}
if( JFile::exists(VMPATH_ROOT .'/administrator/language/en-GB/en-GB.com_virtuemart.sys.ini')){
JFile::delete(VMPATH_ROOT .'/administrator/language/en-GB/en-GB.com_virtuemart.sys.ini');
}
}
}
private function isUpdateToVm3(){
if(empty($this->_db)) {
$this->_db = JFactory::getDBO();
}
$tablename = '#__virtuemart_product_customfields';
$this->_db->setQuery('SHOW FULL COLUMNS FROM `'.$tablename.'` ');
//$fullColumns = $this->_db->loadObjectList();
$columns = $this->_db->loadColumn(0);
if(in_array('custom_value',$columns) or in_array('custom_price',$columns)){
vmInfo('Upgrade of VM2 to VM3');
return true;
} else {
vmdebug('Update of VM3');
return false;
}
}
private function fixOrdersVendorId(){
$multix = Vmconfig::get('multix','none');
if( $multix == 'none'){
if(empty($this->_db)){
$this->_db = JFactory::getDBO();
}
$q = 'SELECT `virtuemart_user_id` FROM #__virtuemart_orders WHERE virtuemart_vendor_id = "0" ';
$this->_db->setQuery($q);
$res = $this->_db->loadResult();
if($res){
//vmdebug('fixOrdersVendorId ',$res);
$q = 'UPDATE #__virtuemart_orders SET `virtuemart_vendor_id`=1 WHERE virtuemart_vendor_id = "0" ';
$this->_db->setQuery($q);
$res = $this->_db->execute();
$q = 'UPDATE #__virtuemart_order_items SET `virtuemart_vendor_id`=1 WHERE virtuemart_vendor_id = "0" ';
$this->_db->setQuery($q);
$res = $this->_db->execute();
}
}
}
private function addMissingOrderstati(){
if(empty($this->_db)){
$this->_db = JFactory::getDBO();
}
$q = '';
$qc = 'SELECT * FROM `#__virtuemart_orderstates` WHERE `order_status_code`="F"';
$this->_db->setQuery($qc);
$f = $this->_db->loadResult();
if(!$f) {
$q .= "(null, 'F', 'COM_VIRTUEMART_ORDER_STATUS_COMPLETED', '', 'R',7, 1)";
}
$qc = 'SELECT * FROM `#__virtuemart_orderstates` WHERE `order_status_code`="D"';
$this->_db->setQuery($qc);
$d = $this->_db->loadResult();
if(!$d) {
if(!empty($q)) {
$q .= ',';
}
$q .= "(null, 'D', 'COM_VIRTUEMART_ORDER_STATUS_DENIED', '', 'A',8, 1)";
}
if(!empty($q)) {
$qi = "INSERT INTO `#__virtuemart_orderstates` (`virtuemart_orderstate_id`, `order_status_code`, `order_status_name`, `order_status_description`, `order_stock_handle`, `ordering`, `virtuemart_vendor_id`) VALUES ".$q.";";
$this->_db->setQuery($qi);
if(!$this->_db->execute()){
$app = JFactory::getApplication();
$app->enqueueMessage('Error: Insert Orderstati '.$qi );
$ok = false;
}
}
}
private function adjustMenuParamsCategoryView(){
if(empty($this->_db)) $this->_db = JFactory::getDBO();
$this->_db->setQuery('SELECT `extension_id` FROM `#__extensions` WHERE `type` = "component" AND `element`="com_virtuemart" and state="0"');
$jId = $this->_db->loadResult();
if($jId){
$q = 'SELECT * FROM #__menu WHERE component_id = "'.$jId.'" AND client_id="0" and link like "%view=category%" ';
$this->_db->setQuery($q);
$menues = $this->_db->loadAssocList();
//vmdebug('my menues',$menues);
foreach($menues as $menu){
$linkOrig = $menu['link'];
$menu['link'] = 'index.php?option=com_virtuemart&view=category';
$link = str_replace('index.php?option=com_virtuemart&view=category','',$linkOrig);
if(strlen($link)>1){
$registry = new JRegistry;
$registry->loadString($menu['params']);
$paramsLink = explode('&',$link);
foreach($paramsLink as $param){
if(strpos($param,'=')!==FALSE){
$spl = explode('=',$param);
if(!empty($spl[0]) and isset($spl[1])){
if($spl[0]!='virtuemart_category_id' and $spl[0]!='virtuemart_manufacturer_id'){
$registry->set($spl[0], $spl[1]);
} else {
$menu['link'] .= '&'.$spl[0].'='.$spl[1];
}
} else {
vmdebug('Key empty ',$spl);
}
}
}
$params = (string)$registry;
} else {
$params = $menu['params'];
}
if($linkOrig!=$menu['link'] and $menu['params']!=$params){
$q = 'UPDATE #__menu' .
' SET link = "'.$menu['link'].'", params = "'.$this->_db->escape($params).'"'.
' WHERE id = '.(int) $menu['id'];
$this->_db->setQuery( $q);
if (!$this->_db->execute()) {
$m = 'Updating vm category menu failed '.$q;
vmError($m, $m);
} else {
vmdebug('Updated menu $menu '.$menu['id'],$linkOrig,$menu['link'],$param);
}
} else {
//vmdebug('Menu dont need update '.$menu['id']);
}
}
//For the moment, we do not convert old virtuemart views
if(false){
$q = 'SELECT * FROM #__menu WHERE component_id = "'.$jId.'" AND client_id="0" and link like "%view=virtuemart%" ';
$this->_db->setQuery($q);
$menues = $this->_db->loadAssocList();
foreach($menues as $menu){
$linkOrig = $menu['link'];
$menu['link'] = 'index.php?option=com_virtuemart&view=category&virtuemart_category_id=0&virtuemart_manufacturer_id=0';
$registry = new JRegistry;
$registry->loadString($menu['params']);
if(strpos($linkOrig,'productsublayout')){
vmdebug('Found productsublayout in the link');
$productsublayout = str_replace('index.php?option=com_virtuemart&view=virtuemart&productsublayout=','',$linkOrig);
} else {
$productsublayout = Vmconfig::get('productsublayout',0 );
}
$paramNames = array(
'categorylayout' => VmConfig::get('vmlayout', 0),
'show_store_desc' => VmConfig::get('show_store_desc',1),
'showcategory_desc' => VmConfig::get('showcategory_desc', 1),
'showcategory' => VmConfig::get('show_categories',1),
'categories_per_row' => VmConfig::get('homepage_categories_per_row',3),
'showproducts' => '1',
'showsearch' => '0',
'productsublayout' => $productsublayout,
'products_per_row' => VmConfig::get('homepage_products_per_row', 3),
'featured' => VmConfig::get('show_featured',1),
'featured_rows' => VmConfig::get('featured_products_rows',1),
'discontinued' => VmConfig::get('show_discontinued',0),
'discontinued_rows' => VmConfig::get('discontinued_products_rows',1),
'latest' => VmConfig::get('show_latest',1),
'latest_rows' => VmConfig::get('latest_products_rows',1),
'topten' => VmConfig::get('show_topTen',1),
'topten_rows' => VmConfig::get('topTen_products_rows',1),
'recent' => VmConfig::get('show_recent',0),
'recent_rows' => VmConfig::get('recent_products_rows',1));
foreach($paramNames as $key => $default){
$registry->set($key, $default);
}
$params = (string)$registry;
if($linkOrig!=$menu['link'] and $menu['params']!=$params){
$q = 'UPDATE #__menu' .
' SET link = "'.$menu['link'].'", params = "'.$this->_db->escape($params).'"'.
' WHERE id = '.(int) $menu['id'];
$this->_db->setQuery( $q);
if (!$this->_db->query()) {
$m = 'Updating vm category menu failed '.$q;
vmError($m, $m);
} else {
vmdebug('Updated menu $menu '.$menu['id'],$menu['link'],$param);
}
} else {
vmdebug('Menu dont need update '.$menu['id']);
}
}
}
}
}
public function removeOldMenuLinks(){
$this->_db = JFactory::getDbo();
$this->_db->setQuery('SELECT `extension_id` FROM `#__extensions` WHERE `type` = "component" AND `element`="com_virtuemart" and state="0"');
$jId = $this->_db->loadResult();
if($jId){
$this->_db = JFactory::getDbo();
$this->_db->setQuery('DELETE FROM `#__menu` WHERE `component_id` = "'.$jId.'" AND `type` = "component" AND `menutype`="vmadmin"');
$this->_db->execute();
}
}
/**
*
*/
public function checkFixJoomlaBEMenuEntries(){
$this->_db = JFactory::getDbo();
$this->_db->setQuery('SELECT `extension_id` FROM `#__extensions` WHERE `type` = "component" AND `element`="com_virtuemart" and state="0"');
$jId = $this->_db->loadResult();
if($jId){
$mId = false;
$qME = 'SELECT * FROM `#__menu` WHERE `component_id` = "'.$jId.'" AND `type` = "component" AND `parent_id` = "1" AND `client_id` = "1" AND id > 1';
//now lets check if there are menue entries
$this->_db->setQuery($qME);
$mEntries = $this->_db->loadAssocList();
if(!$mEntries){
$this->_db->setQuery('SELECT `id` FROM `#__menu` WHERE `path`="com-virtuemart" AND `type` = "component" AND `parent_id` = "1" AND `client_id` = "1" AND id > 1');
if($id = $this->_db->loadResult()){
$this->_db->setQuery('UPDATE `#__menu` SET `component_id`="'.$jId.'", `language`="*" WHERE `id` = "'.$id.'" ');
$this->_db->execute();
$this->_db->setQuery($qME);
$mEntries = $this->_db->loadAssocList();
} else {
vmError('Could not find VirtueMart submenues, please install VirtueMart again');
}
}
if($mEntries){
if(is_array($mEntries)){
if(count($mEntries)>1){
vmError('Multiple menues found');
} else if(isset($mEntries[0])) {
$mId = $mEntries[0]['id'];
}
}
} else {
vmError('Could not find VirtueMart submenues, please install VirtueMart again');
}
if($mId){
$this->_db->setQuery('UPDATE `#__menu` SET `component_id`="'.$jId.'", `language`="*", `menutype`="vmadmin" WHERE `parent_id` = "'.$mId.'" ');
$this->_db->execute();
$this->_db->setQuery('UPDATE `#__menu` SET `language`="*", `menutype`="vmadmin" WHERE `id` = "'.$mId.'" ');
$this->_db->execute();
}
}
}
private function updateAdminMenuEntries(){
$sqlfile = VMPATH_ADMIN .'/install/install_essential_data.sql';
$queries = $this->_db->splitSql(file_get_contents($sqlfile));
if (count($queries) == 0) {
vmError('SQL file has no queries!');
return false;
}
$query = trim($queries[0]);
$q = 'SELECT * FROM `#__virtuemart_adminmenuentries` ';
$this->_db->setQuery($q);
$existing = $this->_db->loadAssocList();
if($existing){
$queryLines = explode("\n",$query);
$oldIds = array();
foreach($queryLines as $n=>$line){
if(empty($line)){
unset($queryLines[$n]);
} else {
$line = trim($line);
if(empty($line) or strpos($line, '--' )===0){
unset($queryLines[$n]);
}
if(strpos($line, 'CREATE' )===0 or strpos( $line, 'INSERT')===0){
$open = strpos($line,'(')+1;
$close = strrpos($line,')') - $open;
$keyLine = substr($line,$open,$close);
//vmdebug('Update Admin menu entries define ',$length,$open,$close,$line,$keyLine);
$keys = explode(',',$keyLine);
} else if(strpos($line, '(' )===0){
$open = strpos($line,'(')+1;
$close = strrpos($line,')') - $open;
$valueLine = substr($line,$open,$close);
$values = explode(',',$valueLine);
foreach($existing as $entry){
$name = '\''.$entry['name'].'\'';
if($name==trim($values[3])){
//The entry exists, lets update it
$oldIds[$entry['id']] = $values;
unset($queryLines[$n]);
}
}
}
}
}
if(count($queryLines)>1){
$query = trim(implode("\n",$queryLines));
$query = substr($query,0,-1).';';
} else {
$query = false;
}
if(count($oldIds)>0){
$updateBase = 'UPDATE `#__virtuemart_adminmenuentries` SET ';
foreach($oldIds as $id=>$values){
$updateQuery = '';
foreach($keys as $index => $key){
if($key=='`id`'){
continue;
}
$value = trim($values[$index]);
if(strpos($value,'\'')===0){
$value = substr($value,1,-1);
}
$updateQuery .= $key . ' = "'.$value.'", ';
}
$updateQuery = substr($updateQuery,0,-2);
$updateQuery .= ' WHERE `id` = '.$id.';';
$this->_db->setQuery($updateBase.$updateQuery);
if (!$this->_db->execute()) {
vmWarn( 'JInstaller::install: '.$sqlfile.' '.vmText::_('COM_VIRTUEMART_SQL_ERROR')." ".$this->_db->stderr(true));
$ok = false;
}
//vmdebug('Update Admin menu entries value $updateQuery',$updateBase.$updateQuery);
}
}
}
if(!empty($query)){
$this->_db->setQuery($query);
if (!$this->_db->execute()) {
vmWarn( 'JInstaller::install: '.$sqlfile.' '.vmText::_('COM_VIRTUEMART_SQL_ERROR')." ".$this->_db->stderr(true));
}
}
}
private function checkUserfields(){
$model = VmModel::getModel('userfields');
$field = $model->getUserfield('customer_note','name');
$data = array ('type' => 'textarea'
, 'maxlength' => 2500
, 'cols' => 60
, 'rows' => 1
, 'name' => 'customer_note'
, 'title' => 'COM_VIRTUEMART_CNOTES_CART'
, 'description' => ''
, 'default' => ''
, 'required' => 0
, 'cart' => 1
, 'account' => 0
, 'shipment' => 0
, 'readonly' => 0
, 'published' => 1
);
if(!empty($field->virtuemart_userfield_id)) {
if($field->published){
$field->cart = 1;
$id = $model->store((array)$field);
}
} else {
$id = $model->store($data);
}
if($id) vmInfo('Created shopperfield customer_note');
$field = $model->getUserfield('tos','name');
$data = array ('type' => 'custom'
, 'name' => 'tos'
, 'title' => 'COM_VIRTUEMART_STORE_FORM_TOS'
, 'description' => ''
, 'required' => 1
, 'cart' => 1
, 'account' => 0
, 'shipment' => 0
, 'readonly' => 0
, 'published' => 1
);
if(!empty($field->virtuemart_userfield_id)) {
if($field->published){
$field->cart = 1;
$field->required = 1;
$id = $model->store((array)$field);
}
} else {
$id = $model->store($data);
}
if($id) vmInfo('Created shopperfield tos for cart and account');
$field = $model->getUserfield('agreed','name');
if($field){
$field ->published = 0;
$id = $model->store($field);
if($id) vmInfo('Disabled shopperfield agreed, replaced by tos');
}
}
private function migrateCustoms(){
$q = 'UPDATE `#__virtuemart_product_customfields` SET `published`= "1" WHERE `published`="0" ';
$this->_db->setQuery($q);
try {
$this->_db->execute();
} catch (Exception $e) {
vmError('updateCustomfieldsPublished update published '.$e->getMessage());
}
$q = "UPDATE `#__virtuemart_customs` SET `field_type`='S',`is_cart_attribute`=1,`is_input`=1,`is_list`='0' WHERE `field_type`='V'";
$this->_db->setQuery($q);# try {
try {
$this->_db->execute();
} catch (Exception $e) {
vmError('updateCustomfieldsPublished migrateCustoms '.$e->getMessage());
}
$q = "UPDATE `#__virtuemart_customs` SET `is_input`=1 WHERE `field_type`='M' AND `is_cart_attribute`=1";
$this->_db->setQuery($q);
try {
$this->_db->execute();
} catch (Exception $e) {
vmError('updateCustomfieldsPublished migrateCustoms '.$e->getMessage());
}
$q = "UPDATE `#__virtuemart_customs` SET `field_type`='S' WHERE `field_type`='I'";
$this->_db->setQuery($q);
try {
$this->_db->execute();
} catch (Exception $e) {
vmError('updateCustomfieldsPublished migrateCustoms '.$e->getMessage());
}
$q = "UPDATE `#__virtuemart_customs` SET `field_type`='S', `custom_value`='JYES;JNO',`is_list`='1' WHERE `field_type`='B'";
$this->_db->setQuery($q);
try {
$this->_db->execute();
} catch (Exception $e) {
vmError('updateCustomfieldsPublished migrateCustoms '.$e->getMessage());
}
$q = "UPDATE `#__virtuemart_customs` SET `layout_pos`='addtocart' WHERE `is_input`='1'";
$this->_db->setQuery($q);
try {
$this->_db->execute();
} catch (Exception $e) {
vmError('updateCustomfieldsPublished migrateCustoms '.$e->getMessage());
}
$q = "UPDATE `#__virtuemart_customs` SET `layout_pos`='ontop',`is_cart_attribute`=1 WHERE `field_type`='A'";
$this->_db->setQuery($q);
try {
$this->_db->execute();
} catch (Exception $e) {
vmError('updateCustomfieldsPublished migrateCustoms '.$e->getMessage());
}
$q = "UPDATE `#__virtuemart_customs` SET `layout_pos`='related_products' WHERE `field_type`='R'";
$this->_db->setQuery($q);
try {
$this->_db->execute();
} catch (Exception $e) {
vmError('updateCustomfieldsPublished migrateCustoms '.$e->getMessage());
}
$q = "UPDATE `#__virtuemart_customs` SET `layout_pos`='related_categories' WHERE `field_type`='Z'";
$this->_db->setQuery($q);
try {
$this->_db->execute();
} catch (Exception $e) {
vmError('updateCustomfieldsPublished migrateCustoms '.$e->getMessage());
}
$q = "UPDATE `#__virtuemart_customs` SET `field_type`='G' WHERE `field_type`='P'";
$this->_db->setQuery($q);
try {
$this->_db->execute();
} catch (Exception $e) {
vmError('updateCustomfieldsPublished migrateCustoms '.$e->getMessage());
}
}
/**
* @author Max Milbers
* @param unknown_type $tablename
* @param unknown_type $fields
* @param unknown_type $command
*/
private function alterTable($tablename,$fields,$command='CHANGE'){
$ok = true;
if(empty($this->_db)){
$this->_db = JFactory::getDBO();
}
$query = 'SHOW COLUMNS FROM `'.$tablename.'` ';
$this->_db->setQuery($query);
$columns = $this->_db->loadColumn(0);
foreach($fields as $fieldname => $alterCommand){
if(in_array($fieldname,$columns)){
$query = 'ALTER TABLE `'.$tablename.'` '.$command.' COLUMN `'.$fieldname.'` '.$alterCommand;
$this->_db->setQuery($query);
try {
$this->_db->execute();
} catch (Exception $e) {
$app = JFactory::getApplication();
$app->enqueueMessage('Error: Install alterTable '.$e->getMessage() );
$ok = false;
}
}
}
return $ok;
}
/**
*
* @author Max Milbers
* @param unknown_type $table
* @param unknown_type $field
* @param unknown_type $action
* @return boolean This gives true back, WHEN it altered the table, you may use this information to decide for extra post actions
*/
private function checkAddFieldToTable($table,$field,$fieldType){
$query = 'SHOW COLUMNS FROM `'.$table.'` ';
$this->_db->setQuery($query);
$columns = $this->_db->loadColumn(0);
if(!in_array($field,$columns)){
$query = 'ALTER TABLE `'.$table.'` ADD '.$field.' '.$fieldType;
$this->_db->setQuery($query);
try{
$this->_db->execute();
} catch (Exception $e) {
$app = JFactory::getApplication();
$app->enqueueMessage('Error: Install checkAddFieldToTable '.$e->getMessage() );
return false;
}
vmdebug('checkAddFieldToTable added '.$field);
return true;
}
return false;
}
/**
* Checks if both types of default shoppergroups are set
* @author Max Milbers
*/
private function checkAddDefaultShoppergroups(){
$q = 'SELECT `virtuemart_shoppergroup_id` FROM `#__virtuemart_shoppergroups` WHERE `default` = "1" ';
$this->_db = JFactory::getDbo();
$this->_db->setQuery($q);
$res = $this->_db ->loadResult();
if(empty($res)){
$q = "INSERT INTO `#__virtuemart_shoppergroups` (`virtuemart_shoppergroup_id`, `virtuemart_vendor_id`, `shopper_group_name`, `shopper_group_desc`, `default`, `shared`) VALUES
(NULL, 1, '-default-', 'This is the default shopper group.', 1, 1);";
$this->_db->setQuery($q);
$this->_db->execute();
}
$q = 'SELECT `virtuemart_shoppergroup_id` FROM `#__virtuemart_shoppergroups` WHERE `default` = "2" ';
$this->_db->setQuery($q);
$res = $this->_db ->loadResult();
if(empty($res)){
$q = "INSERT INTO `#__virtuemart_shoppergroups` (`virtuemart_shoppergroup_id`, `virtuemart_vendor_id`, `shopper_group_name`, `shopper_group_desc`, `default`, `shared`) VALUES
(NULL, 1, '-anonymous-', 'Shopper group for anonymous shoppers', 2, 1);";
$this->_db->setQuery($q);
$this->_db->execute();
}
}
private function joomlaSessionDBToMediumText(){
if(version_compare(JVERSION,'1.6.0','ge')) {
$fields = array('data'=>'`data` mediumtext NULL AFTER `time`');
$this->alterTable('#__session',$fields);
}
}
/**
* Uninstall script
* Triggers before database processing
*
* @param object JInstallerComponent parent
* @return boolean True on success
*/
public function uninstall ($parent=null) {
/*if(empty($this->path)){
$this->path = VMPATH_ADMIN;
}*/
//$this->loadVm();
//include($this->path .'/install/uninstall.virtuemart.html.php');
return true;
}
/**
* Post-process method (e.g. footer HTML, redirect, etc)
*
* @param string Process type (i.e. install, uninstall, update)
* @param object JInstallerComponent parent
*/
public function postflight ($type, $parent=null) {
$_REQUEST['install'] = 0;
if ($type != 'uninstall') {
if(!class_exists('VmConfig')){
$this->loadVm(false);
}
if(!class_exists('VirtueMartModelConfig')) require(VMPATH_ADMIN .'/models/config.php');
$res = VirtueMartModelConfig::checkConfigTableExists();
if(!empty($res)){
vRequest::setVar(JSession::getFormToken(), '1');
$config = VmModel::getModel('config');
$config->setDangerousToolsOff();
}
}
return true;
}
/**
* copy all $src to $dst folder and remove it
*
* @author Max Milbers
* @param String $src path
* @param String $dst path
* @param String $type modules, plugins, languageBE, languageFE
*/
private function recurse_copy($src,$dst,$delete = true ) {
$dir = '';
if(JFolder::exists($src)){
$dir = opendir($src);
$this->createIndexFolder($dst);
if(is_resource($dir)){
while(false !== ( $file = readdir($dir)) ) {
if (( $file != '.' ) && ( $file != '..' )) {
if ( is_dir($src .DS. $file) ) {
if(!JFolder::create($dst . DS . $file)){
$app = JFactory::getApplication ();
$app->enqueueMessage ('Couldnt create folder ' . $dst . DS . $file);
}
$this->recurse_copy($src .DS. $file,$dst .DS. $file);
}
else {
if($delete and JFile::exists($dst .DS. $file)){
if(!JFile::delete($dst .DS. $file)){
$app = JFactory::getApplication();
$app -> enqueueMessage('Couldnt delete '.$dst .DS. $file);
}
}
if(!JFile::copy($src .DS. $file,$dst .DS. $file)){
$app = JFactory::getApplication();
$app -> enqueueMessage('Couldnt move '.$src .DS. $file.' to '.$dst .DS. $file);
}
}
}
}
closedir($dir);
//if (is_dir($src)) JFolder::delete($src);
return true;
}
}
$app = JFactory::getApplication();
$app -> enqueueMessage('Virtuemart Installer recurse_copy; Couldnt read source directory '.$src);
}
public function displayFinished($update){
require($this->path.'/administrator/components/com_virtuemart/views/updatesmigration/tmpl/insfinished.php');
}
static public function registerCoreClasses($rootPath = VMPATH_ROOT){
$vmpath_admin = $rootPath.'/administrator/components/com_virtuemart';
$vmpath_pluginlibs = $vmpath_admin.'/plugins';
$vmpath_site = $rootPath.'/components/com_virtuemart';
$libsPath = VMPATH_ROOT .'/libraries';
JLoader::register('JFile', $libsPath .'/joomla/filesystem/file.php');
JLoader::register('JFolder', $libsPath .'/joomla/filesystem/folder.php');
JLoader::register('vmVersion', $vmpath_admin.'/version.php');
JLoader::register('AdminUIHelper', $vmpath_admin.'/helpers/adminui.php');
JLoader::register('calculationHelper', $vmpath_admin.'/helpers/calculationh.php');
JLoader::register('VmConnector', $vmpath_admin.'/helpers/connection.php');
JLoader::register('CurrencyDisplay', $vmpath_admin.'/helpers/currencydisplay.php');
JLoader::register('VmHtml', $vmpath_admin.'/helpers/html.php');
JLoader::register('VmImage', $vmpath_admin.'/helpers/image.php');
JLoader::register('Img2Thumb', $vmpath_admin.'/helpers/img2thumb.php');
JLoader::register('VmMediaHandler', $vmpath_admin.'/helpers/mediahandler.php');
JLoader::register('vmFile', $vmpath_admin.'/helpers/mediahandler.php');
JLoader::register('Migrator', $vmpath_admin.'/helpers/migrator.php');
JLoader::register('ShopFunctions', $vmpath_admin.'/helpers/shopfunctions.php');
JLoader::register('GenericTableUpdater', $vmpath_admin.'/helpers/tableupdater.php');
JLoader::register('VmController', $vmpath_admin.'/helpers/vmcontroller.php');
JLoader::register('vmCrypt', $vmpath_admin.'/helpers/vmcrypt.php');
//JLoader::register('vmFilter', $vmpath_admin.'/helpers/vmfilter.php');
JLoader::register('vmJsApi', $vmpath_admin.'/helpers/vmjsapi.php');
JLoader::register('vmLanguage', $vmpath_admin.'/helpers/vmlanguage.php');
JLoader::register('VmModel', $vmpath_admin.'/helpers/vmmodel.php');
JLoader::register('VmPagination', $vmpath_admin.'/helpers/vmpagination.php');
JLoader::register('vmRSS', $vmpath_admin.'/helpers/vmrss.php');
JLoader::register('VmTable', $vmpath_admin.'/helpers/vmtable.php');
JLoader::register('VmTableData', $vmpath_admin.'/helpers/vmtabledata.php');
JLoader::register('VmTableXarray', $vmpath_admin.'/helpers/vmtablexarray.php');
JLoader::register('vmText', $vmpath_admin.'/helpers/vmtext.php');
JLoader::register('vmUploader', $vmpath_admin.'/helpers/vmuploader.php');
JLoader::register('VmViewAdmin', $vmpath_admin.'/helpers/vmviewadmin.php');
JLoader::register('vObject', $vmpath_admin.'/helpers/vobject.php');
JLoader::register('vRequest', $vmpath_admin.'/helpers/vrequest.php');
JLoader::register('VirtueMartModelCalc', $vmpath_admin.'/models/calc.php');
JLoader::register('VirtueMartModelCategory', $vmpath_admin.'/models/category.php');
JLoader::register('VirtueMartModelConfig', $vmpath_admin.'/models/config.php');
JLoader::register('VirtueMartModelCountry', $vmpath_admin.'/models/country.php');
JLoader::register('VirtueMartModelCoupon', $vmpath_admin.'/models/coupon.php');
JLoader::register('VirtueMartModelCurrency', $vmpath_admin.'/models/currency.php');
JLoader::register('VirtueMartModelCustom', $vmpath_admin.'/models/custom.php');
JLoader::register('VirtueMartModelCustomfields', $vmpath_admin.'/models/customfields.php');
JLoader::register('VirtueMartModelInventory', $vmpath_admin.'/models/inventory.php');
JLoader::register('VirtueMartModelInvoice', $vmpath_admin.'/models/invoice.php');
JLoader::register('VirtueMartModelManufacturer', $vmpath_admin.'/models/manufacturer.php');
JLoader::register('VirtuemartModelManufacturercategories', $vmpath_admin.'/models/manufacturercategories.php');
JLoader::register('VirtueMartModelMedia', $vmpath_admin.'/models/media.php');
JLoader::register('VirtueMartModelOrders', $vmpath_admin.'/models/orders.php');
JLoader::register('VirtueMartModelOrderstatus', $vmpath_admin.'/models/orderstatus.php');
JLoader::register('VirtueMartModelPaymentmethod', $vmpath_admin.'/models/paymentmethod.php');
JLoader::register('VirtueMartModelProduct', $vmpath_admin.'/models/product.php');
JLoader::register('VirtueMartModelRatings', $vmpath_admin.'/models/ratings.php');
JLoader::register('VirtuemartModelReport', $vmpath_admin.'/models/report.php');
JLoader::register('VirtueMartModelShipmentmethod', $vmpath_admin.'/models/shipmentmethod.php');
JLoader::register('VirtueMartModelShopperGroup', $vmpath_admin.'/models/shoppergroup.php');
JLoader::register('VirtueMartModelUpdatesMigration', $vmpath_admin.'/models/updatesmigration.php');
JLoader::register('VirtueMartModelState', $vmpath_admin.'/models/state.php');
JLoader::register('VirtueMartModelUser', $vmpath_admin.'/models/user.php');
JLoader::register('VirtueMartModelUserfields', $vmpath_admin.'/models/userfields.php');
JLoader::register('VirtueMartModelVendor', $vmpath_admin.'/models/vendor.php');
JLoader::register('vmCalculationPlugin', $vmpath_pluginlibs.'/vmcalculationplugin.php');
JLoader::register('vmCouponPlugin', $vmpath_pluginlibs.'/vmcouponplugin.php');
JLoader::register('vmCurrencyPlugin', $vmpath_pluginlibs.'/vmcurrencyplugin.php');
JLoader::register('vmCustomPlugin', $vmpath_pluginlibs.'/vmcustomplugin.php');
JLoader::register('vmExtendedPlugin', $vmpath_pluginlibs.'/vmextendedplugin.php');
JLoader::register('vmPlugin', $vmpath_pluginlibs.'/vmplugin.php');
JLoader::register('vmPSPlugin', $vmpath_pluginlibs.'/vmpsplugin.php');
JLoader::register('vmShopperPlugin', $vmpath_pluginlibs.'/vmshopperplugin.php');
JLoader::register('vmUserfieldPlugin', $vmpath_pluginlibs.'/vmuserfieldtypeplugin.php');
JLoader::register('TableCalcs', $vmpath_admin.'/tables/calcs.php');
JLoader::register('TableCategories', $vmpath_admin.'/tables/categories.php');
JLoader::register('TableCategory_medias', $vmpath_admin.'/tables/category_medias.php');
JLoader::register('TableManufacturers', $vmpath_admin.'/tables/manufacturers.php');
JLoader::register('TableMedias', $vmpath_admin.'/tables/medias.php');
JLoader::register('TableUserinfos', $vmpath_admin.'/tables/userinfos.php');
JLoader::register('TableVendors', $vmpath_admin.'/tables/TableVendors.php');
JLoader::register('shopFunctionsF', $vmpath_site.'/helpers/shopfunctionsf.php');
JLoader::register('VmView', $vmpath_site.'/helpers/vmview.php');
}
}
// pure php no tag
uninstall.sql 0000644 00000002400 15234761600 0007276 0 ustar 00 DROP TABLE
`#__virtuemart_permgroups`,
`#__virtuemart_categories`,
`#__virtuemart_category_categories`,
`#__virtuemart_countries`,
`#__virtuemart_coupons`,
`#__virtuemart_currencies`,
`#__virtuemart_customs`,
`#__virtuemart_customplugins`,
`#__virtuemart_manufacturers`,
`#__virtuemart_manufacturercategories`,
`#__virtuemart_adminmenuentries`,
`#__virtuemart_modules`,
`#__virtuemart_orders`,
`#__virtuemart_order_histories`,
`#__virtuemart_order_items`,
`#__virtuemart_orderstates`,
`#__virtuemart_order_userinfos`,
`#__virtuemart_paymentmethods`,
`#__virtuemart_products`,
`#__virtuemart_product_categories`,
`#__virtuemart_product_customfields`,
`#__virtuemart_product_downloads`,
`#__virtuemart_medias`,
`#__virtuemart_product_manufacturers`,
`#__virtuemart_product_prices`,
`#__virtuemart_product_producttypes`,
`#__virtuemart_product_relations`,
`#__virtuemart_rating_reviews`,
`#__virtuemart_producttypes`,
`#__virtuemart_producttype_customfields`,
`#__virtuemart_shipmentmethods`,
`#__virtuemart_shoppergroups`,
`#__virtuemart_states`,
`#__virtuemart_userfields`,
`#__virtuemart_userfield_values`,
`#__virtuemart_vmusers`,
`#__virtuemart_userinfos`,
`#__virtuemart_vmuser_shoppergroups`,
`#__virtuemart_vendors`,
`#__virtuemart_waitingusers`,
`#__virtuemart_worldzones`; uninstall_data.sql 0000644 00000003725 15234761600 0010302 0 ustar 00 -- Remove all virtuemart data
DELETE FROM `#__virtuemart_calcs`;
DELETE FROM `#__virtuemart_calc_categories`;
DELETE FROM `#__virtuemart_calc_shoppergroups`;
DELETE FROM `#__virtuemart_calc_countries`;
DELETE FROM `#__virtuemart_calc_states`;
DELETE FROM `#__virtuemart_categories`;
DELETE FROM `#__virtuemart_category_categories`;
DELETE FROM `#__virtuemart_category_medias`;
DELETE FROM `#__virtuemart_coupons`;
DELETE FROM `#__virtuemart_countries`;
DELETE FROM `#__virtuemart_customs`;
DELETE FROM `#__virtuemart_manufacturers`;
DELETE FROM `#__virtuemart_manufacturercategories`;
DELETE FROM `#__virtuemart_manufacturer_medias`;
DELETE FROM `#__virtuemart_medias`;
DELETE FROM `#__virtuemart_migration_oldtonew_ids`;
DELETE FROM `#__virtuemart_orders`;
DELETE FROM `#__virtuemart_order_histories`;
DELETE FROM `#__virtuemart_order_items`;
DELETE FROM `#__virtuemart_order_userinfos`;
DELETE FROM `#__virtuemart_paymentmethods`;
DELETE FROM `#__virtuemart_paymentmethod_creditcards` IF EXISTS;
DELETE FROM `#__virtuemart_paymentmethod_shoppergroups`;
DELETE FROM `#__virtuemart_products`;
DELETE FROM `#__virtuemart_product_categories`;
DELETE FROM `#__virtuemart_product_customfields`;
DELETE FROM `#__virtuemart_product_downloads`;
DELETE FROM `#__virtuemart_product_manufacturers`;
DELETE FROM `#__virtuemart_product_medias`;
DELETE FROM `#__virtuemart_product_prices`;
DELETE FROM `#__virtuemart_product_relations`;
DELETE FROM `#__virtuemart_ratings`;
DELETE FROM `#__virtuemart_rating_reviews`;
DELETE FROM `#__virtuemart_rating_votes`;
DELETE FROM `#__virtuemart_shipmentmethods`;
DELETE FROM `#__virtuemart_shoppergroups`;
DELETE FROM `#__virtuemart_states`;
DELETE FROM `#__virtuemart_userinfos`;
DELETE FROM `#__virtuemart_userfield_values`;
DELETE FROM `#__virtuemart_vendors`;
DELETE FROM `#__virtuemart_vendor_medias`;
DELETE FROM `#__virtuemart_vmusers`;
DELETE FROM `#__virtuemart_vmuser_shoppergroups`;
DELETE FROM `#__virtuemart_waitingusers`;
DELETE FROM `#__virtuemart_worldzones`; uninstall_essential_data.sql 0000644 00000000424 15234761600 0012342 0 ustar 00 -- Remove all essential data
DELETE FROM `#__virtuemart_configs`;
DELETE FROM `#__virtuemart_adminmenuentries`;
DELETE FROM `#__virtuemart_modules`;
DELETE FROM `#__virtuemart_orderstates`;
DELETE FROM `#__virtuemart_userfields`;
DELETE FROM `#__virtuemart_userfield_values`; uninstall_required_data.sql 0000644 00000000555 15234761600 0012200 0 ustar 00 -- Remove all required data
DELETE FROM `#__virtuemart_permgroups`;
DELETE FROM `#__virtuemart_countries`;
DELETE FROM `#__virtuemart_currencies`;
DELETE FROM `#__virtuemart_paymentmethods`;
DELETE FROM `#__virtuemart_shipmentmethods`;
DELETE FROM `#__virtuemart_shoppergroups`;
DELETE FROM `#__virtuemart_vmuser_shoppergroups`;
DELETE FROM `#__virtuemart_states`;