Find Jobs
Hire Freelancers

Personalized SQL query/module for OSC store

$30-100 USD

Đã hủy
Đã đăng vào gần 16 năm trước

$30-100 USD

Thanh toán khi bàn giao
We run a heavily modified OSC store. Two of the modules we are running are SPPC (Separate Pricing Per Customer) and QPBPP (Quantity Price Break Per Product). Our products also have an extra field named "products_cost" which has the cost price for any given product. We have 2 different group prices on SPPC, Retail (group 0) and Distributor (group 1). We have now created a new group Coste (group 2) which we want it to have a price halfway between products_cost and products_price for Retail group. If products_cost is 50 and products_price is 100, new price for group Coste should be 75. We are in need of a module for the admin section that will automatically drop all prices for customer group 2 on the table products_groups; and then create again prices for customer group 2 based on the current store product costs and prices. ## Deliverables The module will be run by hand when needed. It will be installed on admin / categories, when selected just show some button, and when it is doing its work it must show at least some basic output on screen on what is being done. This is a very easy module that I do not have the time or the SQL knowledge to do. I would like someone that can do it in one evening, and if possible that can use IM messanging to comunicate. I will not give access to our host/server since this can easily be done locally on anyone's computer. --- Step 1, drop all fields on table "products_groups" with "customers_group_id" = 2 Step 2, create one field on "products_groups" for each product on table "products". Step 3, finished :D --- See 5 sample items from database, table "products". First product is: products_id 96, products_price 55.1724, products_cost 24.3056. Output price should be: 24.3056 + ((55.1724 - 24.3056)/2) = 39.739 (2, 39.7400, 96, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0, 0, 0, 0, 0, 0, 0, 0, 0), ----- DROP TABLE IF EXISTS `products`; CREATE TABLE `products` ( `products_id` int(11) NOT NULL auto_increment, `products_quantity` int(4) NOT NULL default '0', `products_model` varchar(25) default NULL, `products_image` varchar(64) default NULL, `products_price` decimal(15,4) NOT NULL default '0.0000', `products_cost` decimal(15,4) NOT NULL default '0.0000', `products_date_added` datetime NOT NULL default '0000-00-00 00:00:00', `products_last_modified` datetime default NULL, `products_date_available` datetime default NULL, `products_weight` decimal(5,2) NOT NULL default '0.00', `products_status` tinyint(1) NOT NULL default '0', `products_tax_class_id` int(11) NOT NULL default '0', `manufacturers_id` int(11) default NULL, `products_ordered` int(11) NOT NULL default '0', `products_ship_price` decimal(15,4) NOT NULL default '0.0000', `products_length` decimal(6,2) NOT NULL default '12.00', `products_width` decimal(6,2) NOT NULL default '12.00', `products_height` decimal(6,2) NOT NULL default '12.00', `products_ready_to_ship` int(1) NOT NULL default '0', `products_price1` decimal(15,4) NOT NULL default '0.0000', `products_price2` decimal(15,4) NOT NULL default '0.0000', `products_price3` decimal(15,4) NOT NULL default '0.0000', `products_price4` decimal(15,4) NOT NULL default '0.0000', `products_price5` decimal(15,4) NOT NULL default '0.0000', `products_price6` decimal(15,4) NOT NULL default '0.0000', `products_price7` decimal(15,4) NOT NULL default '0.0000', `products_price8` decimal(15,4) NOT NULL default '0.0000', `products_price1_qty` int(11) NOT NULL default '0', `products_price2_qty` int(11) NOT NULL default '0', `products_price3_qty` int(11) NOT NULL default '0', `products_price4_qty` int(11) NOT NULL default '0', `products_price5_qty` int(11) NOT NULL default '0', `products_price6_qty` int(11) NOT NULL default '0', `products_price7_qty` int(11) NOT NULL default '0', `products_price8_qty` int(11) NOT NULL default '0', `products_qty_blocks` int(11) NOT NULL default '1', PRIMARY KEY (`products_id`), KEY `idx_products_date_added` (`products_date_added`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=266 ; INSERT INTO `products` (`products_id`, `products_quantity`, `products_model`, `products_image`, `products_price`, `products_cost`, `products_date_added`, `products_last_modified`, `products_date_available`, `products_weight`, `products_status`, `products_tax_class_id`, `manufacturers_id`, `products_ordered`, `products_ship_price`, `products_length`, `products_width`, `products_height`, `products_ready_to_ship`, `products_price1`, `products_price2`, `products_price3`, `products_price4`, `products_price5`, `products_price6`, `products_price7`, `products_price8`, `products_price1_qty`, `products_price2_qty`, `products_price3_qty`, `products_price4_qty`, `products_price5_qty`, `products_price6_qty`, `products_price7_qty`, `products_price8_qty`, `products_qty_blocks`) VALUES (96, 11, 'mopn2103', '[login to view URL]', 55.1724, 24.3056, '2007-08-09 13:18:51', '2008-05-20 21:58:32', NULL, 0.30, 1, 2, 0, 2, 0.0000, 12.00, 12.00, 12.00, 0, 51.7241, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 4, 0, 0, 0, 0, 0, 0, 0, 1), (97, 7, 'mopn3103', '[login to view URL]', 58.6207, 31.2500, '2007-08-09 13:19:33', '2008-05-20 21:58:49', NULL, 0.31, 1, 2, 0, 3, 0.0000, 12.00, 12.00, 12.00, 0, 55.1724, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 4, 0, 0, 0, 0, 0, 0, 0, 1), (220, 11, 'se1006f', '[login to view URL]', 60.3448, 21.9907, '2008-03-07 18:54:02', '2008-05-20 21:42:20', NULL, 0.30, 1, 2, 0, 0, 0.0000, 12.00, 12.00, 12.00, 0, 56.8966, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 4, 0, 0, 0, 0, 0, 0, 0, 1), (221, 11, 's5006f', '[login to view URL]', 77.5862, 28.3565, '2008-03-07 19:04:55', '2008-05-20 21:41:55', NULL, 1.00, 1, 2, 0, 0, 0.0000, 12.00, 12.00, 12.00, 0, 73.2759, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 4, 0, 0, 0, 0, 0, 0, 0, 1), (229, 9, 'se909f', '[login to view URL]', 60.3448, 24.8843, '2008-03-09 14:31:02', '2008-05-20 21:41:23', NULL, 0.39, 1, 2, 0, 2, 0.0000, 12.00, 12.00, 12.00, 0, 56.0345, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 4, 0, 0, 0, 0, 0, 0, 0, 1); DROP TABLE IF EXISTS `products_groups`; CREATE TABLE `products_groups` ( `customers_group_id` int(11) NOT NULL default '0', `customers_group_price` decimal(15,4) NOT NULL default '0.0000', `products_id` int(11) NOT NULL default '0', `products_price` decimal(15,4) NOT NULL default '0.0000', `products_price1` decimal(15,4) NOT NULL default '0.0000', `products_price2` decimal(15,4) NOT NULL default '0.0000', `products_price3` decimal(15,4) NOT NULL default '0.0000', `products_price4` decimal(15,4) NOT NULL default '0.0000', `products_price5` decimal(15,4) NOT NULL default '0.0000', `products_price6` decimal(15,4) NOT NULL default '0.0000', `products_price7` decimal(15,4) NOT NULL default '0.0000', `products_price8` decimal(15,4) NOT NULL default '0.0000', `products_price1_qty` int(11) NOT NULL default '0', `products_price2_qty` int(11) NOT NULL default '0', `products_price3_qty` int(11) NOT NULL default '0', `products_price4_qty` int(11) NOT NULL default '0', `products_price5_qty` int(11) NOT NULL default '0', `products_price6_qty` int(11) NOT NULL default '0', `products_price7_qty` int(11) NOT NULL default '0', `products_price8_qty` int(11) NOT NULL default '0', `products_qty_blocks` int(11) NOT NULL default '1' ) ENGINE=MyISAM DEFAULT CHARSET=latin1; INSERT INTO `products_groups` (`customers_group_id`, `customers_group_price`, `products_id`, `products_price`, `products_price1`, `products_price2`, `products_price3`, `products_price4`, `products_price5`, `products_price6`, `products_price7`, `products_price8`, `products_price1_qty`, `products_price2_qty`, `products_price3_qty`, `products_price4_qty`, `products_price5_qty`, `products_price6_qty`, `products_price7_qty`, `products_price8_qty`, `products_qty_blocks`) VALUES (2, 39.7400, 96, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0, 0, 0, 0, 0, 0, 0, 0, 0), (2, 44.9400, 97, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0, 0, 0, 0, 0, 0, 0, 0, 0), (2, 52.9700, 221, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0, 0, 0, 0, 0, 0, 0, 0, 0), (2, 41.1600, 220, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0, 0, 0, 0, 0, 0, 0, 0, 0), (2, 42.6100, 229, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0, 0, 0, 0, 0, 0, 0, 0, 0);
Mã dự án: 3940851

Về dự án

1 đề xuất
Dự án từ xa
Hoạt động 16 năm trước

Bạn muốn kiếm tiền?

Lợi ích khi chào giá trên Freelancer

Thiết lập ngân sách và thời gian
Nhận thanh toán cho công việc
Phác thảo đề xuất của bạn
Miễn phí đăng ký và cháo giá cho công việc
1 freelancer chào giá trung bình $81 USD cho công việc này
Avatar người dùng
See private message.
$80,75 USD trong 7 ngày
0,0 (0 nhận xét)
0,0
0,0

Về khách hàng

Cờ của SPAIN
Barcelona, Spain
5,0
12
Phương thức thanh toán đã xác thực
Thành viên từ thg 8 21, 2001

Xác thực khách hàng

Cảm ơn bạn! Chúng tôi đã gửi email chứa đường link để bạn lấy tín dụng miễn phí.
Đã xảy ra lỗi trong khi gửi email của bạn. Hãy thử lại.
Người Dùng Đã Đăng Ký Tổng Số Việc Đã Đăng
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Đang tải xem trước
Đã cấp quyền truy cập vị trí.
Phiên đăng nhập của bạn đã hết hạn và bạn đã bị đăng xuất. Hãy đăng nhập lại.