-- Table structure for table `jos_redshop_coupons`
--

CREATE TABLE `jos_redshop_coupons` (
  `coupon_id` int(16) NOT NULL AUTO_INCREMENT,
  `coupon_code` varchar(32) NOT NULL DEFAULT '',
  `percent_or_total` tinyint(4) NOT NULL,
  `coupon_value` decimal(12,2) NOT NULL DEFAULT '0.00',
  `start_date` double NOT NULL,
  `end_date` double NOT NULL,
  `coupon_type` tinyint(4) NOT NULL COMMENT '0 - Global, 1 - User Specific',
  `userid` int(11) NOT NULL,
  `published` tinyint(4) NOT NULL,
  `coupon_left` int(11) NOT NULL,
  PRIMARY KEY (`coupon_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='redSHOP Coupons';

--
-- Dumping data for table `jos_redshop_coupons`
--


--
-- Table structure for table `jos_redshop_cron`
--

CREATE TABLE `jos_redshop_cron` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `date` date NOT NULL,
  `published` tinyint(4) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='redSHOP Cron Job';

--
-- Dumping data for table `jos_redshop_cron`
--

INSERT INTO `jos_redshop_cron` VALUES (1,'2012-10-08',1);

--
-- Table structure for table `jos_redshop_currency`
--

CREATE TABLE `jos_redshop_currency` (
  `currency_id` int(11) NOT NULL AUTO_INCREMENT,
  `currency_name` varchar(64) DEFAULT NULL,
  `currency_code` char(3) DEFAULT NULL,
  PRIMARY KEY (`currency_id`),
  KEY `idx_currency_name` (`currency_name`)
) ENGINE=MyISAM AUTO_INCREMENT=159 DEFAULT CHARSET=utf8 COMMENT='redSHOP Currency Detail';

--
-- Dumping data for table `jos_redshop_currency`
--

INSERT INTO `jos_redshop_currency` VALUES (1,'Andorran Peseta','ADP'),(2,'United Arab Emirates Dirham','AED'),(3,'Afghanistan Afghani','AFA'),(4,'Albanian Lek','ALL'),(5,'Netherlands Antillian Guilder','ANG'),(6,'Angolan Kwanza','AOK'),(7,'Argentine Peso','ARS'),(9,'Australian Dollar','AUD'),(10,'Aruban Florin','AWG'),(11,'Barbados Dollar','BBD'),(12,'Bangladeshi Taka','BDT'),(14,'Bulgarian Lev','BGL'),(15,'Bahraini Dinar','BHD'),(16,'Burundi Franc','BIF'),(17,'Bermudian Dollar','BMD'),(18,'Brunei Dollar','BND'),(19,'Bolivian Boliviano','BOB'),(20,'Brazilian Real','BRL'),(21,'Bahamian Dollar','BSD'),(22,'Bhutan Ngultrum','BTN'),(23,'Burma Kyat','BUK'),(24,'Botswanian Pula','BWP'),(25,'Belize Dollar','BZD'),(26,'Canadian Dollar','CAD'),(27,'Swiss Franc','CHF'),(28,'Chilean Unidades de Fomento','CLF'),(29,'Chilean Peso','CLP'),(30,'Yuan (Chinese) Renminbi','CNY'),(31,'Colombian Peso','COP'),(32,'Costa Rican Colon','CRC'),(33,'Czech Koruna','CZK'),(34,'Cuban Peso','CUP'),(35,'Cape Verde Escudo','CVE'),(36,'Cyprus Pound','CYP'),(40,'Danish Krone','DKK'),(41,'Dominican Peso','DOP'),(42,'Algerian Dinar','DZD'),(43,'Ecuador Sucre','ECS'),(44,'Egyptian Pound','EGP'),(46,'Ethiopian Birr','ETB'),(47,'Euro','EUR'),(49,'Fiji Dollar','FJD'),(50,'Falkland Islands Pound','FKP'),(52,'British Pound','GBP'),(53,'Ghanaian Cedi','GHC'),(54,'Gibraltar Pound','GIP'),(55,'Gambian Dalasi','GMD'),(56,'Guinea Franc','GNF'),(58,'Guatemalan Quetzal','GTQ'),(59,'Guinea-Bissau Peso','GWP'),(60,'Guyanan Dollar','GYD'),(61,'Hong Kong Dollar','HKD'),(62,'Honduran Lempira','HNL'),(63,'Haitian Gourde','HTG'),(64,'Hungarian Forint','HUF'),(65,'Indonesian Rupiah','IDR'),(66,'Irish Punt','IEP'),(67,'Israeli Shekel','ILS'),(68,'Indian Rupee','INR'),(69,'Iraqi Dinar','IQD'),(70,'Iranian Rial','IRR'),(73,'Jamaican Dollar','JMD'),(74,'Jordanian Dinar','JOD'),(75,'Japanese Yen','JPY'),(76,'Kenyan Schilling','KES'),(77,'Kampuchean (Cambodian) Riel','KHR'),(78,'Comoros Franc','KMF'),(79,'North Korean Won','KPW'),(80,'(South) Korean Won','KRW'),(81,'Kuwaiti Dinar','KWD'),(82,'Cayman Islands Dollar','KYD'),(83,'Lao Kip','LAK'),(84,'Lebanese Pound','LBP'),(85,'Sri Lanka Rupee','LKR'),(86,'Liberian Dollar','LRD'),(87,'Lesotho Loti','LSL'),(89,'Libyan Dinar','LYD'),(90,'Moroccan Dirham','MAD'),(91,'Malagasy Franc','MGF'),(92,'Mongolian Tugrik','MNT'),(93,'Macau Pataca','MOP'),(94,'Mauritanian Ouguiya','MRO'),(95,'Maltese Lira','MTL'),(96,'Mauritius Rupee','MUR'),(97,'Maldive Rufiyaa','MVR'),(98,'Malawi Kwacha','MWK'),(99,'Mexican Peso','MXP'),(100,'Malaysian Ringgit','MYR'),(101,'Mozambique Metical','MZM'),(102,'Nigerian Naira','NGN'),(103,'Nicaraguan Cordoba','NIC'),(105,'Norwegian Kroner','NOK'),(106,'Nepalese Rupee','NPR'),(107,'New Zealand Dollar','NZD'),(108,'Omani Rial','OMR'),(109,'Panamanian Balboa','PAB'),(110,'Peruvian Nuevo Sol','PEN'),(111,'Papua New Guinea Kina','PGK'),(112,'Philippine Peso','PHP'),(113,'Pakistan Rupee','PKR'),(114,'Polish Zloty','PLN'),(116,'Paraguay Guarani','PYG'),(117,'Qatari Rial','QAR'),(118,'Romanian Leu','RON'),(119,'Rwanda Franc','RWF'),(120,'Saudi Arabian Riyal','SAR'),(121,'Solomon Islands Dollar','SBD'),(122,'Seychelles Rupee','SCR'),(123,'Sudanese Pound','SDP'),(124,'Swedish Krona','SEK'),(125,'Singapore Dollar','SGD'),(126,'St. Helena Pound','SHP'),(127,'Sierra Leone Leone','SLL'),(128,'Somali Schilling','SOS'),(129,'Suriname Guilder','SRG'),(130,'Sao Tome and Principe Dobra','STD'),(131,'Russian Ruble','RUB'),(132,'El Salvador Colon','SVC'),(133,'Syrian Potmd','SYP'),(134,'Swaziland Lilangeni','SZL'),(135,'Thai Bath','THB'),(136,'Tunisian Dinar','TND'),(137,'Tongan Pa\'anga','TOP'),(138,'East Timor Escudo','TPE'),(139,'Turkish Lira','TRY'),(140,'Trinidad and Tobago Dollar','TTD'),(141,'Taiwan Dollar','TWD'),(142,'Tanzanian Schilling','TZS'),(143,'Uganda Shilling','UGS'),(144,'US Dollar','USD'),(145,'Uruguayan Peso','UYP'),(146,'Venezualan Bolivar','VEB'),(147,'Vietnamese Dong','VND'),(148,'Vanuatu Vatu','VUV'),(149,'Samoan Tala','WST'),(150,'Democratic Yemeni Dinar','YDD'),(151,'Yemeni Rial','YER'),(152,'New Yugoslavia Dinar','YUD'),(153,'South African Rand','ZAR'),(154,'Zambian Kwacha','ZMK'),(155,'Zaire Zaire','ZRZ'),(156,'Zimbabwe Dollar','ZWD'),(157,'Slovak Koruna','SKK'),(158,'Armenian Dram','AMD');

--
-- Table structure for table `jos_redshop_discount`
--

CREATE TABLE `jos_redshop_discount` (
  `discount_id` int(11) NOT NULL AUTO_INCREMENT,
  `amount` int(11) NOT NULL,
  `condition` tinyint(1) NOT NULL DEFAULT '1',
  `discount_amount` decimal(10,4) NOT NULL,
  `discount_type` tinyint(4) NOT NULL,
  `start_date` double NOT NULL,
  `end_date` double NOT NULL,
  `published` tinyint(4) NOT NULL,
  PRIMARY KEY (`discount_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='redSHOP Discount';

--
-- Dumping data for table `jos_redshop_discount`
--


--
-- Table structure for table `jos_redshop_discount_product`
--

CREATE TABLE `jos_redshop_discount_product` (
  `discount_product_id` int(11) NOT NULL AUTO_INCREMENT,
  `amount` int(11) NOT NULL,
  `condition` tinyint(1) NOT NULL DEFAULT '1',
  `discount_amount` decimal(10,2) NOT NULL,
  `discount_type` tinyint(4) NOT NULL,
  `start_date` double NOT NULL,
  `end_date` double NOT NULL,
  `published` tinyint(4) NOT NULL,
  PRIMARY KEY (`discount_product_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `jos_redshop_discount_product`
--


--
-- Table structure for table `jos_redshop_discount_product_shoppers`
--

CREATE TABLE `jos_redshop_discount_product_shoppers` (
  `discount_product_id` int(11) NOT NULL,
  `shopper_group_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `jos_redshop_discount_product_shoppers`
--


--
-- Table structure for table `jos_redshop_discount_shoppers`
--

CREATE TABLE `jos_redshop_discount_shoppers` (
  `discount_id` int(11) NOT NULL,
  `shopper_group_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `jos_redshop_discount_shoppers`
--


--
-- Table structure for table `jos_redshop_fields`
--

CREATE TABLE `jos_redshop_fields` (
  `field_id` int(11) NOT NULL AUTO_INCREMENT,
  `field_title` varchar(250) NOT NULL,
  `field_name` varchar(20) NOT NULL,
  `field_type` varchar(20) NOT NULL,
  `field_desc` longtext NOT NULL,
  `field_class` varchar(20) NOT NULL,
  `field_section` varchar(20) NOT NULL,
  `field_maxlength` int(11) NOT NULL,
  `field_cols` int(11) NOT NULL,
  `field_rows` int(11) NOT NULL,
  `field_size` tinyint(4) NOT NULL,
  `field_show_in_front` tinyint(4) NOT NULL,
  `published` tinyint(4) NOT NULL,
  PRIMARY KEY (`field_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='redSHOP Fields';

--
-- Dumping data for table `jos_redshop_fields`
--


--
-- Table structure for table `jos_redshop_fields_data`
--

CREATE TABLE `jos_redshop_fields_data` (
  `data_id` int(11) NOT NULL AUTO_INCREMENT,
  `fieldid` int(11) DEFAULT NULL,
  `data_txt` longtext,
  `itemid` int(11) DEFAULT NULL,
  `section` varchar(20) DEFAULT NULL,
  PRIMARY KEY (`data_id`),
  KEY `itemid` (`itemid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='redSHOP Fields Data';

--
-- Dumping data for table `jos_redshop_fields_data`
--


--
-- Table structure for table `jos_redshop_fields_value`
--

CREATE TABLE `jos_redshop_fields_value` (
  `value_id` int(11) NOT NULL AUTO_INCREMENT,
  `field_id` int(11) NOT NULL,
  `field_value` varchar(250) NOT NULL,
  `field_name` varchar(250) NOT NULL,
  PRIMARY KEY (`value_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='redSHOP Fields Value';

--
-- Dumping data for table `jos_redshop_fields_value`
--


--
-- Table structure for table `jos_redshop_mail`
--

CREATE TABLE `jos_redshop_mail` (
  `mail_id` int(11) NOT NULL AUTO_INCREMENT,
  `mail_name` varchar(255) NOT NULL,
  `mail_subject` varchar(255) NOT NULL,
  `mail_section` varchar(255) NOT NULL,
  `mail_order_status` varchar(11) NOT NULL,
  `mail_body` longtext NOT NULL,
  `published` tinyint(4) NOT NULL,
  PRIMARY KEY (`mail_id`)
) ENGINE=MyISAM AUTO_INCREMENT=65 DEFAULT CHARSET=utf8 COMMENT='redSHOP Mail Center';

--
-- Dumping data for table `jos_redshop_mail`
--



--
-- Table structure for table `jos_redshop_manufacturer`
--

CREATE TABLE `jos_redshop_manufacturer` (
  `manufacturer_id` int(11) NOT NULL AUTO_INCREMENT,
  `manufacturer_name` varchar(250) NOT NULL,
  `manufacturer_desc` longtext NOT NULL,
  `template_id` int(11) NOT NULL,
  `metakey` text NOT NULL,
  `metadesc` text NOT NULL,
  `metalanguage_setting` text NOT NULL,
  `metarobot_info` text NOT NULL,
  `pagetitle` text NOT NULL,
  `pageheading` text NOT NULL,
  `sef_url` text NOT NULL,
  `published` int(11) NOT NULL,
  `ordering` int(11) NOT NULL,
  PRIMARY KEY (`manufacturer_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='redSHOP Manufacturer';

--
-- Dumping data for table `jos_redshop_manufacturer`
--


--
-- Table structure for table `jos_redshop_media`
--

CREATE TABLE `jos_redshop_media` (
  `media_id` int(11) NOT NULL AUTO_INCREMENT,
  `media_name` varchar(250) NOT NULL,
  `media_section` varchar(20) NOT NULL,
  `section_id` int(11) NOT NULL,
  `media_type` varchar(250) NOT NULL,
  `media_mimetype` varchar(20) NOT NULL,
  `published` tinyint(4) NOT NULL,
  `media_alternate_text` varchar(255) NOT NULL,
  PRIMARY KEY (`media_id`)
) ENGINE=MyISAM AUTO_INCREMENT=33 DEFAULT CHARSET=utf8 COMMENT='redSHOP Media';

--
-- Dumping data for table `jos_redshop_media`
--

INSERT INTO `jos_redshop_media` VALUES (31,'1274170747_buydvd1.png','product',15,'images','image/png',1,''),(32,'1274170754_buydvd1.png','product',15,'images','image/png',1,'');

--
-- Table structure for table `jos_redshop_newsletter`
--

CREATE TABLE `jos_redshop_newsletter` (
  `newsletter_id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `subject` varchar(255) NOT NULL,
  `body` longtext NOT NULL,
  `template_id` int(11) NOT NULL,
  `published` tinyint(4) NOT NULL,
  PRIMARY KEY (`newsletter_id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='redSHOP Newsletter';

--
-- Dumping data for table `jos_redshop_newsletter`
--


--
-- Table structure for table `jos_redshop_newsletter_subscription`
--

CREATE TABLE `jos_redshop_newsletter_subscription` (
  `subscription_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `date` int(11) NOT NULL,
  `newsletter_id` int(11) NOT NULL,
  `name` varchar(255) NOT NULL,
  `email` varchar(255) NOT NULL,
  `published` int(11) NOT NULL,
  `checkout` tinyint(4) NOT NULL,
  PRIMARY KEY (`subscription_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='redSHOP Newsletter subscribers';

--
-- Dumping data for table `jos_redshop_newsletter_subscription`
--


--
-- Table structure for table `jos_redshop_newsletter_tracker`
--

CREATE TABLE `jos_redshop_newsletter_tracker` (
  `tracker_id` int(11) NOT NULL AUTO_INCREMENT,
  `newsletter_id` int(11) NOT NULL,
  `subscription_id` int(11) NOT NULL,
  `subscriber_name` varchar(255) NOT NULL,
  `user_id` int(11) NOT NULL,
  `read` tinyint(4) NOT NULL,
  `date` double NOT NULL,
  PRIMARY KEY (`tracker_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='redSHOP Newsletter Tracker';

--
-- Dumping data for table `jos_redshop_newsletter_tracker`
--


--
-- Table structure for table `jos_redshop_order_item`
--

CREATE TABLE `jos_redshop_order_item` (
  `order_item_id` int(11) NOT NULL AUTO_INCREMENT,
  `order_id` int(11) DEFAULT NULL,
  `user_info_id` varchar(32) DEFAULT NULL,
  `supplier_id` int(11) DEFAULT NULL,
  `product_id` int(11) DEFAULT NULL,
  `order_item_sku` varchar(64) NOT NULL DEFAULT '',
  `order_item_name` varchar(64) NOT NULL DEFAULT '',
  `product_quantity` int(11) DEFAULT NULL,
  `product_item_price` decimal(15,2) DEFAULT NULL,
  `product_final_price` decimal(12,2) NOT NULL DEFAULT '0.00',
  `order_item_currency` varchar(16) DEFAULT NULL,
  `order_status` varchar(250) DEFAULT NULL,
  `cdate` int(11) DEFAULT NULL,
  `mdate` int(11) DEFAULT NULL,
  `product_attribute` text,
  `product_accessory` text NOT NULL,
  `delivery_time` int(11) NOT NULL,
  `container_id` int(11) NOT NULL,
  `stockroom_id` int(11) NOT NULL,
  `is_split` tinyint(1) NOT NULL,
  `wrapper_id` int(11) NOT NULL,
  `wrapper_price` decimal(10,2) NOT NULL,
  PRIMARY KEY (`order_item_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='redSHOP Order Item Detail';

--
-- Dumping data for table `jos_redshop_order_item`
--


--
-- Table structure for table `jos_redshop_order_payment`
--

CREATE TABLE `jos_redshop_order_payment` (
  `payment_order_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `order_id` int(11) NOT NULL DEFAULT '0',
  `payment_method_id` int(11) DEFAULT NULL,
  `order_payment_code` varchar(30) NOT NULL DEFAULT '',
  `order_payment_number` blob,
  `order_payment_amount` double(10,2) NOT NULL,
  `order_payment_expire` int(11) DEFAULT NULL,
  `order_payment_name` varchar(255) DEFAULT NULL,
  `order_payment_trans_id` text NOT NULL,
  PRIMARY KEY (`payment_order_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='redSHOP Order Payment Detail';

--
-- Dumping data for table `jos_redshop_order_payment`
--


--
-- Table structure for table `jos_redshop_order_status`
--

CREATE TABLE `jos_redshop_order_status` (
  `order_status_id` int(11) NOT NULL AUTO_INCREMENT,
  `order_status_code` varchar(64) NOT NULL,
  `order_status_name` varchar(64) DEFAULT NULL,
  `published` tinyint(4) NOT NULL,
  PRIMARY KEY (`order_status_id`),
  UNIQUE KEY `order_status_code` (`order_status_code`)
) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 COMMENT='redSHOP Orders Status';

--
-- Dumping data for table `jos_redshop_order_status`
--

INSERT INTO `jos_redshop_order_status` VALUES (1,'P','Pending',1),(2,'C','Confirmed',1),(3,'X','Cancelled',1),(4,'R','Refunded',1),(5,'S','Shipped',1),(6,'RD','Ready for delivery',1),(7,'RD1','Ready for 1st delivery',1),(8,'RD2','Ready for 2nd delivery',1),(9,'ACCP','Awaiting credit card payment',1),(10,'APP','Awaiting paypal payment',1),(11,'ABT','Awaiting bank transfer',1),(12,'PR','Payment received',1),(13,'RC','Reclamation',1),(14,'PS','Partially shipped',1),(15,'RT','Returned',1),(16,'PRT','Partially Returned',1),(17,'PRC','Partially Reclamation',1);

--
-- Table structure for table `jos_redshop_order_status_log`
--

CREATE TABLE `jos_redshop_order_status_log` (
  `order_status_log_id` int(11) NOT NULL AUTO_INCREMENT,
  `order_id` int(11) NOT NULL,
  `order_status` varchar(5) NOT NULL,
  `order_payment_status` varchar(25) NOT NULL,
  `date_changed` int(11) NOT NULL,
  `customer_note` text NOT NULL,
  PRIMARY KEY (`order_status_log_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='redSHOP Orders Status history';

--
-- Dumping data for table `jos_redshop_order_status_log`
--


--
-- Table structure for table `jos_redshop_order_users_info`
--

CREATE TABLE `jos_redshop_order_users_info` (
  `order_info_id` int(11) NOT NULL AUTO_INCREMENT,
  `users_info_id` int(11) NOT NULL,
  `order_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `firstname` varchar(250) NOT NULL,
  `lastname` varchar(250) NOT NULL,
  `address_type` varchar(255) NOT NULL,
  `vat_number` varchar(250) NOT NULL,
  `tax_exempt` tinyint(4) NOT NULL,
  `shopper_group_id` int(11) NOT NULL,
  `country_code` varchar(11) NOT NULL,
  `state_code` varchar(11) NOT NULL,
  `zipcode` varchar(255) NOT NULL,
  `tax_exempt_approved` tinyint(1) NOT NULL,
  `approved` tinyint(1) NOT NULL,
  `is_company` tinyint(4) NOT NULL,
  `phone` varchar(50) NOT NULL,
  `address` varchar(255) NOT NULL,
  `city` varchar(255) NOT NULL,
  PRIMARY KEY (`order_info_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='redSHOP Order User Information';

--
-- Dumping data for table `jos_redshop_order_users_info`
--


--
-- Table structure for table `jos_redshop_orders`
--

CREATE TABLE `jos_redshop_orders` (
  `order_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL DEFAULT '0',
  `order_number` varchar(32) DEFAULT NULL,
  `user_info_id` varchar(32) DEFAULT NULL,
  `order_total` decimal(15,2) NOT NULL DEFAULT '0.00',
  `order_subtotal` decimal(15,5) DEFAULT NULL,
  `order_tax` decimal(10,2) DEFAULT NULL,
  `order_tax_details` text NOT NULL,
  `order_shipping` decimal(10,2) DEFAULT NULL,
  `order_shipping_tax` decimal(10,2) DEFAULT NULL,
  `coupon_discount` decimal(12,2) NOT NULL DEFAULT '0.00',
  `order_discount` decimal(12,2) NOT NULL DEFAULT '0.00',
  `order_status` varchar(5) DEFAULT NULL,
  `order_payment_status` varchar(25) NOT NULL,
  `cdate` int(11) DEFAULT NULL,
  `mdate` int(11) DEFAULT NULL,
  `ship_method_id` varchar(255) DEFAULT NULL,
  `customer_note` text NOT NULL,
  `ip_address` varchar(15) NOT NULL DEFAULT '',
  `encr_key` varchar(255) NOT NULL,
  `split_payment` int(11) NOT NULL,
  `invoice_no` varchar(255) NOT NULL,
  `mail1_status` tinyint(1) NOT NULL,
  `mail2_status` tinyint(1) NOT NULL,
  `mail3_status` tinyint(1) NOT NULL,
  `special_discount` decimal(10,2) NOT NULL,
  `special_discount_amount` decimal(10,2) NOT NULL,
  `payment_discount` decimal(10,2) NOT NULL,
  PRIMARY KEY (`order_id`),
  KEY `idx_orders_user_id` (`user_id`),
  KEY `idx_orders_order_number` (`order_number`),
  KEY `idx_orders_user_info_id` (`user_info_id`),
  KEY `idx_orders_ship_method_id` (`ship_method_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='redSHOP Order Detail';

--
-- Dumping data for table `jos_redshop_orders`
--


--
-- Table structure for table `jos_redshop_pageviewer`
--

CREATE TABLE `jos_redshop_pageviewer` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `session_id` varchar(250) NOT NULL,
  `section` varchar(250) NOT NULL,
  `section_id` int(11) NOT NULL,
  `hit` int(11) NOT NULL,
  `created_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=61 DEFAULT CHARSET=utf8 COMMENT='redSHOP Page Viewer';

--
-- Dumping data for table `jos_redshop_pageviewer`
--

INSERT INTO `jos_redshop_pageviewer` VALUES (53,0,'650f70d241f17325b023e97f0e5110ba','category',0,0,1274171100),(54,0,'650f70d241f17325b023e97f0e5110ba','category',6,0,1274171104),(55,0,'650f70d241f17325b023e97f0e5110ba','product',15,0,1274171111),(56,0,'47f259502a75d8f9c3d12458e2720b49','category',0,0,1274760588),(57,0,'8f775880918b93482b2a995078f484cf','category',0,0,1275342906),(58,0,'8f775880918b93482b2a995078f484cf','category',6,0,1275342909),(59,0,'8f775880918b93482b2a995078f484cf','product',15,0,1275342912),(60,0,'52d1b3b3a108820af806f7a84c22811d','category',0,0,1275343163);

--
-- Table structure for table `jos_redshop_payment_method`
--

CREATE TABLE `jos_redshop_payment_method` (
  `payment_method_id` int(11) NOT NULL AUTO_INCREMENT,
  `plugin` varchar(100) NOT NULL,
  `payment_method_name` varchar(255) DEFAULT NULL,
  `payment_class` varchar(50) NOT NULL DEFAULT '',
  `payment_method_code` varchar(8) DEFAULT NULL,
  `published` tinyint(1) DEFAULT NULL,
  `is_creditcard` tinyint(1) NOT NULL DEFAULT '0',
  `payment_discount_is_percent` tinyint(4) NOT NULL,
  `payment_discount` float(10,2) NOT NULL,
  `payment_extrainfo` text NOT NULL,
  `payment_passkey` blob NOT NULL,
  `params` text NOT NULL,
  `ordering` int(11) NOT NULL,
  PRIMARY KEY (`payment_method_id`)
) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COMMENT='redSHOP Payment Method';

--
-- Dumping data for table `jos_redshop_payment_method`
--

INSERT INTO `jos_redshop_payment_method` VALUES (7,'bank_transfer','Bank Transfer','rs_banktransfer','BANK',0,0,0,0.00,'Your Company Name<br/>\n101 Company Street,<br/>\nCity.<br/>\n<br/>\nBank Name : XYZ Bank<br/>\nAccount Number: 321XBDC231<br/>','','private_person=1\nbusiness=1\n',0),(2,'paypal','Paypal','paypal','paypal',0,0,0,0.00,' \n   			 <?php   \n        $paypalurl =   \"https://www.paypal.com/cgi-bin/webscr\";\n \n        $tax_total = $cart[\"tax\"];\n        $discount_total = $cart[\"discount\"];\n		$post_variables = Array(\n		\"cmd\" => \"_xclick\",\n		\"upload\" => \"1\",\n		\"business\" => $params->get(\"business_id\"),\n		\"receiver_email\" => $params->get(\"business_id\"),\n		\"item_name\" =>  $order->order_id,\n		\"order_id\" => $order->order_id,\n		\"invoice\" =>  $order->order_number,\n		\"amount\" =>  $order->order_total, \n		\"return\" => $url .\"index.php?option=com_redshop&view=order_detail&oid=\".$order->order_id,\n		\"notify_url\" => $url .\"administrator/components/com_redshop/helpers/payments/paypal/notify.php\",\n		\"cancel_return\" => $url .\"index.php\",\n		\"undefined_quantity\" => \"0\",\n		\"test_ipn\" => $params->get(\"is_test\"),\n		\"pal\" => \"NRUBJXESJTY24\",\n		\"no_shipping\" => \"1\",\n		\"no_note\" => \"1\"\n	); \n\n	if( $task == \"checkoutfinal\" ) {\n		$query_string = \"?\";\n		foreach( $post_variables as $name => $value ) {\n		$query_string .= $name .\"=\" . urlencode($value) .\"&\";\n	}\n\n		$mainframe->redirect( $paypalurl . $query_string );\n	} else {	\n\n		echo \"<form action=\'$paypalurl\' method=\'post\' target=\'_blank\'>\";\n		echo \"<input type=\'image\' name=\'submit\' src=\'http://images.paypal.com/images/x-click-but6.gif\' border=\'0\' alt=\'Make payments with PayPal, it is fast, free, and secure!\' />\";\n\n	foreach( $post_variables as $name => $value ) {\n		echo \"<input type=\'hidden\' name=\'$name\' value=\'$value\' />\";\n	} \n		echo \"</form>\";\n	}\n?>','','is_test=1\nbusiness_id=\n\n',0),(6,'epay','EPay','epay','EP',1,0,1,0.00,'<?php\r\n\r\nrequire_once(JPATH_ADMINISTRATOR.DS.\'components\'.DS.\'com_redshop\'.DS.\'helpers\'.DS.\'payments\'.DS.\'epay\'.DS.\'epay.cfg.php\');\r\n\r\n$uri =& JURI::getInstance();\r\n$url= $uri->root();\r\n$sessionid = session_id();\r\nfunction get_iso_code($code) {\r\nswitch ($code) {\r\ncase \"ADP\": return \"020\"; break;\r\ncase \"AED\": return \"784\"; break;\r\ncase \"AFA\": return \"004\"; break;\r\ncase \"ALL\": return \"008\"; break;\r\ncase \"AMD\": return \"051\"; break;\r\ncase \"ANG\": return \"532\"; break;\r\ncase \"AOA\": return \"973\"; break;\r\ncase \"ARS\": return \"032\"; break;\r\ncase \"AUD\": return \"036\"; break;\r\ncase \"AWG\": return \"533\"; break;\r\ncase \"AZM\": return \"031\"; break;\r\ncase \"BAM\": return \"977\"; break;\r\ncase \"BBD\": return \"052\"; break;\r\ncase \"BDT\": return \"050\"; break;\r\ncase \"BGL\": return \"100\"; break;\r\ncase \"BGN\": return \"975\"; break;\r\ncase \"BHD\": return \"048\"; break;\r\ncase \"BIF\": return \"108\"; break;\r\ncase \"BMD\": return \"060\"; break;\r\ncase \"BND\": return \"096\"; break;\r\ncase \"BOB\": return \"068\"; break;\r\ncase \"BOV\": return \"984\"; break;\r\ncase \"BRL\": return \"986\"; break;\r\ncase \"BSD\": return \"044\"; break;\r\ncase \"BTN\": return \"064\"; break;\r\ncase \"BWP\": return \"072\"; break;\r\ncase \"BYR\": return \"974\"; break;\r\ncase \"BZD\": return \"084\"; break;\r\ncase \"CAD\": return \"124\"; break;\r\ncase \"CDF\": return \"976\"; break;\r\ncase \"CHF\": return \"756\"; break;\r\ncase \"CLF\": return \"990\"; break;\r\ncase \"CLP\": return \"152\"; break;\r\ncase \"CNY\": return \"156\"; break;\r\ncase \"COP\": return \"170\"; break;\r\ncase \"CRC\": return \"188\"; break;\r\ncase \"CUP\": return \"192\"; break;\r\ncase \"CVE\": return \"132\"; break;\r\ncase \"CYP\": return \"196\"; break;\r\ncase \"CZK\": return \"203\"; break;\r\ncase \"DJF\": return \"262\"; break;\r\ncase \"DKK\": return \"208\"; break;\r\ncase \"DOP\": return \"214\"; break;\r\ncase \"DZD\": return \"012\"; break;\r\ncase \"ECS\": return \"218\"; break;\r\ncase \"ECV\": return \"983\"; break;\r\ncase \"EEK\": return \"233\"; break;\r\ncase \"EGP\": return \"818\"; break;\r\ncase \"ERN\": return \"232\"; break;\r\ncase \"ETB\": return \"230\"; break;\r\ncase \"EUR\": return \"978\"; break;\r\ncase \"FJD\": return \"242\"; break;\r\ncase \"FKP\": return \"238\"; break;\r\ncase \"GBP\": return \"826\"; break;\r\ncase \"GEL\": return \"981\"; break;\r\ncase \"GHC\": return \"288\"; break;\r\ncase \"GIP\": return \"292\"; break;\r\ncase \"GMD\": return \"270\"; break;\r\ncase \"GNF\": return \"324\"; break;\r\ncase \"GTQ\": return \"320\"; break;\r\ncase \"GWP\": return \"624\"; break;\r\ncase \"GYD\": return \"328\"; break;\r\ncase \"HKD\": return \"344\"; break;\r\ncase \"HNL\": return \"340\"; break;\r\ncase \"HRK\": return \"191\"; break;\r\ncase \"HTG\": return \"332\"; break;\r\ncase \"HUF\": return \"348\"; break;\r\ncase \"IDR\": return \"360\"; break;\r\ncase \"ILS\": return \"376\"; break;\r\ncase \"INR\": return \"356\"; break;\r\ncase \"IQD\": return \"368\"; break;\r\ncase \"IRR\": return \"364\"; break;\r\ncase \"ISK\": return \"352\"; break;\r\ncase \"JMD\": return \"388\"; break;\r\ncase \"JOD\": return \"400\"; break;\r\ncase \"JPY\": return \"392\"; break;\r\ncase \"KES\": return \"404\"; break;\r\ncase \"KGS\": return \"417\"; break;\r\ncase \"KHR\": return \"116\"; break;\r\ncase \"KMF\": return \"174\"; break;\r\ncase \"KPW\": return \"408\"; break;\r\ncase \"KRW\": return \"410\"; break;\r\ncase \"KWD\": return \"414\"; break;\r\ncase \"KYD\": return \"136\"; break;\r\ncase \"KZT\": return \"398\"; break;\r\ncase \"LAK\": return \"418\"; break;\r\ncase \"LBP\": return \"422\"; break;\r\ncase \"LKR\": return \"144\"; break;\r\ncase \"LRD\": return \"430\"; break;\r\ncase \"LSL\": return \"426\"; break;\r\ncase \"LTL\": return \"440\"; break;\r\ncase \"LVL\": return \"428\"; break;\r\ncase \"LYD\": return \"434\"; break;\r\ncase \"MAD\": return \"504\"; break;\r\ncase \"MDL\": return \"498\"; break;\r\ncase \"MGF\": return \"450\"; break;\r\ncase \"MKD\": return \"807\"; break;\r\ncase \"MMK\": return \"104\"; break;\r\ncase \"MNT\": return \"496\"; break;\r\ncase \"MOP\": return \"446\"; break;\r\ncase \"MRO\": return \"478\"; break;\r\ncase \"MTL\": return \"470\"; break;\r\ncase \"MUR\": return \"480\"; break;\r\ncase \"MVR\": return \"462\"; break;\r\ncase \"MWK\": return \"454\"; break;\r\ncase \"MXN\": return \"484\"; break;\r\ncase \"MXV\": return \"979\"; break;\r\ncase \"MYR\": return \"458\"; break;\r\ncase \"MZM\": return \"508\"; break;\r\ncase \"NAD\": return \"516\"; break;\r\ncase \"NGN\": return \"566\"; break;\r\ncase \"NIO\": return \"558\"; break;\r\ncase \"NOK\": return \"578\"; break;\r\ncase \"NPR\": return \"524\"; break;\r\ncase \"NZD\": return \"554\"; break;\r\ncase \"OMR\": return \"512\"; break;\r\ncase \"PAB\": return \"590\"; break;\r\ncase \"PEN\": return \"604\"; break;\r\ncase \"PGK\": return \"598\"; break;\r\ncase \"PHP\": return \"608\"; break;\r\ncase \"PKR\": return \"586\"; break;\r\ncase \"PLN\": return \"985\"; break;\r\ncase \"PYG\": return \"600\"; break;\r\ncase \"QAR\": return \"634\"; break;\r\ncase \"ROL\": return \"642\"; break;\r\ncase \"RUB\": return \"643\"; break;\r\ncase \"RUR\": return \"810\"; break;\r\ncase \"RWF\": return \"646\"; break;\r\ncase \"SAR\": return \"682\"; break;\r\ncase \"SBD\": return \"090\"; break;\r\ncase \"SCR\": return \"690\"; break;\r\ncase \"SDD\": return \"736\"; break;\r\ncase \"SEK\": return \"752\"; break;\r\ncase \"SGD\": return \"702\"; break;\r\ncase \"SHP\": return \"654\"; break;\r\ncase \"SIT\": return \"705\"; break;\r\ncase \"SKK\": return \"703\"; break;\r\ncase \"SLL\": return \"694\"; break;\r\ncase \"SOS\": return \"706\"; break;\r\ncase \"SRG\": return \"740\"; break;\r\ncase \"STD\": return \"678\"; break;\r\ncase \"SVC\": return \"222\"; break;\r\ncase \"SYP\": return \"760\"; break;\r\ncase \"SZL\": return \"748\"; break;\r\ncase \"THB\": return \"764\"; break;\r\ncase \"TJS\": return \"972\"; break;\r\ncase \"TMM\": return \"795\"; break;\r\ncase \"TND\": return \"788\"; break;\r\ncase \"TOP\": return \"776\"; break;\r\ncase \"TPE\": return \"626\"; break;\r\ncase \"TRL\": return \"792\"; break;\r\ncase \"TRY\": return \"949\"; break;\r\ncase \"TTD\": return \"780\"; break;\r\ncase \"TWD\": return \"901\"; break;\r\ncase \"TZS\": return \"834\"; break;\r\ncase \"UAH\": return \"980\"; break;\r\ncase \"UGX\": return \"800\"; break;\r\ncase \"USD\": return \"840\"; break;\r\ncase \"UYU\": return \"858\"; break;\r\ncase \"UZS\": return \"860\"; break;\r\ncase \"VEB\": return \"862\"; break;\r\ncase \"VND\": return \"704\"; break;\r\ncase \"VUV\": return \"548\"; break;\r\ncase \"XAF\": return \"950\"; break;\r\ncase \"XCD\": return \"951\"; break;\r\ncase \"XOF\": return \"952\"; break;\r\ncase \"XPF\": return \"953\"; break;\r\ncase \"YER\": return \"886\"; break;\r\ncase \"YUM\": return \"891\"; break;\r\ncase \"ZAR\": return \"710\"; break;\r\ncase \"ZMK\": return \"894\"; break;\r\ncase \"ZWD\": return \"716\"; break;\r\n}\r\nreturn \"XXX\"; // return invalid code if the currency is not found \r\n}\r\n\r\nfunction calculateePayCurrency($order_id)\r\n{\r\n   $currency_code = get_iso_code(CURRENCY_CODE);\r\n \r\n   return $currency_code;\r\n}\r\n echo JText::_(\'\');\r\n?>\r\n<script type=\"text/javascript\" src=\"http://www.epay.dk/js/standardwindow.js\"></script>\r\n<script type=\"text/javascript\">\r\nfunction printCard(cardId)\r\n{\r\ndocument.write (\"<table border=0 cellspacing=10 cellpadding=10>\");\r\nswitch (cardId) {\r\ncase 1: document.write (\"<input type=hidden name=cardtype value=1>\"); break;\r\ncase 2: document.write (\"<input type=hidden name=cardtype value=2>\"); break;\r\ncase 3: document.write (\"<input type=hidden name=cardtype value=3>\"); break;\r\ncase 4: document.write (\"<input type=hidden name=cardtype value=4>\"); break;\r\ncase 5: document.write (\"<input type=hidden name=cardtype value=5>\"); break;\r\ncase 6: document.write (\"<input type=hidden name=cardtype value=6>\"); break;\r\ncase 7: document.write (\"<input type=hidden name=cardtype value=7>\"); break;\r\ncase 8: document.write (\"<input type=hidden name=cardtype value=8>\"); break;\r\ncase 9: document.write (\"<input type=hidden name=cardtype value=9>\"); break;\r\ncase 10: document.write (\"<input type=hidden name=cardtype value=10>\"); break;\r\ncase 12: document.write (\"<input type=hidden name=cardtype value=12>\"); break;\r\ncase 13: document.write (\"<input type=hidden name=cardtype value=13>\"); break;\r\ncase 14: document.write (\"<input type=hidden name=cardtype value=14>\"); break;\r\ncase 15: document.write (\"<input type=hidden name=cardtype value=15>\"); break;\r\ncase 16: document.write (\"<input type=hidden name=cardtype value=16>\"); break;\r\ncase 17: document.write (\"<input type=hidden name=cardtype value=17>\"); break;\r\ncase 18: document.write (\"<input type=hidden name=cardtype value=18>\"); break;\r\ncase 19: document.write (\"<input type=hidden name=cardtype value=19>\"); break;\r\ncase 21: document.write (\"<input type=hidden name=cardtype value=21>\"); break;\r\ncase 22: document.write (\"<input type=hidden name=cardtype value=22>\"); break;\r\n}\r\ndocument.write (\"</table>\");\r\n}\r\n</script>\r\n<form action=\"https://ssl.ditonlinebetalingssystem.dk/popup/default.asp\" method=\"post\" name=\"ePay\" target=\"ePay_window\" id=\"ePay\">\r\n<input type=\"hidden\" name=\"merchantnumber\" value=\"<?php echo EPAY_MERCHANTNUMBER ?>\">\r\n<input type=\"hidden\" name=\"amount\" value=\"<?php echo round($order->order_total*100, 2 ) ?>\">\r\n<input type=\"hidden\" name=\"currency\" value=\"<?php echo calculateePayCurrency($order_id)?>\">\r\n<input type=\"hidden\" name=\"orderid\" value=\"<?php echo $order_id ?>\">\r\n<input type=\"hidden\" name=\"ordretext\" value=\"\">\r\n<?php \r\nif (EPAY_CALLBACK == \"1\")\r\n{\r\n	echo \'<input type=\"hidden\" name=\"callbackurl\" value=\"\' . $url . \'/administrator/components/com_redshop/helpers/payments/epay/epay_result.php?accept=1&sessionid=\' . $sessionid . \'&Itemid=1&orderid=\'.$order_id.\'\">\';\r\n}\r\n?>\r\n<input type=\"hidden\" name=\"accepturl\" value=\"<?php echo $url ?>/administrator/components/com_redshop/helpers/payments/epay/epay_result.php?accept=1&sessionid=<?php echo $sessionid ?>&Itemid=1&orderid=<?php echo $order_id ?>\">\r\n<input type=\"hidden\" name=\"declineurl\" value=\"<?php echo $url ?>/administrator/components/com_redshop/helpers/payments/epay/epay_result.php?accept=0&sessionid=<?php echo $sessionid ?>&Itemid=1&orderid=<?php echo $order_id ?>\">\r\n<input type=\"hidden\" name=\"group\" value=\"<?php echo EPAY_GROUP ?>\">\r\n<input type=\"hidden\" name=\"instant\" value=\"<?php echo EPAY_INSTANT_CAPTURE ?>\">\r\n<input type=\"hidden\" name=\"language\" value=\"<?php echo EPAY_LANGUAGE ?>\">\r\n<input type=\"hidden\" name=\"authsms\" value=\"<?php echo EPAY_AUTH_SMS ?>\">\r\n<input type=\"hidden\" name=\"authmail\" value=\"<?php echo EPAY_AUTH_MAIL . (strlen(EPAY_AUTH_MAIL) > 0 && EPAY_AUTHEMAILCUSTOMER == 1 ? \";\" : \"\") . (EPAY_AUTHEMAILCUSTOMER == 1 ? $user->user_email : \"\"); ?>\">\r\n<input type=\"hidden\" name=\"windowstate\" value=\"<?php echo EPAY_WINDOW_STATE ?>\">\r\n<input type=\"hidden\" name=\"use3D\" value=\"<?php echo EPAY_3DSECURE ?>\">\r\n<input type=\"hidden\" name=\"addfee\" value=\"<?php echo EPAY_ADDFEE ?>\">\r\n<input type=\"hidden\" name=\"subscription\" value=\"<?php echo EPAY_SUBSCRIPTION ?>\">\r\n<input type=\"hidden\" name=\"MD5Key\" value=\"<?php if (EPAY_MD5_TYPE == 2) echo md5( calculateePayCurrency($order_id) . round(($order->order_total)*100, 2 ) . $order_id  . EPAY_MD5_KEY)?>\">\r\n<?php\r\nif (EPAY_CARDTYPES_1 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(1)</script>\";\r\nif (EPAY_CARDTYPES_2 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(2)</script>\";\r\nif (EPAY_CARDTYPES_3 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(3)</script>\";\r\nif (EPAY_CARDTYPES_4 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(4)</script>\";\r\nif (EPAY_CARDTYPES_5 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(5)</script>\";\r\nif (EPAY_CARDTYPES_6 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(6)</script>\";\r\nif (EPAY_CARDTYPES_7 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(7)</script>\";\r\nif (EPAY_CARDTYPES_8 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(8)</script>\";\r\nif (EPAY_CARDTYPES_9 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(9)</script>\";\r\nif (EPAY_CARDTYPES_10 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(10)</script>\";\r\nif (EPAY_CARDTYPES_11 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(11)</script>\";\r\nif (EPAY_CARDTYPES_12 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(12)</script>\";\r\nif (EPAY_CARDTYPES_14 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(14)</script>\";\r\nif (EPAY_CARDTYPES_15 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(15)</script>\";\r\nif (EPAY_CARDTYPES_16 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(16)</script>\";\r\nif (EPAY_CARDTYPES_17 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(17)</script>\";\r\nif (EPAY_CARDTYPES_18 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(18)</script>\";\r\nif (EPAY_CARDTYPES_19 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(19)</script>\";\r\nif (EPAY_CARDTYPES_21 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(21)</script>\";\r\nif (EPAY_CARDTYPES_22 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(22)</script>\";;\r\n?>\r\n</form>\r\n<script>open_ePay_window();</script>\r\n<br>\r\n<table border=\"0\" width=\"100%\"><tr class=\"epay_button_row\"><td class=\"epay_button_data\"><input type=\"button\" onClick=\"open_ePay_window()\" value=\"<?php echo JTEXT::_(\'OPEN EPAY PAYMENT WINDOW\') ?>\"></td><td width=\"100%\" id=\"flashLoader\"></td></tr></table><br><br><br>\r\n<?php echo JText::_(\'\') ?>\r\n<br><br>','','',0),(8,'cash_transfer','CASH Transfer','cash_transfer','CASH',0,0,0,0.00,'Your Company Name<br/>\n101 Company Street,<br/>\nCity.<br/>\n<br/>\nBank Name : XYZ Bank<br/>\nAccount Number: 321XBDC231<br/>','','private_person=1\nbusiness=1\n',0),(9,'ean_transfer','EAN Transfer','ean_transfer','EAN',0,0,0,0.00,'Your Company Name<br/>\n101 Company Street,<br/>\nCity.<br/>\n<br/>\nBank Name : XYZ Bank<br/>\nAccount Number: 321XBDC231<br/>','','private_person=1\nbusiness=1\n',0);

--
-- Table structure for table `jos_redshop_product`
--

CREATE TABLE `jos_redshop_product` (
  `product_id` int(11) NOT NULL AUTO_INCREMENT,
  `product_parent_id` int(11) NOT NULL,
  `manufacturer_id` int(11) NOT NULL,
  `supplier_id` int(11) NOT NULL,
  `product_on_sale` tinyint(4) NOT NULL,
  `product_special` tinyint(4) NOT NULL,
  `product_download` tinyint(4) NOT NULL,
  `product_template` int(11) NOT NULL,
  `product_name` varchar(250) NOT NULL,
  `product_price` double NOT NULL,
  `product_number` varchar(250) NOT NULL,
  `product_type` varchar(20) NOT NULL,
  `product_s_desc` longtext NOT NULL,
  `product_desc` longtext NOT NULL,
  `product_volume` double NOT NULL,
  `product_tax_id` int(11) NOT NULL,
  `published` tinyint(4) NOT NULL,
  `product_thumb_image` varchar(250) NOT NULL,
  `product_full_image` varchar(250) NOT NULL,
  `publish_date` datetime NOT NULL,
  `update_date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP,
  `visited` int(11) NOT NULL,
  `metakey` text NOT NULL,
  `metadesc` text NOT NULL,
  `metalanguage_setting` text NOT NULL,
  `metarobot_info` text NOT NULL,
  `pagetitle` text NOT NULL,
  `pageheading` text NOT NULL,
  `sef_url` text NOT NULL,
  `cat_in_sefurl` int(11) NOT NULL,
  `weight` float(10,3) NOT NULL,
  `discount_price` double NOT NULL,
  `expired` tinyint(4) NOT NULL,
  `product_tax_group_id` int(11) NOT NULL,
  `discount_stratdate` int(11) NOT NULL,
  `discount_enddate` int(11) NOT NULL,
  PRIMARY KEY (`product_id`)
) ENGINE=MyISAM AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='redSHOP Products';

--
-- Dumping data for table `jos_redshop_product`
--

INSERT INTO `jos_redshop_product` VALUES (15,0,0,0,0,0,0,9,'DVD',19.95,'dvd001','','','',0,0,1,'','1274170754_buydvd1.png','2010-05-18 03:18:45','2010-05-31 21:55:12',2,'                                ','                                ','                                ','                                ','','','',6,0.000,0,0,0,1274158800,1274238863);

--
-- Table structure for table `jos_redshop_product_accessory`
--

CREATE TABLE `jos_redshop_product_accessory` (
  `accessory_id` int(11) NOT NULL AUTO_INCREMENT,
  `product_id` int(11) NOT NULL,
  `child_product_id` int(11) NOT NULL,
  `accessory_price` double NOT NULL,
  PRIMARY KEY (`accessory_id`)
) ENGINE=MyISAM AUTO_INCREMENT=20 DEFAULT CHARSET=utf8 COMMENT='redSHOP Products Accessory';

--
-- Dumping data for table `jos_redshop_product_accessory`
--


--
-- Table structure for table `jos_redshop_product_attribute`
--

CREATE TABLE `jos_redshop_product_attribute` (
  `attribute_id` int(11) NOT NULL AUTO_INCREMENT,
  `attribute_name` varchar(250) NOT NULL,
  `product_id` int(11) NOT NULL,
  `attribute_required` tinyint(4) NOT NULL,
  `ordering` int(11) NOT NULL,
  PRIMARY KEY (`attribute_id`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='redSHOP Products Attribute';

--
-- Dumping data for table `jos_redshop_product_attribute`
--


--
-- Table structure for table `jos_redshop_product_attribute_price`
--

CREATE TABLE `jos_redshop_product_attribute_price` (
  `price_id` int(11) NOT NULL AUTO_INCREMENT,
  `section_id` int(11) NOT NULL,
  `section` varchar(255) NOT NULL,
  `product_price` decimal(12,2) NOT NULL,
  `product_currency` varchar(10) NOT NULL,
  `cdate` int(11) NOT NULL,
  `shopper_group_id` int(11) NOT NULL,
  `price_quantity_start` int(11) NOT NULL,
  `price_quantity_end` int(11) NOT NULL,
  PRIMARY KEY (`price_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='redSHOP Product Attribute Price';

--
-- Dumping data for table `jos_redshop_product_attribute_price`
--


--
-- Table structure for table `jos_redshop_product_attribute_property`
--

CREATE TABLE `jos_redshop_product_attribute_property` (
  `property_id` int(11) NOT NULL AUTO_INCREMENT,
  `attribute_id` int(11) NOT NULL,
  `property_name` varchar(255) NOT NULL,
  `property_price` double NOT NULL,
  `oprand` char(1) NOT NULL DEFAULT '+',
  `property_image` varchar(255) NOT NULL,
  `property_main_image` varchar(255) NOT NULL,
  `ordering` int(11) NOT NULL,
  `property_number` varchar(255) NOT NULL,
  PRIMARY KEY (`property_id`)
) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COMMENT='redSHOP Products Attribute Property';

--
-- Dumping data for table `jos_redshop_product_attribute_property`
--


--
-- Table structure for table `jos_redshop_product_attribute_stockroom_xref`
--

CREATE TABLE `jos_redshop_product_attribute_stockroom_xref` (
  `section_id` int(11) NOT NULL,
  `section` varchar(255) NOT NULL,
  `stockroom_id` int(11) NOT NULL,
  `quantity` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='redSHOP Product Attribute Stockroom relation';

--
-- Dumping data for table `jos_redshop_product_attribute_stockroom_xref`
--


--
-- Table structure for table `jos_redshop_product_category_xref`
--

CREATE TABLE `jos_redshop_product_category_xref` (
  `category_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `ordering` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='redSHOP Product Category Relation';

--
-- Dumping data for table `jos_redshop_product_category_xref`
--

INSERT INTO `jos_redshop_product_category_xref` VALUES (6,15,0);

--
-- Table structure for table `jos_redshop_product_compare`
--

CREATE TABLE `jos_redshop_product_compare` (
  `compare_id` int(11) NOT NULL AUTO_INCREMENT,
  `product_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  PRIMARY KEY (`compare_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='redSHOP Product Comparision';

--
-- Dumping data for table `jos_redshop_product_compare`
--


--
-- Table structure for table `jos_redshop_product_download`
--

CREATE TABLE `jos_redshop_product_download` (
  `product_id` int(11) NOT NULL DEFAULT '0',
  `user_id` int(11) NOT NULL DEFAULT '0',
  `order_id` int(11) NOT NULL DEFAULT '0',
  `end_date` int(11) NOT NULL DEFAULT '0',
  `download_max` int(11) NOT NULL DEFAULT '0',
  `download_id` varchar(32) NOT NULL DEFAULT '',
  `file_name` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`download_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='redSHOP Downloadable Products';

--
-- Dumping data for table `jos_redshop_product_download`
--


--
-- Table structure for table `jos_redshop_product_price`
--

CREATE TABLE `jos_redshop_product_price` (
  `price_id` int(11) NOT NULL AUTO_INCREMENT,
  `product_id` int(11) NOT NULL,
  `product_price` decimal(12,2) NOT NULL,
  `product_currency` varchar(10) NOT NULL,
  `cdate` date NOT NULL,
  `shopper_group_id` int(11) NOT NULL,
  `price_quantity_start` int(11) NOT NULL,
  `price_quantity_end` int(11) NOT NULL,
  PRIMARY KEY (`price_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=latin1 COMMENT='redSHOP Product Price';

--
-- Dumping data for table `jos_redshop_product_price`
--


--
-- Table structure for table `jos_redshop_product_rating`
--

CREATE TABLE `jos_redshop_product_rating` (
  `rating_id` int(11) NOT NULL AUTO_INCREMENT,
  `product_id` int(11) NOT NULL DEFAULT '0',
  `title` varchar(255) NOT NULL,
  `comment` text NOT NULL,
  `userid` int(11) NOT NULL DEFAULT '0',
  `time` int(11) NOT NULL DEFAULT '0',
  `user_rating` tinyint(1) NOT NULL DEFAULT '0',
  `favoured` tinyint(4) NOT NULL,
  `published` tinyint(4) NOT NULL,
  PRIMARY KEY (`rating_id`),
  UNIQUE KEY `product_id` (`product_id`,`userid`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `jos_redshop_product_rating`
--


--
-- Table structure for table `jos_redshop_product_related`
--

CREATE TABLE `jos_redshop_product_related` (
  `related_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='redSHOP Related Products';

--
-- Dumping data for table `jos_redshop_product_related`
--


--
-- Table structure for table `jos_redshop_product_stockroom_xref`
--

CREATE TABLE `jos_redshop_product_stockroom_xref` (
  `product_id` int(11) NOT NULL,
  `stockroom_id` int(11) NOT NULL,
  `quantity` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='redSHOP Products Stockroom Relation';

--
-- Dumping data for table `jos_redshop_product_stockroom_xref`
--


--
-- Table structure for table `jos_redshop_product_subattribute_color`
--

CREATE TABLE `jos_redshop_product_subattribute_color` (
  `subattribute_color_id` int(11) NOT NULL AUTO_INCREMENT,
  `subattribute_color_name` varchar(255) NOT NULL,
  `subattribute_color_price` int(11) DEFAULT NULL,
  `oprand` char(1) NOT NULL,
  `subattribute_color_image` varchar(255) NOT NULL,
  `subattribute_id` int(11) NOT NULL,
  `ordering` int(11) NOT NULL,
  `subattribute_color_number` varchar(255) NOT NULL,
  PRIMARY KEY (`subattribute_color_id`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=latin1 COMMENT='Product Subattribute Color';

--
-- Dumping data for table `jos_redshop_product_subattribute_color`
--


--
-- Table structure for table `jos_redshop_product_tags`
--

CREATE TABLE `jos_redshop_product_tags` (
  `tags_id` int(11) NOT NULL AUTO_INCREMENT,
  `tags_name` varchar(255) NOT NULL,
  `tags_counter` int(11) NOT NULL,
  `published` tinyint(4) NOT NULL,
  PRIMARY KEY (`tags_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Product Tags';

--
-- Dumping data for table `jos_redshop_product_tags`
--


--
-- Table structure for table `jos_redshop_product_tags_xref`
--

CREATE TABLE `jos_redshop_product_tags_xref` (
  `tags_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL,
  `users_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Product Tags Relation With product and user';

--
-- Dumping data for table `jos_redshop_product_tags_xref`
--


--
-- Table structure for table `jos_redshop_product_voucher`
--

CREATE TABLE `jos_redshop_product_voucher` (
  `voucher_id` int(11) NOT NULL AUTO_INCREMENT,
  `voucher_code` int(11) NOT NULL,
  `amount` decimal(12,2) NOT NULL DEFAULT '0.00',
  `voucher_type` varchar(250) CHARACTER SET latin1 NOT NULL,
  `start_date` double NOT NULL,
  `end_date` double NOT NULL,
  `free_shipping` tinyint(4) NOT NULL,
  `published` tinyint(4) NOT NULL,
  `voucher_left` int(11) NOT NULL,
  PRIMARY KEY (`voucher_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='redSHOP Product Voucher';

--
-- Dumping data for table `jos_redshop_product_voucher`
--


--
-- Table structure for table `jos_redshop_product_voucher_xref`
--

CREATE TABLE `jos_redshop_product_voucher_xref` (
  `voucher_id` int(11) NOT NULL,
  `product_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='redSHOP Products Voucher Relation';

--
-- Dumping data for table `jos_redshop_product_voucher_xref`
--


--
-- Table structure for table `jos_redshop_sample_request`
--

CREATE TABLE `jos_redshop_sample_request` (
  `request_id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(250) NOT NULL,
  `email` varchar(250) NOT NULL,
  `colour_id` varchar(250) NOT NULL,
  `block` tinyint(4) NOT NULL,
  `reminder_1` tinyint(1) NOT NULL,
  `reminder_2` tinyint(1) NOT NULL,
  `reminder_3` tinyint(1) NOT NULL,
  `reminder_coupon` tinyint(1) NOT NULL,
  `registerdate` int(11) NOT NULL,
  PRIMARY KEY (`request_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='redSHOP Sample Request';

--
-- Dumping data for table `jos_redshop_sample_request`
--


--
-- Table structure for table `jos_redshop_shipping_method`
--

CREATE TABLE `jos_redshop_shipping_method` (
  `shipping_id` int(11) NOT NULL AUTO_INCREMENT,
  `shipping_name` varchar(250) NOT NULL,
  `shipping_class` varchar(100) NOT NULL,
  `shipping_method_code` varchar(40) NOT NULL,
  `shipping_details` longtext NOT NULL,
  `plugin` varchar(255) NOT NULL,
  `published` tinyint(4) NOT NULL,
  `params` longtext NOT NULL,
  `ordering` int(11) NOT NULL,
  PRIMARY KEY (`shipping_id`)
) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COMMENT='redSHOP Shipping Method';

--
-- Dumping data for table `jos_redshop_shipping_method`
--

INSERT INTO `jos_redshop_shipping_method` VALUES (9,'Redshop Shipping','default_shipping','default_shipping','<p>Standard forsend...</p>','default_shipping',1,'is_shipper=1\n\n',0),(10,'Shipper','shipper','shipper','','shipper',1,'is_shipper=1\n',0);

--
-- Table structure for table `jos_redshop_shipping_rate`
--

CREATE TABLE `jos_redshop_shipping_rate` (
  `shipping_rate_id` int(11) NOT NULL AUTO_INCREMENT,
  `shipping_rate_name` varchar(255) NOT NULL DEFAULT '',
  `shipping_id` int(11) NOT NULL DEFAULT '0',
  `shipping_rate_country` varchar(50) NOT NULL,
  `shipping_rate_zip_start` int(11) NOT NULL,
  `shipping_rate_zip_end` int(11) NOT NULL,
  `shipping_rate_weight_start` decimal(10,2) NOT NULL,
  `shipping_rate_weight_end` decimal(10,2) NOT NULL,
  `shipping_rate_volume_start` decimal(10,2) NOT NULL,
  `shipping_rate_volume_end` decimal(10,2) NOT NULL,
  `shipping_rate_ordertotal_start` decimal(10,3) NOT NULL DEFAULT '0.000',
  `shipping_rate_ordertotal_end` decimal(10,3) NOT NULL,
  `shipping_rate_priority` tinyint(4) NOT NULL DEFAULT '0',
  `shipping_rate_value` decimal(10,2) NOT NULL DEFAULT '0.00',
  `shipping_rate_package_fee` decimal(10,2) NOT NULL DEFAULT '0.00',
  `company_only` tinyint(4) NOT NULL,
  `apply_vat` tinyint(4) NOT NULL,
  PRIMARY KEY (`shipping_rate_id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='redSHOP Shipping Rates';

--
-- Dumping data for table `jos_redshop_shipping_rate`
--


--
-- Table structure for table `jos_redshop_shopper_group`
--

CREATE TABLE `jos_redshop_shopper_group` (
  `shopper_group_id` int(11) NOT NULL AUTO_INCREMENT,
  `shopper_group_name` varchar(32) DEFAULT NULL,
  `shopper_group_desc` text,
  `parent_id` int(11) NOT NULL,
  `published` tinyint(4) NOT NULL,
  `shopper_group_customer_type` tinyint(4) NOT NULL,
  `shopper_group_portal` tinyint(4) NOT NULL,
  `shopper_group_categories` varchar(255) NOT NULL,
  `shopper_group_url` varchar(255) NOT NULL,
  `shopper_group_logo` varchar(255) NOT NULL,
  `shopper_group_introtext` longtext NOT NULL,
  `default_shipping` tinyint(4) NOT NULL,
  `default_shipping_rate` float(10,2) NOT NULL,
  `apply_vat` tinyint(4) NOT NULL,
  `shopper_group_cart_checkout_itemid` int(11) NOT NULL,
  `apply_vat_on_show_price` tinyint(4) NOT NULL,
  `tax_group_id` int(11) NOT NULL,
  `apply_product_price_vat` int(11) NOT NULL,
  `tax_exempt_on_shipping` tinyint(4) NOT NULL,
  `shopper_group_cart_itemid` int(11) NOT NULL,
  `tax_exempt` tinyint(4) NOT NULL,
  PRIMARY KEY (`shopper_group_id`),
  KEY `idx_shopper_group_name` (`shopper_group_name`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='Shopper Groups that users can be assigned to';

--
-- Dumping data for table `jos_redshop_shopper_group`
--

INSERT INTO `jos_redshop_shopper_group` VALUES (1,'Default','This is the default shopper group.',0,1,0,0,'','','','This is the default shopper group.',0,0.00,0,0,0,0,0,0,0,0),(2,'Default Company','This is the default Company shopper group.',0,1,0,0,'','','','This is the default Company shopper group.',0,0.00,0,0,0,0,0,0,0,0),(3,'Default Tax Exempt','This is the Default Tax Exempt shopper group.',0,1,0,0,'','','','This is the Default Tax Exempt shopper group.',0,0.00,0,0,0,0,0,1,0,1);

--
-- Table structure for table `jos_redshop_siteviewer`
--

CREATE TABLE `jos_redshop_siteviewer` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `session_id` varchar(250) NOT NULL,
  `created_date` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=37 DEFAULT CHARSET=utf8 COMMENT='redSHOP Site Viewer';

--
-- Dumping data for table `jos_redshop_siteviewer`
--

INSERT INTO `jos_redshop_siteviewer` VALUES (32,0,'650f70d241f17325b023e97f0e5110ba',1274170946),(33,0,'47f259502a75d8f9c3d12458e2720b49',1274760588),(34,0,'8f775880918b93482b2a995078f484cf',1275342906),(35,0,'52d1b3b3a108820af806f7a84c22811d',1275343163),(36,0,'4719a2c1c3a656c560599fea07762e14',1349677345);

--
-- Table structure for table `jos_redshop_state`
--

CREATE TABLE `jos_redshop_state` (
  `state_id` int(11) NOT NULL AUTO_INCREMENT,
  `country_id` int(11) NOT NULL DEFAULT '1',
  `state_name` varchar(64) DEFAULT NULL,
  `state_3_code` char(3) DEFAULT NULL,
  `state_2_code` char(2) DEFAULT NULL,
  PRIMARY KEY (`state_id`),
  UNIQUE KEY `state_3_code` (`country_id`,`state_3_code`),
  UNIQUE KEY `state_2_code` (`country_id`,`state_2_code`),
  KEY `idx_country_id` (`country_id`)
) ENGINE=MyISAM AUTO_INCREMENT=449 DEFAULT CHARSET=utf8 COMMENT='States that are assigned to a country';

--
-- Dumping data for table `jos_redshop_state`
--

INSERT INTO `jos_redshop_state` VALUES (1,223,'Alabama','ALA','AL'),(2,223,'Alaska','ALK','AK'),(3,223,'Arizona','ARZ','AZ'),(4,223,'Arkansas','ARK','AR'),(5,223,'California','CAL','CA'),(6,223,'Colorado','COL','CO'),(7,223,'Connecticut','CCT','CT'),(8,223,'Delaware','DEL','DE'),(9,223,'District Of Columbia','DOC','DC'),(10,223,'Florida','FLO','FL'),(11,223,'Georgia','GEA','GA'),(12,223,'Hawaii','HWI','HI'),(13,223,'Idaho','IDA','ID'),(14,223,'Illinois','ILL','IL'),(15,223,'Indiana','IND','IN'),(16,223,'Iowa','IOA','IA'),(17,223,'Kansas','KAS','KS'),(18,223,'Kentucky','KTY','KY'),(19,223,'Louisiana','LOA','LA'),(20,223,'Maine','MAI','ME'),(21,223,'Maryland','MLD','MD'),(22,223,'Massachusetts','MSA','MA'),(23,223,'Michigan','MIC','MI'),(24,223,'Minnesota','MIN','MN'),(25,223,'Mississippi','MIS','MS'),(26,223,'Missouri','MIO','MO'),(27,223,'Montana','MOT','MT'),(28,223,'Nebraska','NEB','NE'),(29,223,'Nevada','NEV','NV'),(30,223,'New Hampshire','NEH','NH'),(31,223,'New Jersey','NEJ','NJ'),(32,223,'New Mexico','NEM','NM'),(33,223,'New York','NEY','NY'),(34,223,'North Carolina','NOC','NC'),(35,223,'North Dakota','NOD','ND'),(36,223,'Ohio','OHI','OH'),(37,223,'Oklahoma','OKL','OK'),(38,223,'Oregon','ORN','OR'),(39,223,'Pennsylvania','PEA','PA'),(40,223,'Rhode Island','RHI','RI'),(41,223,'South Carolina','SOC','SC'),(42,223,'South Dakota','SOD','SD'),(43,223,'Tennessee','TEN','TN'),(44,223,'Texas','TXS','TX'),(45,223,'Utah','UTA','UT'),(46,223,'Vermont','VMT','VT'),(47,223,'Virginia','VIA','VA'),(48,223,'Washington','WAS','WA'),(49,223,'West Virginia','WEV','WV'),(50,223,'Wisconsin','WIS','WI'),(51,223,'Wyoming','WYO','WY'),(52,38,'Alberta','ALB','AB'),(53,38,'British Columbia','BRC','BC'),(54,38,'Manitoba','MAB','MB'),(55,38,'New Brunswick','NEB','NB'),(56,38,'Newfoundland and Labrador','NFL','NL'),(57,38,'Northwest Territories','NWT','NT'),(58,38,'Nova Scotia','NOS','NS'),(59,38,'Nunavut','NUT','NU'),(60,38,'Ontario','ONT','ON'),(61,38,'Prince Edward Island','PEI','PE'),(62,38,'Quebec','QEC','QC'),(63,38,'Saskatchewan','SAK','SK'),(64,38,'Yukon','YUT','YT'),(65,222,'England','ENG','EN'),(66,222,'Northern Ireland','NOI','NI'),(67,222,'Scotland','SCO','SD'),(68,222,'Wales','WLS','WS'),(69,13,'Australian Capital Territory','ACT','AT'),(70,13,'New South Wales','NSW','NW'),(71,13,'Northern Territory','NOT','NT'),(72,13,'Queensland','QLD','QL'),(73,13,'South Australia','SOA','SA'),(74,13,'Tasmania','TAS','TA'),(75,13,'Victoria','VIC','VI'),(76,13,'Western Australia','WEA','WA'),(77,138,'Aguascalientes','AGS','AG'),(78,138,'Baja California Norte','BCN','BN'),(79,138,'Baja California Sur','BCS','BS'),(80,138,'Campeche','CAM','CA'),(81,138,'Chiapas','CHI','CS'),(82,138,'Chihuahua','CHA','CH'),(83,138,'Coahuila','COA','CO'),(84,138,'Colima','COL','CM'),(85,138,'Distrito Federal','DFM','DF'),(86,138,'Durango','DGO','DO'),(87,138,'Guanajuato','GTO','GO'),(88,138,'Guerrero','GRO','GU'),(89,138,'Hidalgo','HGO','HI'),(90,138,'Jalisco','JAL','JA'),(91,138,'Mexico (Estado de)','EDM','EM'),(92,138,'Michoacan','MCN','MI'),(93,138,'Morelos','MOR','MO'),(94,138,'Nayarit','NAY','NY'),(95,138,'Nuevo Leon','NUL','NL'),(96,138,'Oaxaca','OAX','OA'),(97,138,'Puebla','PUE','PU'),(98,138,'Queretaro','QRO','QU'),(99,138,'Quintana Roo','QUR','QR'),(100,138,'San Luis Potosi','SLP','SP'),(101,138,'Sinaloa','SIN','SI'),(102,138,'Sonora','SON','SO'),(103,138,'Tabasco','TAB','TA'),(104,138,'Tamaulipas','TAM','TM'),(105,138,'Tlaxcala','TLX','TX'),(106,138,'Veracruz','VER','VZ'),(107,138,'Yucatan','YUC','YU'),(108,138,'Zacatecas','ZAC','ZA'),(109,30,'Acre','ACR','AC'),(110,30,'Alagoas','ALG','AL'),(111,30,'Amapa','AMP','AP'),(112,30,'Amazonas','AMZ','AM'),(113,30,'Bahia','BAH','BA'),(114,30,'Ceara','CEA','CE'),(115,30,'Distrito Federal','DFB','DF'),(116,30,'Espirito Santo','ESS','ES'),(117,30,'Goias','GOI','GO'),(118,30,'Maranhao','MAR','MA'),(119,30,'Mato Grosso','MAT','MT'),(120,30,'Mato Grosso do Sul','MGS','MS'),(121,30,'Minas Gerais','MIG','MG'),(122,30,'Parana','PAR','PR'),(123,30,'Paraiba','PRB','PB'),(124,30,'Para','PAB','PA'),(125,30,'Pernambuco','PER','PE'),(126,30,'Piaui','PIA','PI'),(127,30,'Rio Grande do Norte','RGN','RN'),(128,30,'Rio Grande do Sul','RGS','RS'),(129,30,'Rio de Janeiro','RDJ','RJ'),(130,30,'Rondonia','RON','RO'),(131,30,'Roraima','ROR','RR'),(132,30,'Santa Catarina','SAC','SC'),(133,30,'Sergipe','SER','SE'),(134,30,'Sao Paulo','SAP','SP'),(135,30,'Tocantins','TOC','TO'),(136,44,'Anhui','ANH','34'),(137,44,'Beijing','BEI','11'),(138,44,'Chongqing','CHO','50'),(139,44,'Fujian','FUJ','35'),(140,44,'Gansu','GAN','62'),(141,44,'Guangdong','GUA','44'),(142,44,'Guangxi Zhuang','GUZ','45'),(143,44,'Guizhou','GUI','52'),(144,44,'Hainan','HAI','46'),(145,44,'Hebei','HEB','13'),(146,44,'Heilongjiang','HEI','23'),(147,44,'Henan','HEN','41'),(148,44,'Hubei','HUB','42'),(149,44,'Hunan','HUN','43'),(150,44,'Jiangsu','JIA','32'),(151,44,'Jiangxi','JIX','36'),(152,44,'Jilin','JIL','22'),(153,44,'Liaoning','LIA','21'),(154,44,'Nei Mongol','NML','15'),(155,44,'Ningxia Hui','NIH','64'),(156,44,'Qinghai','QIN','63'),(157,44,'Shandong','SNG','37'),(158,44,'Shanghai','SHH','31'),(159,44,'Shaanxi','SHX','61'),(160,44,'Sichuan','SIC','51'),(161,44,'Tianjin','TIA','12'),(162,44,'Xinjiang Uygur','XIU','65'),(163,44,'Xizang','XIZ','54'),(164,44,'Yunnan','YUN','53'),(165,44,'Zhejiang','ZHE','33'),(166,104,'Gaza Strip','GZS','GZ'),(167,104,'West Bank','WBK','WB'),(168,104,'Other','OTH','OT'),(169,151,'St. Maarten','STM','SM'),(170,151,'Bonaire','BNR','BN'),(171,151,'Curacao','CUR','CR'),(172,175,'Alba','ABA','AB'),(173,175,'Arad','ARD','AR'),(174,175,'Arges','ARG','AG'),(175,175,'Bacau','BAC','BC'),(176,175,'Bihor','BIH','BH'),(177,175,'Bistrita-Nasaud','BIS','BN'),(178,175,'Botosani','BOT','BT'),(179,175,'Braila','BRL','BR'),(180,175,'Brasov','BRA','BV'),(181,175,'Bucuresti','BUC','B'),(182,175,'Buzau','BUZ','BZ'),(183,175,'Calarasi','CAL','CL'),(184,175,'Caras Severin','CRS','CS'),(185,175,'Cluj','CLJ','CJ'),(186,175,'Constanta','CST','CT'),(187,175,'Covasna','COV','CV'),(188,175,'Dambovita','DAM','DB'),(189,175,'Dolj','DLJ','DJ'),(190,175,'Galati','GAL','GL'),(191,175,'Giurgiu','GIU','GR'),(192,175,'Gorj','GOR','GJ'),(193,175,'Hargita','HRG','HR'),(194,175,'Hunedoara','HUN','HD'),(195,175,'Ialomita','IAL','IL'),(196,175,'Iasi','IAS','IS'),(197,175,'Ilfov','ILF','IF'),(198,175,'Maramures','MAR','MM'),(199,175,'Mehedinti','MEH','MH'),(200,175,'Mures','MUR','MS'),(201,175,'Neamt','NEM','NT'),(202,175,'Olt','OLT','OT'),(203,175,'Prahova','PRA','PH'),(204,175,'Salaj','SAL','SJ'),(205,175,'Satu Mare','SAT','SM'),(206,175,'Sibiu','SIB','SB'),(207,175,'Suceava','SUC','SV'),(208,175,'Teleorman','TEL','TR'),(209,175,'Timis','TIM','TM'),(210,175,'Tulcea','TUL','TL'),(211,175,'Valcea','VAL','VL'),(212,175,'Vaslui','VAS','VS'),(213,175,'Vrancea','VRA','VN'),(214,105,'Agrigento','AGR','AG'),(215,105,'Alessandria','ALE','AL'),(216,105,'Ancona','ANC','AN'),(217,105,'Aosta','AOS','AO'),(218,105,'Arezzo','ARE','AR'),(219,105,'Ascoli Piceno','API','AP'),(220,105,'Asti','AST','AT'),(221,105,'Avellino','AVE','AV'),(222,105,'Bari','BAR','BA'),(223,105,'Belluno','BEL','BL'),(224,105,'Benevento','BEN','BN'),(225,105,'Bergamo','BEG','BG'),(226,105,'Biella','BIE','BI'),(227,105,'Bologna','BOL','BO'),(228,105,'Bolzano','BOZ','BZ'),(229,105,'Brescia','BRE','BS'),(230,105,'Brindisi','BRI','BR'),(231,105,'Cagliari','CAG','CA'),(232,105,'Caltanissetta','CAL','CL'),(233,105,'Campobasso','CBO','CB'),(234,105,'Carbonia-Iglesias','CAR','CI'),(235,105,'Caserta','CAS','CE'),(236,105,'Catania','CAT','CT'),(237,105,'Catanzaro','CTZ','CZ'),(238,105,'Chieti','CHI','CH'),(239,105,'Como','COM','CO'),(240,105,'Cosenza','COS','CS'),(241,105,'Cremona','CRE','CR'),(242,105,'Crotone','CRO','KR'),(243,105,'Cuneo','CUN','CN'),(244,105,'Enna','ENN','EN'),(245,105,'Ferrara','FER','FE'),(246,105,'Firenze','FIR','FI'),(247,105,'Foggia','FOG','FG'),(248,105,'Forli-Cesena','FOC','FC'),(249,105,'Frosinone','FRO','FR'),(250,105,'Genova','GEN','GE'),(251,105,'Gorizia','GOR','GO'),(252,105,'Grosseto','GRO','GR'),(253,105,'Imperia','IMP','IM'),(254,105,'Isernia','ISE','IS'),(255,105,'L\'Aquila','AQU','AQ'),(256,105,'La Spezia','LAS','SP'),(257,105,'Latina','LAT','LT'),(258,105,'Lecce','LEC','LE'),(259,105,'Lecco','LCC','LC'),(260,105,'Livorno','LIV','LI'),(261,105,'Lodi','LOD','LO'),(262,105,'Lucca','LUC','LU'),(263,105,'Macerata','MAC','MC'),(264,105,'Mantova','MAN','MN'),(265,105,'Massa-Carrara','MAS','MS'),(266,105,'Matera','MAA','MT'),(267,105,'Medio Campidano','MED','VS'),(268,105,'Messina','MES','ME'),(269,105,'Milano','MIL','MI'),(270,105,'Modena','MOD','MO'),(271,105,'Napoli','NAP','NA'),(272,105,'Novara','NOV','NO'),(273,105,'Nuoro','NUR','NU'),(274,105,'Ogliastra','OGL','OG'),(275,105,'Olbia-Tempio','OLB','OT'),(276,105,'Oristano','ORI','OR'),(277,105,'Padova','PDA','PD'),(278,105,'Palermo','PAL','PA'),(279,105,'Parma','PAA','PR'),(280,105,'Pavia','PAV','PV'),(281,105,'Perugia','PER','PG'),(282,105,'Pesaro e Urbino','PES','PU'),(283,105,'Pescara','PSC','PE'),(284,105,'Piacenza','PIA','PC'),(285,105,'Pisa','PIS','PI'),(286,105,'Pistoia','PIT','PT'),(287,105,'Pordenone','POR','PN'),(288,105,'Potenza','PTZ','PZ'),(289,105,'Prato','PRA','PO'),(290,105,'Ragusa','RAG','RG'),(291,105,'Ravenna','RAV','RA'),(292,105,'Reggio Calabria','REG','RC'),(293,105,'Reggio Emilia','REE','RE'),(294,105,'Rieti','RIE','RI'),(295,105,'Rimini','RIM','RN'),(296,105,'Roma','ROM','RM'),(297,105,'Rovigo','ROV','RO'),(298,105,'Salerno','SAL','SA'),(299,105,'Sassari','SAS','SS'),(300,105,'Savona','SAV','SV'),(301,105,'Siena','SIE','SI'),(302,105,'Siracusa','SIR','SR'),(303,105,'Sondrio','SOO','SO'),(304,105,'Taranto','TAR','TA'),(305,105,'Teramo','TER','TE'),(306,105,'Terni','TRN','TR'),(307,105,'Torino','TOR','TO'),(308,105,'Trapani','TRA','TP'),(309,105,'Trento','TRE','TN'),(310,105,'Treviso','TRV','TV'),(311,105,'Trieste','TRI','TS'),(312,105,'Udine','UDI','UD'),(313,105,'Varese','VAR','VA'),(314,105,'Venezia','VEN','VE'),(315,105,'Verbano Cusio Ossola','VCO','VB'),(316,105,'Vercelli','VER','VC'),(317,105,'Verona','VRN','VR'),(318,105,'Vibo Valenzia','VIV','VV'),(319,105,'Vicenza','VII','VI'),(320,105,'Viterbo','VIT','VT'),(321,195,'A Coruna','ACO','15'),(322,195,'Alava','ALA','01'),(323,195,'Albacete','ALB','02'),(324,195,'Alicante','ALI','03'),(325,195,'Almeria','ALM','04'),(326,195,'Asturias','AST','33'),(327,195,'Avila','AVI','05'),(328,195,'Badajoz','BAD','06'),(329,195,'Baleares','BAL','07'),(330,195,'Barcelona','BAR','08'),(331,195,'Burgos','BUR','09'),(332,195,'Caceres','CAC','10'),(333,195,'Cadiz','CAD','11'),(334,195,'Cantabria','CAN','39'),(335,195,'Castellon','CAS','12'),(336,195,'Ceuta','CEU','51'),(337,195,'Ciudad Real','CIU','13'),(338,195,'Cordoba','COR','14'),(339,195,'Cuenca','CUE','16'),(340,195,'Girona','GIR','17'),(341,195,'Granada','GRA','18'),(342,195,'Guadalajara','GUA','19'),(343,195,'Guipuzcoa','GUI','20'),(344,195,'Huelva','HUL','21'),(345,195,'Huesca','HUS','22'),(346,195,'Jaen','JAE','23'),(347,195,'La Rioja','LRI','26'),(348,195,'Las Palmas','LPA','35'),(349,195,'Leon','LEO','24'),(350,195,'Lleida','LLE','25'),(351,195,'Lugo','LUG','27'),(352,195,'Madrid','MAD','28'),(353,195,'Malaga','MAL','29'),(354,195,'Melilla','MEL','52'),(355,195,'Murcia','MUR','30'),(356,195,'Navarra','NAV','31'),(357,195,'Ourense','OUR','32'),(358,195,'Palencia','PAL','34'),(359,195,'Pontevedra','PON','36'),(360,195,'Salamanca','SAL','37'),(361,195,'Santa Cruz de Tenerife','SCT','38'),(362,195,'Segovia','SEG','40'),(363,195,'Sevilla','SEV','41'),(364,195,'Soria','SOR','42'),(365,195,'Tarragona','TAR','43'),(366,195,'Teruel','TER','44'),(367,195,'Toledo','TOL','45'),(368,195,'Valencia','VAL','46'),(369,195,'Valladolid','VLL','47'),(370,195,'Vizcaya','VIZ','48'),(371,195,'Zamora','ZAM','49'),(372,195,'Zaragoza','ZAR','50'),(373,11,'Aragatsotn','ARG','AG'),(374,11,'Ararat','ARR','AR'),(375,11,'Armavir','ARM','AV'),(376,11,'Gegharkunik','GEG','GR'),(377,11,'Kotayk','KOT','KT'),(378,11,'Lori','LOR','LO'),(379,11,'Shirak','SHI','SH'),(380,11,'Syunik','SYU','SU'),(381,11,'Tavush','TAV','TV'),(382,11,'Vayots-Dzor','VAD','VD'),(383,11,'Yerevan','YER','ER'),(384,99,'Andaman & Nicobar Islands','ANI','AI'),(385,99,'Andhra Pradesh','AND','AN'),(386,99,'Arunachal Pradesh','ARU','AR'),(387,99,'Assam','ASS','AS'),(388,99,'Bihar','BIH','BI'),(389,99,'Chandigarh','CHA','CA'),(390,99,'Chhatisgarh','CHH','CH'),(391,99,'Dadra & Nagar Haveli','DAD','DD'),(392,99,'Daman & Diu','DAM','DA'),(393,99,'Delhi','DEL','DE'),(394,99,'Goa','GOA','GO'),(395,99,'Gujarat','GUJ','GU'),(396,99,'Haryana','HAR','HA'),(397,99,'Himachal Pradesh','HIM','HI'),(398,99,'Jammu & Kashmir','JAM','JA'),(399,99,'Jharkhand','JHA','JH'),(400,99,'Karnataka','KAR','KA'),(401,99,'Kerala','KER','KE'),(402,99,'Lakshadweep','LAK','LA'),(403,99,'Madhya Pradesh','MAD','MD'),(404,99,'Maharashtra','MAH','MH'),(405,99,'Manipur','MAN','MN'),(406,99,'Meghalaya','MEG','ME'),(407,99,'Mizoram','MIZ','MI'),(408,99,'Nagaland','NAG','NA'),(409,99,'Orissa','ORI','OR'),(410,99,'Pondicherry','PON','PO'),(411,99,'Punjab','PUN','PU'),(412,99,'Rajasthan','RAJ','RA'),(413,99,'Sikkim','SIK','SI'),(414,99,'Tamil Nadu','TAM','TA'),(415,99,'Tripura','TRI','TR'),(416,99,'Uttaranchal','UAR','UA'),(417,99,'Uttar Pradesh','UTT','UT'),(418,99,'West Bengal','WES','WE'),(419,101,'Ahmadi va Kohkiluyeh','BOK','BO'),(420,101,'Ardabil','ARD','AR'),(421,101,'Azarbayjan-e Gharbi','AZG','AG'),(422,101,'Azarbayjan-e Sharqi','AZS','AS'),(423,101,'Bushehr','BUS','BU'),(424,101,'Chaharmahal va Bakhtiari','CMB','CM'),(425,101,'Esfahan','ESF','ES'),(426,101,'Fars','FAR','FA'),(427,101,'Gilan','GIL','GI'),(428,101,'Gorgan','GOR','GO'),(429,101,'Hamadan','HAM','HA'),(430,101,'Hormozgan','HOR','HO'),(431,101,'Ilam','ILA','IL'),(432,101,'Kerman','KER','KE'),(433,101,'Kermanshah','BAK','BA'),(434,101,'Khorasan-e Junoubi','KHJ','KJ'),(435,101,'Khorasan-e Razavi','KHR','KR'),(436,101,'Khorasan-e Shomali','KHS','KS'),(437,101,'Khuzestan','KHU','KH'),(438,101,'Kordestan','KOR','KO'),(439,101,'Lorestan','LOR','LO'),(440,101,'Markazi','MAR','MR'),(441,101,'Mazandaran','MAZ','MZ'),(442,101,'Qazvin','QAS','QA'),(443,101,'Qom','QOM','QO'),(444,101,'Semnan','SEM','SE'),(445,101,'Sistan va Baluchestan','SBA','SB'),(446,101,'Tehran','TEH','TE'),(447,101,'Yazd','YAZ','YA'),(448,101,'Zanjan','ZAN','ZA');

--
-- Table structure for table `jos_redshop_stockroom`
--

CREATE TABLE `jos_redshop_stockroom` (
  `stockroom_id` int(11) NOT NULL AUTO_INCREMENT,
  `stockroom_name` varchar(250) CHARACTER SET latin1 NOT NULL,
  `stockroom_desc` longtext CHARACTER SET latin1 NOT NULL,
  `creation_date` double NOT NULL,
  `min_del_time` int(11) NOT NULL,
  `max_del_time` int(11) NOT NULL,
  `show` tinyint(1) NOT NULL,
  `delivery_time` varchar(255) NOT NULL,
  `published` tinyint(4) NOT NULL,
  PRIMARY KEY (`stockroom_id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='redSHOP Stockroom';

--
-- Dumping data for table `jos_redshop_stockroom`
--


--
-- Table structure for table `jos_redshop_stockroom_container_xref`
--

CREATE TABLE `jos_redshop_stockroom_container_xref` (
  `stockroom_id` int(11) NOT NULL,
  `container_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='redSHOP Stockroom Container Relation';

--
-- Dumping data for table `jos_redshop_stockroom_container_xref`
--


--
-- Table structure for table `jos_redshop_supplier`
--

CREATE TABLE `jos_redshop_supplier` (
  `supplier_id` int(11) NOT NULL AUTO_INCREMENT,
  `supplier_name` varchar(250) NOT NULL,
  `supplier_desc` longtext NOT NULL,
  `published` tinyint(4) NOT NULL,
  PRIMARY KEY (`supplier_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='redSHOP Supplier';

--
-- Dumping data for table `jos_redshop_supplier`
--


--
-- Table structure for table `jos_redshop_tax_group`
--

CREATE TABLE `jos_redshop_tax_group` (
  `tax_group_id` int(11) NOT NULL AUTO_INCREMENT,
  `tax_group_name` varchar(255) NOT NULL,
  `published` tinyint(4) NOT NULL,
  PRIMARY KEY (`tax_group_id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='redSHOP Tax Group';

--
-- Dumping data for table `jos_redshop_tax_group`
--

INSERT INTO `jos_redshop_tax_group` VALUES (1,'Default',1);

--
-- Table structure for table `jos_redshop_tax_rate`
--

CREATE TABLE `jos_redshop_tax_rate` (
  `tax_rate_id` int(11) NOT NULL AUTO_INCREMENT,
  `tax_state` varchar(64) DEFAULT NULL,
  `tax_country` varchar(64) DEFAULT NULL,
  `mdate` int(11) DEFAULT NULL,
  `tax_rate` decimal(10,4) DEFAULT NULL,
  `tax_group_id` int(11) NOT NULL,
  `is_eu_country` tinyint(4) NOT NULL,
  PRIMARY KEY (`tax_rate_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='redSHOP Tax Rates';

--
-- Dumping data for table `jos_redshop_tax_rate`
--


--
-- Table structure for table `jos_redshop_template`
--

CREATE TABLE `jos_redshop_template` (
  `template_id` int(11) NOT NULL AUTO_INCREMENT,
  `template_name` varchar(250) NOT NULL,
  `template_section` varchar(250) NOT NULL,
  `template_desc` longtext NOT NULL,
  `published` tinyint(4) NOT NULL,
  PRIMARY KEY (`template_id`)
) ENGINE=MyISAM AUTO_INCREMENT=106 DEFAULT CHARSET=utf8 COMMENT='redSHOP Templates Detail';

--
-- Dumping data for table `jos_redshop_template`
--

INSERT INTO `jos_redshop_template` VALUES (8,'cat2','category','<div class=\"Product\" style=\"padding: 10px; float: left\">                          <h3 class=\"producttitle\">            {product_name}         </h3>                  <div class=\"price\">           {product_price}         </div>                  <div class=\"ProductImage\">            {product_thumb_image}         </div>                      <div class=\"ProductDescription\">           {product_s_desc}         </div><p>         <br />         <span class=\"AddToCart\">         {form_addtocart}         </span>  </p><p>{zipcode}</p><p>&nbsp;</p></div>',1),(5,'kategori template','category','<div class=\"kategori_print\">{print}</div>\r\n<div style=\"clear: both;\"></div>\r\n<p>{category_loop_start}</p>\r\n<div id=\"kategori\">\r\n<div style=\"width: 200px; float: left;\">\r\n<div class=\"kategori_billed\">{category_thumb_image}</div>\r\n<div class=\"kategori_beskrivelse\">\r\n<h2 class=\"kategori_titel\">{category_name}</h2>\r\n{category_description}</div>\r\n</div>\r\n</div>\r\n<p>{category_loop_end}</p>\r\n<div style=\"clear: both;\"></div>\r\n<div class=\"kategori_kasse_ramme\">{product_loop_start}\r\n<div class=\"kategori_kasse_ydre\">\r\n<div class=\"kategori_kasse_indre\">\r\n<div class=\"kategori_produkt_billede\">{product_thumb_image}</div>\r\n<div class=\"kategori_produkt_billede\"></div>\r\n<div class=\"kategori_produkt_titel\">\r\n<h3>{product_name}</h3>\r\n</div>\r\n<div class=\"kategori_produkt_pris\">{product_price}</div>\r\n<div class=\"kategori_produkt_laesmere\">{read_more}</div>\r\n</div>\r\n</div>\r\n{product_loop_end}\r\n<div class=\"kategori_produkt_bund\" style=\"clear: both;\"></div>\r\n</div>',1),(26,'Copy Of product','product','<div id=\"produkt\">\r\n<div class=\"produkt_spacer\"></div>\r\n<div class=\"produkt_anmeldelser_opsummering\">{product_rating_summary}</div>\r\n<div id=\"opsummering_wrapper\">\r\n<div id=\"opsummering_skubber\"></div>\r\n<div id=\"opsummering_link\">Klik <a href=\"ratings\" target=\"self\">her</a> for at ga til anmeldelse(r)</div>\r\n</div>\r\n<div id=\"produkt_kasse\">\r\n<div class=\"produkt_kasse_venstre\">\r\n<div class=\"produkt_kasse_billed\">{product_thumb_image}</div>\r\n<div class=\"produkt_kasse_billed_flere\">{more_images}</div>\r\n<div id=\"produkt_kasse_venstre_tekst\">Klik pa billederne for at forstorre</div>\r\n</div>\r\n<div class=\"produkt_kasse_hoejre\">\r\n<div class=\"produkt_kasse_hoejre_materialefarve\">\r\n<div class=\"produkt_kasse_hoejre_materialefarve_overskrift\">V?lg Materiale &amp; Farve</div>\r\n<div id=\"produkt_kasse_hojere_materialefarve_skubber\"></div>\r\n<div class=\"produkt_kasse_hoejre_materialefarve_indhold\">{product_attribute}</div>\r\n</div>\r\n<div class=\"produkt_kasse_hoejre_accessory\">{product_accessory}</div>\r\n<div class=\"produkt_kasse_hoejre_pris\">\r\n<div class=\"produkt_kasse_hoejre_pris_indre\" id=\"produkt_kasse_hoejre_pris_indre\">{product_price}</div>\r\n<div class=\"produkt_kasse_hoejre_pris_indre_inklmoms\">inkl moms</div>\r\n</div>\r\n<div class=\"produkt_kasse_hoejre_laegikurv\">\r\n<div class=\"produkt_kasse_hoejre_laegikurv_indre\">{form_addtocart:templet2}</div>\r\n</div>\r\n<div class=\"produkt_kasse_hoejre_leveringstid\">\r\n<div class=\"produkt_kasse_hoejre_leveringstid_indre\">Leveringstid: {product_delivery_time}</div>\r\n</div>\r\n<div class=\"produkt_kasse_hoejre_bookmarksendtofriend\">\r\n<div class=\"produkt_kasse_hoejre_bookmark\">{bookmark}</div>\r\n<div class=\"produkt_kasse_hoejre_sendtofriend\">{send_to_friend}</div>\r\n</div>\r\n</div>\r\n<div class=\"produkt_beskrivelse_spacer\"></div>\r\n<div id=\"produkt_beskrivelse_wrapper\">\r\n<div class=\"produkt_beskrivelse\">\r\n<div id=\"produkt_beskrivelse_maal\">\r\n<div id=\"produkt_maal_wrapper\">\r\n<div id=\"produkt_maal_skubber_venstre\"></div>\r\n<div id=\"produkt_maal_indhold_hojre\">\r\n<div id=\"produkt_maal_overskrift\">\r\n<h3>Mal pa produktet</h3>\r\n</div>\r\n<div id=\"produkt_hojde\">H: {hojde}</div>\r\n<div id=\"produkt_bredde\">x B: {bredde}</div>\r\n<div id=\"produkt_dybde\">x D: {dybde}</div>\r\n<div style=\"width: 275px; height: 10px; clear: left;\"></div>\r\n<div id=\"producent_link\">{manufacturer_link}</div>\r\n<div id=\"produkt_writereview\">{form_rating}</div>\r\n</div>\r\n</div>\r\n</div>\r\n<h2>{product_name}</h2>\r\n<div id=\"beskrivelse_lille\">{product_s_desc}</div>\r\n<div id=\"beskrivelse_stor\">{product_desc}</div>\r\n</div>\r\n</div>\r\n<div id=\"produkt_anmeldelser\">\r\n<div id=\"produkt_anmeldelser_headline\">\r\n<h3>Kundeanmeldelse</h3>\r\n</div>\r\n{product_rating}</div>\r\n<div id=\"delestreg_review_related\"></div>\r\n<div id=\"relaterede_produkter\">\r\n<div id=\"relaterede_produkter_headline\">\r\n<h3>Relaterede Produkter</h3>\r\n</div>\r\n{related_products}</div>\r\n</div>\r\n</div>',1),(9,'product','product','<div id=\"produkt\">\r\n<div class=\"produkt_spacer\"></div>\r\n<div class=\"produkt_anmeldelser_opsummering\">{product_rating_summary}</div>\r\n<div id=\"produkt_writereview\">{form_rating}</div>\r\n<div class=\"produkt_spacer\"></div>\r\n<div id=\"produkt_kasse\">\r\n<div class=\"produkt_kasse_venstre\">\r\n<div class=\"produkt_kasse_billed\">{product_thumb_image}<br />klik pa billedet der</div>\r\n<div class=\"produkt_kasse_billed_flere\">{more_images}</div>\r\n<div id=\"{subproperty_image_scroller}\"></div>\r\n</div>\r\n<div class=\"produkt_kasse_hoejre\">\r\n<div class=\"produkt_kasse_hoejre_pris\">\r\n<div class=\"produkt_kasse_hoejre_pris_indre\" id=\"produkt_kasse_hoejre_pris_indre\">{product_price}</div>\r\n<div class=\"produkt_kasse_hoejre_pris_indre\"></div>\r\n<div class=\"produkt_kasse_hoejre_pris_indre_inklmoms\">inkl moms</div>\r\n</div>\r\n<div class=\"produkt_kasse_hoejre_materialefarve\">\r\n<div id=\"produkt_kasse_hojere_materialefarve_skubber\"></div>\r\n<div class=\"produkt_kasse_hoejre_materialefarve_indhold\">{product_attribute}</div>\r\n<div class=\"produkt_kasse_hoejre_materialefarve_indhold\">{accessory_template:tilbehoer}</div>\r\n</div>\r\n<div class=\"produkt_kasse_hoejre_laegikurv\">\r\n<div class=\"produkt_kasse_hoejre_laegikurv_indre\">{form_addtocart:templet2}</div>\r\n<div id=\"producent_link\">{manufacturer_link}</div>\r\n</div>\r\n</div>\r\n<div class=\"produkt_beskrivelse_spacer\"></div>\r\n<div id=\"produkt_beskrivelse_wrapper\">\r\n<div class=\"produkt_beskrivelse\">\r\n<div id=\"produkt_beskrivelse_maal\">\r\n<div id=\"produkt_maal_wrapper\">\r\n<div id=\"produkt_maal_skubber_venstre\"></div>\r\n<div id=\"produkt_maal_indhold_hojre\"></div>\r\n</div>\r\n</div>\r\n<h2>{product_name}</h2>\r\n<div id=\"beskrivelse_lille\">{product_s_desc}</div>\r\n<div id=\"beskrivelse_stor\">{product_desc}</div>\r\n</div>\r\n</div>\r\n<div id=\"delestreg_review_related\"></div>\r\n<div id=\"relaterede_produkter\">{related_product:Related Products}</div>\r\n</div>\r\n</div>',1),(29,'Nyhedsbrev1','newsletter','<p>Nyhedsbrev til redSHOPdemo2</p>\r\n<p>{data}</p>',1),(10,'Cart','cart','<h1>Indkobskurv</h1>\r\n<div class=\"kategori_print\">{print}</div>\r\n<table style=\"width: 100%;\" class=\"tdborder\" cellpadding=\"0\" cellspacing=\"0\">\r\n<thead> \r\n<tr>\r\n<th>VARE(R) </th> <th></th><th> Pris</th><th>ANTAL</th><th>TOTAL</th>\r\n</tr>\r\n</thead> \r\n<tbody>\r\n{product_loop_start}  \r\n<tr class=\"tdborder\">\r\n<td>\r\n<div class=\"cartproducttitle\">{cart_item}</div>\r\n<div class=\"cartattribut\">{cart_attribute}</div>\r\n<div class=\"cartaccessory\">{cart_accessory}</div></td>\r\n<td>{product_image}</td>\r\n<td>{product_price}</td>\r\n<td>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td>{update_cart}</td>\r\n<td>{remove_product}</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n</td>\r\n<td>{product_total_price}</td>\r\n</tr>\r\n{product_loop_end}\r\n</tbody>\r\n</table>\r\n<p><br /> <strong class=\"discount_tekst\">{discount_rule}</strong></p>\r\n<table style=\"width: 100%;\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n<tbody>\r\n<tr>\r\n<td cellspacing=\"5\" cellpadding=\"5\" valign=\"top\" width=\"50%\">\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td>{update}</td>\r\n<td>{empty_cart}</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<br /></td>\r\n<td valign=\"top\" width=\"50%\" align=\"right\"><br /><br /> \r\n<table class=\"cart_regnestykke\">\r\n<tbody>\r\n<tr>\r\n<td>SAMLET KOB:</td>\r\n<td width=\"100\">{subtotal}</td>\r\n</tr>\r\n<tr>\r\n<td><em>HERAF MOMS:</em></td>\r\n<td width=\"100\">{tax}</td>\r\n</tr>\r\n<tr>\r\n<td>FRAGT:</td>\r\n<td width=\"100\">{shipping}</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<div id=\"tabelstreg_top\"></div>\r\n<table class=\"regnestykke_sidste\">\r\n<tbody>\r\n<tr>\r\n<td>\r\n<div class=\"singleline\"><strong>TOTAL:</strong></div>\r\n</td>\r\n<td width=\"100\">\r\n<div class=\"singleline\">{total}</div>\r\n</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<div id=\"tabelstreg_bund\"></div>\r\n{checkout}<br /><br /> {shop_more}</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<div id=\"cart_luft\"></div>',1),(11,'review','review','<div id=\"reviews_wrapper\">\r\n	\r\n	<div id=\"reviews_headline\">\r\n\r\n	</div>\r\n<div id=\"reviews_hojreside\">\r\n	<div id=\"reviews_fullname\">\r\n		{fullname}	\r\n	</div>\r\n	\r\n	<div id=\"reviews_title\">\r\n		{title}	\r\n	</div>\r\n	\r\n	<div id=\"reviews_commnet\">\r\n	{comment}		\r\n	</div>\r\n</div>\r\n<div id=\"reviews_venstreside\">\r\n<div id=\"reviews_venstreside_topskubber\">\r\n</div>\r\n	<div id=\"reviews_stars\">\r\n		{stars}\r\n	</div>\r\n</div>\r\n<div id=\"reviews_streg_bund\"></div>\r\n\r\n</div>',1),(12,'Catalog','catalog_sample','<div id=\"katalog_wrapper\">\r\n<div id=\"bestil_katalog_wrapper\">\r\n<div id=\"katalog_overskrift\">\r\n<h1>Bestil Katalog</h1>\r\n</div>\r\n<div id=\"katalog_venstre_wrapper\">\r\n<div id=\"katalog_tekst\">\r\n<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris eget nisi orci, vel vehicula massa. Phasellus ipsum est, egestas a consequat eget, placerat vitae ipsum. Proin ac purus risus. Quisque nec nisi lacus, vitae iaculis eros. Donec ipsum diam, dictum ac euismod molestie, ultrices eget arcu. Vestibulum lacinia nisl et odio sagittis fermentum. Aliquam tristique volutpat faucibus. Sed id orci ut metus condimentum bibendum. Ut gravida scelerisque magna et pharetra. Ut vel turpis in orci molestie scelerisque. Proin nisl elit, ullamcorper id blandit nec, congue eget augue. Nullam gravida ligula nisi.</p>\r\n</div>\r\n<div id=\"katalog_navn_email\">NAVN  {name} EMAIL {email_address} {submit_button_catalog}</div>\r\n</div>\r\n<div id=\"katalog_hojre_wrapper\">\r\n<div id=\"katalog_hojre_billede\"></div>\r\n</div>\r\n</div>\r\n<div id=\"midterstreg_katalog_farve\"></div>\r\n<div id=\"bestil_farveproeve_wrapper\">\r\n<div id=\"farveproeve_overskrift\">\r\n<h2>Bestil Farveprover</h2>\r\n</div>\r\n<div id=\"farveproeve_venstre\">\r\n<div id=\"farveproever_tekst\">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris eget nisi orci, vel vehicula massa. Phasellus ipsum est, egestas a consequat eget, placerat vitae ipsum. Proin ac purus risus. Quisque nec nisi lacus, vitae iaculis eros. Donec ipsum diam, dictum ac euismod molestie, ultrices eget arcu. Vestibulum lacinia nisl et odio sagittis fermentum. Aliquam tristique volutpat faucibus. Sed id orci ut metus condimentum bibendum. Ut gravida scelerisque magna et pharetra. Ut vel turpis in orci molestie scelerisque. Proin nisl elit, ullamcorper id blandit nec, congue eget augue. Nullam gravida ligula nisi.</div>\r\n<div id=\"farveproever\">\r\n<p style=\"text-align: left;\">{colour_samples}</p>\r\n</div>\r\n</div>\r\n<div id=\"farveproeve_hojre_wrapper\">\r\n<div id=\"farveproeve_addressefelt\">\r\n<p style=\"text-align: left;\">{address_fields}</p>\r\n</div>\r\n<div id=\"farveproeve_sendknap\">\r\n<p style=\"text-align: left;\">{submit_button_sample}</p>\r\n</div>\r\n</div>\r\n</div>\r\n</div>',1),(13,'Manufacturer Listings','manufacturer','<table class=\"designere_hovedtabel\" border=\"0\" cellpadding=\"5\" cellspacing=\"5\">\r\n<tbody>\r\n<tr>\r\n<td class=\"mceVisualAid\">Her pr?sentere vi vores designere. Mere tekst her...</td>\r\n</tr>\r\n<tr>\r\n<td class=\"mceVisualAid\"><br /></td>\r\n</tr>\r\n<tr>\r\n<td class=\"mceVisualAid\" width=\"100%\">{manufacturer_loop_start}\r\n<div id=\"designere_tabel_wrapper\">       \r\n<table class=\"designere_wrapper_tabel\" border=\"0\" cellpadding=\"5\" cellspacing=\"5\">\r\n<tbody>\r\n<tr>\r\n<td class=\"designer_navn\">{manufacturer_name}</td>\r\n</tr>\r\n<tr>\r\n<td class=\"designer_beskrivelse\">{manufacturer_description}</td>\r\n</tr>\r\n<tr>\r\n<td class=\"designer_link\"><a href=\"{manufacturer_link}\">L?s mere om designeren</a></td>\r\n</tr>\r\n<tr>\r\n<td class=\"designer_alle_produkter_link\"><a href=\"{manufacturer_allproductslink}\">Se alle designerens produkter</a></td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n</div>\r\n{manufacturer_loop_end}</td>\r\n</tr>\r\n<tr>\r\n<td class=\"mceVisualAid\"><br /></td>\r\n</tr>\r\n<tr>\r\n<td class=\"mceVisualAid\">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</td>\r\n</tr>\r\n</tbody>\r\n</table>',1),(14,'Manufacturer Products','manufacturer_products','<TABLE class=mceItemTable border=0 cellSpacing=0 cellPadding=4 width=\"100%\">\r\n<TBODY>\r\n<TR>\r\n<TD><B>{manufacturer_name}</B></TD></TR>\r\n<TR>\r\n<TD><B>{manufacturer_description}</B></TD></TR>\r\n<TR>\r\n<TD><B></B></TD></TR>\r\n</TBODY>\r\n</TABLE>\r\n\r\n<div style=\"clear: both;\"></div>\r\n\r\n\r\n<br>\r\n\r\n<div id=\"kategori_header\">\r\n\r\n	<div class=\"kategori_orderform\">\r\n		{order_by} \r\n	</div>\r\n	<div class=\"kategori_navigering\">\r\n		{pagination} \r\n	</div>\r\n\r\n</div>\r\n\r\n<div class=\"kategori_kasse_ramme\">{product_loop_start}{category_name}\r\n<div class=\"kategori_kasse_ydre\">\r\n<div class=\"kategori_kasse_indre\">\r\n<div class=\"kategori_produkt_billede\">{product_thumb_image}</div>\r\n<div class=\"kategori_produkt_titel\">\r\n<h3>{product_name}</h3>\r\n</div>\r\n<div class=\"kategori_produkt_pris\">Pris: {product_price}</div>\r\n<div class=\"kategori_produkt_laesmere\">{read_more}</div>\r\n</div>\r\n</div>\r\n{product_loop_end}<div class=\"kategori_produkt_bund\" style=\"clear: both;\"></div></div>',1),(15,'Order List','order_list','<table class=\"mceItemTable\" border=\"0\" cellpadding=\"5\" cellspacing=\"5\" width=\"100%\">   <tbody>     <tr>       <th>Order id</th>       <th>Products</th>       <th>Total Price</th>       <th>Date</th>       <th>Status</th>       <th>Details</th>     </tr> 	{product_loop_start}     <tr>       <td style=\"background-color: rgb(215, 215, 212);\" mce_style=\"background-color: #d7d7d4\">{order_id}</td>       <td style=\"background-color: rgb(215, 215, 212);\" mce_style=\"background-color: #d7d7d4\">{order_products}</td>       <td style=\"background-color: rgb(215, 215, 212);\" mce_style=\"background-color: #d7d7d4\">{order_total}</td>       <td style=\"background-color: rgb(215, 215, 212);\" mce_style=\"background-color: #d7d7d4\">{order_date}</td>       <td style=\"background-color: rgb(215, 215, 212);\" mce_style=\"background-color: #d7d7d4\">{order_status}</td>       <td style=\"background-color: rgb(215, 215, 212);\" mce_style=\"background-color: #d7d7d4\">{order_detail_link}</td>     </tr> 	{product_loop_end}   </tbody> </table>',1),(16,'Order Detail','order_detail','<table class=\"mceItemTable\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\" width=\"100%\">\r\n<tbody>\r\n<tr>\r\n<td colspan=\"2\">\r\n<table class=\"mceItemTable\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\">\r\n<tbody>\r\n<tr style=\"background-color: rgb(204, 204, 204);\" mce_style=\"background-color: #cccccc\">\r\n<th align=\"left\">Order Information</th>\r\n</tr>\r\n<tr>\r\n</tr>\r\n<tr>\r\n<td>Order id : {order_id}</td>\r\n</tr>\r\n<tr>\r\n<td>Order Number : {order_number}</td>\r\n</tr>\r\n<tr>\r\n<td>Order Date : {order_date}</td>\r\n</tr>\r\n<tr>\r\n<td>Order Status : {order_status}</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n</td>\r\n</tr>\r\n<tr>\r\n<td colspan=\"2\">\r\n<table class=\"mceItemTable\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\">\r\n<tbody>\r\n<tr style=\"background-color: rgb(204, 204, 204);\" mce_style=\"background-color: #cccccc\">\r\n<th align=\"left\">Billing Address Information</th>\r\n</tr>\r\n<tr>\r\n</tr>\r\n<tr>\r\n<td>{billing_address}</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n</td>\r\n</tr>\r\n<tr>\r\n<td colspan=\"2\">\r\n<table class=\"mceItemTable\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\">\r\n<tbody>\r\n<tr style=\"background-color: rgb(204, 204, 204);\" mce_style=\"background-color: #cccccc\">\r\n<th align=\"left\">Shipping Address Information</th>\r\n</tr>\r\n<tr>\r\n</tr>\r\n<tr>\r\n<td>{shipping_address}</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n</td>\r\n</tr>\r\n<tr>\r\n<td colspan=\"2\">\r\n<table class=\"mceItemTable\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\">\r\n<tbody>\r\n<tr style=\"background-color: rgb(204, 204, 204);\" mce_style=\"background-color: #cccccc\">\r\n<th align=\"left\">Order Details</th>\r\n</tr>\r\n<tr>\r\n</tr>\r\n<tr>\r\n<td>\r\n<table class=\"mceItemTable\" border=\"0\" cellpadding=\"2\" cellspacing=\"2\" width=\"100%\">\r\n<tbody>\r\n<tr>\r\n<td>Product Name</td>\r\n<td>Note</td>\r\n<td>Price</td>\r\n<td>Quantity</td>\r\n<td align=\"right\">Total Price</td>\r\n</tr>\r\n{product_loop_start}                         \r\n<tr>\r\n<td>{pro_name}</td>\r\n<td>{pro_note}</td>\r\n<td>{pro_price}</td>\r\n<td>{pro_quantity}</td>\r\n<td align=\"right\">{pro_tot_price}</td>\r\n</tr>\r\n{product_loop_end}\r\n</tbody>\r\n</table>\r\n</td>\r\n</tr>\r\n<tr>\r\n<td></td>\r\n</tr>\r\n<tr>\r\n<td>\r\n<table class=\"mceItemTable\" border=\"0\" cellpadding=\"2\" cellspacing=\"2\" width=\"100%\">\r\n<tbody>\r\n<tr align=\"left\">\r\n<td align=\"left\"><b>Order Subtotal : </b></td>\r\n<td align=\"right\">{order_subtotal}</td>\r\n</tr>\r\n<tr align=\"left\">\r\n<td align=\"left\"><b>TAX : </b></td>\r\n<td align=\"right\">{order_tax}</td>\r\n</tr>\r\n<tr align=\"left\">\r\n<td align=\"left\"><b>Discount : </b></td>\r\n<td align=\"right\">{order_discount}</td>\r\n</tr>\r\n<tr align=\"left\">\r\n<td align=\"left\"><b>Shipping : </b></td>\r\n<td align=\"right\">{order_shipping}</td>\r\n</tr>\r\n<tr align=\"left\">\r\n<td colspan=\"2\" align=\"left\">\r\n<hr>\r\n</td>\r\n</tr>\r\n<tr align=\"left\">\r\n<td align=\"left\"><b>Total :</b></td>\r\n<td align=\"right\">{order_total}</td>\r\n</tr>\r\n<tr align=\"left\">\r\n<td colspan=\"2\" align=\"left\">\r\n<hr>\r\n<br> \r\n<hr>\r\n</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n</td>\r\n</tr>\r\n</tbody>\r\n</table>',1),(23,'Related Products','related_product','<div class=\"related_produkt_ramme\">\r\n<h2>Relatere Produkter</h2>\r\n{related_product_start}\r\n<div class=\"related_produkt_indre\">\r\n<div class=\"related_produkt_venstre\">\r\n<div class=\"related_produkt_billed_ramme\">\r\n<div class=\"related_produkt_billede_indre\">\r\n<div class=\"related_produkt_billede\">{relproduct_image}</div>\r\n</div>\r\n</div>\r\n</div>\r\n<div class=\"related_produkt_hoejre\">\r\n<div class=\"related_produkt_navn\">{relproduct_name}</div>\r\n<div class=\"related_produkt_pris\">{relproduct_price}</div>\r\n<div class=\"related_produkt_laes_mere\">{read_more}</div>\r\n</div>\r\n<div style=\"clear: left;\"></div>\r\n</div>\r\n{related_product_end}\r\n<div style=\"clear: left;\"></div>\r\n</div>',1),(17,'Order Receipt','order_receipt','<table class=\"tdborder\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\"\r\n	width=\"100%\">\r\n	<tbody>\r\n		<tr>\r\n			<th>Product</th>\r\n			 \r\n			<th></th>\r\n			<th>Price</th>\r\n			<th>Amount</th>\r\n			<th>Total</th>\r\n		</tr>\r\n		{product_loop_start}\r\n		<tr>\r\n			<td>{pro_name}</td>\r\n			 \r\n			<td>{pro_thumb_image}</td>\r\n			<td>{pro_price}</td>\r\n			<td>{pro_quantity}</td>\r\n			<td>{pro_tot_price}</td>\r\n		</tr>\r\n		{product_loop_end}\r\n	 \r\n\r\n</table>\r\n<br><br>\r\n<table class=\"order_details\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\r\n\r\n	<tr>\r\n		<td align=\"left\" width=\"50%\" valign=\"top\">\r\n<!--		<p>Delivery Time</p>-->\r\n		<p><b>{delivery_time}</b></p>\r\n	 \r\n<!--		<p>Payment Status : {payment_status}</p>-->\r\n		<p>{print_button} Print denne side</p>\r\n		</td>\r\n		<td align=\"right\" width=\"50%\" valign=\"top\"><p class=\"discount\">Discount :{order_discount}</p>  \r\n		<p>\r\n		Subtotal Order : {order_subtotal}</p>\r\n		 <p>\r\n		<i>Vat : {order_tax}</i></p>\r\n		 <p>\r\n		Shipping : {order_shipping}</p>\r\n		 <div class=\"singleline\">\r\n		<b>Total Order : {order_total}</b></div></td>\r\n	</tr>\r\n\r\n</table>',1),(18,'Manufacturer Detail','manufacturer_detail','<table border=\"0\">\r\n<tbody>\r\n<tr>\r\n<td colspan=\"2\">{manufacturer_name} <br /></td>\r\n</tr>\r\n<tr>\r\n<td colspan=\"2\">{manufacturer_description}</td>\r\n</tr>\r\n<tr>\r\n<td><a href=\"{manufacturer_allproductslink}\">Se alle designerens produkter</a></td>\r\n</tr>\r\n</tbody>\r\n</table>',1),(19,'Stockroom Listing','stockroom_list','<table class=\"mceItemTable\" border=\"0\" cellpadding=\"5\" cellspacing=\"5\"> <tbody> <tr> <td>{stockroom_name}</td> </tr> <tr> <td>{stockroom_description}</td> </tr> </tbody> </table>',1),(20,'Stockroom Detail','stockroom_detail','<table class=\"mceItemTable\" border=\"0\"><tbody><tr><td colspan=\"2\">{stockroom_name} <br></td></tr><tr><td colspan=\"2\"> {stockroom_description} </td></tr></tbody></table>',1),(21,'Stockroom Products','stockroom_product','<div id=\"kategori_header\">\r\n\r\n	<div class=\"kategori_orderform\">\r\n		{order_by} \r\n	</div>\r\n	<div class=\"kategori_navigering\">\r\n		{pagination} \r\n	</div>\r\n\r\n</div>\r\n\r\n\r\n<div id=\"kategori_kasse\">\r\n\r\n{product_loop_start} \r\n\r\n	<div id=\"kategori_kasse_ydre\">\r\n		<div id=\"kategori_kasse_indre\">\r\n			<div class=\"kategori_produkt_billed\">{product_thumb_image}</div>\r\n			<div class=\"kategori_produkt_titel\"><h3>{product_name}</h3></div>			\r\n			<div class=\"kategori_produkt_beskrivelse\">{product_s_desc}</div>\r\n			<div class=\"kategori_produkt_pris\"><b>fra {product_price}</b></div>\r\n			<div class=\"kategori_produkt_pris_moms\">(eks. moms  {price_excluding_vat} )<br></div>\r\n			<div class=\"kategori_produkt_laesmere\">{read_more}</div>			\r\n		</div>\r\n	</div>	\r\n\r\n{product_loop_end}\r\n\r\n</div>',1),(22,'Frontpage Category','frontpage_category','<div class=\"kategori_front\">	\r\n	<div class=\"kategori_front_billede\">{category_thumb_image}</div>\r\n	<div class=\"kategori_front_titel\"><h3>{category_name}</h3></div>\r\n</div>',1),(24,'templet1','add_to_cart','<div>\r\n<div>{addtocart_link}</div>\r\n<div>{addtocart_quantity}</div>\r\n<div>{addtocart_image}</div>\r\n</div>',1),(25,'templet2','add_to_cart','<div style=\"clear:left\"></div>\r\n<div class=\"cart-wrapper\">\r\n<div class=\"cart-quantity\">Antal: {addtocart_quantity}</div>\r\n<div class=\"cart-link\">{addtocart_image_aslink}</div>\r\n</div>',1),(27,'tilbehoer','accessory_template','<div class=\"accessory\">\r\n<div class=\"accessory_info\">\r\n<h2>Tilbehor</h2>\r\nV?lg tilbehor ved at klikke i boksen.</div>\r\n{accessory_product_start}\r\n<div class=\"accessory_box\">\r\n<div class=\"accessory_left\">\r\n<div class=\"accessory_image\">{accessory_image}</div>\r\n</div>\r\n<div class=\"accessory_right\">\r\n<div class=\"accessory_title\">\r\n<h3>{accessory_title}</h3>\r\n</div>\r\n<div class=\"accessory_desc\">{accessory_short_desc}</div>\r\n<div class=\"accessory_attr\">{accessory_attributes}</div>\r\n<div class=\"accessory_readmore\">{accessory_readmore}</div>\r\n<div class=\"accessory_add\">Pris: {accessory_price} {accessory_add_chkbox}</div>\r\n</div>\r\n<div style=\"clear: left;\"></div>\r\n</div>\r\n{accessory_product_end}</div>\r\n<div style=\"clear: left;\"></div>',1),(28,'attributter','attribute_template','<p>{attribute_title}<br />{property_dropdown}<br />{subproperty_start}{property_title} <br />{subproperty_dropdown}{subproperty_end}</p>',1),(100,'My Account Template','account_template','<table><tbody><tr><td>{welcome_introtext}</td></tr><tr><td><table style=\"width: 100%;\" border=\"0\" cellpadding=\"10\" cellspacing=\"10\"><tbody><tr valign=\"top\"><td width=\"40%\">{account_image}<strong>{account_title}</strong> <br /><br /><table border=\"0\" cellpadding=\"2\" cellspacing=\"0\"><tbody><tr><td class=\"field_label\">{fullname_lbl}</td><td class=\"field_label\">{fullname}</td></tr><tr><td class=\"field_label\">{state_lbl}</td><td class=\"field_label\">{state}</td></tr><tr><td class=\"field_label\">{country_lbl}</td><td class=\"field_label\">{country}</td></tr><tr><td class=\"field_label\">{vatnumber_lbl}</td><td class=\"field_label\">{vatnumber}</td></tr><tr><td class=\"field_label\">{email_lbl}</td><td class=\"field_label\">{email}</td></tr><tr><td colspan=\"2\">{edit_account_link}</td></tr></tbody></table></td><td><table><tbody><tr><td>{order_image}{order_title}</td></tr>{order_loop_start}<tr><td>{order_index} {order_id} {order_detail_link}</td></tr>{order_loop_end}</tbody></table></td><td><table><tbody><tr><td>{coupon_image}{coupon_title}</td></tr>{coupon_loop_start}<tr><td>{coupon_code_lbl} {coupon_code}</td></tr><tr><td>{coupon_value_lbl} {coupon_value}</td></tr>{coupon_loop_end}</tbody></table></td></tr><tr><td>{shipping_image}<strong>{shipping_title}</strong> <br /><br /><table><tbody><tr><td>{edit_shipping_link}</td></tr></tbody></table></td></tr><tr><td>{tag_image}<strong>{tag_title}</strong> <br /><br /><table><tbody><tr><td>{edit_tag_link}</td></tr></tbody></table></td></tr><tr><td>{wishlist_image}<strong>{wishlist_title}</strong> <br /><br /><table><tbody><tr><td>{edit_wishlist_link}</td></tr></tbody></table></td></tr><tr><td>{compare_image}<strong>{compare_title}</strong> <br /><br /><table><tbody><tr><td>{edit_compare_link}</td></tr></tbody></table></td></tr><tr><td>{logout_link}</td></tr></tbody></table></td></tr></tbody></table>',1),(101,'Catalog','catalog','<div id=\"katalog_wrapper\">\r\n<div id=\"bestil_katalog_wrapper\">\r\n<div id=\"katalog_overskrift\">\r\n<h1>Bestil Katalog</h1>\r\n</div>\r\n<div id=\"katalog_venstre_wrapper\">\r\n<div id=\"katalog_tekst\">\r\n<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris eget nisi orci, vel vehicula massa. Phasellus ipsum est, egestas a consequat eget, placerat vitae ipsum. Proin ac purus risus. Quisque nec nisi lacus, vitae iaculis eros. Donec ipsum diam, dictum ac euismod molestie, ultrices eget arcu. Vestibulum lacinia nisl et odio sagittis fermentum. Aliquam tristique volutpat faucibus. Sed id orci ut metus condimentum bibendum. Ut gravida scelerisque magna et pharetra. Ut vel turpis in orci molestie scelerisque. Proin nisl elit, ullamcorper id blandit nec, congue eget augue. Nullam gravida ligula nisi.</p>\r\n</div>\r\n<div>Catalog:{catalog_select}</div>\r\n<div id=\"katalog_navn_email\">NAVN  {name} <br/><br/>EMAIL {email_address} <br/><br/>{submit_button_catalog}</div>\r\n</div>\r\n<div id=\"katalog_hojre_wrapper\">\r\n<div id=\"katalog_hojre_billede\"></div>\r\n</div>\r\n</div>\r\n<div id=\"midterstreg_katalog_farve\"></div>\r\n<div id=\"bestil_farveproeve_wrapper\"></div>\r\n</div>',1),(102,'Catalog Sample','product_sample','<div id=\"katalog_wrapper\">\r\n<div id=\"bestil_katalog_wrapper\">\r\n<div id=\"katalog_hojre_wrapper\">\r\n<div id=\"katalog_hojre_billede\"></div>\r\n</div>\r\n</div>\r\n<div id=\"midterstreg_katalog_farve\"></div>\r\n<div id=\"bestil_farveproeve_wrapper\">\r\n<div id=\"farveproeve_overskrift\">\r\n<h2>Bestil Farveprover</h2>\r\n</div>\r\n<div id=\"farveproeve_venstre\">\r\n<div id=\"farveproever_tekst\">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris eget nisi orci, vel vehicula massa. Phasellus ipsum est, egestas a consequat eget, placerat vitae ipsum. Proin ac purus risus. Quisque nec nisi lacus, vitae iaculis eros. Donec ipsum diam, dictum ac euismod molestie, ultrices eget arcu. Vestibulum lacinia nisl et odio sagittis fermentum. Aliquam tristique volutpat faucibus. Sed id orci ut metus condimentum bibendum. Ut gravida scelerisque magna et pharetra. Ut vel turpis in orci molestie scelerisque. Proin nisl elit, ullamcorper id blandit nec, congue eget augue. Nullam gravida ligula nisi.</div>\r\n<div id=\"farveproever\">\r\n<p style=\"text-align: left;\">{product_samples}</p>\r\n</div>\r\n</div>\r\n<div id=\"farveproeve_hojre_wrapper\">\r\n<div id=\"farveproeve_addressefelt\">\r\n<p style=\"text-align: left;\">{address_fields}</p>\r\n</div>\r\n<div id=\"farveproeve_sendknap\">\r\n<p style=\"text-align: left;\">{submit_button_sample}</p>\r\n</div>\r\n</div>\r\n</div>\r\n</div>',1),(103,'Wishlist List','wishlist_template','<div style=\"float: right;\">{mail_link}</div>{product_loop_start}<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\" width=\"100%\"><tbody><tr valign=\"top\"><td width=\"40%\"><div style=\"float: left; width: 195px; height: 230px; text-align: center;\">{product_thumb_image}<div>{product_name}</div><div>{product_price}</div><div>{form_addtocart:templet1}</div><div> </div><div>{remove_product_link}</div></div>		</td></tr></tbody></table><div> </div><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">	<tbody><tr> <td> <div></div> </td><td align=\"center\" valign=\"top\"><br><br></td> </tr></tbody></table>{product_loop_end}<div style=\"float: right;\">{back_link}</div>',1),(105,'Wishlist Mail','wishlist_mail_template','<table cellpadding=\"10\" cellspacing=\"10\"><tr><th colspan=\"2\">{email_to_friend}</th></tr><tr><td>{emailto_lbl}</td><td>{emailto}</td></tr><tr><td>{sender_lbl}</td><td>{sender}</td></tr><tr><td>{mail_lbl}</td><td>{mail}</td></tr><tr><td>{subject_lbl}</td><td>{subject}</td></tr><tr><td>	{cancel_button}</td><td>	{send_button}</td></tr></table>',1),(1,'Wrapper','wrapper_template','<div class=\"accessory\">\r\n<div class=\"accessory_info\">\r\n<h2>Product Wrapper</h2>\r\nSelect Wrapper by clicking in the box.</div>\r\n<div class=\"wrapper_box\">\r\n<div class=\"wrapper_left\">\r\n<div class=\"wrapper_image\">{wrapper_dropdown}</div>\r\n</div>\r\n<div class=\"wrapper_left\">\r\n<div class=\"wrapper_image\">{wrapper_image}</div>\r\n<div class=\"wrapper_price\">{wrapper_price}</div>\r\n</div>\r\n<div class=\"wrapper_left\">\r\n<div class=\"wrapper_image\">{wrapper_add_checkbox}</div>\r\n</div>\r\n</div>\r\n</div>',1);

--
-- Table structure for table `jos_redshop_textlibrary`
--

CREATE TABLE `jos_redshop_textlibrary` (
  `textlibrary_id` int(11) NOT NULL AUTO_INCREMENT,
  `text_name` varchar(255) DEFAULT NULL,
  `text_desc` varchar(255) DEFAULT NULL,
  `text_field` text,
  `section` varchar(255) NOT NULL,
  `published` tinyint(4) NOT NULL,
  PRIMARY KEY (`textlibrary_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='redSHOP TextLibrary';

--
-- Dumping data for table `jos_redshop_textlibrary`
--


--
-- Table structure for table `jos_redshop_users_info`
--

CREATE TABLE `jos_redshop_users_info` (
  `users_info_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `address_type` varchar(11) NOT NULL,
  `firstname` varchar(250) NOT NULL,
  `lastname` varchar(250) NOT NULL,
  `vat_number` varchar(250) NOT NULL,
  `tax_exempt` tinyint(4) NOT NULL,
  `shopper_group_id` int(11) NOT NULL,
  `country_code` varchar(11) NOT NULL,
  `state_code` varchar(11) NOT NULL,
  `zipcode` varchar(255) NOT NULL,
  `tax_exempt_approved` tinyint(1) NOT NULL,
  `approved` tinyint(1) NOT NULL,
  `is_company` tinyint(4) NOT NULL,
  `user_email` varchar(255) NOT NULL,
  `address` varchar(255) NOT NULL,
  `city` varchar(50) NOT NULL,
  `phone` varchar(50) NOT NULL,
  `company_name` varchar(255) NOT NULL,
  PRIMARY KEY (`users_info_id`)
) ENGINE=MyISAM AUTO_INCREMENT=20 DEFAULT CHARSET=utf8 COMMENT='redSHOP Users Information';

--
-- Dumping data for table `jos_redshop_users_info`
--


--
-- Table structure for table `jos_redshop_wishlist`
--

CREATE TABLE `jos_redshop_wishlist` (
  `wishlist_id` int(11) NOT NULL AUTO_INCREMENT,
  `product_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `comment` mediumtext NOT NULL,
  `cdate` double NOT NULL,
  PRIMARY KEY (`wishlist_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='redSHOP wishlist';

--
-- Dumping data for table `jos_redshop_wishlist`
--


--
-- Table structure for table `jos_redshop_wrapper`
--

CREATE TABLE `jos_redshop_wrapper` (
  `wrapper_id` int(11) NOT NULL AUTO_INCREMENT,
  `product_id` varchar(255) NOT NULL,
  `wrapper_name` varchar(255) NOT NULL,
  `wrapper_price` double NOT NULL,
  `wrapper_image` varchar(255) NOT NULL,
  `wrapper_use_to_all` tinyint(4) NOT NULL,
  `published` tinyint(4) NOT NULL,
  `createdate` tinyint(4) NOT NULL,
  PRIMARY KEY (`wrapper_id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='redSHOP Wrapper';

--
-- Dumping data for table `jos_redshop_wrapper`
--


--
-- Table structure for table `jos_sections`
--

CREATE TABLE `jos_sections` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(255) NOT NULL DEFAULT '',
  `name` varchar(255) NOT NULL DEFAULT '',
  `alias` varchar(255) NOT NULL DEFAULT '',
  `image` text NOT NULL,
  `scope` varchar(50) NOT NULL DEFAULT '',
  `image_position` varchar(30) NOT NULL DEFAULT '',
  `description` text NOT NULL,
  `published` tinyint(1) NOT NULL DEFAULT '0',
  `checked_out` int(11) unsigned NOT NULL DEFAULT '0',
  `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `ordering` int(11) NOT NULL DEFAULT '0',
  `access` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `count` int(11) NOT NULL DEFAULT '0',
  `params` text NOT NULL,
  PRIMARY KEY (`id`),
  KEY `idx_scope` (`scope`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `jos_sections`
--

INSERT INTO `jos_sections` VALUES (1,'content','','content','','content','left','',1,0,'0000-00-00 00:00:00',1,0,2,''),(2,'Media','','media','','content','left','',1,0,'0000-00-00 00:00:00',2,0,4,''),(3,'Press Room','','press-room','','content','left','',1,0,'0000-00-00 00:00:00',3,0,4,'');

--
-- Table structure for table `jos_session`
--

CREATE TABLE `jos_session` (
  `username` varchar(150) DEFAULT '',
  `time` varchar(14) DEFAULT '',
  `session_id` varchar(200) NOT NULL DEFAULT '0',
  `guest` tinyint(4) DEFAULT '1',
  `userid` int(11) DEFAULT '0',
  `usertype` varchar(50) DEFAULT '',
  `gid` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `client_id` tinyint(3) unsigned NOT NULL DEFAULT '0',
  `data` longtext,
  PRIMARY KEY (`session_id`(64)),
  KEY `whosonline` (`guest`,`usertype`),
  KEY `userid` (`userid`),
  KEY `time` (`time`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `jos_session`
--

INSERT INTO `jos_session` VALUES ('','1401074491','a26e62354ff3ab45cd7072bfe0d0be3b',1,0,'',0,0,'__default|a:7:{s:15:\"session.counter\";i:1;s:19:\"session.timer.start\";i:1401074491;s:18:\"session.timer.last\";i:1401074491;s:17:\"session.timer.now\";i:1401074491;s:22:\"session.client.browser\";s:83:\"Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)\";s:8:\"registry\";O:9:\"JRegistry\":3:{s:17:\"_defaultNameSpace\";s:7:\"session\";s:9:\"_registry\";a:1:{s:7:\"session\";a:1:{s:4:\"data\";O:8:\"stdClass\":0:{}}}s:7:\"_errors\";a:0:{}}s:4:\"user\";O:5:\"JUser\":19:{s:2:\"id\";i:0;s:4:\"name\";N;s:8:\"username\";N;s:5:\"email\";N;s:8:\"password\";N;s:14:\"password_clear\";s:0:\"\";s:8:\"usertype\";N;s:5:\"block\";N;s:9:\"sendEmail\";i:0;s:3:\"gid\";i:0;s:12:\"registerDate\";N;s:13:\"lastvisitDate\";N;s:10:\"activation\";N;s:6:\"params\";N;s:3:\"aid\";i:0;s:5:\"guest\";i:1;s:7:\"_params\";O:10:\"JParameter\":7:{s:4:\"_raw\";s:0:\"\";s:4:\"_xml\";N;s:9:\"_elements\";a:0:{}s:12:\"_elementPath\";a:1:{i:0;s:83:\"/home/reitman/public_html/hollywoodisle.com/libraries/joomla/html/parameter/element\";}s:17:\"_defaultNameSpace\";s:8:\"_default\";s:9:\"_registry\";a:1:{s:8:\"_default\";a:1:{s:4:\"data\";O:8:\"stdClass\":0:{}}}s:7:\"_errors\";a:0:{}}s:9:\"_errorMsg\";N;s:7:\"_errors\";a:0:{}}}');

--
-- Table structure for table `jos_stats_agents`
--

CREATE TABLE `jos_stats_agents` (
  `agent` varchar(255) NOT NULL DEFAULT '',
  `type` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `hits` int(11) unsigned NOT NULL DEFAULT '1'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `jos_stats_agents`
--


--
-- Table structure for table `jos_templates_menu`
--

CREATE TABLE `jos_templates_menu` (
  `template` varchar(255) NOT NULL DEFAULT '',
  `menuid` int(11) NOT NULL DEFAULT '0',
  `client_id` tinyint(4) NOT NULL DEFAULT '0',
  PRIMARY KEY (`menuid`,`client_id`,`template`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `jos_templates_menu`
--

INSERT INTO `jos_templates_menu` VALUES ('yoo_blueprint',0,0),('jbcrisp',0,1);

--
-- Table structure for table `jos_users`
--

CREATE TABLE `jos_users` (
  `id` int(11) 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',
  `gid` tinyint(3) unsigned NOT NULL DEFAULT '1',
  `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,
  PRIMARY KEY (`id`),
  KEY `usertype` (`usertype`),
  KEY `idx_name` (`name`),
  KEY `gid_block` (`gid`,`block`),
  KEY `username` (`username`),
  KEY `email` (`email`)
) ENGINE=MyISAM AUTO_INCREMENT=68 DEFAULT CHARSET=utf8;

--
-- Dumping data for table `jos_users`
--

INSERT INTO `jos_users` VALUES (62,'Kevin Kerber','admin','topangacreek@gmail.com','0c53046b71751d37ee6cbb6f6ac2da5f','Super Administrator',0,0,25,'2010-06-08 00:17:26','2012-03-09 19:23:05','',''),(63,'Greg','greg','greg@bluewatercompany.com','498a62e985f46529e82690b22e3022f6:ty2vKQMtIzNQYBmPSVcrIKSS4tdt7P3q','Administrator',0,0,24,'2010-06-08 00:51:18','2012-06-03 16:06:24','','admin_language=\nlanguage=\neditor=fckeditor\nhelpsite=\ntimezone=-8\n\n'),(64,'blueeunnichar','blueeunnichar','blueeunnichar@karbideus.info','f895220e427ac8553395904d743874af:FNQOJvwLLyye6bE7Ydm8vNk30pHBTe3z','Registered',0,0,18,'2013-09-05 23:10:43','2013-09-24 17:22:11','','\n'),(65,'freenicpeerr','freenicpeerr','freenicpeerr70@karbideus.info','1b2acbd21da0447d19f0299255ed7c70:XrjZqOo3heEUgUGgUFmAQxhLswti2a3v','Registered',0,0,18,'2013-09-11 11:33:08','2013-09-23 19:52:13','','\n'),(66,'Admin','adnin','Laurensaci774@hotmail.com','b0e2e132b690e2a4a2fa1076afbe5338:ZUUwMsKqAwG77KU4HPuEJX0ts2dYtntI','Registered',0,0,18,'2013-10-07 18:02:45','0000-00-00 00:00:00','','\n'),(67,'akunamatata','akunamatata','Go3vXriFxEaH@tempomailo.biz','d51eb48fb1c90a8de01dff40cdd22083:P9TA3ynvH5y1D1IKYROxpYRm0QUSS4lu','Registered',0,0,18,'2013-11-16 10:04:27','2013-11-16 14:33:16','59688a7927d1bf671130a0f9610ef165:$1$e1ccbb99$','\n');

--
-- Table structure for table `jos_vm_auth_group`
--

CREATE TABLE `jos_vm_auth_group` (
  `group_id` int(11) NOT NULL AUTO_INCREMENT,
  `group_name` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
  `group_level` int(11) DEFAULT NULL,
  PRIMARY KEY (`group_id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Holds all the user groups';

--
-- Dumping data for table `jos_vm_auth_group`
--

INSERT INTO `jos_vm_auth_group` VALUES (1,'admin',0),(2,'storeadmin',250),(3,'shopper',500),(4,'demo',750);

--
-- Table structure for table `jos_vm_auth_user_group`
--

CREATE TABLE `jos_vm_auth_user_group` (
  `user_id` int(11) NOT NULL DEFAULT '0',
  `group_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Maps the user to user groups';

--
-- Dumping data for table `jos_vm_auth_user_group`
--

INSERT INTO `jos_vm_auth_user_group` VALUES (62,2);

--
-- Table structure for table `jos_vm_auth_user_vendor`
--

CREATE TABLE `jos_vm_auth_user_vendor` (
  `user_id` int(11) DEFAULT NULL,
  `vendor_id` int(11) DEFAULT NULL,
  KEY `idx_auth_user_vendor_user_id` (`user_id`),
  KEY `idx_auth_user_vendor_vendor_id` (`vendor_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Maps a user to a vendor';

--
-- Dumping data for table `jos_vm_auth_user_vendor`
--

INSERT INTO `jos_vm_auth_user_vendor` VALUES (62,1);

--
-- Table structure for table `jos_vm_cart`
--

CREATE TABLE `jos_vm_cart` (
  `user_id` int(11) NOT NULL,
  `cart_content` text COLLATE utf8_unicode_ci NOT NULL,
  `last_updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores the cart contents of a user';

--
-- Dumping data for table `jos_vm_cart`
--

INSERT INTO `jos_vm_cart` VALUES (62,'a:1:{s:3:\"idx\";i:0;}','2012-03-09 19:22:11');

--
-- Table structure for table `jos_vm_category`
--

CREATE TABLE `jos_vm_category` (
  `category_id` int(11) NOT NULL AUTO_INCREMENT,
  `vendor_id` int(11) NOT NULL DEFAULT '0',
  `category_name` varchar(128) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `category_description` text COLLATE utf8_unicode_ci,
  `category_thumb_image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `category_full_image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `category_publish` char(1) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cdate` int(11) DEFAULT NULL,
  `mdate` int(11) DEFAULT NULL,
  `category_browsepage` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'browse_1',
  `products_per_row` tinyint(2) NOT NULL DEFAULT '1',
  `category_flypage` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `list_order` int(11) DEFAULT NULL,
  PRIMARY KEY (`category_id`),
  KEY `idx_category_vendor_id` (`vendor_id`),
  KEY `idx_category_name` (`category_name`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Product Categories are stored here';

--
-- Dumping data for table `jos_vm_category`
--

INSERT INTO `jos_vm_category` VALUES (1,1,'Hollywood Isle Store','','','','Y',1275634843,1275642553,'eny_browse_default',2,'eny_fly_default.tpl',1);

--
-- Table structure for table `jos_vm_category_xref`
--

CREATE TABLE `jos_vm_category_xref` (
  `category_parent_id` int(11) NOT NULL DEFAULT '0',
  `category_child_id` int(11) NOT NULL DEFAULT '0',
  `category_list` int(11) DEFAULT NULL,
  PRIMARY KEY (`category_child_id`),
  KEY `category_xref_category_parent_id` (`category_parent_id`),
  KEY `idx_category_xref_category_list` (`category_list`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Category child-parent relation list';

--
-- Dumping data for table `jos_vm_category_xref`
--

INSERT INTO `jos_vm_category_xref` VALUES (0,1,NULL);

--
-- Table structure for table `jos_vm_country`
--

CREATE TABLE `jos_vm_country` (
  `country_id` int(11) NOT NULL AUTO_INCREMENT,
  `zone_id` int(11) NOT NULL DEFAULT '1',
  `country_name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  `country_3_code` char(3) COLLATE utf8_unicode_ci DEFAULT NULL,
  `country_2_code` char(2) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`country_id`),
  KEY `idx_country_name` (`country_name`)
) ENGINE=MyISAM AUTO_INCREMENT=246 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Country records';

--
-- Dumping data for table `jos_vm_country`
--

INSERT INTO `jos_vm_country` VALUES (1,1,'Afghanistan','AFG','AF'),(2,1,'Albania','ALB','AL'),(3,1,'Algeria','DZA','DZ'),(4,1,'American Samoa','ASM','AS'),(5,1,'Andorra','AND','AD'),(6,1,'Angola','AGO','AO'),(7,1,'Anguilla','AIA','AI'),(8,1,'Antarctica','ATA','AQ'),(9,1,'Antigua and Barbuda','ATG','AG'),(10,1,'Argentina','ARG','AR'),(11,1,'Armenia','ARM','AM'),(12,1,'Aruba','ABW','AW'),(13,1,'Australia','AUS','AU'),(14,1,'Austria','AUT','AT'),(15,1,'Azerbaijan','AZE','AZ'),(16,1,'Bahamas','BHS','BS'),(17,1,'Bahrain','BHR','BH'),(18,1,'Bangladesh','BGD','BD'),(19,1,'Barbados','BRB','BB'),(20,1,'Belarus','BLR','BY'),(21,1,'Belgium','BEL','BE'),(22,1,'Belize','BLZ','BZ'),(23,1,'Benin','BEN','BJ'),(24,1,'Bermuda','BMU','BM'),(25,1,'Bhutan','BTN','BT'),(26,1,'Bolivia','BOL','BO'),(27,1,'Bosnia and Herzegowina','BIH','BA'),(28,1,'Botswana','BWA','BW'),(29,1,'Bouvet Island','BVT','BV'),(30,1,'Brazil','BRA','BR'),(31,1,'British Indian Ocean Territory','IOT','IO'),(32,1,'Brunei Darussalam','BRN','BN'),(33,1,'Bulgaria','BGR','BG'),(34,1,'Burkina Faso','BFA','BF'),(35,1,'Burundi','BDI','BI'),(36,1,'Cambodia','KHM','KH'),(37,1,'Cameroon','CMR','CM'),(38,1,'Canada','CAN','CA'),(39,1,'Cape Verde','CPV','CV'),(40,1,'Cayman Islands','CYM','KY'),(41,1,'Central African Republic','CAF','CF'),(42,1,'Chad','TCD','TD'),(43,1,'Chile','CHL','CL'),(44,1,'China','CHN','CN'),(45,1,'Christmas Island','CXR','CX'),(46,1,'Cocos (Keeling) Islands','CCK','CC'),(47,1,'Colombia','COL','CO'),(48,1,'Comoros','COM','KM'),(49,1,'Congo','COG','CG'),(50,1,'Cook Islands','COK','CK'),(51,1,'Costa Rica','CRI','CR'),(52,1,'Cote D\'Ivoire','CIV','CI'),(53,1,'Croatia','HRV','HR'),(54,1,'Cuba','CUB','CU'),(55,1,'Cyprus','CYP','CY'),(56,1,'Czech Republic','CZE','CZ'),(57,1,'Denmark','DNK','DK'),(58,1,'Djibouti','DJI','DJ'),(59,1,'Dominica','DMA','DM'),(60,1,'Dominican Republic','DOM','DO'),(61,1,'East Timor','TMP','TP'),(62,1,'Ecuador','ECU','EC'),(63,1,'Egypt','EGY','EG'),(64,1,'El Salvador','SLV','SV'),(65,1,'Equatorial Guinea','GNQ','GQ'),(66,1,'Eritrea','ERI','ER'),(67,1,'Estonia','EST','EE'),(68,1,'Ethiopia','ETH','ET'),(69,1,'Falkland Islands (Malvinas)','FLK','FK'),(70,1,'Faroe Islands','FRO','FO'),(71,1,'Fiji','FJI','FJ'),(72,1,'Finland','FIN','FI'),(73,1,'France','FRA','FR'),(74,1,'France, Metropolitan','FXX','FX'),(75,1,'French Guiana','GUF','GF'),(76,1,'French Polynesia','PYF','PF'),(77,1,'French Southern Territories','ATF','TF'),(78,1,'Gabon','GAB','GA'),(79,1,'Gambia','GMB','GM'),(80,1,'Georgia','GEO','GE'),(81,1,'Germany','DEU','DE'),(82,1,'Ghana','GHA','GH'),(83,1,'Gibraltar','GIB','GI'),(84,1,'Greece','GRC','GR'),(85,1,'Greenland','GRL','GL'),(86,1,'Grenada','GRD','GD'),(87,1,'Guadeloupe','GLP','GP'),(88,1,'Guam','GUM','GU'),(89,1,'Guatemala','GTM','GT'),(90,1,'Guinea','GIN','GN'),(91,1,'Guinea-bissau','GNB','GW'),(92,1,'Guyana','GUY','GY'),(93,1,'Haiti','HTI','HT'),(94,1,'Heard and Mc Donald Islands','HMD','HM'),(95,1,'Honduras','HND','HN'),(96,1,'Hong Kong','HKG','HK'),(97,1,'Hungary','HUN','HU'),(98,1,'Iceland','ISL','IS'),(99,1,'India','IND','IN'),(100,1,'Indonesia','IDN','ID'),(101,1,'Iran (Islamic Republic of)','IRN','IR'),(102,1,'Iraq','IRQ','IQ'),(103,1,'Ireland','IRL','IE'),(104,1,'Israel','ISR','IL'),(105,1,'Italy','ITA','IT'),(106,1,'Jamaica','JAM','JM'),(107,1,'Japan','JPN','JP'),(108,1,'Jordan','JOR','JO'),(109,1,'Kazakhstan','KAZ','KZ'),(110,1,'Kenya','KEN','KE'),(111,1,'Kiribati','KIR','KI'),(112,1,'Korea, Democratic People\'s Republic of','PRK','KP'),(113,1,'Korea, Republic of','KOR','KR'),(114,1,'Kuwait','KWT','KW'),(115,1,'Kyrgyzstan','KGZ','KG'),(116,1,'Lao People\'s Democratic Republic','LAO','LA'),(117,1,'Latvia','LVA','LV'),(118,1,'Lebanon','LBN','LB'),(119,1,'Lesotho','LSO','LS'),(120,1,'Liberia','LBR','LR'),(121,1,'Libyan Arab Jamahiriya','LBY','LY'),(122,1,'Liechtenstein','LIE','LI'),(123,1,'Lithuania','LTU','LT'),(124,1,'Luxembourg','LUX','LU'),(125,1,'Macau','MAC','MO'),(126,1,'Macedonia, The Former Yugoslav Republic of','MKD','MK'),(127,1,'Madagascar','MDG','MG'),(128,1,'Malawi','MWI','MW'),(129,1,'Malaysia','MYS','MY'),(130,1,'Maldives','MDV','MV'),(131,1,'Mali','MLI','ML'),(132,1,'Malta','MLT','MT'),(133,1,'Marshall Islands','MHL','MH'),(134,1,'Martinique','MTQ','MQ'),(135,1,'Mauritania','MRT','MR'),(136,1,'Mauritius','MUS','MU'),(137,1,'Mayotte','MYT','YT'),(138,1,'Mexico','MEX','MX'),(139,1,'Micronesia, Federated States of','FSM','FM'),(140,1,'Moldova, Republic of','MDA','MD'),(141,1,'Monaco','MCO','MC'),(142,1,'Mongolia','MNG','MN'),(143,1,'Montserrat','MSR','MS'),(144,1,'Morocco','MAR','MA'),(145,1,'Mozambique','MOZ','MZ'),(146,1,'Myanmar','MMR','MM'),(147,1,'Namibia','NAM','NA'),(148,1,'Nauru','NRU','NR'),(149,1,'Nepal','NPL','NP'),(150,1,'Netherlands','NLD','NL'),(151,1,'Netherlands Antilles','ANT','AN'),(152,1,'New Caledonia','NCL','NC'),(153,1,'New Zealand','NZL','NZ'),(154,1,'Nicaragua','NIC','NI'),(155,1,'Niger','NER','NE'),(156,1,'Nigeria','NGA','NG'),(157,1,'Niue','NIU','NU'),(158,1,'Norfolk Island','NFK','NF'),(159,1,'Northern Mariana Islands','MNP','MP'),(160,1,'Norway','NOR','NO'),(161,1,'Oman','OMN','OM'),(162,1,'Pakistan','PAK','PK'),(163,1,'Palau','PLW','PW'),(164,1,'Panama','PAN','PA'),(165,1,'Papua New Guinea','PNG','PG'),(166,1,'Paraguay','PRY','PY'),(167,1,'Peru','PER','PE'),(168,1,'Philippines','PHL','PH'),(169,1,'Pitcairn','PCN','PN'),(170,1,'Poland','POL','PL'),(171,1,'Portugal','PRT','PT'),(172,1,'Puerto Rico','PRI','PR'),(173,1,'Qatar','QAT','QA'),(174,1,'Reunion','REU','RE'),(175,1,'Romania','ROM','RO'),(176,1,'Russian Federation','RUS','RU'),(177,1,'Rwanda','RWA','RW'),(178,1,'Saint Kitts and Nevis','KNA','KN'),(179,1,'Saint Lucia','LCA','LC'),(180,1,'Saint Vincent and the Grenadines','VCT','VC'),(181,1,'Samoa','WSM','WS'),(182,1,'San Marino','SMR','SM'),(183,1,'Sao Tome and Principe','STP','ST'),(184,1,'Saudi Arabia','SAU','SA'),(185,1,'Senegal','SEN','SN'),(186,1,'Seychelles','SYC','SC'),(187,1,'Sierra Leone','SLE','SL'),(188,1,'Singapore','SGP','SG'),(189,1,'Slovakia (Slovak Republic)','SVK','SK'),(190,1,'Slovenia','SVN','SI'),(191,1,'Solomon Islands','SLB','SB'),(192,1,'Somalia','SOM','SO'),(193,1,'South Africa','ZAF','ZA'),(194,1,'South Georgia and the South Sandwich Islands','SGS','GS'),(195,1,'Spain','ESP','ES'),(196,1,'Sri Lanka','LKA','LK'),(197,1,'St. Helena','SHN','SH'),(198,1,'St. Pierre and Miquelon','SPM','PM'),(199,1,'Sudan','SDN','SD'),(200,1,'Suriname','SUR','SR'),(201,1,'Svalbard and Jan Mayen Islands','SJM','SJ'),(202,1,'Swaziland','SWZ','SZ'),(203,1,'Sweden','SWE','SE'),(204,1,'Switzerland','CHE','CH'),(205,1,'Syrian Arab Republic','SYR','SY'),(206,1,'Taiwan','TWN','TW'),(207,1,'Tajikistan','TJK','TJ'),(208,1,'Tanzania, United Republic of','TZA','TZ'),(209,1,'Thailand','THA','TH'),(210,1,'Togo','TGO','TG'),(211,1,'Tokelau','TKL','TK'),(212,1,'Tonga','TON','TO'),(213,1,'Trinidad and Tobago','TTO','TT'),(214,1,'Tunisia','TUN','TN'),(215,1,'Turkey','TUR','TR'),(216,1,'Turkmenistan','TKM','TM'),(217,1,'Turks and Caicos Islands','TCA','TC'),(218,1,'Tuvalu','TUV','TV'),(219,1,'Uganda','UGA','UG'),(220,1,'Ukraine','UKR','UA'),(221,1,'United Arab Emirates','ARE','AE'),(222,1,'United Kingdom','GBR','GB'),(223,1,'United States','USA','US'),(224,1,'United States Minor Outlying Islands','UMI','UM'),(225,1,'Uruguay','URY','UY'),(226,1,'Uzbekistan','UZB','UZ'),(227,1,'Vanuatu','VUT','VU'),(228,1,'Vatican City State (Holy See)','VAT','VA'),(229,1,'Venezuela','VEN','VE'),(230,1,'Viet Nam','VNM','VN'),(231,1,'Virgin Islands (British)','VGB','VG'),(232,1,'Virgin Islands (U.S.)','VIR','VI'),(233,1,'Wallis and Futuna Islands','WLF','WF'),(234,1,'Western Sahara','ESH','EH'),(235,1,'Yemen','YEM','YE'),(236,1,'Serbia','SRB','RS'),(237,1,'The Democratic Republic of Congo','DRC','DC'),(238,1,'Zambia','ZMB','ZM'),(239,1,'Zimbabwe','ZWE','ZW'),(240,1,'East Timor','XET','XE'),(241,1,'Jersey','XJE','XJ'),(242,1,'St. Barthelemy','XSB','XB'),(243,1,'St. Eustatius','XSE','XU'),(244,1,'Canary Islands','XCA','XC'),(245,1,'Montenegro','MNE','ME');

--
-- Table structure for table `jos_vm_coupons`
--

CREATE TABLE `jos_vm_coupons` (
  `coupon_id` int(16) NOT NULL AUTO_INCREMENT,
  `coupon_code` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `percent_or_total` enum('percent','total') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'percent',
  `coupon_type` enum('gift','permanent') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'gift',
  `coupon_value` decimal(12,2) NOT NULL DEFAULT '0.00',
  PRIMARY KEY (`coupon_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Used to store coupon codes';

--
-- Dumping data for table `jos_vm_coupons`
--


--
-- Table structure for table `jos_vm_creditcard`
--

CREATE TABLE `jos_vm_creditcard` (
  `creditcard_id` int(11) NOT NULL AUTO_INCREMENT,
  `vendor_id` int(11) NOT NULL DEFAULT '0',
  `creditcard_name` varchar(70) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `creditcard_code` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`creditcard_id`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Used to store credit card types';

--
-- Dumping data for table `jos_vm_creditcard`
--

INSERT INTO `jos_vm_creditcard` VALUES (1,1,'Visa','VISA'),(2,1,'MasterCard','MC'),(3,1,'American Express','amex'),(4,1,'Discover Card','discover'),(5,1,'Diners Club','diners'),(6,1,'JCB','jcb'),(7,1,'Australian Bankcard','australian_bc');

--
-- Table structure for table `jos_vm_csv`
--

CREATE TABLE `jos_vm_csv` (
  `field_id` int(11) NOT NULL AUTO_INCREMENT,
  `field_name` varchar(128) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `field_default_value` text COLLATE utf8_unicode_ci,
  `field_ordering` int(3) NOT NULL DEFAULT '0',
  `field_required` char(1) COLLATE utf8_unicode_ci DEFAULT 'N',
  PRIMARY KEY (`field_id`)
) ENGINE=MyISAM AUTO_INCREMENT=26 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Holds all fields which are used on CVS Ex-/Import';

--
-- Dumping data for table `jos_vm_csv`
--

INSERT INTO `jos_vm_csv` VALUES (1,'product_sku','',1,'Y'),(2,'product_s_desc','',5,'N'),(3,'product_desc','',6,'N'),(4,'product_thumb_image','',7,'N'),(5,'product_full_image','',8,'N'),(6,'product_weight','',9,'N'),(7,'product_weight_uom','KG',10,'N'),(8,'product_length','',11,'N'),(9,'product_width','',12,'N'),(10,'product_height','',13,'N'),(11,'product_lwh_uom','',14,'N'),(12,'product_in_stock','0',15,'N'),(13,'product_available_date','',16,'N'),(14,'product_discount_id','',17,'N'),(15,'product_name','',2,'Y'),(16,'product_price','',4,'N'),(17,'category_path','',3,'Y'),(18,'manufacturer_id','',18,'N'),(19,'product_tax_id','',19,'N'),(20,'product_sales','',20,'N'),(21,'product_parent_id','0',21,'N'),(22,'attribute','',22,'N'),(23,'custom_attribute','',23,'N'),(24,'attributes','',24,'N'),(25,'attribute_values','',25,'N');

--
-- Table structure for table `jos_vm_currency`
--

CREATE TABLE `jos_vm_currency` (
  `currency_id` int(11) NOT NULL AUTO_INCREMENT,
  `currency_name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  `currency_code` char(3) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`currency_id`),
  KEY `idx_currency_name` (`currency_name`)
) ENGINE=MyISAM AUTO_INCREMENT=159 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Used to store currencies';

--
-- Dumping data for table `jos_vm_currency`
--

INSERT INTO `jos_vm_currency` VALUES (1,'Andorran Peseta','ADP'),(2,'United Arab Emirates Dirham','AED'),(3,'Afghanistan Afghani','AFA'),(4,'Albanian Lek','ALL'),(5,'Netherlands Antillian Guilder','ANG'),(6,'Angolan Kwanza','AOK'),(7,'Argentine Peso','ARS'),(9,'Australian Dollar','AUD'),(10,'Aruban Florin','AWG'),(11,'Barbados Dollar','BBD'),(12,'Bangladeshi Taka','BDT'),(14,'Bulgarian Lev','BGL'),(15,'Bahraini Dinar','BHD'),(16,'Burundi Franc','BIF'),(17,'Bermudian Dollar','BMD'),(18,'Brunei Dollar','BND'),(19,'Bolivian Boliviano','BOB'),(20,'Brazilian Real','BRL'),(21,'Bahamian Dollar','BSD'),(22,'Bhutan Ngultrum','BTN'),(23,'Burma Kyat','BUK'),(24,'Botswanian Pula','BWP'),(25,'Belize Dollar','BZD'),(26,'Canadian Dollar','CAD'),(27,'Swiss Franc','CHF'),(28,'Chilean Unidades de Fomento','CLF'),(29,'Chilean Peso','CLP'),(30,'Yuan (Chinese) Renminbi','CNY'),(31,'Colombian Peso','COP'),(32,'Costa Rican Colon','CRC'),(33,'Czech Koruna','CZK'),(34,'Cuban Peso','CUP'),(35,'Cape Verde Escudo','CVE'),(36,'Cyprus Pound','CYP'),(40,'Danish Krone','DKK'),(41,'Dominican Peso','DOP'),(42,'Algerian Dinar','DZD'),(43,'Ecuador Sucre','ECS'),(44,'Egyptian Pound','EGP'),(46,'Ethiopian Birr','ETB'),(47,'Euro','EUR'),(49,'Fiji Dollar','FJD'),(50,'Falkland Islands Pound','FKP'),(52,'British Pound','GBP'),(53,'Ghanaian Cedi','GHC'),(54,'Gibraltar Pound','GIP'),(55,'Gambian Dalasi','GMD'),(56,'Guinea Franc','GNF'),(58,'Guatemalan Quetzal','GTQ'),(59,'Guinea-Bissau Peso','GWP'),(60,'Guyanan Dollar','GYD'),(61,'Hong Kong Dollar','HKD'),(62,'Honduran Lempira','HNL'),(63,'Haitian Gourde','HTG'),(64,'Hungarian Forint','HUF'),(65,'Indonesian Rupiah','IDR'),(66,'Irish Punt','IEP'),(67,'Israeli Shekel','ILS'),(68,'Indian Rupee','INR'),(69,'Iraqi Dinar','IQD'),(70,'Iranian Rial','IRR'),(73,'Jamaican Dollar','JMD'),(74,'Jordanian Dinar','JOD'),(75,'Japanese Yen','JPY'),(76,'Kenyan Shilling','KES'),(77,'Kampuchean (Cambodian) Riel','KHR'),(78,'Comoros Franc','KMF'),(79,'North Korean Won','KPW'),(80,'(South) Korean Won','KRW'),(81,'Kuwaiti Dinar','KWD'),(82,'Cayman Islands Dollar','KYD'),(83,'Lao Kip','LAK'),(84,'Lebanese Pound','LBP'),(85,'Sri Lanka Rupee','LKR'),(86,'Liberian Dollar','LRD'),(87,'Lesotho Loti','LSL'),(89,'Libyan Dinar','LYD'),(90,'Moroccan Dirham','MAD'),(91,'Malagasy Franc','MGF'),(92,'Mongolian Tugrik','MNT'),(93,'Macau Pataca','MOP'),(94,'Mauritanian Ouguiya','MRO'),(95,'Maltese Lira','MTL'),(96,'Mauritius Rupee','MUR'),(97,'Maldive Rufiyaa','MVR'),(98,'Malawi Kwacha','MWK'),(99,'Mexican Peso','MXP'),(100,'Malaysian Ringgit','MYR'),(101,'Mozambique Metical','MZM'),(102,'Nigerian Naira','NGN'),(103,'Nicaraguan Cordoba','NIC'),(105,'Norwegian Kroner','NOK'),(106,'Nepalese Rupee','NPR'),(107,'New Zealand Dollar','NZD'),(108,'Omani Rial','OMR'),(109,'Panamanian Balboa','PAB'),(110,'Peruvian Nuevo Sol','PEN'),(111,'Papua New Guinea Kina','PGK'),(112,'Philippine Peso','PHP'),(113,'Pakistan Rupee','PKR'),(114,'Polish Złoty','PLN'),(116,'Paraguay Guarani','PYG'),(117,'Qatari Rial','QAR'),(118,'Romanian Leu','RON'),(119,'Rwanda Franc','RWF'),(120,'Saudi Arabian Riyal','SAR'),(121,'Solomon Islands Dollar','SBD'),(122,'Seychelles Rupee','SCR'),(123,'Sudanese Pound','SDP'),(124,'Swedish Krona','SEK'),(125,'Singapore Dollar','SGD'),(126,'St. Helena Pound','SHP'),(127,'Sierra Leone Leone','SLL'),(128,'Somali Shilling','SOS'),(129,'Suriname Guilder','SRG'),(130,'Sao Tome and Principe Dobra','STD'),(131,'Russian Ruble','RUB'),(132,'El Salvador Colon','SVC'),(133,'Syrian Potmd','SYP'),(134,'Swaziland Lilangeni','SZL'),(135,'Thai Bath','THB'),(136,'Tunisian Dinar','TND'),(137,'Tongan Pa\'anga','TOP'),(138,'East Timor Escudo','TPE'),(139,'Turkish Lira','TRY'),(140,'Trinidad and Tobago Dollar','TTD'),(141,'Taiwan Dollar','TWD'),(142,'Tanzanian Shilling','TZS'),(143,'Uganda Shilling','UGS'),(144,'US Dollar','USD'),(145,'Uruguayan Peso','UYP'),(146,'Venezualan Bolivar','VEB'),(147,'Vietnamese Dong','VND'),(148,'Vanuatu Vatu','VUV'),(149,'Samoan Tala','WST'),(150,'Democratic Yemeni Dinar','YDD'),(151,'Yemeni Rial','YER'),(152,'Dinar','RSD'),(153,'South African Rand','ZAR'),(154,'Zambian Kwacha','ZMK'),(155,'Zaire Zaire','ZRZ'),(156,'Zimbabwe Dollar','ZWD'),(157,'Slovak Koruna','SKK'),(158,'Armenian Dram','AMD');

--
-- Table structure for table `jos_vm_export`
--

CREATE TABLE `jos_vm_export` (
  `export_id` int(11) NOT NULL AUTO_INCREMENT,
  `vendor_id` int(11) DEFAULT NULL,
  `export_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `export_desc` text COLLATE utf8_unicode_ci NOT NULL,
  `export_class` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  `export_enabled` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'N',
  `export_config` text COLLATE utf8_unicode_ci NOT NULL,
  `iscore` tinyint(3) NOT NULL DEFAULT '0',
  PRIMARY KEY (`export_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Export Modules';

--
-- Dumping data for table `jos_vm_export`
--


--
-- Table structure for table `jos_vm_function`
--

CREATE TABLE `jos_vm_function` (
  `function_id` int(11) NOT NULL AUTO_INCREMENT,
  `module_id` int(11) DEFAULT NULL,
  `function_name` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `function_class` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `function_method` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `function_description` text COLLATE utf8_unicode_ci,
  `function_perms` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`function_id`),
  KEY `idx_function_module_id` (`module_id`),
  KEY `idx_function_name` (`function_name`)
) ENGINE=MyISAM AUTO_INCREMENT=195 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Used to map a function alias to a ''real'' class::function';

--
-- Dumping data for table `jos_vm_function`
--

INSERT INTO `jos_vm_function` VALUES (1,1,'userAdd','ps_user','add','','admin,storeadmin'),(2,1,'userDelete','ps_user','delete','','admin,storeadmin'),(3,1,'userUpdate','ps_user','update','','admin,storeadmin'),(31,2,'productAdd','ps_product','add','','admin,storeadmin'),(6,1,'functionAdd','ps_function','add','','admin'),(7,1,'functionUpdate','ps_function','update','','admin'),(8,1,'functionDelete','ps_function','delete','','admin'),(9,1,'userLogout','ps_user','logout','','none'),(10,1,'userAddressAdd','ps_user_address','add','','admin,storeadmin,shopper,demo'),(11,1,'userAddressUpdate','ps_user_address','update','','admin,storeadmin,shopper'),(12,1,'userAddressDelete','ps_user_address','delete','','admin,storeadmin,shopper'),(13,1,'moduleAdd','ps_module','add','','admin'),(14,1,'moduleUpdate','ps_module','update','','admin'),(15,1,'moduleDelete','ps_module','delete','','admin'),(16,1,'userLogin','ps_user','login','','none'),(17,3,'vendorAdd','ps_vendor','add','','admin'),(18,3,'vendorUpdate','ps_vendor','update','','admin,storeadmin'),(19,3,'vendorDelete','ps_vendor','delete','','admin'),(20,3,'vendorCategoryAdd','ps_vendor_category','add','','admin'),(21,3,'vendorCategoryUpdate','ps_vendor_category','update','','admin'),(22,3,'vendorCategoryDelete','ps_vendor_category','delete','','admin'),(23,4,'shopperAdd','ps_shopper','add','','none'),(24,4,'shopperDelete','ps_shopper','delete','','admin,storeadmin'),(25,4,'shopperUpdate','ps_shopper','update','','admin,storeadmin,shopper'),(26,4,'shopperGroupAdd','ps_shopper_group','add','','admin,storeadmin'),(27,4,'shopperGroupUpdate','ps_shopper_group','update','','admin,storeadmin'),(28,4,'shopperGroupDelete','ps_shopper_group','delete','','admin,storeadmin'),(30,5,'orderStatusSet','ps_order','order_status_update','','admin,storeadmin'),(32,2,'productDelete','ps_product','delete','','admin,storeadmin'),(33,2,'productUpdate','ps_product','update','','admin,storeadmin'),(34,2,'productCategoryAdd','ps_product_category','add','','admin,storeadmin'),(35,2,'productCategoryUpdate','ps_product_category','update','','admin,storeadmin'),(36,2,'productCategoryDelete','ps_product_category','delete','','admin,storeadmin'),(37,2,'productPriceAdd','ps_product_price','add','','admin,storeadmin'),(38,2,'productPriceUpdate','ps_product_price','update','','admin,storeadmin'),(39,2,'productPriceDelete','ps_product_price','delete','','admin,storeadmin'),(40,2,'productAttributeAdd','ps_product_attribute','add','','admin,storeadmin'),(41,2,'productAttributeUpdate','ps_product_attribute','update','','admin,storeadmin'),(42,2,'productAttributeDelete','ps_product_attribute','delete','','admin,storeadmin'),(43,7,'cartAdd','ps_cart','add','','none'),(44,7,'cartUpdate','ps_cart','update','','none'),(45,7,'cartDelete','ps_cart','delete','','none'),(46,10,'checkoutComplete','ps_checkout','add','','shopper,storeadmin,admin'),(48,8,'paymentMethodUpdate','ps_payment_method','update','','admin,storeadmin'),(49,8,'paymentMethodAdd','ps_payment_method','add','','admin,storeadmin'),(50,8,'paymentMethodDelete','ps_payment_method','delete','','admin,storeadmin'),(51,5,'orderDelete','ps_order','delete','','admin,storeadmin'),(52,11,'addTaxRate','ps_tax','add','','admin,storeadmin'),(53,11,'updateTaxRate','ps_tax','update','','admin,storeadmin'),(54,11,'deleteTaxRate','ps_tax','delete','','admin,storeadmin'),(55,10,'checkoutValidateST','ps_checkout','validate_shipto','','none'),(59,5,'orderStatusUpdate','ps_order_status','update','','admin,storeadmin'),(60,5,'orderStatusAdd','ps_order_status','add','','storeadmin,admin'),(61,5,'orderStatusDelete','ps_order_status','delete','','admin,storeadmin'),(62,1,'currencyAdd','ps_currency','add','add a currency','storeadmin,admin'),(63,1,'currencyUpdate','ps_currency','update','        update a currency','storeadmin,admin'),(64,1,'currencyDelete','ps_currency','delete','delete a currency','storeadmin,admin'),(65,1,'countryAdd','ps_country','add','Add a country ','storeadmin,admin'),(66,1,'countryUpdate','ps_country','update','Update a country record','storeadmin,admin'),(67,1,'countryDelete','ps_country','delete','Delete a country record','storeadmin,admin'),(68,2,'product_csv','ps_csv','upload_csv','','admin'),(110,7,'waitingListAdd','zw_waiting_list','add','','none'),(111,13,'addzone','ps_zone','add','This will add a zone','admin,storeadmin'),(112,13,'updatezone','ps_zone','update','This will update a zone','admin,storeadmin'),(113,13,'deletezone','ps_zone','delete','This will delete a zone','admin,storeadmin'),(114,13,'zoneassign','ps_zone','assign','This will assign a country to a zone','admin,storeadmin'),(115,1,'writeConfig','ps_config','writeconfig','This will write the configuration details to virtuemart.cfg.php','admin'),(116,12839,'carrierAdd','ps_shipping','add','','admin,storeadmin'),(117,12839,'carrierDelete','ps_shipping','delete','','admin,storeadmin'),(118,12839,'carrierUpdate','ps_shipping','update','','admin,storeadmin'),(119,12839,'rateAdd','ps_shipping','rate_add','','admin,storeadmin'),(120,12839,'rateUpdate','ps_shipping','rate_update','','admin,shopadmin'),(121,12839,'rateDelete','ps_shipping','rate_delete','','admin,storeadmin'),(122,10,'checkoutProcess','ps_checkout','process','','none'),(123,5,'downloadRequest','ps_order','download_request','This checks if the download request is valid and sends the file to the browser as file download if the request was successful, otherwise echoes an error','none'),(128,99,'manufacturerAdd','ps_manufacturer','add','','admin,storeadmin'),(129,99,'manufacturerUpdate','ps_manufacturer','update','','admin,storeadmin'),(130,99,'manufacturerDelete','ps_manufacturer','delete','','admin,storeadmin'),(131,99,'manufacturercategoryAdd','ps_manufacturer_category','add','','admin,storeadmin'),(132,99,'manufacturercategoryUpdate','ps_manufacturer_category','update','','admin,storeadmin'),(133,99,'manufacturercategoryDelete','ps_manufacturer_category','delete','','admin,storeadmin'),(134,7,'addReview','ps_reviews','process_review','This lets the user add a review and rating to a product.','admin,storeadmin,shopper,demo'),(135,7,'productReviewDelete','ps_reviews','delete_review','This deletes a review and from a product.','admin,storeadmin'),(136,8,'creditcardAdd','ps_creditcard','add','Adds a Credit Card entry.','admin,storeadmin'),(137,8,'creditcardUpdate','ps_creditcard','update','Updates a Credit Card entry.','admin,storeadmin'),(138,8,'creditcardDelete','ps_creditcard','delete','Deletes a Credit Card entry.','admin,storeadmin'),(139,2,'changePublishState','vmAbstractObject.class','handlePublishState','Changes the publish field of an item, so that it can be published or unpublished easily.','admin,storeadmin'),(140,2,'export_csv','ps_csv','export_csv','This function exports all relevant product data to CSV.','admin,storeadmin'),(141,2,'reorder','ps_product_category','reorder','Changes the list order of a category.','admin,storeadmin'),(142,2,'discountAdd','ps_product_discount','add','Adds a discount.','admin,storeadmin'),(143,2,'discountUpdate','ps_product_discount','update','Updates a discount.','admin,storeadmin'),(144,2,'discountDelete','ps_product_discount','delete','Deletes a discount.','admin,storeadmin'),(145,8,'shippingmethodSave','ps_shipping_method','save','','admin,storeadmin'),(146,2,'uploadProductFile','ps_product_files','add','Uploads and Adds a Product Image/File.','admin,storeadmin'),(147,2,'updateProductFile','ps_product_files','update','Updates a Product Image/File.','admin,storeadmin'),(148,2,'deleteProductFile','ps_product_files','delete','Deletes a Product Image/File.','admin,storeadmin'),(149,12843,'couponAdd','ps_coupon','add_coupon_code','Adds a Coupon.','admin,storeadmin'),(150,12843,'couponUpdate','ps_coupon','update_coupon','Updates a Coupon.','admin,storeadmin'),(151,12843,'couponDelete','ps_coupon','remove_coupon_code','Deletes a Coupon.','admin,storeadmin'),(152,12843,'couponProcess','ps_coupon','process_coupon_code','Processes a Coupon.','admin,storeadmin,shopper,demo'),(153,2,'ProductTypeAdd','ps_product_type','add','Function add a Product Type and create new table product_type_<id>.','admin'),(154,2,'ProductTypeUpdate','ps_product_type','update','Update a Product Type.','admin'),(155,2,'ProductTypeDelete','ps_product_type','delete','Delete a Product Type and drop table product_type_<id>.','admin'),(156,2,'ProductTypeReorder','ps_product_type','reorder','Changes the list order of a Product Type.','admin'),(157,2,'ProductTypeAddParam','ps_product_type_parameter','add_parameter','Function add a Parameter into a Product Type and create new column in table product_type_<id>.','admin'),(158,2,'ProductTypeUpdateParam','ps_product_type_parameter','update_parameter','Function update a Parameter in a Product Type and a column in table product_type_<id>.','admin'),(159,2,'ProductTypeDeleteParam','ps_product_type_parameter','delete_parameter','Function delete a Parameter from a Product Type and drop a column in table product_type_<id>.','admin'),(160,2,'ProductTypeReorderParam','ps_product_type_parameter','reorder_parameter','Changes the list order of a Parameter.','admin'),(161,2,'productProductTypeAdd','ps_product_product_type','add','Add a Product into a Product Type.','admin,storeadmin'),(162,2,'productProductTypeDelete','ps_product_product_type','delete','Delete a Product from a Product Type.','admin,storeadmin'),(163,1,'stateAdd','ps_country','addState','Add a State ','storeadmin,admin'),(164,1,'stateUpdate','ps_country','updateState','Update a state record','storeadmin,admin'),(165,1,'stateDelete','ps_country','deleteState','Delete a state record','storeadmin,admin'),(166,2,'csvFieldAdd','ps_csv','add','Add a CSV Field ','storeadmin,admin'),(167,2,'csvFieldUpdate','ps_csv','update','Update a CSV Field','storeadmin,admin'),(168,2,'csvFieldDelete','ps_csv','delete','Delete a CSV Field','storeadmin,admin'),(169,1,'userfieldSave','ps_userfield','savefield','add or edit a user field','admin'),(170,1,'userfieldDelete','ps_userfield','deletefield','','admin'),(171,1,'changeordering','vmAbstractObject.class','handleordering','','admin'),(172,2,'moveProduct','ps_product','move','Move products from one category to another.','admin,storeadmin'),(173,7,'productAsk','ps_communication','mail_question','Lets the customer send a question about a specific product.','none'),(174,7,'recommendProduct','ps_communication','sendRecommendation','Lets the customer send a recommendation about a specific product to a friend.','none'),(175,2,'reviewUpdate','ps_reviews','update','Modify a review about a specific product.','admin'),(176,8,'ExportUpdate','ps_export','update','','admin,storeadmin'),(177,8,'ExportAdd','ps_export','add','','admin,storeadmin'),(178,8,'ExportDelete','ps_export','delete','','admin,storeadmin'),(179,1,'writeThemeConfig','ps_config','writeThemeConfig','Writes a theme configuration file.','admin'),(180,1,'usergroupAdd','usergroup.class','add','Add a new user group','admin'),(181,1,'usergroupUpdate','usergroup.class','update','Update an user group','admin'),(182,1,'usergroupDelete','usergroup.class','delete','Delete an user group','admin'),(183,1,'setModulePermissions','ps_module','update_permissions','','admin'),(184,1,'setFunctionPermissions','ps_function','update_permissions','','admin'),(185,2,'insertDownloadsForProduct','ps_order','insert_downloads_for_product','','admin'),(186,5,'mailDownloadId','ps_order','mail_download_id','','storeadmin,admin'),(187,7,'replaceSavedCart','ps_cart','replaceCart','Replace cart with saved cart','none'),(188,7,'mergeSavedCart','ps_cart','mergeSaved','Merge saved cart with cart','none'),(189,7,'deleteSavedCart','ps_cart','deleteCart','Delete saved cart','none'),(190,7,'savedCartDelete','ps_cart','deleteSaved','Delete items from saved cart','none'),(191,7,'savedCartUpdate','ps_cart','updateSaved','Update saved cart items','none'),(192,1,'getupdatepackage','update.class','getPatchPackage','Retrieves the Patch Package from the virtuemart.net Servers.','admin'),(193,1,'applypatchpackage','update.class','applyPatch','Applies the Patch using the instructions from the update.xml file in the downloaded patch.','admin'),(194,1,'removePatchPackage','update.class','removePackageFile','Removes  a Patch Package File and its extracted contents.','admin');

--
-- Table structure for table `jos_vm_manufacturer`
--

CREATE TABLE `jos_vm_manufacturer` (
  `manufacturer_id` int(11) NOT NULL AUTO_INCREMENT,
  `mf_name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mf_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mf_desc` text COLLATE utf8_unicode_ci,
  `mf_category_id` int(11) DEFAULT NULL,
  `mf_url` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`manufacturer_id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Manufacturers are those who create products';

--
-- Dumping data for table `jos_vm_manufacturer`
--

INSERT INTO `jos_vm_manufacturer` VALUES (1,'Manufacturer','info@manufacturer.com','An example for a manufacturer',1,'http://www.a-url.com');

--
-- Table structure for table `jos_vm_manufacturer_category`
--

CREATE TABLE `jos_vm_manufacturer_category` (
  `mf_category_id` int(11) NOT NULL AUTO_INCREMENT,
  `mf_category_name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mf_category_desc` text COLLATE utf8_unicode_ci,
  PRIMARY KEY (`mf_category_id`),
  KEY `idx_manufacturer_category_category_name` (`mf_category_name`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Manufacturers are assigned to these categories';

--
-- Dumping data for table `jos_vm_manufacturer_category`
--

INSERT INTO `jos_vm_manufacturer_category` VALUES (1,'-default-','This is the default manufacturer category');

--
-- Table structure for table `jos_vm_module`
--

CREATE TABLE `jos_vm_module` (
  `module_id` int(11) NOT NULL AUTO_INCREMENT,
  `module_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `module_description` text COLLATE utf8_unicode_ci,
  `module_perms` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `module_publish` char(1) COLLATE utf8_unicode_ci DEFAULT NULL,
  `list_order` int(11) DEFAULT NULL,
  PRIMARY KEY (`module_id`),
  KEY `idx_module_name` (`module_name`),
  KEY `idx_module_list_order` (`list_order`)
) ENGINE=MyISAM AUTO_INCREMENT=12844 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='VirtueMart Core Modules, not: Joomla modules';

--
-- Dumping data for table `jos_vm_module`
--

INSERT INTO `jos_vm_module` VALUES (1,'admin','<h4>ADMINISTRATIVE USERS ONLY</h4>\r\n\r\n<p>Only used for the following:</p>\r\n<OL>\r\n\r\n<LI>User Maintenance</LI>\r\n<LI>Module Maintenance</LI>\r\n<LI>Function Maintenance</LI>\r\n</OL>\r\n','admin','Y',1),(2,'product','<p>Here you can adminster your online catalog of products.  The Product Administrator allows you to create product categories, create new products, edit product attributes, and add product items for each attribute value.</p>','admin,storeadmin','Y',4),(3,'vendor','<h4>ADMINISTRATIVE USERS ONLY</h4>\r\n<p>Here you can manage the vendors on the phpShop system.</p>','admin','Y',6),(4,'shopper','<p>Manage shoppers in your store.  Allows you to create shopper groups.  Shopper groups can be used when setting the price for a product.  This allows you to create different prices for different types of users.  An example of this would be to have a \'wholesale\' group and a \'retail\' group. </p>','admin,storeadmin','Y',4),(5,'order','<p>View Order and Update Order Status.</p>','admin,storeadmin','Y',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','N',99),(7,'shop','This is the Washupito store module.  This is the demo store included with the phpShop distribution.','none','Y',99),(8,'store','','admin,storeadmin','Y',2),(9,'account','This module allows shoppers to update their account information and view previously placed orders.','admin,storeadmin,shopper,demo','N',99),(10,'checkout','','none','N',99),(11,'tax','The tax module allows you to set tax rates for states or regions within a country.  The rate is set as a decimal figure.  For example, 2 percent tax would be 0.02.','admin,storeadmin','Y',8),(12,'reportbasic','The report basic module allows you to do queries on all orders.','admin,storeadmin','Y',7),(13,'zone','This is the zone-shipping module. Here you can manage your shipping costs according to Zones.','admin,storeadmin','N',9),(12839,'shipping','<h4>Shipping</h4><p>Let this module calculate the shipping fees for your customers.<br>Create carriers for shipping areas and weight groups.</p>','admin,storeadmin','Y',10),(99,'manufacturer','Manage the manufacturers of products in your store.','admin,storeadmin','Y',12),(12842,'help','Help Module','admin,storeadmin','Y',13),(12843,'coupon','Coupon Management','admin,storeadmin','Y',11);

--
-- Table structure for table `jos_vm_order_history`
--

CREATE TABLE `jos_vm_order_history` (
  `order_status_history_id` int(11) NOT NULL AUTO_INCREMENT,
  `order_id` int(11) NOT NULL DEFAULT '0',
  `order_status_code` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
  `date_added` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `customer_notified` int(1) DEFAULT '0',
  `comments` text COLLATE utf8_unicode_ci,
  PRIMARY KEY (`order_status_history_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores all actions and changes that occur to an order';

--
-- Dumping data for table `jos_vm_order_history`
--

INSERT INTO `jos_vm_order_history` VALUES (1,1,'P','2010-06-08 00:35:13',1,''),(2,2,'P','2010-06-08 02:06:35',1,'');

--
-- Table structure for table `jos_vm_order_item`
--

CREATE TABLE `jos_vm_order_item` (
  `order_item_id` int(11) NOT NULL AUTO_INCREMENT,
  `order_id` int(11) DEFAULT NULL,
  `user_info_id` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `vendor_id` int(11) DEFAULT NULL,
  `product_id` int(11) DEFAULT NULL,
  `order_item_sku` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `order_item_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `product_quantity` int(11) DEFAULT NULL,
  `product_item_price` decimal(15,5) DEFAULT NULL,
  `product_final_price` decimal(12,2) NOT NULL DEFAULT '0.00',
  `order_item_currency` varchar(16) COLLATE utf8_unicode_ci DEFAULT NULL,
  `order_status` char(1) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cdate` int(11) DEFAULT NULL,
  `mdate` int(11) DEFAULT NULL,
  `product_attribute` text COLLATE utf8_unicode_ci,
  PRIMARY KEY (`order_item_id`),
  KEY `idx_order_item_order_id` (`order_id`),
  KEY `idx_order_item_user_info_id` (`user_info_id`),
  KEY `idx_order_item_vendor_id` (`vendor_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores all items (products) which are part of an order';

--
-- Dumping data for table `jos_vm_order_item`
--

INSERT INTO `jos_vm_order_item` VALUES (1,1,'9d5c25df33e7c2ea5ed81a4da790597b',1,1,'01dvd','DVD',1,24.95000,24.95,'USD','P',1275957313,1275957313,''),(2,2,'9d5c25df33e7c2ea5ed81a4da790597b',1,2,'02vhs','VHS',1,19.95000,19.95,'USD','P',1275962795,1275962795,'');

--
-- Table structure for table `jos_vm_order_payment`
--

CREATE TABLE `jos_vm_order_payment` (
  `order_id` int(11) NOT NULL DEFAULT '0',
  `payment_method_id` int(11) DEFAULT NULL,
  `order_payment_code` varchar(30) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `order_payment_number` blob,
  `order_payment_expire` int(11) DEFAULT NULL,
  `order_payment_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `order_payment_log` text COLLATE utf8_unicode_ci,
  `order_payment_trans_id` text COLLATE utf8_unicode_ci NOT NULL,
  KEY `idx_order_payment_order_id` (`order_id`),
  KEY `idx_order_payment_method_id` (`payment_method_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='The payment method that was chosen for a specific order';

--
-- Dumping data for table `jos_vm_order_payment`
--

INSERT INTO `jos_vm_order_payment` VALUES (1,4,'',NULL,NULL,NULL,'',''),(2,4,'',NULL,NULL,NULL,'','');

--
-- Table structure for table `jos_vm_order_status`
--

CREATE TABLE `jos_vm_order_status` (
  `order_status_id` int(11) NOT NULL AUTO_INCREMENT,
  `order_status_code` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `order_status_name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  `order_status_description` text COLLATE utf8_unicode_ci NOT NULL,
  `list_order` int(11) DEFAULT NULL,
  `vendor_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`order_status_id`),
  KEY `idx_order_status_list_order` (`list_order`),
  KEY `idx_order_status_vendor_id` (`vendor_id`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='All available order statuses';

--
-- Dumping data for table `jos_vm_order_status`
--

INSERT INTO `jos_vm_order_status` VALUES (1,'P','Pending','',1,1),(2,'C','Confirmed','',2,1),(3,'X','Cancelled','',3,1),(4,'R','Refunded','',4,1),(5,'S','Shipped','',5,1);

--
-- Table structure for table `jos_vm_order_user_info`
--

CREATE TABLE `jos_vm_order_user_info` (
  `order_info_id` int(11) NOT NULL AUTO_INCREMENT,
  `order_id` int(11) NOT NULL DEFAULT '0',
  `user_id` int(11) NOT NULL DEFAULT '0',
  `address_type` char(2) COLLATE utf8_unicode_ci DEFAULT NULL,
  `address_type_name` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `company` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  `title` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `last_name` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `first_name` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `middle_name` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `phone_1` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `phone_2` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fax` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `address_1` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `address_2` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  `city` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `state` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `country` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'US',
  `zip` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `user_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `extra_field_1` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `extra_field_2` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `extra_field_3` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `extra_field_4` char(1) COLLATE utf8_unicode_ci DEFAULT NULL,
  `extra_field_5` char(1) COLLATE utf8_unicode_ci DEFAULT NULL,
  `bank_account_nr` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `bank_name` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `bank_sort_code` varchar(16) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `bank_iban` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `bank_account_holder` varchar(48) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `bank_account_type` enum('Checking','Business Checking','Savings') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Checking',
  PRIMARY KEY (`order_info_id`),
  KEY `idx_order_info_order_id` (`order_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores the BillTo and ShipTo Information at order time';

--
-- Dumping data for table `jos_vm_order_user_info`
--

INSERT INTO `jos_vm_order_user_info` VALUES (1,1,62,'BT',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,'','','US','','topangacreek@gmail.com',NULL,NULL,NULL,NULL,NULL,'','','','','','Checking'),(2,2,62,'BT',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,'','','US','','topangacreek@gmail.com',NULL,NULL,NULL,NULL,NULL,'','','','','','Checking');

--
-- Table structure for table `jos_vm_orders`
--

CREATE TABLE `jos_vm_orders` (
  `order_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL DEFAULT '0',
  `vendor_id` int(11) NOT NULL DEFAULT '0',
  `order_number` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `user_info_id` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `order_total` decimal(15,5) NOT NULL DEFAULT '0.00000',
  `order_subtotal` decimal(15,5) DEFAULT NULL,
  `order_tax` decimal(10,2) DEFAULT NULL,
  `order_tax_details` text COLLATE utf8_unicode_ci NOT NULL,
  `order_shipping` decimal(10,2) DEFAULT NULL,
  `order_shipping_tax` decimal(10,2) DEFAULT NULL,
  `coupon_discount` decimal(12,2) NOT NULL DEFAULT '0.00',
  `coupon_code` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `order_discount` decimal(12,2) NOT NULL DEFAULT '0.00',
  `order_currency` varchar(16) COLLATE utf8_unicode_ci DEFAULT NULL,
  `order_status` char(1) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cdate` int(11) DEFAULT NULL,
  `mdate` int(11) DEFAULT NULL,
  `ship_method_id` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `customer_note` text COLLATE utf8_unicode_ci NOT NULL,
  `ip_address` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`order_id`),
  KEY `idx_orders_user_id` (`user_id`),
  KEY `idx_orders_vendor_id` (`vendor_id`),
  KEY `idx_orders_order_number` (`order_number`),
  KEY `idx_orders_user_info_id` (`user_info_id`),
  KEY `idx_orders_ship_method_id` (`ship_method_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Used to store all orders';

--
-- Dumping data for table `jos_vm_orders`
--

INSERT INTO `jos_vm_orders` VALUES (1,62,1,'62_f333e906c63959a0b25806dd1f4cd','9d5c25df33e7c2ea5ed81a4da790597b',24.95000,24.95000,0.00,'a:0:{}',0.00,0.00,0.00,'',0.00,'USD','P',1275957313,1275957313,'','','173.11.19.46'),(2,62,1,'62_826fd945cea23676fd4ee29fc4a89','9d5c25df33e7c2ea5ed81a4da790597b',19.95000,19.95000,0.00,'a:0:{}',0.00,0.00,0.00,'',0.00,'USD','P',1275962795,1275962795,'','','173.11.19.46');

--
-- Table structure for table `jos_vm_payment_method`
--

CREATE TABLE `jos_vm_payment_method` (
  `payment_method_id` int(11) NOT NULL AUTO_INCREMENT,
  `vendor_id` int(11) DEFAULT NULL,
  `payment_method_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `payment_class` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `shopper_group_id` int(11) DEFAULT NULL,
  `payment_method_discount` decimal(12,2) DEFAULT NULL,
  `payment_method_discount_is_percent` tinyint(1) NOT NULL,
  `payment_method_discount_max_amount` decimal(10,2) NOT NULL,
  `payment_method_discount_min_amount` decimal(10,2) NOT NULL,
  `list_order` int(11) DEFAULT NULL,
  `payment_method_code` varchar(8) COLLATE utf8_unicode_ci DEFAULT NULL,
  `enable_processor` char(1) COLLATE utf8_unicode_ci DEFAULT NULL,
  `is_creditcard` tinyint(1) NOT NULL DEFAULT '0',
  `payment_enabled` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'N',
  `accepted_creditcards` varchar(128) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `payment_extrainfo` text COLLATE utf8_unicode_ci NOT NULL,
  `payment_passkey` blob NOT NULL,
  PRIMARY KEY (`payment_method_id`),
  KEY `idx_payment_method_vendor_id` (`vendor_id`),
  KEY `idx_payment_method_name` (`payment_method_name`),
  KEY `idx_payment_method_list_order` (`list_order`),
  KEY `idx_payment_method_shopper_group_id` (`shopper_group_id`)
) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='The payment methods of your store';

--
-- Dumping data for table `jos_vm_payment_method`
--

INSERT INTO `jos_vm_payment_method` VALUES (1,1,'Purchase Order','',6,0.00,0,0.00,0.00,4,'PO','N',0,'N','','',''),(2,1,'Cash On Delivery','',5,-2.00,0,0.00,0.00,5,'COD','N',0,'N','','',''),(3,1,'Credit Card','ps_authorize',5,0.00,0,0.00,0.00,0,'AN','Y',0,'N','1,2,6,7,','',''),(4,1,'PayPal','ps_paypal',5,0.00,0,0.00,0.00,0,'PP','P',0,'Y','','<?php\r\n$db1 = new ps_DB();\r\n$q = \"SELECT country_2_code FROM #__vm_country WHERE country_3_code=\'\".$user->country.\"\' ORDER BY country_2_code ASC\";\r\n$db1->query($q);\r\n\r\n$url = \"https://www.paypal.com/cgi-bin/webscr\";\r\n$tax_total = $db->f(\"order_tax\") + $db->f(\"order_shipping_tax\");\r\n$discount_total = $db->f(\"coupon_discount\") + $db->f(\"order_discount\");\r\n$post_variables = Array(\r\n\"cmd\" => \"_ext-enter\",\r\n\"redirect_cmd\" => \"_xclick\",\r\n\"upload\" => \"1\",\r\n\"business\" => PAYPAL_EMAIL,\r\n\"receiver_email\" => PAYPAL_EMAIL,\r\n\"item_name\" => $VM_LANG->_(\'PHPSHOP_ORDER_PRINT_PO_NUMBER\').\": \". $db->f(\"order_id\"),\r\n\"order_id\" => $db->f(\"order_id\"),\r\n\"invoice\" => $db->f(\"order_number\"),\r\n\"amount\" => round( $db->f(\"order_subtotal\")+$tax_total-$discount_total, 2),\r\n\"shipping\" => sprintf(\"%.2f\", $db->f(\"order_shipping\")),\r\n\"currency_code\" => $_SESSION[\'vendor_currency\'],\r\n\r\n\"address_override\" => \"1\",\r\n\"first_name\" => $dbbt->f(\'first_name\'),\r\n\"last_name\" => $dbbt->f(\'last_name\'),\r\n\"address1\" => $dbbt->f(\'address_1\'),\r\n\"address2\" => $dbbt->f(\'address_2\'),\r\n\"zip\" => $dbbt->f(\'zip\'),\r\n\"city\" => $dbbt->f(\'city\'),\r\n\"state\" => $dbbt->f(\'state\'),\r\n\"country\" => $db1->f(\'country_2_code\'),\r\n\"email\" => $dbbt->f(\'user_email\'),\r\n\"night_phone_b\" => $dbbt->f(\'phone_1\'),\r\n\"cpp_header_image\" => $vendor_image_url,\r\n\r\n\"return\" => SECUREURL .\"index.php?option=com_virtuemart&page=checkout.result&order_id=\".$db->f(\"order_id\"),\r\n\"notify_url\" => SECUREURL .\"administrator/components/com_virtuemart/notify.php\",\r\n\"cancel_return\" => SECUREURL .\"index.php\",\r\n\"undefined_quantity\" => \"0\",\r\n\r\n\"test_ipn\" => PAYPAL_DEBUG,\r\n\"pal\" => \"NRUBJXESJTY24\",\r\n\"no_shipping\" => \"1\",\r\n\"no_note\" => \"1\"\r\n);\r\nif( $page == \"checkout.thankyou\" ) {\r\n$query_string = \"?\";\r\nforeach( $post_variables as $name => $value ) {\r\n$query_string .= $name. \"=\" . urlencode($value) .\"&\";\r\n}\r\nvmRedirect( $url . $query_string );\r\n} else {\r\necho \'<form action=\"\'.$url.\'\" method=\"post\" target=\"_blank\">\';\r\necho \'<input type=\"image\" name=\"submit\" src=\"https://www.paypal.com/en_US/i/btn/x-click-but6.gif\" alt=\"Click to pay with PayPal - it is fast, free and secure!\" />\';\r\n\r\nforeach( $post_variables as $name => $value ) {\r\necho \'<input type=\"hidden\" name=\"\'.$name.\'\" value=\"\'.htmlspecialchars($value).\'\" />\';\r\n}\r\necho \'</form>\';\r\n\r\n}\r\n?>',''),(5,1,'PayMate','ps_paymate',5,0.00,0,0.00,0.00,0,'PM','P',0,'N','','<script type=\"text/javascript\" language=\"javascript\">\n  function openExpress(){\n      var url = \'https://www.paymate.com/PayMate/ExpressPayment?mid=<?php echo PAYMATE_USERNAME.\n          \"&amt=\".$db->f(\"order_total\").\n   \"&currency=\".$_SESSION[\'vendor_currency\'].\n       \"&ref=\".$db->f(\"order_id\").\n      \"&pmt_sender_email=\".$user->email.\n         \"&pmt_contact_firstname=\".$user->first_name.\n       \"&pmt_contact_surname=\".$user->last_name.\n          \"&regindi_address1=\".$user->address_1.\n     \"&regindi_address2=\".$user->address_2.\n     \"&regindi_sub=\".$user->city.\n       \"&regindi_pcode=\".$user->zip;?>\'\n        var newWin = window.open(url, \'wizard\', \'height=640,width=500,scrollbars=0,toolbar=no\');\n  self.name = \'parent\';\n       newWin.focus();\n  }\n  </script>\n  <div align=\"center\">\n  <p>\n  <a href=\"javascript:openExpress();\">\n  <img src=\"https://www.paymate.com/homepage/images/butt_PayNow.gif\" border=\"0\" alt=\"Pay with Paymate Express\">\n  <br />click here to pay your account</a>\n  </p>\n  </div>',''),(6,1,'WorldPay','ps_worldpay',5,0.00,0,0.00,0.00,0,'WP','P',0,'N','','<form action=\"https://select.worldpay.com/wcc/purchase\" method=\"post\">\n                                                <input type=hidden name=\"testMode\" value=\"100\"> \n                                                  <input type=\"hidden\" name=\"instId\" value=\"<?php echo WORLDPAY_INST_ID ?>\" />\n                                            <input type=\"hidden\" name=\"cartId\" value=\"<?php echo $db->f(\"order_id\") ?>\" />\n                                               <input type=\"hidden\" name=\"amount\" value=\"<?php echo $db->f(\"order_total\") ?>\" />\n                                            <input type=\"hidden\" name=\"currency\" value=\"<?php echo $_SESSION[\'vendor_currency\'] ?>\" />\n                                           <input type=\"hidden\" name=\"desc\" value=\"Products\" />\n                                            <input type=\"hidden\" name=\"email\" value=\"<?php echo $user->email?>\" />\n                                                 <input type=\"hidden\" name=\"address\" value=\"<?php echo $user->address_1?>&#10<?php echo $user->address_2?>&#10<?php echo\n                                                $user->city?>&#10<?php echo $user->state?>\" />\n                                             <input type=\"hidden\" name=\"name\" value=\"<?php echo $user->title?><?php echo $user->first_name?>. <?php echo $user->middle_name?><?php echo $user->last_name?>\" />\n                                           <input type=\"hidden\" name=\"country\" value=\"<?php echo $user->country?>\"/>\n                                              <input type=\"hidden\" name=\"postcode\" value=\"<?php echo $user->zip?>\" />\n                                                <input type=\"hidden\" name=\"tel\"  value=\"<?php echo $user->phone_1?>\">\n                                                  <input type=\"hidden\" name=\"withDelivery\"  value=\"true\">\n                                                 <br />\n                                                <input type=\"submit\" value =\"PROCEED TO PAYMENT PAGE\" />\n                                                  </form>',''),(7,1,'2Checkout','ps_twocheckout',5,0.00,0,0.00,0.00,0,'2CO','P',0,'N','','<?php\n      $q  = \"SELECT * FROM #__users WHERE user_info_id=\'\".$db->f(\"user_info_id\").\"\'\"; \n    $dbbt = new ps_DB;\n   $dbbt->setQuery($q);\n        $dbbt->query();\n      $dbbt->next_record(); \n       // Get ship_to information\n    if( $db->f(\"user_info_id\") != $dbbt->f(\"user_info_id\")) {\n         $q2  = \"SELECT * FROM #__vm_user_info WHERE user_info_id=\'\".$db->f(\"user_info_id\").\"\'\"; \n    $dbst = new ps_DB;\n   $dbst->setQuery($q2);\n       $dbst->query();\n      $dbst->next_record();\n      }\n     else  {\n         $dbst = $dbbt;\n    }\n                     \n      //Authnet vars to send\n        $formdata = array (\n   \'x_login\' => TWOCO_LOGIN,\n   \'x_email_merchant\' => ((TWOCO_MERCHANT_EMAIL == \'True\') ? \'TRUE\' : \'FALSE\'),\n                  \n      // Customer Name and Billing Address\n  \'x_first_name\' => $dbbt->f(\"first_name\"),\n        \'x_last_name\' => $dbbt->f(\"last_name\"),\n  \'x_company\' => $dbbt->f(\"company\"),\n      \'x_address\' => $dbbt->f(\"address_1\"),\n    \'x_city\' => $dbbt->f(\"city\"),\n    \'x_state\' => $dbbt->f(\"state\"),\n  \'x_zip\' => $dbbt->f(\"zip\"),\n      \'x_country\' => $dbbt->f(\"country\"),\n      \'x_phone\' => $dbbt->f(\"phone_1\"),\n        \'x_fax\' => $dbbt->f(\"fax\"),\n      \'x_email\' => $dbbt->f(\"email\"),\n \n       // Customer Shipping Address\n  \'x_ship_to_first_name\' => $dbst->f(\"first_name\"),\n        \'x_ship_to_last_name\' => $dbst->f(\"last_name\"),\n  \'x_ship_to_company\' => $dbst->f(\"company\"),\n      \'x_ship_to_address\' => $dbst->f(\"address_1\"),\n    \'x_ship_to_city\' => $dbst->f(\"city\"),\n    \'x_ship_to_state\' => $dbst->f(\"state\"),\n  \'x_ship_to_zip\' => $dbst->f(\"zip\"),\n      \'x_ship_to_country\' => $dbst->f(\"country\"),\n     \n       \'x_invoice_num\' => $db->f(\"order_number\"),\n       \'x_receipt_link_url\' => SECUREURL.\"2checkout_notify.php\"\n  );\n    \n     if( TWOCO_TESTMODE == \"Y\" )\n   $formdata[\'demo\'] = \"Y\";\n       \n       $version = \"2\";\n    $url = \"https://www2.2checkout.com/2co/buyer/purchase\";\n    $formdata[\'x_amount\'] = number_format($db->f(\"order_total\"), 2, \'.\', \'\');\n \n       //build the post string\n       $poststring = \'\';\n  foreach($formdata AS $key => $val){\n          $poststring .= \"<input type=\'hidden\' name=\'$key\' value=\'$val\' />\n \";\n    }\n    \n      ?>\n    <form action=\"<?php echo $url ?>\" method=\"post\" target=\"_blank\">\n       <?php echo $poststring ?>\n    <p>Click on the Image below to pay...</p>\n     <input type=\"image\" name=\"submit\" src=\"https://www.2checkout.com/images/buy_logo.gif\" border=\"0\" alt=\"Make payments with 2Checkout, it\'s fast and secure!\" title=\"Pay your Order with 2Checkout, it\'s fast and secure!\" />\n      </form>',''),(8,1,'NoChex','ps_nochex',5,0.00,0,0.00,0.00,0,'NOCHEX','P',0,'N','','<form action=\"https://www.nochex.com/nochex.dll/checkout\" method=post target=\"_blank\"> \n                                                                                     <input type=\"hidden\" name=\"email\" value=\"<?php echo NOCHEX_EMAIL ?>\" />\n                                                                                 <input type=\"hidden\" name=\"amount\" value=\"<?php printf(\"%.2f\", $db->f(\"order_total\"))?>\" />\n                                                                                        <input type=\"hidden\" name=\"ordernumber\" value=\"<?php $db->p(\"order_id\") ?>\" />\n                                                                                       <input type=\"hidden\" name=\"logo\" value=\"<?php echo $vendor_image_url ?>\" />\n                                                                                    <input type=\"hidden\" name=\"returnurl\" value=\"<?php echo SECUREURL .\"index.php?option=com_virtuemart&amp;page=checkout.result&amp;order_id=\".$db->f(\"order_id\") ?>\" />\n                                                                                      <input type=\"image\" name=\"submit\" src=\"http://www.nochex.com/web/images/paymeanimated.gif\"> \n                                                                                    </form>',''),(9,1,'Credit Card (PayMeNow)','ps_paymenow',5,0.00,0,0.00,0.00,0,'PN','Y',0,'N','1,2,3,','',''),(10,1,'eWay','ps_eway',5,0.00,0,0.00,0.00,0,'EWAY','Y',0,'N','','',''),(11,1,'eCheck.net','ps_echeck',5,0.00,0,0.00,0.00,0,'ECK','B',0,'N','','',''),(12,1,'Credit Card (eProcessingNetwork)','ps_epn',5,0.00,0,0.00,0.00,0,'EPN','Y',0,'N','1,2,3,','',''),(13,1,'iKobo','',5,0.00,0,0.00,0.00,0,'IK','P',0,'N','','<form action=\"https://www.iKobo.com/store/index.php\" method=\"post\"> \n  <input type=\"hidden\" name=\"cmd\" value=\"cart\" />Click on the image below to Pay with iKobo\n  <input type=\"image\" src=\"https://www.ikobo.com/merchant/buttons/ikobo_pay1.gif\" name=\"submit\" alt=\"Pay with iKobo\" /> \n  <input type=\"hidden\" name=\"poid\" value=\"USER_ID\" /> \n  <input type=\"hidden\" name=\"item\" value=\"Order: <?php $db->p(\"order_id\") ?>\" /> \n  <input type=\"hidden\" name=\"price\" value=\"<?php printf(\"%.2f\", $db->f(\"order_total\"))?>\" /> \n  <input type=\"hidden\" name=\"firstname\" value=\"<?php echo $user->first_name?>\" /> \n  <input type=\"hidden\" name=\"lastname\" value=\"<?php echo $user->last_name?>\" /> \n  <input type=\"hidden\" name=\"address\" value=\"<?php echo $user->address_1?>&#10<?php echo $user->address_2?>\" /> \n  <input type=\"hidden\" name=\"city\" value=\"<?php echo $user->city?>\" /> \n  <input type=\"hidden\" name=\"state\" value=\"<?php echo $user->state?>\" /> \n  <input type=\"hidden\" name=\"zip\" value=\"<?php echo $user->zip?>\" /> \n  <input type=\"hidden\" name=\"phone\" value=\"<?php echo $user->phone_1?>\" /> \n  <input type=\"hidden\" name=\"email\" value=\"<?php echo $user->email?>\" /> \n  </form> >',''),(14,1,'iTransact','',5,0.00,0,0.00,0.00,0,'ITR','P',0,'N','','<?php\n  //your iTransact account details\n  $vendorID = \"XXXXX\";\n  global $vendor_name;\n  $mername = $vendor_name;\n  \n  //order details\n  $total = $db->f(\"order_total\");$first_name = $user->first_name;$last_name = $user->last_name;$address = $user->address_1;$city = $user->city;$state = $user->state;$zip = $user->zip;$country = $user->country;$email = $user->email;$phone = $user->phone_1;$home_page = $mosConfig_live_site.\"/index.php\";$ret_addr = $mosConfig_live_site.\"/index.php\";$cc_payment_image = $mosConfig_live_site.\"/components/com_virtuemart/shop_image/ps_image/cc_payment.jpg\";\n  ?>\n  <form action=\"https://secure.paymentclearing.com/cgi-bin/mas/split.cgi\" method=\"POST\"> \n                <input type=\"hidden\" name=\"vendor_id\" value=\"<?php echo $vendorID; ?>\" />\n              <input type=\"hidden\" name=\"home_page\" value=\"<?php echo $home_page; ?>\" />\n             <input type=\"hidden\" name=\"ret_addr\" value=\"<?php echo $ret_addr; ?>\" />\n               <input type=\"hidden\" name=\"mername\" value=\"<?php echo $mername; ?>\" />\n         <!--Enter text in the next value that should appear on the bottom of the order form.-->\n               <INPUT type=\"hidden\" name=\"mertext\" value=\"\" />\n         <!--If you are accepting checks, enter the number 1 in the next value.  Enter the number 0 if you are not accepting checks.-->\n                <INPUT type=\"hidden\" name=\"acceptchecks\" value=\"0\" />\n           <!--Enter the number 1 in the next value if you want to allow pre-registered customers to pay with a check.  Enter the number 0 if not.-->\n            <INPUT type=\"hidden\" name=\"allowreg\" value=\"0\" />\n               <!--If you are set up with Check Guarantee, enter the number 1 in the next value.  Enter the number 0 if not.-->\n              <INPUT type=\"hidden\" name=\"checkguar\" value=\"0\" />\n              <!--Enter the number 1 in the next value if you are accepting credit card payments.  Enter the number zero if not.-->\n         <INPUT type=\"hidden\" name=\"acceptcards\" value=\"1\">\n              <!--Enter the number 1 in the next value if you want to allow a separate mailing address for credit card orders.  Enter the number 0 if not.-->\n               <INPUT type=\"hidden\" name=\"altaddr\" value=\"0\" />\n                <!--Enter the number 1 in the next value if you want the customer to enter the CVV number for card orders.  Enter the number 0 if not.-->\n             <INPUT type=\"hidden\" name=\"showcvv\" value=\"1\" />\n                \n              <input type=\"hidden\" name=\"1-desc\" value=\"Order Total\" />\n               <input type=\"hidden\" name=\"1-cost\" value=\"<?php echo $total; ?>\" />\n            <input type=\"hidden\" name=\"1-qty\" value=\"1\" />\n          <input type=\"hidden\" name=\"total\" value=\"<?php echo $total; ?>\" />\n             <input type=\"hidden\" name=\"first_name\" value=\"<?php echo $first_name; ?>\" />\n           <input type=\"hidden\" name=\"last_name\" value=\"<?php echo $last_name; ?>\" />\n             <input type=\"hidden\" name=\"address\" value=\"<?php echo $address; ?>\" />\n         <input type=\"hidden\" name=\"city\" value=\"<?php echo $city; ?>\" />\n               <input type=\"hidden\" name=\"state\" value=\"<?php echo $state; ?>\" />\n             <input type=\"hidden\" name=\"zip\" value=\"<?php echo $zip; ?>\" />\n         <input type=\"hidden\" name=\"country\" value=\"<?php echo $country; ?>\" />\n         <input type=\"hidden\" name=\"phone\" value=\"<?php echo $phone; ?>\" />\n             <input type=\"hidden\" name=\"email\" value=\"<?php echo $email; ?>\" />\n             <p><input type=\"image\" alt=\"Process Secure Credit Card Transaction using iTransact\" border=\"0\" height=\"60\" width=\"210\" src=\"<?php echo $cc_payment_image; ?>\" /> </p>\n            </form>',''),(15,1,'Verisign PayFlow Pro','payflow_pro',5,0.00,0,0.00,0.00,0,'PFP','Y',0,'N','1,2,6,7,','',''),(16,1,'Dankort/PBS via ePay','ps_epay',5,0.00,0,0.00,0.00,0,'EPAY','P',0,'N','','<?php\r\nrequire_once(CLASSPATH .\"payment/ps_epay.cfg.php\");\r\n$url=basename($mosConfig_live_site);\r\nfunction get_iso_code($code) {\r\nswitch ($code) {\r\ncase \"ADP\": return \"020\"; break;\r\ncase \"AED\": return \"784\"; break;\r\ncase \"AFA\": return \"004\"; break;\r\ncase \"ALL\": return \"008\"; break;\r\ncase \"AMD\": return \"051\"; break;\r\ncase \"ANG\": return \"532\"; break;\r\ncase \"AOA\": return \"973\"; break;\r\ncase \"ARS\": return \"032\"; break;\r\ncase \"AUD\": return \"036\"; break;\r\ncase \"AWG\": return \"533\"; break;\r\ncase \"AZM\": return \"031\"; break;\r\ncase \"BAM\": return \"977\"; break;\r\ncase \"BBD\": return \"052\"; break;\r\ncase \"BDT\": return \"050\"; break;\r\ncase \"BGL\": return \"100\"; break;\r\ncase \"BGN\": return \"975\"; break;\r\ncase \"BHD\": return \"048\"; break;\r\ncase \"BIF\": return \"108\"; break;\r\ncase \"BMD\": return \"060\"; break;\r\ncase \"BND\": return \"096\"; break;\r\ncase \"BOB\": return \"068\"; break;\r\ncase \"BOV\": return \"984\"; break;\r\ncase \"BRL\": return \"986\"; break;\r\ncase \"BSD\": return \"044\"; break;\r\ncase \"BTN\": return \"064\"; break;\r\ncase \"BWP\": return \"072\"; break;\r\ncase \"BYR\": return \"974\"; break;\r\ncase \"BZD\": return \"084\"; break;\r\ncase \"CAD\": return \"124\"; break;\r\ncase \"CDF\": return \"976\"; break;\r\ncase \"CHF\": return \"756\"; break;\r\ncase \"CLF\": return \"990\"; break;\r\ncase \"CLP\": return \"152\"; break;\r\ncase \"CNY\": return \"156\"; break;\r\ncase \"COP\": return \"170\"; break;\r\ncase \"CRC\": return \"188\"; break;\r\ncase \"CUP\": return \"192\"; break;\r\ncase \"CVE\": return \"132\"; break;\r\ncase \"CYP\": return \"196\"; break;\r\ncase \"CZK\": return \"203\"; break;\r\ncase \"DJF\": return \"262\"; break;\r\ncase \"DKK\": return \"208\"; break;\r\ncase \"DOP\": return \"214\"; break;\r\ncase \"DZD\": return \"012\"; break;\r\ncase \"ECS\": return \"218\"; break;\r\ncase \"ECV\": return \"983\"; break;\r\ncase \"EEK\": return \"233\"; break;\r\ncase \"EGP\": return \"818\"; break;\r\ncase \"ERN\": return \"232\"; break;\r\ncase \"ETB\": return \"230\"; break;\r\ncase \"EUR\": return \"978\"; break;\r\ncase \"FJD\": return \"242\"; break;\r\ncase \"FKP\": return \"238\"; break;\r\ncase \"GBP\": return \"826\"; break;\r\ncase \"GEL\": return \"981\"; break;\r\ncase \"GHC\": return \"288\"; break;\r\ncase \"GIP\": return \"292\"; break;\r\ncase \"GMD\": return \"270\"; break;\r\ncase \"GNF\": return \"324\"; break;\r\ncase \"GTQ\": return \"320\"; break;\r\ncase \"GWP\": return \"624\"; break;\r\ncase \"GYD\": return \"328\"; break;\r\ncase \"HKD\": return \"344\"; break;\r\ncase \"HNL\": return \"340\"; break;\r\ncase \"HRK\": return \"191\"; break;\r\ncase \"HTG\": return \"332\"; break;\r\ncase \"HUF\": return \"348\"; break;\r\ncase \"IDR\": return \"360\"; break;\r\ncase \"ILS\": return \"376\"; break;\r\ncase \"INR\": return \"356\"; break;\r\ncase \"IQD\": return \"368\"; break;\r\ncase \"IRR\": return \"364\"; break;\r\ncase \"ISK\": return \"352\"; break;\r\ncase \"JMD\": return \"388\"; break;\r\ncase \"JOD\": return \"400\"; break;\r\ncase \"JPY\": return \"392\"; break;\r\ncase \"KES\": return \"404\"; break;\r\ncase \"KGS\": return \"417\"; break;\r\ncase \"KHR\": return \"116\"; break;\r\ncase \"KMF\": return \"174\"; break;\r\ncase \"KPW\": return \"408\"; break;\r\ncase \"KRW\": return \"410\"; break;\r\ncase \"KWD\": return \"414\"; break;\r\ncase \"KYD\": return \"136\"; break;\r\ncase \"KZT\": return \"398\"; break;\r\ncase \"LAK\": return \"418\"; break;\r\ncase \"LBP\": return \"422\"; break;\r\ncase \"LKR\": return \"144\"; break;\r\ncase \"LRD\": return \"430\"; break;\r\ncase \"LSL\": return \"426\"; break;\r\ncase \"LTL\": return \"440\"; break;\r\ncase \"LVL\": return \"428\"; break;\r\ncase \"LYD\": return \"434\"; break;\r\ncase \"MAD\": return \"504\"; break;\r\ncase \"MDL\": return \"498\"; break;\r\ncase \"MGF\": return \"450\"; break;\r\ncase \"MKD\": return \"807\"; break;\r\ncase \"MMK\": return \"104\"; break;\r\ncase \"MNT\": return \"496\"; break;\r\ncase \"MOP\": return \"446\"; break;\r\ncase \"MRO\": return \"478\"; break;\r\ncase \"MTL\": return \"470\"; break;\r\ncase \"MUR\": return \"480\"; break;\r\ncase \"MVR\": return \"462\"; break;\r\ncase \"MWK\": return \"454\"; break;\r\ncase \"MXN\": return \"484\"; break;\r\ncase \"MXV\": return \"979\"; break;\r\ncase \"MYR\": return \"458\"; break;\r\ncase \"MZM\": return \"508\"; break;\r\ncase \"NAD\": return \"516\"; break;\r\ncase \"NGN\": return \"566\"; break;\r\ncase \"NIO\": return \"558\"; break;\r\ncase \"NOK\": return \"578\"; break;\r\ncase \"NPR\": return \"524\"; break;\r\ncase \"NZD\": return \"554\"; break;\r\ncase \"OMR\": return \"512\"; break;\r\ncase \"PAB\": return \"590\"; break;\r\ncase \"PEN\": return \"604\"; break;\r\ncase \"PGK\": return \"598\"; break;\r\ncase \"PHP\": return \"608\"; break;\r\ncase \"PKR\": return \"586\"; break;\r\ncase \"PLN\": return \"985\"; break;\r\ncase \"PYG\": return \"600\"; break;\r\ncase \"QAR\": return \"634\"; break;\r\ncase \"ROL\": return \"642\"; break;\r\ncase \"RUB\": return \"643\"; break;\r\ncase \"RUR\": return \"810\"; break;\r\ncase \"RWF\": return \"646\"; break;\r\ncase \"SAR\": return \"682\"; break;\r\ncase \"SBD\": return \"090\"; break;\r\ncase \"SCR\": return \"690\"; break;\r\ncase \"SDD\": return \"736\"; break;\r\ncase \"SEK\": return \"752\"; break;\r\ncase \"SGD\": return \"702\"; break;\r\ncase \"SHP\": return \"654\"; break;\r\ncase \"SIT\": return \"705\"; break;\r\ncase \"SKK\": return \"703\"; break;\r\ncase \"SLL\": return \"694\"; break;\r\ncase \"SOS\": return \"706\"; break;\r\ncase \"SRG\": return \"740\"; break;\r\ncase \"STD\": return \"678\"; break;\r\ncase \"SVC\": return \"222\"; break;\r\ncase \"SYP\": return \"760\"; break;\r\ncase \"SZL\": return \"748\"; break;\r\ncase \"THB\": return \"764\"; break;\r\ncase \"TJS\": return \"972\"; break;\r\ncase \"TMM\": return \"795\"; break;\r\ncase \"TND\": return \"788\"; break;\r\ncase \"TOP\": return \"776\"; break;\r\ncase \"TPE\": return \"626\"; break;\r\ncase \"TRL\": return \"792\"; break;\r\ncase \"TRY\": return \"949\"; break;\r\ncase \"TTD\": return \"780\"; break;\r\ncase \"TWD\": return \"901\"; break;\r\ncase \"TZS\": return \"834\"; break;\r\ncase \"UAH\": return \"980\"; break;\r\ncase \"UGX\": return \"800\"; break;\r\ncase \"USD\": return \"840\"; break;\r\ncase \"UYU\": return \"858\"; break;\r\ncase \"UZS\": return \"860\"; break;\r\ncase \"VEB\": return \"862\"; break;\r\ncase \"VND\": return \"704\"; break;\r\ncase \"VUV\": return \"548\"; break;\r\ncase \"XAF\": return \"950\"; break;\r\ncase \"XCD\": return \"951\"; break;\r\ncase \"XOF\": return \"952\"; break;\r\ncase \"XPF\": return \"953\"; break;\r\ncase \"YER\": return \"886\"; break;\r\ncase \"YUM\": return \"891\"; break;\r\ncase \"ZAR\": return \"710\"; break;\r\ncase \"ZMK\": return \"894\"; break;\r\ncase \"ZWD\": return \"716\"; break;\r\n}\r\nreturn \"XXX\"; // return invalid code if the currency is not found \r\n}\r\n\r\nfunction calculateePayCurrency($order_id)\r\n{\r\n$db = new ps_DB;\r\n$currency_code = \"208\";\r\n$q = \"SELECT order_currency FROM #__vm_orders where order_id = \" . $order_id;\r\n$db->query($q);\r\nif ($db->next_record()) {\r\n	$currency_code = get_iso_code($db->f(\"order_currency\"));\r\n}\r\nreturn $currency_code;\r\n}\r\n echo $VM_LANG->_(\'VM_CHECKOUT_EPAY_PAYMENT_CHECKOUT_HEADER\');\r\n?>\r\n<script type=\"text/javascript\" src=\"http://www.epay.dk/js/standardwindow.js\"></script>\r\n<script type=\"text/javascript\">\r\nfunction printCard(cardId)\r\n{\r\ndocument.write (\"<table border=0 cellspacing=10 cellpadding=10>\");\r\nswitch (cardId) {\r\ncase 1: document.write (\"<input type=hidden name=cardtype value=1>\"); break;\r\ncase 2: document.write (\"<input type=hidden name=cardtype value=2>\"); break;\r\ncase 3: document.write (\"<input type=hidden name=cardtype value=3>\"); break;\r\ncase 4: document.write (\"<input type=hidden name=cardtype value=4>\"); break;\r\ncase 5: document.write (\"<input type=hidden name=cardtype value=5>\"); break;\r\ncase 6: document.write (\"<input type=hidden name=cardtype value=6>\"); break;\r\ncase 7: document.write (\"<input type=hidden name=cardtype value=7>\"); break;\r\ncase 8: document.write (\"<input type=hidden name=cardtype value=8>\"); break;\r\ncase 9: document.write (\"<input type=hidden name=cardtype value=9>\"); break;\r\ncase 10: document.write (\"<input type=hidden name=cardtype value=10>\"); break;\r\ncase 12: document.write (\"<input type=hidden name=cardtype value=12>\"); break;\r\ncase 13: document.write (\"<input type=hidden name=cardtype value=13>\"); break;\r\ncase 14: document.write (\"<input type=hidden name=cardtype value=14>\"); break;\r\ncase 15: document.write (\"<input type=hidden name=cardtype value=15>\"); break;\r\ncase 16: document.write (\"<input type=hidden name=cardtype value=16>\"); break;\r\ncase 17: document.write (\"<input type=hidden name=cardtype value=17>\"); break;\r\ncase 18: document.write (\"<input type=hidden name=cardtype value=18>\"); break;\r\ncase 19: document.write (\"<input type=hidden name=cardtype value=19>\"); break;\r\ncase 21: document.write (\"<input type=hidden name=cardtype value=21>\"); break;\r\ncase 22: document.write (\"<input type=hidden name=cardtype value=22>\"); break;\r\n}\r\ndocument.write (\"</table>\");\r\n}\r\n</script>\r\n<form action=\"https://ssl.ditonlinebetalingssystem.dk/popup/default.asp\" method=\"post\" name=\"ePay\" target=\"ePay_window\" id=\"ePay\">\r\n<input type=\"hidden\" name=\"merchantnumber\" value=\"<?php echo EPAY_MERCHANTNUMBER ?>\">\r\n<input type=\"hidden\" name=\"amount\" value=\"<?php echo round($db->f(\"order_total\")*100, 2 ) ?>\">\r\n<input type=\"hidden\" name=\"currency\" value=\"<?php echo calculateePayCurrency($order_id)?>\">\r\n<input type=\"hidden\" name=\"orderid\" value=\"<?php echo $order_id ?>\">\r\n<input type=\"hidden\" name=\"ordretext\" value=\"\">\r\n<?php \r\nif (EPAY_CALLBACK == \"1\")\r\n{\r\n	echo \'<input type=\"hidden\" name=\"callbackurl\" value=\"\' . $mosConfig_live_site . \'/index.php?page=checkout.epay_result&accept=1&sessionid=\' . $sessionid . \'&option=com_virtuemart&Itemid=1\">\';\r\n}\r\n?>\r\n<input type=\"hidden\" name=\"accepturl\" value=\"<?php echo $mosConfig_live_site ?>/index.php?page=checkout.epay_result&accept=1&sessionid=<?php echo $sessionid ?>&option=com_virtuemart&Itemid=1\">\r\n<input type=\"hidden\" name=\"declineurl\" value=\"<?php echo $mosConfig_live_site ?>/index.php?page=checkout.epay_result&accept=0&sessionid=<?php echo $sessionid ?>&option=com_virtuemart&Itemid=1\">\r\n<input type=\"hidden\" name=\"group\" value=\"<?php echo EPAY_GROUP ?>\">\r\n<input type=\"hidden\" name=\"instant\" value=\"<?php echo EPAY_INSTANT_CAPTURE ?>\">\r\n<input type=\"hidden\" name=\"language\" value=\"<?php echo EPAY_LANGUAGE ?>\">\r\n<input type=\"hidden\" name=\"authsms\" value=\"<?php echo EPAY_AUTH_SMS ?>\">\r\n<input type=\"hidden\" name=\"authmail\" value=\"<?php echo EPAY_AUTH_MAIL . (strlen(EPAY_AUTH_MAIL) > 0 && EPAY_AUTHEMAILCUSTOMER == 1 ? \";\" : \"\") . (EPAY_AUTHEMAILCUSTOMER == 1 ? $user->user_email : \"\"); ?>\">\r\n<input type=\"hidden\" name=\"windowstate\" value=\"<?php echo EPAY_WINDOW_STATE ?>\">\r\n<input type=\"hidden\" name=\"use3D\" value=\"<?php echo EPAY_3DSECURE ?>\">\r\n<input type=\"hidden\" name=\"addfee\" value=\"<?php echo EPAY_ADDFEE ?>\">\r\n<input type=\"hidden\" name=\"subscription\" value=\"<?php echo EPAY_SUBSCRIPTION ?>\">\r\n<input type=\"hidden\" name=\"MD5Key\" value=\"<?php if (EPAY_MD5_TYPE == 2) echo md5( calculateePayCurrency($order_id) . round($db->f(\"order_total\")*100, 2 ) . $order_id  . EPAY_MD5_KEY)?>\">\r\n<?php\r\nif (EPAY_CARDTYPES_1 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(1)</script>\";\r\nif (EPAY_CARDTYPES_2 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(2)</script>\";\r\nif (EPAY_CARDTYPES_3 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(3)</script>\";\r\nif (EPAY_CARDTYPES_4 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(4)</script>\";\r\nif (EPAY_CARDTYPES_5 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(5)</script>\";\r\nif (EPAY_CARDTYPES_6 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(6)</script>\";\r\nif (EPAY_CARDTYPES_7 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(7)</script>\";\r\nif (EPAY_CARDTYPES_8 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(8)</script>\";\r\nif (EPAY_CARDTYPES_9 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(9)</script>\";\r\nif (EPAY_CARDTYPES_10 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(10)</script>\";\r\nif (EPAY_CARDTYPES_11 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(11)</script>\";\r\nif (EPAY_CARDTYPES_12 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(12)</script>\";\r\nif (EPAY_CARDTYPES_14 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(14)</script>\";\r\nif (EPAY_CARDTYPES_15 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(15)</script>\";\r\nif (EPAY_CARDTYPES_16 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(16)</script>\";\r\nif (EPAY_CARDTYPES_17 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(17)</script>\";\r\nif (EPAY_CARDTYPES_18 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(18)</script>\";\r\nif (EPAY_CARDTYPES_19 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(19)</script>\";\r\nif (EPAY_CARDTYPES_21 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(21)</script>\";\r\nif (EPAY_CARDTYPES_22 == \"1\" && EPAY_CARDTYPES_0 != \"1\") echo \"<script>printCard(22)</script>\";;\r\n?>\r\n</form>\r\n<script>open_ePay_window();</script>\r\n<br>\r\n<table border=\"0\" width=\"100%\"><tr><td><input type=\"button\" onClick=\"open_ePay_window()\" value=\"<?php echo $VM_LANG->_(\'VM_CHECKOUT_EPAY_BUTTON_OPEN_WINDOW\') ?>\"></td><td width=\"100%\" id=\"flashLoader\"></td></tr></table><br><br><br>\r\n<?php echo $VM_LANG->_(\'VM_CHECKOUT_EPAY_PAYMENT_CHECKOUT_FOOTER\') ?>\r\n<br><br>\r\n<img src=\"components/com_virtuemart/shop_image/ps_image/epay_images/epay_logo.gif\" border=\"0\">&nbsp;&nbsp;&nbsp;\r\n<img src=\"components/com_virtuemart/shop_image/ps_image/epay_images/mastercard_securecode.gif\" border=\"0\">&nbsp;&nbsp;&nbsp;\r\n<img src=\"components/com_virtuemart/shop_image/ps_image/epay_images/pci.gif\" border=\"0\">&nbsp;&nbsp;&nbsp;\r\n<img src=\"components/com_virtuemart/shop_image/ps_image/epay_images/verisign_secure.gif\" border=\"0\">&nbsp;&nbsp;&nbsp;\r\n<img src=\"components/com_virtuemart/shop_image/ps_image/epay_images/visa_secure.gif\" border=\"0\">&nbsp;&nbsp;&nbsp;;',''),(17,1,'PaySbuy','ps_paysbuy',5,0.00,0,0.00,0.00,0,'PSB','P',0,'N','','','');

--
-- Table structure for table `jos_vm_product`
--

CREATE TABLE `jos_vm_product` (
  `product_id` int(11) NOT NULL AUTO_INCREMENT,
  `vendor_id` int(11) NOT NULL DEFAULT '0',
  `product_parent_id` int(11) NOT NULL DEFAULT '0',
  `product_sku` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `product_s_desc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `product_desc` text COLLATE utf8_unicode_ci,
  `product_thumb_image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `product_full_image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `product_publish` char(1) COLLATE utf8_unicode_ci DEFAULT NULL,
  `product_weight` decimal(10,4) DEFAULT NULL,
  `product_weight_uom` varchar(32) COLLATE utf8_unicode_ci DEFAULT 'pounds.',
  `product_length` decimal(10,4) DEFAULT NULL,
  `product_width` decimal(10,4) DEFAULT NULL,
  `product_height` decimal(10,4) DEFAULT NULL,
  `product_lwh_uom` varchar(32) COLLATE utf8_unicode_ci DEFAULT 'inches',
  `product_url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `product_in_stock` int(11) NOT NULL DEFAULT '0',
  `product_available_date` int(11) DEFAULT NULL,
  `product_availability` varchar(56) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `product_special` char(1) COLLATE utf8_unicode_ci DEFAULT NULL,
  `product_discount_id` int(11) DEFAULT NULL,
  `ship_code_id` int(11) DEFAULT NULL,
  `cdate` int(11) DEFAULT NULL,
  `mdate` int(11) DEFAULT NULL,
  `product_name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  `product_sales` int(11) NOT NULL DEFAULT '0',
  `attribute` text COLLATE utf8_unicode_ci,
  `custom_attribute` text COLLATE utf8_unicode_ci NOT NULL,
  `product_tax_id` int(11) DEFAULT NULL,
  `product_unit` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `product_packaging` int(11) DEFAULT NULL,
  `child_options` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
  `quantity_options` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
  `child_option_ids` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
  `product_order_levels` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`product_id`),
  KEY `idx_product_vendor_id` (`vendor_id`),
  KEY `idx_product_product_parent_id` (`product_parent_id`),
  KEY `idx_product_sku` (`product_sku`),
  KEY `idx_product_ship_code_id` (`ship_code_id`),
  KEY `idx_product_name` (`product_name`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='All products are stored here.';

--
-- Dumping data for table `jos_vm_product`
--

INSERT INTO `jos_vm_product` VALUES (1,1,0,'01dvd','','','DVD_4c08a4d750d48.png','DVD_4c08a4d751175.png','Y',0.0000,'pounds',0.0000,0.0000,0.0000,'inches','',-1,1275609600,'','N',0,NULL,1275634903,1275634903,'DVD',1,'','',0,'piece',0,'N,N,N,N,N,N,20%,10%,','none,0,0,1','','0,0'),(2,1,0,'02vhs','','','VHS_4c08a89a36f46.png','VHS_4c08a89a37439.png','Y',0.0000,'pounds',0.0000,0.0000,0.0000,'inches','',-1,1275609600,'','N',0,NULL,1275635866,1275690395,'VHS',1,'','',0,'piece',0,'N,N,N,N,N,Y,20%,10%,','none,0,0,1','','0,0'),(3,1,0,'03','','','Soundtrack_CD_4c08a8d0d169d.png','Soundtrack_CD_4c08a8d0d1881.jpg','Y',0.0000,'pounds',0.0000,0.0000,0.0000,'inches','',0,1275609600,'','N',0,NULL,1275635920,1275635920,'Soundtrack CD',0,'','',0,'piece',0,'N,N,N,N,N,N,20%,10%,','none,0,0,1','','0,0'),(4,1,0,'04book','','','Book_4c08a903dd781.jpg','Book_4c08a903dd9cf.jpg','Y',0.0000,'pounds',0.0000,0.0000,0.0000,'inches','',1000,1275609600,'','N',0,NULL,1275635971,1275962970,'Book',0,'','',0,'piece',0,'N,N,N,N,N,Y,20%,10%,','none,0,0,1','','0,0'),(5,1,0,'05poster','','','Movie_Poster_4c08a93870e7b.jpg','Movie_Poster_4c08a938710a6.jpg','Y',0.0000,'pounds',0.0000,0.0000,0.0000,'inches','',0,1275609600,'','N',0,NULL,1275636024,1275690414,'Movie Poster',0,'','',0,'piece',0,'N,N,N,N,N,Y,20%,10%,','none,0,0,1','','0,0');

--
-- Table structure for table `jos_vm_product_attribute`
--

CREATE TABLE `jos_vm_product_attribute` (
  `attribute_id` int(11) NOT NULL AUTO_INCREMENT,
  `product_id` int(11) NOT NULL DEFAULT '0',
  `attribute_name` char(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `attribute_value` char(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`attribute_id`),
  KEY `idx_product_attribute_product_id` (`product_id`),
  KEY `idx_product_attribute_name` (`attribute_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores attributes + their specific values for Child Products';

--
-- Dumping data for table `jos_vm_product_attribute`
--


--
-- Table structure for table `jos_vm_product_attribute_sku`
--

CREATE TABLE `jos_vm_product_attribute_sku` (
  `product_id` int(11) NOT NULL DEFAULT '0',
  `attribute_name` char(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `attribute_list` int(11) NOT NULL DEFAULT '0',
  KEY `idx_product_attribute_sku_product_id` (`product_id`),
  KEY `idx_product_attribute_sku_attribute_name` (`attribute_name`),
  KEY `idx_product_attribute_list` (`attribute_list`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Attributes for a Parent Product used by its Child Products';

--
-- Dumping data for table `jos_vm_product_attribute_sku`
--


--
-- Table structure for table `jos_vm_product_category_xref`
--

CREATE TABLE `jos_vm_product_category_xref` (
  `category_id` int(11) NOT NULL DEFAULT '0',
  `product_id` int(11) NOT NULL DEFAULT '0',
  `product_list` int(11) DEFAULT NULL,
  KEY `idx_product_category_xref_category_id` (`category_id`),
  KEY `idx_product_category_xref_product_id` (`product_id`),
  KEY `idx_product_category_xref_product_list` (`product_list`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Maps Products to Categories';

--
-- Dumping data for table `jos_vm_product_category_xref`
--

INSERT INTO `jos_vm_product_category_xref` VALUES (1,1,1),(1,2,1),(1,3,1),(1,4,1),(1,5,1);

--
-- Table structure for table `jos_vm_product_discount`
--

CREATE TABLE `jos_vm_product_discount` (
  `discount_id` int(11) NOT NULL AUTO_INCREMENT,
  `amount` decimal(12,2) NOT NULL DEFAULT '0.00',
  `is_percent` tinyint(1) NOT NULL DEFAULT '0',
  `start_date` int(11) NOT NULL DEFAULT '0',
  `end_date` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`discount_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Discounts that can be assigned to products';

--
-- Dumping data for table `jos_vm_product_discount`
--


--
-- Table structure for table `jos_vm_product_download`
--

CREATE TABLE `jos_vm_product_download` (
  `product_id` int(11) NOT NULL DEFAULT '0',
  `user_id` int(11) NOT NULL DEFAULT '0',
  `order_id` int(11) NOT NULL DEFAULT '0',
  `end_date` int(11) NOT NULL DEFAULT '0',
  `download_max` int(11) NOT NULL DEFAULT '0',
  `download_id` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `file_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`download_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Active downloads for selling downloadable goods';

--
-- Dumping data for table `jos_vm_product_download`
--


--
-- Table structure for table `jos_vm_product_files`
--

CREATE TABLE `jos_vm_product_files` (
  `file_id` int(19) NOT NULL AUTO_INCREMENT,
  `file_product_id` int(11) NOT NULL DEFAULT '0',
  `file_name` varchar(128) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `file_title` varchar(128) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `file_description` mediumtext COLLATE utf8_unicode_ci NOT NULL,
  `file_extension` varchar(128) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `file_mimetype` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `file_url` varchar(254) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `file_published` tinyint(1) NOT NULL DEFAULT '0',
  `file_is_image` tinyint(1) NOT NULL DEFAULT '0',
  `file_image_height` int(11) NOT NULL DEFAULT '0',
  `file_image_width` int(11) NOT NULL DEFAULT '0',
  `file_image_thumb_height` int(11) NOT NULL DEFAULT '50',
  `file_image_thumb_width` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`file_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Additional Images and Files which are assigned to products';

--
-- Dumping data for table `jos_vm_product_files`
--


--
-- Table structure for table `jos_vm_product_mf_xref`
--

CREATE TABLE `jos_vm_product_mf_xref` (
  `product_id` int(11) DEFAULT NULL,
  `manufacturer_id` int(11) DEFAULT NULL,
  KEY `idx_product_mf_xref_product_id` (`product_id`),
  KEY `idx_product_mf_xref_manufacturer_id` (`manufacturer_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Maps a product to a manufacturer';

--
-- Dumping data for table `jos_vm_product_mf_xref`
--

INSERT INTO `jos_vm_product_mf_xref` VALUES (1,1),(2,1),(3,1),(4,1),(5,1);

--
-- Table structure for table `jos_vm_product_price`
--

CREATE TABLE `jos_vm_product_price` (
  `product_price_id` int(11) NOT NULL AUTO_INCREMENT,
  `product_id` int(11) NOT NULL DEFAULT '0',
  `product_price` decimal(12,5) DEFAULT NULL,
  `product_currency` char(16) COLLATE utf8_unicode_ci DEFAULT NULL,
  `product_price_vdate` int(11) DEFAULT NULL,
  `product_price_edate` int(11) DEFAULT NULL,
  `cdate` int(11) DEFAULT NULL,
  `mdate` int(11) DEFAULT NULL,
  `shopper_group_id` int(11) DEFAULT NULL,
  `price_quantity_start` int(11) unsigned NOT NULL DEFAULT '0',
  `price_quantity_end` int(11) unsigned NOT NULL DEFAULT '0',
  PRIMARY KEY (`product_price_id`),
  KEY `idx_product_price_product_id` (`product_id`),
  KEY `idx_product_price_shopper_group_id` (`shopper_group_id`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Holds price records for a product';

--
-- Dumping data for table `jos_vm_product_price`
--

INSERT INTO `jos_vm_product_price` VALUES (1,1,24.95000,'USD',0,0,1275634903,1275634903,5,0,0),(2,2,19.95000,'USD',0,0,1275635866,1275690395,5,0,0),(3,3,19.95000,'USD',0,0,1275635920,1275635920,5,0,0),(4,4,19.95000,'USD',0,0,1275635971,1275962970,5,0,0),(5,5,19.95000,'USD',0,0,1275636024,1275690414,5,0,0);

--
-- Table structure for table `jos_vm_product_product_type_xref`
--

CREATE TABLE `jos_vm_product_product_type_xref` (
  `product_id` int(11) NOT NULL DEFAULT '0',
  `product_type_id` int(11) NOT NULL DEFAULT '0',
  KEY `idx_product_product_type_xref_product_id` (`product_id`),
  KEY `idx_product_product_type_xref_product_type_id` (`product_type_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Maps products to a product type';

--
-- Dumping data for table `jos_vm_product_product_type_xref`
--


--
-- Table structure for table `jos_vm_product_relations`
--

CREATE TABLE `jos_vm_product_relations` (
  `product_id` int(11) NOT NULL DEFAULT '0',
  `related_products` text COLLATE utf8_unicode_ci,
  PRIMARY KEY (`product_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `jos_vm_product_relations`
--


--
-- Table structure for table `jos_vm_product_reviews`
--

CREATE TABLE `jos_vm_product_reviews` (
  `review_id` int(11) NOT NULL AUTO_INCREMENT,
  `product_id` int(11) NOT NULL DEFAULT '0',
  `comment` text COLLATE utf8_unicode_ci NOT NULL,
  `userid` int(11) NOT NULL DEFAULT '0',
  `time` int(11) NOT NULL DEFAULT '0',
  `user_rating` tinyint(1) NOT NULL DEFAULT '0',
  `review_ok` int(11) NOT NULL DEFAULT '0',
  `review_votes` int(11) NOT NULL DEFAULT '0',
  `published` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Y',
  PRIMARY KEY (`review_id`),
  UNIQUE KEY `product_id` (`product_id`,`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `jos_vm_product_reviews`
--


--
-- Table structure for table `jos_vm_product_type`
--

CREATE TABLE `jos_vm_product_type` (
  `product_type_id` int(11) NOT NULL AUTO_INCREMENT,
  `product_type_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `product_type_description` text COLLATE utf8_unicode_ci,
  `product_type_publish` char(1) COLLATE utf8_unicode_ci DEFAULT NULL,
  `product_type_browsepage` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `product_type_flypage` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `product_type_list_order` int(11) DEFAULT NULL,
  PRIMARY KEY (`product_type_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

--
-- Dumping data for table `jos_vm_product_type`
--


--
-- Table structure for table `jos_vm_product_type_parameter`
--

CREATE TABLE `jos_vm_product_type_parameter` (
  `product_type_id` int(11) NOT NULL DEFAULT '0',
  `parameter_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `parameter_label` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `parameter_description` text COLLATE utf8_unicode_ci,
  `parameter_list_order` int(11) NOT NULL DEFAULT '0',
  `parameter_type` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'T',
  `parameter_values` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `parameter_multiselect` char(1) COLLATE utf8_unicode_ci DEFAULT NULL,
  `parameter_default` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `parameter_unit` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`product_type_id`,`parameter_name`),
  KEY `idx_product_type_parameter_product_type_id` (`product_type_id`),
  KEY `idx_product_type_parameter_parameter_order` (`parameter_list_order`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Parameters which are part of a product type';

--
-- Dumping data for table `jos_vm_product_type_parameter`
--


--
-- Table structure for table `jos_vm_product_votes`
--

CREATE TABLE `jos_vm_product_votes` (
  `product_id` int(255) NOT NULL DEFAULT '0',
  `votes` text COLLATE utf8_unicode_ci NOT NULL,
  `allvotes` int(11) NOT NULL DEFAULT '0',
  `rating` tinyint(1) NOT NULL DEFAULT '0',
  `lastip` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
  PRIMARY KEY (`product_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores all votes for a product';

--
-- Dumping data for table `jos_vm_product_votes`
--


--
-- Table structure for table `jos_vm_shipping_carrier`
--

CREATE TABLE `jos_vm_shipping_carrier` (
  `shipping_carrier_id` int(11) NOT NULL AUTO_INCREMENT,
  `shipping_carrier_name` char(80) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `shipping_carrier_list_order` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`shipping_carrier_id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Shipping Carriers as used by the Standard Shipping Module';

--
-- Dumping data for table `jos_vm_shipping_carrier`
--

INSERT INTO `jos_vm_shipping_carrier` VALUES (1,'UPS',1);

--
-- Table structure for table `jos_vm_shipping_label`
--

CREATE TABLE `jos_vm_shipping_label` (
  `order_id` int(11) NOT NULL DEFAULT '0',
  `shipper_class` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `ship_date` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `service_code` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `special_service` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `package_type` varchar(16) COLLATE utf8_unicode_ci DEFAULT NULL,
  `order_weight` decimal(10,2) DEFAULT NULL,
  `is_international` tinyint(1) DEFAULT NULL,
  `additional_protection_type` varchar(16) COLLATE utf8_unicode_ci DEFAULT NULL,
  `additional_protection_value` decimal(10,2) DEFAULT NULL,
  `duty_value` decimal(10,2) DEFAULT NULL,
  `content_desc` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `label_is_generated` tinyint(1) NOT NULL DEFAULT '0',
  `tracking_number` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `label_image` blob,
  `have_signature` tinyint(1) NOT NULL DEFAULT '0',
  `signature_image` blob,
  PRIMARY KEY (`order_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores information used in generating shipping labels';

--
-- Dumping data for table `jos_vm_shipping_label`
--


--
-- Table structure for table `jos_vm_shipping_rate`
--

CREATE TABLE `jos_vm_shipping_rate` (
  `shipping_rate_id` int(11) NOT NULL AUTO_INCREMENT,
  `shipping_rate_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `shipping_rate_carrier_id` int(11) NOT NULL DEFAULT '0',
  `shipping_rate_country` text COLLATE utf8_unicode_ci NOT NULL,
  `shipping_rate_zip_start` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `shipping_rate_zip_end` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `shipping_rate_weight_start` decimal(10,3) NOT NULL DEFAULT '0.000',
  `shipping_rate_weight_end` decimal(10,3) NOT NULL DEFAULT '0.000',
  `shipping_rate_value` decimal(10,2) NOT NULL DEFAULT '0.00',
  `shipping_rate_package_fee` decimal(10,2) NOT NULL DEFAULT '0.00',
  `shipping_rate_currency_id` int(11) NOT NULL DEFAULT '0',
  `shipping_rate_vat_id` int(11) NOT NULL DEFAULT '0',
  `shipping_rate_list_order` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`shipping_rate_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Shipping Rates, used by the Standard Shipping Module';

--
-- Dumping data for table `jos_vm_shipping_rate`
--


--
-- Table structure for table `jos_vm_shopper_group`
--

CREATE TABLE `jos_vm_shopper_group` (
  `shopper_group_id` int(11) NOT NULL AUTO_INCREMENT,
  `vendor_id` int(11) DEFAULT NULL,
  `shopper_group_name` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `shopper_group_desc` text COLLATE utf8_unicode_ci,
  `shopper_group_discount` decimal(5,2) NOT NULL DEFAULT '0.00',
  `show_price_including_tax` tinyint(1) NOT NULL DEFAULT '1',
  `default` tinyint(1) NOT NULL DEFAULT '0',
  PRIMARY KEY (`shopper_group_id`),
  KEY `idx_shopper_group_vendor_id` (`vendor_id`),
  KEY `idx_shopper_group_name` (`shopper_group_name`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Shopper Groups that users can be assigned to';

--
-- Dumping data for table `jos_vm_shopper_group`
--

INSERT INTO `jos_vm_shopper_group` VALUES (5,1,'-default-','This is the default shopper group.',0.00,1,1),(6,1,'Gold Level','Gold Level Shoppers.',0.00,1,0),(7,1,'Wholesale','Shoppers that can buy at wholesale.',0.00,0,0);

--
-- Table structure for table `jos_vm_shopper_vendor_xref`
--

CREATE TABLE `jos_vm_shopper_vendor_xref` (
  `user_id` int(11) DEFAULT NULL,
  `vendor_id` int(11) DEFAULT NULL,
  `shopper_group_id` int(11) DEFAULT NULL,
  `customer_number` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  KEY `idx_shopper_vendor_xref_user_id` (`user_id`),
  KEY `idx_shopper_vendor_xref_vendor_id` (`vendor_id`),
  KEY `idx_shopper_vendor_xref_shopper_group_id` (`shopper_group_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Maps a user to a Shopper Group of a Vendor';

--
-- Dumping data for table `jos_vm_shopper_vendor_xref`
--

INSERT INTO `jos_vm_shopper_vendor_xref` VALUES (62,1,5,'');

--
-- Table structure for table `jos_vm_state`
--

CREATE TABLE `jos_vm_state` (
  `state_id` int(11) NOT NULL AUTO_INCREMENT,
  `country_id` int(11) NOT NULL DEFAULT '1',
  `state_name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  `state_3_code` char(3) COLLATE utf8_unicode_ci DEFAULT NULL,
  `state_2_code` char(2) COLLATE utf8_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`state_id`),
  UNIQUE KEY `state_3_code` (`country_id`,`state_3_code`),
  UNIQUE KEY `state_2_code` (`country_id`,`state_2_code`),
  KEY `idx_country_id` (`country_id`)
) ENGINE=MyISAM AUTO_INCREMENT=449 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='States that are assigned to a country';

--
-- Dumping data for table `jos_vm_state`
--

INSERT INTO `jos_vm_state` VALUES (1,223,'Alabama','ALA','AL'),(2,223,'Alaska','ALK','AK'),(3,223,'Arizona','ARZ','AZ'),(4,223,'Arkansas','ARK','AR'),(5,223,'California','CAL','CA'),(6,223,'Colorado','COL','CO'),(7,223,'Connecticut','CCT','CT'),(8,223,'Delaware','DEL','DE'),(9,223,'District Of Columbia','DOC','DC'),(10,223,'Florida','FLO','FL'),(11,223,'Georgia','GEA','GA'),(12,223,'Hawaii','HWI','HI'),(13,223,'Idaho','IDA','ID'),(14,223,'Illinois','ILL','IL'),(15,223,'Indiana','IND','IN'),(16,223,'Iowa','IOA','IA'),(17,223,'Kansas','KAS','KS'),(18,223,'Kentucky','KTY','KY'),(19,223,'Louisiana','LOA','LA'),(20,223,'Maine','MAI','ME'),(21,223,'Maryland','MLD','MD'),(22,223,'Massachusetts','MSA','MA'),(23,223,'Michigan','MIC','MI'),(24,223,'Minnesota','MIN','MN'),(25,223,'Mississippi','MIS','MS'),(26,223,'Missouri','MIO','MO'),(27,223,'Montana','MOT','MT'),(28,223,'Nebraska','NEB','NE'),(29,223,'Nevada','NEV','NV'),(30,223,'New Hampshire','NEH','NH'),(31,223,'New Jersey','NEJ','NJ'),(32,223,'New Mexico','NEM','NM'),(33,223,'New York','NEY','NY'),(34,223,'North Carolina','NOC','NC'),(35,223,'North Dakota','NOD','ND'),(36,223,'Ohio','OHI','OH'),(37,223,'Oklahoma','OKL','OK'),(38,223,'Oregon','ORN','OR'),(39,223,'Pennsylvania','PEA','PA'),(40,223,'Rhode Island','RHI','RI'),(41,223,'South Carolina','SOC','SC'),(42,223,'South Dakota','SOD','SD'),(43,223,'Tennessee','TEN','TN'),(44,223,'Texas','TXS','TX'),(45,223,'Utah','UTA','UT'),(46,223,'Vermont','VMT','VT'),(47,223,'Virginia','VIA','VA'),(48,223,'Washington','WAS','WA'),(49,223,'West Virginia','WEV','WV'),(50,223,'Wisconsin','WIS','WI'),(51,223,'Wyoming','WYO','WY'),(52,38,'Alberta','ALB','AB'),(53,38,'British Columbia','BRC','BC'),(54,38,'Manitoba','MAB','MB'),(55,38,'New Brunswick','NEB','NB'),(56,38,'Newfoundland and Labrador','NFL','NL'),(57,38,'Northwest Territories','NWT','NT'),(58,38,'Nova Scotia','NOS','NS'),(59,38,'Nunavut','NUT','NU'),(60,38,'Ontario','ONT','ON'),(61,38,'Prince Edward Island','PEI','PE'),(62,38,'Quebec','QEC','QC'),(63,38,'Saskatchewan','SAK','SK'),(64,38,'Yukon','YUT','YT'),(65,222,'England','ENG','EN'),(66,222,'Northern Ireland','NOI','NI'),(67,222,'Scotland','SCO','SD'),(68,222,'Wales','WLS','WS'),(69,13,'Australian Capital Territory','ACT','AC'),(70,13,'New South Wales','NSW','NS'),(71,13,'Northern Territory','NOT','NT'),(72,13,'Queensland','QLD','QL'),(73,13,'South Australia','SOA','SA'),(74,13,'Tasmania','TAS','TS'),(75,13,'Victoria','VIC','VI'),(76,13,'Western Australia','WEA','WA'),(77,138,'Aguascalientes','AGS','AG'),(78,138,'Baja California Norte','BCN','BN'),(79,138,'Baja California Sur','BCS','BS'),(80,138,'Campeche','CAM','CA'),(81,138,'Chiapas','CHI','CS'),(82,138,'Chihuahua','CHA','CH'),(83,138,'Coahuila','COA','CO'),(84,138,'Colima','COL','CM'),(85,138,'Distrito Federal','DFM','DF'),(86,138,'Durango','DGO','DO'),(87,138,'Guanajuato','GTO','GO'),(88,138,'Guerrero','GRO','GU'),(89,138,'Hidalgo','HGO','HI'),(90,138,'Jalisco','JAL','JA'),(91,138,'México (Estado de)','EDM','EM'),(92,138,'Michoacán','MCN','MI'),(93,138,'Morelos','MOR','MO'),(94,138,'Nayarit','NAY','NY'),(95,138,'Nuevo León','NUL','NL'),(96,138,'Oaxaca','OAX','OA'),(97,138,'Puebla','PUE','PU'),(98,138,'Querétaro','QRO','QU'),(99,138,'Quintana Roo','QUR','QR'),(100,138,'San Luis Potosí','SLP','SP'),(101,138,'Sinaloa','SIN','SI'),(102,138,'Sonora','SON','SO'),(103,138,'Tabasco','TAB','TA'),(104,138,'Tamaulipas','TAM','TM'),(105,138,'Tlaxcala','TLX','TX'),(106,138,'Veracruz','VER','VZ'),(107,138,'Yucatán','YUC','YU'),(108,138,'Zacatecas','ZAC','ZA'),(109,30,'Acre','ACR','AC'),(110,30,'Alagoas','ALG','AL'),(111,30,'Amapá','AMP','AP'),(112,30,'Amazonas','AMZ','AM'),(113,30,'Bahía','BAH','BA'),(114,30,'Ceará','CEA','CE'),(115,30,'Distrito Federal','DFB','DF'),(116,30,'Espirito Santo','ESS','ES'),(117,30,'Goiás','GOI','GO'),(118,30,'Maranhão','MAR','MA'),(119,30,'Mato Grosso','MAT','MT'),(120,30,'Mato Grosso do Sul','MGS','MS'),(121,30,'Minas Geraís','MIG','MG'),(122,30,'Paraná','PAR','PR'),(123,30,'Paraíba','PRB','PB'),(124,30,'Pará','PAB','PA'),(125,30,'Pernambuco','PER','PE'),(126,30,'Piauí','PIA','PI'),(127,30,'Rio Grande do Norte','RGN','RN'),(128,30,'Rio Grande do Sul','RGS','RS'),(129,30,'Rio de Janeiro','RDJ','RJ'),(130,30,'Rondônia','RON','RO'),(131,30,'Roraima','ROR','RR'),(132,30,'Santa Catarina','SAC','SC'),(133,30,'Sergipe','SER','SE'),(134,30,'São Paulo','SAP','SP'),(135,30,'Tocantins','TOC','TO'),(136,44,'Anhui','ANH','34'),(137,44,'Beijing','BEI','11'),(138,44,'Chongqing','CHO','50'),(139,44,'Fujian','FUJ','35'),(140,44,'Gansu','GAN','62'),(141,44,'Guangdong','GUA','44'),(142,44,'Guangxi Zhuang','GUZ','45'),(143,44,'Guizhou','GUI','52'),(144,44,'Hainan','HAI','46'),(145,44,'Hebei','HEB','13'),(146,44,'Heilongjiang','HEI','23'),(147,44,'Henan','HEN','41'),(148,44,'Hubei','HUB','42'),(149,44,'Hunan','HUN','43'),(150,44,'Jiangsu','JIA','32'),(151,44,'Jiangxi','JIX','36'),(152,44,'Jilin','JIL','22'),(153,44,'Liaoning','LIA','21'),(154,44,'Nei Mongol','NML','15'),(155,44,'Ningxia Hui','NIH','64'),(156,44,'Qinghai','QIN','63'),(157,44,'Shandong','SNG','37'),(158,44,'Shanghai','SHH','31'),(159,44,'Shaanxi','SHX','61'),(160,44,'Sichuan','SIC','51'),(161,44,'Tianjin','TIA','12'),(162,44,'Xinjiang Uygur','XIU','65'),(163,44,'Xizang','XIZ','54'),(164,44,'Yunnan','YUN','53'),(165,44,'Zhejiang','ZHE','33'),(166,104,'Israel','ISL','IL'),(167,104,'Gaza Strip','GZS','GZ'),(168,104,'West Bank','WBK','WB'),(169,151,'St. Maarten','STM','SM'),(170,151,'Bonaire','BNR','BN'),(171,151,'Curacao','CUR','CR'),(172,175,'Alba','ABA','AB'),(173,175,'Arad','ARD','AR'),(174,175,'Arges','ARG','AG'),(175,175,'Bacau','BAC','BC'),(176,175,'Bihor','BIH','BH'),(177,175,'Bistrita-Nasaud','BIS','BN'),(178,175,'Botosani','BOT','BT'),(179,175,'Braila','BRL','BR'),(180,175,'Brasov','BRA','BV'),(181,175,'Bucuresti','BUC','B'),(182,175,'Buzau','BUZ','BZ'),(183,175,'Calarasi','CAL','CL'),(184,175,'Caras Severin','CRS','CS'),(185,175,'Cluj','CLJ','CJ'),(186,175,'Constanta','CST','CT'),(187,175,'Covasna','COV','CV'),(188,175,'Dambovita','DAM','DB'),(189,175,'Dolj','DLJ','DJ'),(190,175,'Galati','GAL','GL'),(191,175,'Giurgiu','GIU','GR'),(192,175,'Gorj','GOR','GJ'),(193,175,'Hargita','HRG','HR'),(194,175,'Hunedoara','HUN','HD'),(195,175,'Ialomita','IAL','IL'),(196,175,'Iasi','IAS','IS'),(197,175,'Ilfov','ILF','IF'),(198,175,'Maramures','MAR','MM'),(199,175,'Mehedinti','MEH','MH'),(200,175,'Mures','MUR','MS'),(201,175,'Neamt','NEM','NT'),(202,175,'Olt','OLT','OT'),(203,175,'Prahova','PRA','PH'),(204,175,'Salaj','SAL','SJ'),(205,175,'Satu Mare','SAT','SM'),(206,175,'Sibiu','SIB','SB'),(207,175,'Suceava','SUC','SV'),(208,175,'Teleorman','TEL','TR'),(209,175,'Timis','TIM','TM'),(210,175,'Tulcea','TUL','TL'),(211,175,'Valcea','VAL','VL'),(212,175,'Vaslui','VAS','VS'),(213,175,'Vrancea','VRA','VN'),(214,105,'Agrigento','AGR','AG'),(215,105,'Alessandria','ALE','AL'),(216,105,'Ancona','ANC','AN'),(217,105,'Aosta','AOS','AO'),(218,105,'Arezzo','ARE','AR'),(219,105,'Ascoli Piceno','API','AP'),(220,105,'Asti','AST','AT'),(221,105,'Avellino','AVE','AV'),(222,105,'Bari','BAR','BA'),(223,105,'Belluno','BEL','BL'),(224,105,'Benevento','BEN','BN'),(225,105,'Bergamo','BEG','BG'),(226,105,'Biella','BIE','BI'),(227,105,'Bologna','BOL','BO'),(228,105,'Bolzano','BOZ','BZ'),(229,105,'Brescia','BRE','BS'),(230,105,'Brindisi','BRI','BR'),(231,105,'Cagliari','CAG','CA'),(232,105,'Caltanissetta','CAL','CL'),(233,105,'Campobasso','CBO','CB'),(234,105,'Carbonia-Iglesias','CAR','CI'),(235,105,'Caserta','CAS','CE'),(236,105,'Catania','CAT','CT'),(237,105,'Catanzaro','CTZ','CZ'),(238,105,'Chieti','CHI','CH'),(239,105,'Como','COM','CO'),(240,105,'Cosenza','COS','CS'),(241,105,'Cremona','CRE','CR'),(242,105,'Crotone','CRO','KR'),(243,105,'Cuneo','CUN','CN'),(244,105,'Enna','ENN','EN'),(245,105,'Ferrara','FER','FE'),(246,105,'Firenze','FIR','FI'),(247,105,'Foggia','FOG','FG'),(248,105,'Forli-Cesena','FOC','FC'),(249,105,'Frosinone','FRO','FR'),(250,105,'Genova','GEN','GE'),(251,105,'Gorizia','GOR','GO'),(252,105,'Grosseto','GRO','GR'),(253,105,'Imperia','IMP','IM'),(254,105,'Isernia','ISE','IS'),(255,105,'L\'Aquila','AQU','AQ'),(256,105,'La Spezia','LAS','SP'),(257,105,'Latina','LAT','LT'),(258,105,'Lecce','LEC','LE'),(259,105,'Lecco','LCC','LC'),(260,105,'Livorno','LIV','LI'),(261,105,'Lodi','LOD','LO'),(262,105,'Lucca','LUC','LU'),(263,105,'Macerata','MAC','MC'),(264,105,'Mantova','MAN','MN'),(265,105,'Massa-Carrara','MAS','MS'),(266,105,'Matera','MAA','MT'),(267,105,'Medio Campidano','MED','VS'),(268,105,'Messina','MES','ME'),(269,105,'Milano','MIL','MI'),(270,105,'Modena','MOD','MO'),(271,105,'Napoli','NAP','NA'),(272,105,'Novara','NOV','NO'),(273,105,'Nuoro','NUR','NU'),(274,105,'Ogliastra','OGL','OG'),(275,105,'Olbia-Tempio','OLB','OT'),(276,105,'Oristano','ORI','OR'),(277,105,'Padova','PDA','PD'),(278,105,'Palermo','PAL','PA'),(279,105,'Parma','PAA','PR'),(280,105,'Pavia','PAV','PV'),(281,105,'Perugia','PER','PG'),(282,105,'Pesaro e Urbino','PES','PU'),(283,105,'Pescara','PSC','PE'),(284,105,'Piacenza','PIA','PC'),(285,105,'Pisa','PIS','PI'),(286,105,'Pistoia','PIT','PT'),(287,105,'Pordenone','POR','PN'),(288,105,'Potenza','PTZ','PZ'),(289,105,'Prato','PRA','PO'),(290,105,'Ragusa','RAG','RG'),(291,105,'Ravenna','RAV','RA'),(292,105,'Reggio Calabria','REG','RC'),(293,105,'Reggio Emilia','REE','RE'),(294,105,'Rieti','RIE','RI'),(295,105,'Rimini','RIM','RN'),(296,105,'Roma','ROM','RM'),(297,105,'Rovigo','ROV','RO'),(298,105,'Salerno','SAL','SA'),(299,105,'Sassari','SAS','SS'),(300,105,'Savona','SAV','SV'),(301,105,'Siena','SIE','SI'),(302,105,'Siracusa','SIR','SR'),(303,105,'Sondrio','SOO','SO'),(304,105,'Taranto','TAR','TA'),(305,105,'Teramo','TER','TE'),(306,105,'Terni','TRN','TR'),(307,105,'Torino','TOR','TO'),(308,105,'Trapani','TRA','TP'),(309,105,'Trento','TRE','TN'),(310,105,'Treviso','TRV','TV'),(311,105,'Trieste','TRI','TS'),(312,105,'Udine','UDI','UD'),(313,105,'Varese','VAR','VA'),(314,105,'Venezia','VEN','VE'),(315,105,'Verbano Cusio Ossola','VCO','VB'),(316,105,'Vercelli','VER','VC'),(317,105,'Verona','VRN','VR'),(318,105,'Vibo Valenzia','VIV','VV'),(319,105,'Vicenza','VII','VI'),(320,105,'Viterbo','VIT','VT'),(321,195,'A Coruña','ACO','15'),(322,195,'Alava','ALA','01'),(323,195,'Albacete','ALB','02'),(324,195,'Alicante','ALI','03'),(325,195,'Almeria','ALM','04'),(326,195,'Asturias','AST','33'),(327,195,'Avila','AVI','05'),(328,195,'Badajoz','BAD','06'),(329,195,'Baleares','BAL','07'),(330,195,'Barcelona','BAR','08'),(331,195,'Burgos','BUR','09'),(332,195,'Caceres','CAC','10'),(333,195,'Cadiz','CAD','11'),(334,195,'Cantabria','CAN','39'),(335,195,'Castellon','CAS','12'),(336,195,'Ceuta','CEU','51'),(337,195,'Ciudad Real','CIU','13'),(338,195,'Cordoba','COR','14'),(339,195,'Cuenca','CUE','16'),(340,195,'Girona','GIR','17'),(341,195,'Granada','GRA','18'),(342,195,'Guadalajara','GUA','19'),(343,195,'Guipuzcoa','GUI','20'),(344,195,'Huelva','HUL','21'),(345,195,'Huesca','HUS','22'),(346,195,'Jaen','JAE','23'),(347,195,'La Rioja','LRI','26'),(348,195,'Las Palmas','LPA','35'),(349,195,'Leon','LEO','24'),(350,195,'Lleida','LLE','25'),(351,195,'Lugo','LUG','27'),(352,195,'Madrid','MAD','28'),(353,195,'Malaga','MAL','29'),(354,195,'Melilla','MEL','52'),(355,195,'Murcia','MUR','30'),(356,195,'Navarra','NAV','31'),(357,195,'Ourense','OUR','32'),(358,195,'Palencia','PAL','34'),(359,195,'Pontevedra','PON','36'),(360,195,'Salamanca','SAL','37'),(361,195,'Santa Cruz de Tenerife','SCT','38'),(362,195,'Segovia','SEG','40'),(363,195,'Sevilla','SEV','41'),(364,195,'Soria','SOR','42'),(365,195,'Tarragona','TAR','43'),(366,195,'Teruel','TER','44'),(367,195,'Toledo','TOL','45'),(368,195,'Valencia','VAL','46'),(369,195,'Valladolid','VLL','47'),(370,195,'Vizcaya','VIZ','48'),(371,195,'Zamora','ZAM','49'),(372,195,'Zaragoza','ZAR','50'),(373,11,'Aragatsotn','ARG','AG'),(374,11,'Ararat','ARR','AR'),(375,11,'Armavir','ARM','AV'),(376,11,'Gegharkunik','GEG','GR'),(377,11,'Kotayk','KOT','KT'),(378,11,'Lori','LOR','LO'),(379,11,'Shirak','SHI','SH'),(380,11,'Syunik','SYU','SU'),(381,11,'Tavush','TAV','TV'),(382,11,'Vayots-Dzor','VAD','VD'),(383,11,'Yerevan','YER','ER'),(384,99,'Andaman & Nicobar Islands','ANI','AI'),(385,99,'Andhra Pradesh','AND','AN'),(386,99,'Arunachal Pradesh','ARU','AR'),(387,99,'Assam','ASS','AS'),(388,99,'Bihar','BIH','BI'),(389,99,'Chandigarh','CHA','CA'),(390,99,'Chhatisgarh','CHH','CH'),(391,99,'Dadra & Nagar Haveli','DAD','DD'),(392,99,'Daman & Diu','DAM','DA'),(393,99,'Delhi','DEL','DE'),(394,99,'Goa','GOA','GO'),(395,99,'Gujarat','GUJ','GU'),(396,99,'Haryana','HAR','HA'),(397,99,'Himachal Pradesh','HIM','HI'),(398,99,'Jammu & Kashmir','JAM','JA'),(399,99,'Jharkhand','JHA','JH'),(400,99,'Karnataka','KAR','KA'),(401,99,'Kerala','KER','KE'),(402,99,'Lakshadweep','LAK','LA'),(403,99,'Madhya Pradesh','MAD','MD'),(404,99,'Maharashtra','MAH','MH'),(405,99,'Manipur','MAN','MN'),(406,99,'Meghalaya','MEG','ME'),(407,99,'Mizoram','MIZ','MI'),(408,99,'Nagaland','NAG','NA'),(409,99,'Orissa','ORI','OR'),(410,99,'Pondicherry','PON','PO'),(411,99,'Punjab','PUN','PU'),(412,99,'Rajasthan','RAJ','RA'),(413,99,'Sikkim','SIK','SI'),(414,99,'Tamil Nadu','TAM','TA'),(415,99,'Tripura','TRI','TR'),(416,99,'Uttaranchal','UAR','UA'),(417,99,'Uttar Pradesh','UTT','UT'),(418,99,'West Bengal','WES','WE'),(419,101,'Ahmadi va Kohkiluyeh','BOK','BO'),(420,101,'Ardabil','ARD','AR'),(421,101,'Azarbayjan-e Gharbi','AZG','AG'),(422,101,'Azarbayjan-e Sharqi','AZS','AS'),(423,101,'Bushehr','BUS','BU'),(424,101,'Chaharmahal va Bakhtiari','CMB','CM'),(425,101,'Esfahan','ESF','ES'),(426,101,'Fars','FAR','FA'),(427,101,'Gilan','GIL','GI'),(428,101,'Gorgan','GOR','GO'),(429,101,'Hamadan','HAM','HA'),(430,101,'Hormozgan','HOR','HO'),(431,101,'Ilam','ILA','IL'),(432,101,'Kerman','KER','KE'),(433,101,'Kermanshah','BAK','BA'),(434,101,'Khorasan-e Junoubi','KHJ','KJ'),(435,101,'Khorasan-e Razavi','KHR','KR'),(436,101,'Khorasan-e Shomali','KHS','KS'),(437,101,'Khuzestan','KHU','KH'),(438,101,'Kordestan','KOR','KO'),(439,101,'Lorestan','LOR','LO'),(440,101,'Markazi','MAR','MR'),(441,101,'Mazandaran','MAZ','MZ'),(442,101,'Qazvin','QAS','QA'),(443,101,'Qom','QOM','QO'),(444,101,'Semnan','SEM','SE'),(445,101,'Sistan va Baluchestan','SBA','SB'),(446,101,'Tehran','TEH','TE'),(447,101,'Yazd','YAZ','YA'),(448,101,'Zanjan','ZAN','ZA');

--
-- Table structure for table `jos_vm_tax_rate`
--

CREATE TABLE `jos_vm_tax_rate` (
  `tax_rate_id` int(11) NOT NULL AUTO_INCREMENT,
  `vendor_id` int(11) DEFAULT NULL,
  `tax_state` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  `tax_country` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  `mdate` int(11) DEFAULT NULL,
  `tax_rate` decimal(10,5) DEFAULT NULL,
  PRIMARY KEY (`tax_rate_id`),
  KEY `idx_tax_rate_vendor_id` (`vendor_id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='The tax rates for your store';

--
-- Dumping data for table `jos_vm_tax_rate`
--

INSERT INTO `jos_vm_tax_rate` VALUES (2,1,'CA','USA',964565926,0.09750);

--
-- Table structure for table `jos_vm_user_info`
--

CREATE TABLE `jos_vm_user_info` (
  `user_info_id` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `user_id` int(11) NOT NULL DEFAULT '0',
  `address_type` char(2) COLLATE utf8_unicode_ci DEFAULT NULL,
  `address_type_name` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `company` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  `title` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `last_name` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `first_name` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `middle_name` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `phone_1` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `phone_2` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `fax` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `address_1` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `address_2` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  `city` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `state` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `country` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'US',
  `zip` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `user_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `extra_field_1` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `extra_field_2` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `extra_field_3` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `extra_field_4` char(1) COLLATE utf8_unicode_ci DEFAULT NULL,
  `extra_field_5` char(1) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cdate` int(11) DEFAULT NULL,
  `mdate` int(11) DEFAULT NULL,
  `perms` varchar(40) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'shopper',
  `bank_account_nr` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `bank_name` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `bank_sort_code` varchar(16) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `bank_iban` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `bank_account_holder` varchar(48) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `bank_account_type` enum('Checking','Business Checking','Savings') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Checking',
  PRIMARY KEY (`user_info_id`),
  KEY `idx_user_info_user_id` (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Customer Information, BT = BillTo and ST = ShipTo';

--
-- Dumping data for table `jos_vm_user_info`
--

INSERT INTO `jos_vm_user_info` VALUES ('9d5c25df33e7c2ea5ed81a4da790597b',62,'BT',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,'','','US','','topangacreek@gmail.com',NULL,NULL,NULL,NULL,NULL,1273525488,1275651645,'shopper','','','','','','Checking');

--
-- Table structure for table `jos_vm_userfield`
--

CREATE TABLE `jos_vm_userfield` (
  `fieldid` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `description` mediumtext COLLATE utf8_unicode_ci NOT NULL,
  `type` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `maxlength` int(11) DEFAULT NULL,
  `size` int(11) DEFAULT NULL,
  `required` tinyint(4) DEFAULT '0',
  `ordering` int(11) DEFAULT NULL,
  `cols` int(11) DEFAULT NULL,
  `rows` int(11) DEFAULT NULL,
  `value` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  `default` int(11) DEFAULT NULL,
  `published` tinyint(1) NOT NULL DEFAULT '1',
  `registration` tinyint(1) NOT NULL DEFAULT '0',
  `shipping` tinyint(1) NOT NULL DEFAULT '0',
  `account` tinyint(1) NOT NULL DEFAULT '1',
  `readonly` tinyint(1) NOT NULL DEFAULT '0',
  `calculated` tinyint(1) NOT NULL DEFAULT '0',
  `sys` tinyint(4) NOT NULL DEFAULT '0',
  `vendor_id` int(11) DEFAULT NULL,
  `params` mediumtext COLLATE utf8_unicode_ci,
  PRIMARY KEY (`fieldid`)
) ENGINE=MyISAM AUTO_INCREMENT=36 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Holds the fields for the user information';

--
-- Dumping data for table `jos_vm_userfield`
--



--
-- Table structure for table `jos_vm_userfield_values`
--

CREATE TABLE `jos_vm_userfield_values` (
  `fieldvalueid` int(11) NOT NULL AUTO_INCREMENT,
  `fieldid` int(11) NOT NULL DEFAULT '0',
  `fieldtitle` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `fieldvalue` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  `ordering` int(11) NOT NULL DEFAULT '0',
  `sys` tinyint(4) NOT NULL DEFAULT '0',
  PRIMARY KEY (`fieldvalueid`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Holds the different values for dropdown and radio lists';

--
-- Dumping data for table `jos_vm_userfield_values`
--

INSERT INTO `jos_vm_userfield_values` VALUES (1,25,'PHPSHOP_ACCOUNT_LBL_ACCOUNT_TYPE_BUSINESSCHECKING','Checking',1,1),(2,25,'PHPSHOP_ACCOUNT_LBL_ACCOUNT_TYPE_CHECKING','Business Checking',2,1),(3,25,'PHPSHOP_ACCOUNT_LBL_ACCOUNT_TYPE_SAVINGS','Savings',3,1);

--
-- Table structure for table `jos_vm_vendor`
--

CREATE TABLE `jos_vm_vendor` (
  `vendor_id` int(11) NOT NULL AUTO_INCREMENT,
  `vendor_name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  `contact_last_name` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `contact_first_name` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `contact_middle_name` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `contact_title` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `contact_phone_1` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `contact_phone_2` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `contact_fax` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `contact_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `vendor_phone` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
  `vendor_address_1` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `vendor_address_2` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  `vendor_city` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `vendor_state` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `vendor_country` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'US',
  `vendor_zip` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `vendor_store_name` varchar(128) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `vendor_store_desc` text COLLATE utf8_unicode_ci,
  `vendor_category_id` int(11) DEFAULT NULL,
  `vendor_thumb_image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `vendor_full_image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `vendor_currency` varchar(16) COLLATE utf8_unicode_ci DEFAULT NULL,
  `cdate` int(11) DEFAULT NULL,
  `mdate` int(11) DEFAULT NULL,
  `vendor_image_path` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `vendor_terms_of_service` text COLLATE utf8_unicode_ci NOT NULL,
  `vendor_url` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `vendor_min_pov` decimal(10,2) DEFAULT NULL,
  `vendor_freeshipping` decimal(10,2) NOT NULL DEFAULT '0.00',
  `vendor_currency_display_style` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `vendor_accepted_currencies` text COLLATE utf8_unicode_ci NOT NULL,
  `vendor_address_format` text COLLATE utf8_unicode_ci NOT NULL,
  `vendor_date_format` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`vendor_id`),
  KEY `idx_vendor_name` (`vendor_name`),
  KEY `idx_vendor_category_id` (`vendor_category_id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Vendors manage their products in your store';

--
-- Dumping data for table `jos_vm_vendor`
--

INSERT INTO `jos_vm_vendor` VALUES (1,'Hollywood Isle Store','Owner','Demo','Store','Mr.','555-555-1212','555-555-1212','555-555-1212','topangacreek@gmail.com','555-555-1212','100 Washupito Avenue, N.W.','','Lake Forest','CA','USA','92630','Hollywood Isle Store','',0,'','Hollywood_Isle_S_4c0da52e397bd.png','USD',950302468,1275962670,'','<h5>You haven\\\'t configured any terms of service yet. Click <a href=\\\"administrator/index2.php?page=store.store_form&amp;option=com_virtuemart\\\">here</a> to change this text.</h5>','http://hollywoodisle.com',0.00,0.00,'1|$|2|.| |2|1','USD','{storename}\r\n{address_1}\r\n{address_2}\r\n{city}, {zip}','%A, %d %B %Y %H:%M');

--
-- Table structure for table `jos_vm_vendor_category`
--

CREATE TABLE `jos_vm_vendor_category` (
  `vendor_category_id` int(11) NOT NULL AUTO_INCREMENT,
  `vendor_category_name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
  `vendor_category_desc` text COLLATE utf8_unicode_ci,
  PRIMARY KEY (`vendor_category_id`),
  KEY `idx_vendor_category_category_name` (`vendor_category_name`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='The categories that vendors are assigned to';

--
-- Dumping data for table `jos_vm_vendor_category`
--

INSERT INTO `jos_vm_vendor_category` VALUES (6,'-default-','Default');

--
-- Table structure for table `jos_vm_waiting_list`
--

CREATE TABLE `jos_vm_waiting_list` (
  `waiting_list_id` int(11) NOT NULL AUTO_INCREMENT,
  `product_id` int(11) NOT NULL DEFAULT '0',
  `user_id` int(11) NOT NULL DEFAULT '0',
  `notify_email` varchar(150) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
  `notified` enum('0','1') COLLATE utf8_unicode_ci DEFAULT '0',
  `notify_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`waiting_list_id`),
  KEY `product_id` (`product_id`),
  KEY `notify_email` (`notify_email`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Stores notifications, users waiting f. products out of stock';

--
-- Dumping data for table `jos_vm_waiting_list`
--


--
-- Table structure for table `jos_vm_zone_shipping`
--

CREATE TABLE `jos_vm_zone_shipping` (
  `zone_id` int(11) NOT NULL AUTO_INCREMENT,
  `zone_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `zone_cost` decimal(10,2) DEFAULT NULL,
  `zone_limit` decimal(10,2) DEFAULT NULL,
  `zone_description` text COLLATE utf8_unicode_ci NOT NULL,
  `zone_tax_rate` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`zone_id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='The Zones managed by the Zone Shipping Module';

--
-- Dumping data for table `jos_vm_zone_shipping`
--

INSERT INTO `jos_vm_zone_shipping` VALUES (1,'Default',6.00,35.00,'This is the default Shipping Zone. This is the zone information that all countries will use until you assign each individual country to a Zone.',2),(2,'Zone 1',1000.00,10000.00,'This is a zone example',2),(3,'Zone 2',2.00,22.00,'This is the second zone. You can use this for notes about this zone',2),(4,'Zone 3',11.00,64.00,'Another usefull thing might be details about this zone or special instructions.',2);

--
-- Table structure for table `jos_weblinks`
--

CREATE TABLE `jos_weblinks` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `catid` int(11) NOT NULL DEFAULT '0',
  `sid` int(11) NOT NULL DEFAULT '0',
  `title` varchar(250) NOT NULL DEFAULT '',
  `alias` varchar(255) 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(11) NOT NULL DEFAULT '0',
  `published` tinyint(1) NOT NULL DEFAULT '0',
  `checked_out` int(11) NOT NULL DEFAULT '0',
  `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `ordering` int(11) NOT NULL DEFAULT '0',
  `archived` tinyint(1) NOT NULL DEFAULT '0',
  `approved` tinyint(1) NOT NULL DEFAULT '1',
  `params` text NOT NULL,
  PRIMARY KEY (`id`),
  KEY `catid` (`catid`,`published`,`archived`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Dumping data for table `jos_weblinks`
--



