Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Made adjustments to fit vih.dk event registration

  • Loading branch information...
commit 579374a54e1db633a3b172da9239bd34762d359d 1 parent bf84051
Lars Olesen lsolesen authored
11 commerce_add_to_cart_confirmation.rules.inc
View
@@ -14,10 +14,10 @@ function commerce_add_to_cart_confirmation_rules_action_info() {
),
'commerce_atcc_message' => array(
'type' => 'text',
- 'label' => t('Item successfully added to your cart'),
+ 'label' => t('Successfully added person to registration'),
'sanitize' => TRUE,
'translatable' => TRUE,
- 'default value' => t('Item successfully added to your cart'),
+ 'default value' => t('Successfully added person to registration'),
'optional' => TRUE,
),
'commerce_atcc_checkout' => array(
@@ -30,14 +30,14 @@ function commerce_add_to_cart_confirmation_rules_action_info() {
),
'commerce_atcc_continue' => array(
'type' => 'text',
- 'label' => t('Continue shopping'),
+ 'label' => t('Register more'),
'sanitize' => TRUE,
'translatable' => TRUE,
- 'default value' => t('Continue shopping'),
+ 'default value' => t('Register more'),
'optional' => TRUE,
),
),
- 'group' => t('Commerce (contrib)'),
+ 'group' => t('VIH Commerce'),
'callbacks' => array(
'execute' => 'commerce_add_to_cart_confirmation_rules_add_to_cart_message',
),
@@ -55,7 +55,6 @@ function commerce_add_to_cart_confirmation_rules_add_to_cart_message($line_item,
$message .= '<div class="button checkout">' . l(filter_xss_admin($checkout), 'cart') . '</div>';
$message .= '<div class="button continue"><span class="commerce-add-to-cart-confirmation-close">' . filter_xss_admin($continue) . '</span></div>';
$message .= '</div>';
- $message .= views_embed_view('confirm_message_product_display', 'default', $line_item->line_item_id);
$close = t('Close');
drupal_set_message('<div class="message-inner">' . filter_xss_admin($message) . '<a class="commerce-add-to-cart-confirmation-close" href="#"><span class="element-invisible">' . $close . '</span></a></div>', 'commerce-add-to-cart-confirmation');
121 css/commerce_add_to_cart_confirmation.css
View
@@ -1,16 +1,6 @@
/**
* Add to cart popin.
*/
-div.commerce_kickstart_add_to_cart_overlay {
- background: transparent url('../images/bg_add_to_cart_overlay.png') left top;
- height: 100%;
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- z-index: 200;
-}
-
div.messages.commerce-add-to-cart-confirmation {
background-color: #d6e5ec;
border-color: #6bb0cb;
@@ -28,11 +18,12 @@ div.messages.commerce-add-to-cart-confirmation {
.commerce-add-to-cart-confirmation {
background-color: white;
color: #aeaaa5;
- margin-left: -30% !important; /* width/2 */
+ margin-left: -35% !important; /* width/2 */
position: absolute;
left: 50%;
- width: 60%;
+ width: 70%;
z-index: 201;
+ height: 175px;
}
.commerce-add-to-cart-confirmation .view-content {
@@ -64,43 +55,12 @@ div.messages.commerce-add-to-cart-confirmation {
.commerce-add-to-cart-confirmation .added-product-title {
color: #2698f2;
float: left;
- font-size: 14px;
+ font-size: 16px;
font-weight: 500;
- padding: 10px 30px 10px 20px;
- text-transform: uppercase;
+ padding: 55px 30px 10px 20px;
width: 180px;
}
-.commerce-add-to-cart-confirmation .view-confirm-message-product-display {
- width: 200px;
-}
-
-.commerce-add-to-cart-confirmation .view-confirm-message-product-display img {
- position: absolute;
- left: 20px;
- top: 40px;
-}
-
-
-
-.commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content {
- padding: 15px;
- padding-right: 10px;
-}
-
-.commerce-add-to-cart-confirmation .view-confirm-message-product-display .views-field-commerce-product h2 {
- display: none;
-}
-
-.commerce-add-to-cart-confirmation .commerce-product-title {
- clear: both;
- margin-bottom: 10px;
- text-transform: uppercase;
- font-weight: bold;
- color: #575757;
- text-align: left;
-}
-
.commerce-add-to-cart-confirmation-close {
background: url('../images/btn_add-to-cart-close.png') no-repeat 0 0;
width: 18px;
@@ -147,49 +107,6 @@ div.messages.commerce-add-to-cart-confirmation {
color: white;
}
-.commerce-add-to-cart-confirmation .field-name-field-images img {
- border: #D7D7D7 solid 1px;
-}
-
-.commerce-add-to-cart-confirmation .views-field-title,
-.commerce-add-to-cart-confirmation .views-field-field-images {
- text-align: left; /* LTR */
-}
-
-.commerce-product-sku .commerce-product-sku-label,
-.commerce-add-to-cart-confirmation .views-label-quantity {
- font-weight: bold;
-}
-
-.commerce-add-to-cart-confirmation .commerce-product-sku-label,
-.commerce-add-to-cart-confirmation .views-label-commerce-price,
-.commerce-add-to-cart-confirmation .views-label-quantity,
-.commerce-add-to-cart-confirmation .field-label {
- padding-right: 5px;
-}
-
-.commerce-add-to-cart-confirmation .field,
-.commerce-add-to-cart-confirmation .commerce-product-sku {
- clear: both;
- color: #878380;
- font-size: 12px;
- margin-right: 20px; /* LTR */
-}
-
-.commerce-add-to-cart-confirmation .views-field-commerce-price {
- clear: both;
- font-size: 20px;
- font-weight: 300;
- margin-top: 25px;
-}
-
-.commerce-add-to-cart-confirmation .views-field-commerce-price .field {
- color: #2698F2;
- display: inline;
- font-size: 20px;
- float: right;
-}
-
.commerce-add-to-cart-confirmation .field:after,
.entity-commerce-product:after {
content: none;
@@ -202,31 +119,3 @@ div.messages.commerce-add-to-cart-confirmation {
right: 0;
}
-.commerce-add-to-cart-confirmation .field-name-field-images {
- clear: left;
- float: left;
-}
-
-.commerce-add-to-cart-confirmation .added-product-title {
- padding-right: 10px;
- width: 310px;
-}
-
-.commerce-add-to-cart-confirmation .view-confirm-message-product-display {
- width: 340px;
-}
-
-.commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content {
- margin-left: 130px;
- padding-top: 0px;
-}
-
-.commerce-add-to-cart-confirmation .view-content .field-content .field {
- text-align: left;
-}
-
-.commerce-add-to-cart-confirmation .view-content .field-content .field-name-field-images {
- margin-right: 10px;
- position: absolute;
- left: 20px;
-}
Please sign in to comment.
Something went wrong with that request. Please try again.