eduardopablo87 / mycart Goto Github PK
View Code? Open in Web Editor NEWThis project forked from lodeale/mycart
Un simple carrito con CodeIgniter.
This project forked from lodeale/mycart
Un simple carrito con CodeIgniter.
My Cart ------ Es un carrito realizado con el framework CodeIgniter. Se utiliza librerías session y cart. Objetivo: Tener un carrito genérico para adaptarlo a cualquier empresa de ventas de productos. Versión del framework: - CodeIgniter 2.1.0 Modificar htaccess: En la línea 17, 24 y 32 del archivo .htaccess que se encuentra en el raiz se debe cambiar por el directorio que corresponda. Ejemplo: si el carrito está en el document-root/micarrito entonces suplantar: /CodeIgniter/mycart/ por /micarrito/ y no modificar nada de lo que viene después del index.php. base de datos: -- phpMyAdmin SQL Dump -- version 3.4.10.1 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 20-03-2012 a las 18:41:42 -- Versión del servidor: 5.1.49 -- Versión de PHP: 5.3.3-7+squeeze8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Base de datos: `carrito` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `cisessions` -- CREATE TABLE IF NOT EXISTS `cisessions` ( `session_id` varchar(40) NOT NULL DEFAULT '0', `ip_address` varchar(16) NOT NULL DEFAULT '0', `user_agent` varchar(50) NOT NULL, `last_activity` int(10) unsigned NOT NULL DEFAULT '0', `user_data` text NOT NULL, PRIMARY KEY (`session_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `persona` -- CREATE TABLE IF NOT EXISTS `persona` ( `id_persona` int(11) NOT NULL AUTO_INCREMENT, `nombre_apellido` varchar(255) COLLATE utf8_spanish_ci NOT NULL, `dni` int(11) NOT NULL, `tel` int(11) NOT NULL, `direccion` varchar(255) COLLATE utf8_spanish_ci NOT NULL, `provincia` int(11) NOT NULL, PRIMARY KEY (`id_persona`), KEY `provincia` (`provincia`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci AUTO_INCREMENT=5 ; -- -- Estructura de tabla para la tabla `products` -- CREATE TABLE IF NOT EXISTS `products` ( `id` int(128) NOT NULL AUTO_INCREMENT, `name` varchar(128) NOT NULL, `price` varchar(32) NOT NULL, `image` varchar(128) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; -- -- Estructura de tabla para la tabla `provincia` -- CREATE TABLE IF NOT EXISTS `provincia` ( `id_provincia` int(11) NOT NULL AUTO_INCREMENT, `provincia` varchar(100) NOT NULL, PRIMARY KEY (`id_provincia`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ; -- -- Estructura de tabla para la tabla `user` -- CREATE TABLE IF NOT EXISTS `user` ( `id_user` int(11) NOT NULL AUTO_INCREMENT, `id_persona` int(11) DEFAULT NULL, `usuario` varchar(100) COLLATE utf8_spanish_ci NOT NULL, `clave` varchar(100) COLLATE utf8_spanish_ci NOT NULL, `email` varchar(200) COLLATE utf8_spanish_ci NOT NULL, PRIMARY KEY (`id_user`), KEY `id_persona` (`id_persona`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci AUTO_INCREMENT=8 ; -- -- Restricciones para tablas volcadas -- -- -- Filtros para la tabla `persona` -- ALTER TABLE `persona` ADD CONSTRAINT `persona_ibfk_2` FOREIGN KEY (`provincia`) REFERENCES `provincia` (`id_provincia`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Filtros para la tabla `user` -- ALTER TABLE `user` ADD CONSTRAINT `user_ibfk_2` FOREIGN KEY (`id_persona`) REFERENCES `persona` (`id_persona`) ON DELETE CASCADE ON UPDATE CASCADE; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.