Commit 9f455fa18fbf82ade36a6018dc77f1e14eaa45ab

Authored by Rodrigo Souto
1 parent 18549df8

More css for the plugin

* Also fixing little bug on js.
plugins/shopping_cart/public/cart.js
... ... @@ -135,6 +135,7 @@ function Cart(config) {
135 135 Cart.prototype.addItem = function(enterprise, itemId, callback) {
136 136 if(!this.enterprise) {
137 137 this.enterprise = enterprise;
  138 + $(".cart-buy", this.cartElem).colorbox({href: '/profile/' + this.enterprise + '/plugins/shopping_cart/buy'});
138 139 if( !this.visible ) $(this.cartElem).show();
139 140 }
140 141 var me = this;
... ...
plugins/shopping_cart/public/style.css
... ... @@ -106,3 +106,50 @@
106 106 .cart-toggle:hover {
107 107 color: #555;
108 108 }
  109 +
  110 +#cart-request-box {
  111 + width: 690px;
  112 +}
  113 +
  114 +#cart-request-form {
  115 + width: 274px;
  116 + float: left;
  117 +}
  118 +
  119 +#cart-form-main {
  120 + border: 2px solid #FFF;
  121 + padding: 0px 10px;
  122 +}
  123 +
  124 +#cart-request-form fieldset {
  125 + clear: left;
  126 + color: #999;
  127 + border: 1px solid #BBB;
  128 + margin-top: 5px;
  129 +}
  130 +
  131 +#cart-request-form input,
  132 +#cart-request-form select {
  133 + width: 250px;
  134 +}
  135 +
  136 +#cart-form-actions {
  137 + clear: both;
  138 + padding-top: 15px;
  139 + text-align: center;
  140 +}
  141 +
  142 +#cart-items-table {
  143 + margin-left: 285px;
  144 + width: 400px
  145 +}
  146 +
  147 +.cart-table-quantity {
  148 + text-align: center;
  149 +}
  150 +
  151 +.cart-table-price,
  152 +.cart-table-total-label,
  153 +.cart-table-total-value {
  154 + text-align: right;
  155 +}
... ...