updated ubercart, faq
This commit is contained in:
@@ -21,7 +21,7 @@ class UbercartCartCheckoutTestCase extends UbercartTestHelper {
|
||||
/**
|
||||
* Overrides DrupalWebTestCase::setUp().
|
||||
*/
|
||||
function setUp() {
|
||||
protected function setUp($modules = array(), $permissions = array()) {
|
||||
$modules = array('uc_payment', 'uc_payment_pack', 'uc_roles');
|
||||
$permissions = array('administer permissions');
|
||||
parent::setUp($modules, $permissions);
|
||||
|
||||
@@ -3,9 +3,9 @@ core = 7.x
|
||||
dependencies[] = uc_cart
|
||||
hidden = TRUE
|
||||
|
||||
; Information added by Drupal.org packaging script on 2014-10-22
|
||||
version = "7.x-3.8"
|
||||
; Information added by Drupal.org packaging script on 2016-07-16
|
||||
version = "7.x-3.10"
|
||||
core = "7.x"
|
||||
project = "ubercart"
|
||||
datestamp = "1413965350"
|
||||
datestamp = "1468644909"
|
||||
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
/**
|
||||
* @file
|
||||
* RTL Styles for uc_cart module.
|
||||
*/
|
||||
|
||||
.order-review-table .title-col {
|
||||
padding-left: inherit;
|
||||
padding-right: 3em;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.order-review-table .data-col {
|
||||
padding-right: inherit;
|
||||
padding-left: 3em;
|
||||
}
|
||||
|
||||
.order-review-table .review-button-row td {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.next-button {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#uc-cart-view-form img {
|
||||
padding-right: inherit;
|
||||
padding-left: .8em;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.address-book-icon {
|
||||
margin-left: inherit;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
/**
|
||||
* CSS rules for the cart form at /cart.
|
||||
*/
|
||||
|
||||
#uc-cart-view-form .form-actions {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#uc-cart-view-form .form-actions a {
|
||||
float: right;
|
||||
}
|
||||
|
||||
#uc-cart-view-form #edit-continue-shopping {
|
||||
float: right;
|
||||
margin-left: inherit;
|
||||
margin-right: .5em;
|
||||
}
|
||||
|
||||
.uc-cart-checkout-button {
|
||||
float: left;
|
||||
clear: left;
|
||||
}
|
||||
|
||||
/**
|
||||
* CSS rules for the cart review table.
|
||||
*/
|
||||
|
||||
td.price {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
td.subtotal {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/**
|
||||
* CSS rules for the bottom of the checkout form at /cart/checkout.
|
||||
*/
|
||||
.uc-cart-checkout-form .form-actions {
|
||||
text-align: left;
|
||||
}
|
||||
@@ -27,13 +27,13 @@
|
||||
|
||||
.order-review-table .title-col {
|
||||
font-weight: bold;
|
||||
padding-left: 3em;
|
||||
text-align: right;
|
||||
padding-left: 3em; /* LTR */
|
||||
text-align: right; /* LTR */
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.order-review-table .data-col {
|
||||
padding-right: 3em;
|
||||
padding-right: 3em; /* LTR */
|
||||
}
|
||||
|
||||
.order-review-table .row-border-top {
|
||||
@@ -51,7 +51,7 @@
|
||||
|
||||
.order-review-table .review-button-row td {
|
||||
padding-top: 1em;
|
||||
text-align: right;
|
||||
text-align: right; /* LTR */
|
||||
}
|
||||
|
||||
.order-review-table .review-button-row div,
|
||||
@@ -63,7 +63,7 @@
|
||||
|
||||
.next-button {
|
||||
margin-top: 1em;
|
||||
text-align: right;
|
||||
text-align: right; /* LTR */
|
||||
}
|
||||
|
||||
#uc-cart-view-form table {
|
||||
@@ -75,13 +75,13 @@
|
||||
}
|
||||
|
||||
#uc-cart-view-form img {
|
||||
padding-right: .8em;
|
||||
float: left;
|
||||
padding-right: .8em; /* LTR */
|
||||
float: left; /* LTR */
|
||||
}
|
||||
|
||||
.address-book-icon {
|
||||
position: relative;
|
||||
margin-left: 2px;
|
||||
margin-left: 2px; /* LTR */
|
||||
top: 2px;
|
||||
}
|
||||
|
||||
@@ -103,17 +103,17 @@
|
||||
|
||||
#uc-cart-view-form .form-actions {
|
||||
margin-top: 0;
|
||||
text-align: right;
|
||||
text-align: right; /* LTR */
|
||||
}
|
||||
|
||||
#uc-cart-view-form .form-actions a {
|
||||
float: left;
|
||||
float: left; /* LTR */
|
||||
margin: .5em;
|
||||
}
|
||||
|
||||
#uc-cart-view-form #edit-continue-shopping {
|
||||
float: left;
|
||||
margin-left: .5em;
|
||||
float: left; /* LTR */
|
||||
margin-left: .5em; /* LTR */
|
||||
}
|
||||
|
||||
#uc-cart-view-form .form-actions input {
|
||||
@@ -121,8 +121,8 @@
|
||||
}
|
||||
|
||||
.uc-cart-checkout-button {
|
||||
float: right;
|
||||
clear: right;
|
||||
float: right; /* LTR */
|
||||
clear: right; /* LTR */
|
||||
}
|
||||
|
||||
.uc-cart-checkout-button-separator {
|
||||
@@ -138,7 +138,7 @@ td.qty {
|
||||
}
|
||||
|
||||
td.price {
|
||||
text-align: right;
|
||||
text-align: right; /* LTR */
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@@ -147,7 +147,7 @@ td.products {
|
||||
}
|
||||
|
||||
td.subtotal {
|
||||
text-align: right;
|
||||
text-align: right; /* LTR */
|
||||
}
|
||||
|
||||
#subtotal-title {
|
||||
@@ -170,5 +170,5 @@ td.subtotal {
|
||||
* CSS rules for the bottom of the checkout form at /cart/checkout.
|
||||
*/
|
||||
.uc-cart-checkout-form .form-actions {
|
||||
text-align: right;
|
||||
text-align: right; /* LTR */
|
||||
}
|
||||
|
||||
@@ -16,9 +16,9 @@ files[] = uc_cart.controller.inc
|
||||
|
||||
configure = admin/store/settings/cart
|
||||
|
||||
; Information added by Drupal.org packaging script on 2014-10-22
|
||||
version = "7.x-3.8"
|
||||
; Information added by Drupal.org packaging script on 2016-07-16
|
||||
version = "7.x-3.10"
|
||||
core = "7.x"
|
||||
project = "ubercart"
|
||||
datestamp = "1413965350"
|
||||
datestamp = "1468644909"
|
||||
|
||||
|
||||
@@ -7,8 +7,9 @@ Drupal.behaviors.ucCart = {
|
||||
attach: function(context, settings) {
|
||||
// Add a throbber to the submit order button on the review order form.
|
||||
jQuery('form#uc-cart-checkout-review-form input#edit-submit:not(.ucSubmitOrderThrobber-processed)', context).addClass('ucSubmitOrderThrobber-processed').click(function() {
|
||||
jQuery(this).clone().insertAfter(this).attr('disabled', true).after('<span class="ubercart-throbber"> </span>').end().hide();
|
||||
jQuery('#uc-cart-checkout-review-form #edit-back').attr('disabled', true);
|
||||
jQuery(this).clone().insertAfter(this).after('<span class="ubercart-throbber"> </span>')[0].disabled = true;
|
||||
jQuery(this).hide();
|
||||
jQuery('#uc-cart-checkout-review-form #edit-back')[0].disabled = true;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,6 +18,9 @@
|
||||
* - collapsed: TRUE or FALSE indicating whether or not the cart block is
|
||||
* collapsed.
|
||||
*
|
||||
* @return string
|
||||
* The HTML output.
|
||||
*
|
||||
* @ingroup themeable
|
||||
*/
|
||||
function theme_uc_cart_block_title($variables) {
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
/**
|
||||
* @file
|
||||
* Styles for the uc_cart module cart block.
|
||||
*/
|
||||
|
||||
.cart-block-icon-full,
|
||||
.cart-block-icon-empty {
|
||||
float: right;
|
||||
margin: 2px 0 0 6px;
|
||||
}
|
||||
|
||||
/**
|
||||
* Styles for the cart block title and toggle.
|
||||
*/
|
||||
.cart-block-title-bar {
|
||||
padding-right: inherit;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.cart-block-arrow {
|
||||
right: auto;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Styles for the cart block contents and summary.
|
||||
*/
|
||||
|
||||
.cart-block-item-price {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.cart-block-item-desc ul.product-description {
|
||||
padding: 0 1em 0.25em 0;
|
||||
}
|
||||
|
||||
.cart-block-summary-total {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.cart-block-summary-links td {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.cart-block-summary-links ul.links li {
|
||||
border-right: 0 none;
|
||||
border-left: solid 1px;
|
||||
padding: 0 .75em 0 1em;
|
||||
}
|
||||
|
||||
.cart-block-summary-links ul.links li.last {
|
||||
border-left: none;
|
||||
padding-left: 0;
|
||||
padding-right: inherit;
|
||||
}
|
||||
@@ -2,11 +2,12 @@
|
||||
* @file
|
||||
* Styles for the uc_cart module cart block.
|
||||
*/
|
||||
|
||||
.cart-block-icon-full,
|
||||
.cart-block-icon-empty {
|
||||
float: left;
|
||||
float: left; /* LTR */
|
||||
height: 16px;
|
||||
margin: 2px 6px 0 0;
|
||||
margin: 2px 6px 0 0; /* LTR */
|
||||
width: 16px;
|
||||
}
|
||||
|
||||
@@ -23,7 +24,7 @@
|
||||
*/
|
||||
.cart-block-title-bar {
|
||||
display: inline;
|
||||
padding-right: 20px;
|
||||
padding-right: 20px; /* LTR */
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@@ -35,7 +36,7 @@
|
||||
background: transparent url(images/bullet-arrow-up.gif) no-repeat center center;
|
||||
height: 5px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
right: 0; /* LTR */
|
||||
top: 9px;
|
||||
width: 10px;
|
||||
}
|
||||
@@ -89,13 +90,13 @@
|
||||
}
|
||||
|
||||
.cart-block-item-price {
|
||||
text-align: right;
|
||||
text-align: right; /* LTR */
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.cart-block-item-desc ul.product-description {
|
||||
margin: 0;
|
||||
padding: 0 0 0.25em 1em;
|
||||
padding: 0 0 0.25em 1em; /* LTR */
|
||||
}
|
||||
|
||||
.cart-block-item-desc .product-description li {
|
||||
@@ -128,7 +129,7 @@
|
||||
}
|
||||
|
||||
.cart-block-summary-total {
|
||||
text-align: right;
|
||||
text-align: right; /* LTR */
|
||||
white-space: nowrap;
|
||||
width: auto;
|
||||
}
|
||||
@@ -139,16 +140,16 @@
|
||||
}
|
||||
|
||||
.cart-block-summary-links td {
|
||||
text-align: right;
|
||||
text-align: right; /* LTR */
|
||||
}
|
||||
|
||||
.cart-block-summary-links ul.links li {
|
||||
border-right: solid 1px;
|
||||
border-right: solid 1px; /* LTR */
|
||||
display: inline;
|
||||
padding: 0 1em 0 .75em;
|
||||
padding: 0 1em 0 .75em; /* LTR */
|
||||
}
|
||||
|
||||
.cart-block-summary-links ul.links li.last {
|
||||
border-right: none;
|
||||
padding-right: 0;
|
||||
border-right: none; /* LTR */
|
||||
padding-right: 0; /* LTR */
|
||||
}
|
||||
|
||||
@@ -555,5 +555,5 @@ function theme_uc_checkout_pane_cart_review($variables) {
|
||||
);
|
||||
}
|
||||
|
||||
return theme('table', array('rows' => $rows, 'attributes' => array('class' => array('cart-review'))));;
|
||||
return theme('table', array('rows' => $rows, 'attributes' => array('class' => array('cart-review'))));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user