Advertisement
Juc1

commerce_add_to_cart_conf https://drupal.org/node/2265253

May 22nd, 2014
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.07 KB | None | 0 0
  1. $: profiles/commerce_kickstart/modules/contrib/commerce_add_to_cart_confirmation# ls
  2. commerce_add_to_cart_confirmation.info css/
  3. commerce_add_to_cart_confirmation.module images/
  4. commerce_add_to_cart_confirmation.rules_defaults.inc not-working-in-omega-4-2265253-2.patch
  5. commerce_add_to_cart_confirmation.rules.inc js/
  6. commerce_add_to_cart_confirmation.views_default.inc LICENSE.txt
  7.  
  8. $: profiles/commerce_kickstart/modules/contrib/commerce_add_to_cart_confirmation# cat commerce_add_to_cart_confirmation.info
  9. name = Commerce add to cart confirmation
  10. description = Provides an "add to cart" confirmation screen.
  11. core = 7.x
  12. package = Commerce (contrib)
  13. dependencies[] = commerce_cart
  14. dependencies[] = commerce_product_ui
  15. dependencies[] = views
  16. dependencies[] = rules
  17. stylesheets[all][] = css/commerce_add_to_cart_confirmation.css
  18. scripts[] = js/commerce_add_to_cart_confirmation.js
  19.  
  20. ; Information added by drupal.org packaging script on 2013-02-14
  21. version = "7.x-1.0-rc2"
  22. core = "7.x"
  23. project = "commerce_add_to_cart_confirmation"
  24. datestamp = "1360857057"
  25.  
  26. $: profiles/commerce_kickstart/modules/contrib/commerce_add_to_cart_confirmation# cat not-working-in-omega-4-2265253-2.patch
  27. diff --git a/css/commerce_add_to_cart_confirmation-rtl.css b/css/commerce_add_to_cart_confirmation-rtl.css
  28. index bd3a010..4e2ce49 100644
  29. --- a/css/commerce_add_to_cart_confirmation-rtl.css
  30. +++ b/css/commerce_add_to_cart_confirmation-rtl.css
  31. @@ -1,40 +1,40 @@
  32. /* Close button */
  33. -div.messages.commerce-add-to-cart-confirmation .message-inner .commerce-add-to-cart-confirmation-close {
  34. +div.messages.messages--commerce-add-to-cart-confirmation .message-inner .messages--commerce-add-to-cart-confirmation-close {
  35. left: 15px;
  36. right: 0; /* LTR */
  37. }
  38. /* Title */
  39. -div.messages.commerce-add-to-cart-confirmation .message-inner .added-product-title {
  40. +div.messages.messages--commerce-add-to-cart-confirmation .message-inner .added-product-title {
  41. float: right;
  42. }
  43. /* Button */
  44. -div.messages.commerce-add-to-cart-confirmation .message-inner .button-wrapper {
  45. +div.messages.messages--commerce-add-to-cart-confirmation .message-inner .button-wrapper {
  46. left: 0;
  47. right: auto;
  48. }
  49. /* Product display */
  50. -div.messages.commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .content .field-name-field-images {
  51. +div.messages.messages--commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .content .field-name-field-images {
  52. left: 0;
  53. right: -115px;
  54. }
  55. -div.messages.commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .commerce-product-sku .commerce-product-sku-label,
  56. -div.messages.commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .field .views-label,
  57. -div.messages.commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .field .field-label {
  58. +div.messages.messages--commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .commerce-product-sku .commerce-product-sku-label,
  59. +div.messages.messages--commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .field .views-label,
  60. +div.messages.messages--commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .field .field-label {
  61. float: right;
  62. padding-left: 5px;
  63. padding-right: 0;
  64. }
  65. -div.messages.commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .field {
  66. +div.messages.messages--commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .field {
  67. text-align: right;
  68. }
  69. -div.messages.commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .field .field-label {
  70. +div.messages.messages--commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .field .field-label {
  71. float: right;
  72. }
  73. -div.messages.commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .views-field-commerce-total .views-label {
  74. +div.messages.messages--commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .views-field-commerce-total .views-label {
  75. float: right;
  76. padding-left: 5px;
  77. padding-right: 0;
  78. }
  79. -div.messages.commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .views-field-commerce-total .field-content {
  80. +div.messages.messages--commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .views-field-commerce-total .field-content {
  81. float: none;
  82. }
  83. diff --git a/css/commerce_add_to_cart_confirmation.css b/css/commerce_add_to_cart_confirmation.css
  84. index b87d9af..9a1634d 100644
  85. --- a/css/commerce_add_to_cart_confirmation.css
  86. +++ b/css/commerce_add_to_cart_confirmation.css
  87. @@ -12,7 +12,7 @@ div.commerce_add_to_cart_confirmation_overlay {
  88. z-index: 200;
  89. }
  90.  
  91. -div.messages.commerce-add-to-cart-confirmation {
  92. +div.messages.messages--commerce-add-to-cart-confirmation {
  93. background-color: white;
  94. border-color: #6bb0cb;
  95. -webkit-border-radius: 3px;
  96. @@ -32,7 +32,7 @@ div.messages.commerce-add-to-cart-confirmation {
  97. z-index: 201;
  98. }
  99. /* Close button */
  100. -div.messages.commerce-add-to-cart-confirmation .message-inner .commerce-add-to-cart-confirmation-close {
  101. +div.messages.messages--commerce-add-to-cart-confirmation .message-inner .commerce-add-to-cart-confirmation-close {
  102. background: url('../images/btn_add-to-cart-close.png') no-repeat 0 0;
  103. display: block;
  104. height: 17px;
  105. @@ -42,7 +42,7 @@ div.messages.commerce-add-to-cart-confirmation .message-inner .commerce-add-to-c
  106. width: 18px;
  107. }
  108. /* Title */
  109. -div.messages.commerce-add-to-cart-confirmation .message-inner .added-product-title {
  110. +div.messages.messages--commerce-add-to-cart-confirmation .message-inner .added-product-title {
  111. color: #2698f2;
  112. float: left; /* LTR */
  113. font-size: 14px;
  114. @@ -54,7 +54,7 @@ div.messages.commerce-add-to-cart-confirmation .message-inner .added-product-tit
  115. }
  116.  
  117. /* Button */
  118. -div.messages.commerce-add-to-cart-confirmation .message-inner .button-wrapper {
  119. +div.messages.messages--commerce-add-to-cart-confirmation .message-inner .button-wrapper {
  120. background-color: #e4eef3;
  121. height: 100%;
  122. padding: 40px 30px;
  123. @@ -62,14 +62,14 @@ div.messages.commerce-add-to-cart-confirmation .message-inner .button-wrapper {
  124. right: 0; /* LTR */
  125. width: 25%;
  126. }
  127. -div.messages.commerce-add-to-cart-confirmation .message-inner .button-wrapper:after {
  128. +div.messages.messages--commerce-add-to-cart-confirmation .message-inner .button-wrapper:after {
  129. clear: both;
  130. content: ".";
  131. display: block;
  132. height: 0;
  133. visibility: hidden;
  134. }
  135. -div.messages.commerce-add-to-cart-confirmation .message-inner .button-wrapper .button {
  136. +div.messages.messages--commerce-add-to-cart-confirmation .message-inner .button-wrapper .button {
  137. -webkit-border-radius: 3px;
  138. -moz-border-radius: 3px;
  139. border-radius: 3px;
  140. @@ -79,23 +79,23 @@ div.messages.commerce-add-to-cart-confirmation .message-inner .button-wrapper .b
  141. padding: 10px;
  142. text-align: center;
  143. }
  144. -div.messages.commerce-add-to-cart-confirmation .message-inner .button-wrapper .button.checkout {
  145. +div.messages.messages--commerce-add-to-cart-confirmation .message-inner .button-wrapper .button.checkout {
  146. background-color: #2698f2;
  147. }
  148. -div.messages.commerce-add-to-cart-confirmation .message-inner .button-wrapper .button.continue {
  149. +div.messages.messages--commerce-add-to-cart-confirmation .message-inner .button-wrapper .button.continue {
  150. background-color: #b3b3b3;
  151. }
  152. -div.messages.commerce-add-to-cart-confirmation .message-inner .button-wrapper .button.continue .commerce-add-to-cart-confirmation-close {
  153. +div.messages.messages--commerce-add-to-cart-confirmation .message-inner .button-wrapper .button.continue .commerce-add-to-cart-confirmation-close {
  154. background: none;
  155. height: auto;
  156. position: static;
  157. width: auto;
  158. }
  159. -div.messages.commerce-add-to-cart-confirmation .message-inner .button-wrapper .button.checkout:hover,
  160. -div.messages.commerce-add-to-cart-confirmation .message-inner .button-wrapper .button.continue:hover {
  161. +div.messages.messages--commerce-add-to-cart-confirmation .message-inner .button-wrapper .button.checkout:hover,
  162. +div.messages.messages--commerce-add-to-cart-confirmation .message-inner .button-wrapper .button.continue:hover {
  163. cursor: pointer;
  164. }
  165. -div.messages.commerce-add-to-cart-confirmation .message-inner .button-wrapper .button a {
  166. +div.messages.messages--commerce-add-to-cart-confirmation .message-inner .button-wrapper .button a {
  167. color: white;
  168. display: block;
  169. font-weight: bold;
  170. @@ -103,49 +103,49 @@ div.messages.commerce-add-to-cart-confirmation .message-inner .button-wrapper .b
  171. }
  172.  
  173. /* Product display */
  174. -div.messages.commerce-add-to-cart-confirmation .view-confirm-message-product-display {
  175. +div.messages.messages--commerce-add-to-cart-confirmation .view-confirm-message-product-display {
  176. clear: both;
  177. }
  178. -div.messages.commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content {
  179. +div.messages.messages--commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content {
  180. padding: 15px;
  181. position: relative;
  182. width: 55%;
  183. }
  184. -div.messages.commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .content .field-name-field-images {
  185. +div.messages.messages--commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .content .field-name-field-images {
  186. position: relative;
  187. width: 130px;
  188. }
  189. -div.messages.commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .content .field-name-field-images img {
  190. +div.messages.messages--commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .content .field-name-field-images img {
  191. border: #d7d7d7 solid 1px;
  192. }
  193. -div.messages.commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .commerce-product-sku .commerce-product-sku-label,
  194. -div.messages.commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .field .views-label,
  195. -div.messages.commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .field .field-label {
  196. +div.messages.messages--commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .commerce-product-sku .commerce-product-sku-label,
  197. +div.messages.messages--commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .field .views-label,
  198. +div.messages.messages--commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .field .field-label {
  199. color: #878380;
  200. float: left; /* LTR */
  201. font-size: 12px;
  202. font-weight: bold;
  203. padding-right: 5px; /* LTR */
  204. }
  205. -div.messages.commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .field {
  206. +div.messages.messages--commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .field {
  207. clear: both;
  208. margin: 0;
  209. text-align: left; /* LTR */
  210. }
  211. -div.messages.commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .field .field-label {
  212. +div.messages.messages--commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .field .field-label {
  213. display: inline;
  214. float: left; /* LTR */
  215. }
  216. -div.messages.commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .views-field-commerce-total {
  217. +div.messages.messages--commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .views-field-commerce-total {
  218. clear: both;
  219. font-size: 20px;
  220. margin-top: 25px;
  221. }
  222. -div.messages.commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .views-field-commerce-total .views-label {
  223. +div.messages.messages--commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .views-field-commerce-total .views-label {
  224. float: left; /* LTR */
  225. padding-right: 5px; /* LTR */
  226. }
  227. -div.messages.commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .views-field-commerce-total .field-content {
  228. +div.messages.messages--commerce-add-to-cart-confirmation .view-confirm-message-product-display .view-content .views-field-commerce-total .field-content {
  229. color: #2698f2;
  230. display: inline;
  231. float: right; /* LTR */
  232. diff --git a/js/commerce_add_to_cart_confirmation.js b/js/commerce_add_to_cart_confirmation.js
  233. index f47b29e..ff6d97b 100644
  234. --- a/js/commerce_add_to_cart_confirmation.js
  235. +++ b/js/commerce_add_to_cart_confirmation.js
  236. @@ -1,14 +1,14 @@
  237. (function ($) {
  238. Drupal.behaviors.commerce_add_to_cart_confirmation_overlay = {
  239. attach:function (context, settings) {
  240. - if ($('.commerce-add-to-cart-confirmation').length > 0) {
  241. + if ($('.messages--commerce-add-to-cart-confirmation').length > 0) {
  242. // Add the background overlay.
  243.  
  244. $('body').append("<div class=\"commerce_add_to_cart_confirmation_overlay\"></div>");
  245.  
  246. // Enable the close link.
  247. $('.commerce-add-to-cart-confirmation-close').live('click touchend', function(e) {
  248. e.preventDefault();
  249. - $('.commerce-add-to-cart-confirmation').remove();
  250. + $('.messages--commerce-add-to-cart-confirmation').remove();
  251. $('.commerce_add_to_cart_confirmation_overlay').remove();
  252. });
  253. }
  254.  
  255. $: profiles/commerce_kickstart/modules/contrib/commerce_add_to_cart_confirmation# patch -p1 < not-working-in-omega-4-2265253-2.patch
  256. patching file css/commerce_add_to_cart_confirmation-rtl.css
  257. patching file css/commerce_add_to_cart_confirmation.css
  258. patching file js/commerce_add_to_cart_confirmation.js
  259. Hunk #1 FAILED at 1.
  260. patch unexpectedly ends in middle of line
  261. 1 out of 1 hunk FAILED -- saving rejects to file js/commerce_add_to_cart_confirmation.js.rej
  262. patch unexpectedly ends in middle of line
  263. $: profiles/commerce_kickstart/modules/contrib/commerce_add_to_cart_confirmation#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement