Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor offcanvas cart #329

Merged
merged 43 commits into from
Jan 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
048b884
Moved notices to offcanvas-cart (only on product pages)
crftwrk Aug 27, 2022
1c84602
Trigger offcanvas-cart when cart is loaded
crftwrk Aug 27, 2022
2f32531
Removed duplicate `;`
crftwrk Aug 27, 2022
2ab3689
Exclude Affiliata/External product from ajax cart
crftwrk Aug 27, 2022
16cf2a9
Add loading spinner to add_to_cart_button
crftwrk Aug 29, 2022
a29e04d
Top margin only to first alert
crftwrk Aug 29, 2022
52f65ef
Create fake alert to offcanvas cart in archive (Just testing)
crftwrk Aug 30, 2022
92d8c13
Disable fake alert in loop
crftwrk Aug 31, 2022
dd96b83
Merge pull request #235 from bootscore/main
crftwrk Sep 3, 2022
086330d
Added notices and prevent redirect if product add to cart failed
crftwrk Sep 3, 2022
9d9e06c
Remove cart-loader
crftwrk Sep 3, 2022
27976fb
Remove cart-loader
crftwrk Sep 5, 2022
96ccea2
Move all ajax cart based scripts to `ajax-add-to-cart.php`
crftwrk Sep 5, 2022
0dc4a9c
Merge pull request #238 from bootscore/main
crftwrk Sep 5, 2022
e221956
Moved ajax styles from product.scss to offcanvas.scss
crftwrk Sep 5, 2022
93fb57d
Merge pull request #250 from bootscore/main
crftwrk Sep 9, 2022
23eb2ec
Merge pull request #256 from bootscore/main
crftwrk Sep 14, 2022
af9849c
Merge pull request #260 from bootscore/main
crftwrk Sep 15, 2022
7ca2107
Merge pull request #281 from bootscore/main
crftwrk Oct 6, 2022
a06082f
Merge pull request #283 from bootscore/main
crftwrk Oct 8, 2022
03f273b
Merge pull request #303 from bootscore/main
crftwrk Nov 3, 2022
e2d6289
Improve btn-loader
crftwrk Dec 10, 2022
a33ca0b
Stretched link to outofstock cards
crftwrk Dec 10, 2022
605263d
Refactor btn loader
crftwrk Dec 15, 2022
9d7bd71
Merge pull request #327 from bootscore/main
crftwrk Dec 16, 2022
f6e47bc
Clean-up _wc_offcanvas_cart.scss
crftwrk Dec 16, 2022
598d1f1
Add title to `single_add_to_cart_button` in loop
crftwrk Dec 17, 2022
50799e7
Update add-to-cart.php
crftwrk Dec 17, 2022
a1eb61c
Revert https://github.com/bootscore/bootscore/commit/598d1f1b4454f882…
crftwrk Dec 17, 2022
f201e3b
Add product title to alert-danger notice
crftwrk Dec 17, 2022
58c8479
Translation-ready alert strings
crftwrk Dec 18, 2022
d4ce503
Fetch product title from button attribute instead of card
crftwrk Dec 18, 2022
1e1ef2d
Move back the ajax header minicart to woocommerce-functions.php
crftwrk Dec 19, 2022
bf73101
Cleanup `ajax-add-to-cart.php` and `woocommerce.js`
crftwrk Dec 19, 2022
9b7bd21
Rename `_wc_offcanvas_cart.scss`to `_wc_ajax_cart.scss`
crftwrk Dec 19, 2022
deab11f
Add German translation to offcanvas alerts
crftwrk Dec 19, 2022
9a2a972
Change btn-loader #{$prefix}
crftwrk Dec 22, 2022
415d2ce
Merge pull request #342 from bootscore/main
crftwrk Jan 2, 2023
e8bea45
Fix empty cart on browser back button
crftwrk Jan 6, 2023
3a0123c
Some formatting
justinkruit Jan 6, 2023
31571e6
Changed vars to lets and consts
justinkruit Jan 6, 2023
05957ae
Update _bscore_woocommerce.scss
crftwrk Jan 10, 2023
072f50b
Update header-woocommerce.php
crftwrk Jan 10, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions header-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* @package Bootscore
*
* @version 5.2.0.0
* @version 5.2.3.1
*/

?>
Expand Down Expand Up @@ -150,15 +150,10 @@
<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body p-0">
<div class="cart-loader bg-white position-absolute end-0 bottom-0 start-0 d-flex align-items-center justify-content-center">
<div class="loader-icon ">
<div class="spinner-border text-primary"></div>
</div>
</div>
<div class="cart-list">
<div class="widget_shopping_cart_content"><?php woocommerce_mini_cart(); ?></div>
</div>
</div>
</div>

</header><!-- #masthead -->
</header><!-- #masthead -->
59 changes: 28 additions & 31 deletions languages/bootscore.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: _s 1.0.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/tags/_s\n"
"POT-Creation-Date: 2022-06-20 07:52+0000\n"
"POT-Creation-Date: 2022-12-19 12:05+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand All @@ -16,26 +16,20 @@ msgstr ""
"Language: \n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;"

#: functions.php:282
#: functions.php:278
msgid ""
" <a href=\"https://www.microsoft.com/edge\" target=\"_blank\">Microsoft "
"Edge</a> "
msgstr ""

#: functions.php:280
#: functions.php:276
msgid ""
" <a href=\"https://www.mozilla.org/firefox/\" target=\"_blank\">Mozilla "
"Firefox</a>, <a href=\"https://www.google.com/chrome/\" target=\"_blank\">"
"Google Chrome</a>, <a href=\"https://www.opera.com/\" target=\"_blank\">"
"Opera</a> "
msgstr ""

#: single.php:29 single-templates/single-sidebar-none.php:28
#: single-templates/single-sidebar-left.php:31
#: single-templates/single-full-width-image.php:37
msgid " by "
msgstr ""

#: inc/comment-list.php:44
#, php-format
msgid "%s <span class=\"says d-none\">says:</span>"
Expand Down Expand Up @@ -188,6 +182,10 @@ msgstr ""
msgid "Full width image"
msgstr ""

#: woocommerce/ajax-cart/ajax-add-to-cart.php:138
msgid "has been added to your cart."
msgstr ""

#: woocommerce/myaccount/my-account-offcanvas.php:17
msgid "Hello"
msgstr ""
Expand All @@ -206,7 +204,7 @@ msgstr ""
msgid "https://bootscore.me/"
msgstr ""

#: functions.php:277
#: functions.php:273
msgid "Internet Explorer detected"
msgstr ""

Expand Down Expand Up @@ -238,7 +236,7 @@ msgstr ""
msgid "Look what I found: "
msgstr ""

#: header-woocommerce.php:55 header.php:55
#: header.php:55 header-woocommerce.php:55
msgid "Menu"
msgstr ""

Expand Down Expand Up @@ -270,7 +268,7 @@ msgstr ""
msgid "Open side menu"
msgstr ""

#: functions.php:281
#: functions.php:277
msgid "or"
msgstr ""

Expand All @@ -279,21 +277,21 @@ msgid "Page not found."
msgstr ""

#: page.php:44 page-templates/page-blank-with-container.php:25
#: page-templates/page-sidebar-left.php:39 page-templates/page-blank.php:25
#: page-templates/page-sidebar-none.php:34
#: page-templates/page-sidebar-none.php:34 page-templates/page-blank.php:25
#: page-templates/page-blank-without-container.php:25
#: page-templates/page-sidebar-left.php:39
msgid "Pages:"
msgstr ""

#: functions.php:442
#: functions.php:448
msgid "Password"
msgstr ""

#: inc/comment-list.php:27
msgid "Pingback:"
msgstr ""

#: functions.php:279
#: functions.php:275
msgid "Please use a modern and secure web browser like"
msgstr ""

Expand All @@ -307,17 +305,8 @@ msgstr ""
msgid "Post Comment"
msgstr ""

#: author.php:69
msgid "Read more"
msgstr ""

#: archive-sidebar-left.php:66 archive-equal-height.php:64 archive.php:64
#: archive-equal-height-sidebar-right.php:63 category-equal-height.php:64
#: category-sidebar-left.php:64 category.php:62 author-sidebar-left.php:72
#: category-masonry.php:64 author-equal-height.php:70
#: category-equal-height-sidebar-right.php:64
#: author-equal-height-sidebar-right.php:69 author-masonry.php:70 index.php:82
#: index.php:139 archive-masonry.php:64 template-parts/content-search.php:43
#: archive.php:64 index.php:82 index.php:139
#: template-parts/content-search.php:43
msgid "Read more »"
msgstr ""

Expand Down Expand Up @@ -365,7 +354,7 @@ msgstr ""
msgid "Start typing..."
msgstr ""

#: functions.php:443
#: functions.php:449
msgid "Submit"
msgstr ""

Expand All @@ -375,18 +364,22 @@ msgstr ""
msgid "Tagged %1$s"
msgstr ""

#: functions.php:278
#: functions.php:274
msgid "This website will offer limited functionality in this browser."
msgstr ""

#: functions.php:283
#: functions.php:279
msgid "to display this site correctly."
msgstr ""

#: woocommerce/cart/mini-cart.php:120
#: woocommerce/cart/mini-cart.php:118
msgid "To find out your shipping cost, please proceed to checkout."
msgstr ""

#: woocommerce/ajax-cart/ajax-add-to-cart.php:136
msgid "to your cart."
msgstr ""

#: functions.php:160
msgid "Top Footer"
msgstr ""
Expand All @@ -403,6 +396,10 @@ msgstr ""
msgid "Website"
msgstr ""

#: woocommerce/ajax-cart/ajax-add-to-cart.php:136
msgid "You cannot add another"
msgstr ""

#: inc/comment-list.php:56
msgid "Your comment is awaiting moderation."
msgstr ""
Expand Down
Binary file modified languages/de_DE.mo
Binary file not shown.
68 changes: 32 additions & 36 deletions languages/de_DE.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,28 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2022-06-20 07:56+0000\n"
"PO-Revision-Date: 2022-12-19 12:07+0000\n"
"Last-Translator: \n"
"Language-Team: German\n"
"Language-Team: Deutsch\n"
"X-Generator: Loco https://localise.biz/\n"
"Language: de_DE\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Loco-Version: 2.5.2; wp-5.7.2"
"X-Loco-Version: 2.6.3; wp-6.1.1"

#: functions.php:282
#: functions.php:278
msgid ""
" <a href=\"https://www.microsoft.com/edge\" target=\"_blank\">Microsoft "
"Edge</a> "
msgstr ""

#: functions.php:280
#: functions.php:276
msgid ""
" <a href=\"https://www.mozilla.org/firefox/\" target=\"_blank\">Mozilla "
"Firefox</a>, <a href=\"https://www.google.com/chrome/\" target=\"_blank\">"
"Google Chrome</a>, <a href=\"https://www.opera.com/\" target=\"_blank\">"
"Opera</a> "
msgstr ""

#: single.php:29 single-templates/single-sidebar-none.php:28
#: single-templates/single-sidebar-left.php:31
#: single-templates/single-full-width-image.php:37
msgid " by "
msgstr " von "

#: inc/comment-list.php:44
#, php-format
msgid "%s <span class=\"says d-none\">says:</span>"
Expand Down Expand Up @@ -110,10 +104,9 @@ msgstr ""

#. Name of the theme
#. Author of the theme
#, fuzzy
#| msgid "bootScore 5"
msgid "bootScore"
msgstr "bootScore 5"
msgstr "bootScore"

#: comments.php:104
msgid "Cancel"
Expand Down Expand Up @@ -193,6 +186,10 @@ msgstr "Bild in voller Breite"
msgid "Full width image"
msgstr "Bild in voller Breite"

#: woocommerce/ajax-cart/ajax-add-to-cart.php:138
msgid "has been added to your cart."
msgstr "wurde deinem Warenkorb hinzugefügt."

#: woocommerce/myaccount/my-account-offcanvas.php:17
msgid "Hello"
msgstr "Hallo"
Expand All @@ -213,7 +210,7 @@ msgstr ""
msgid "https://bootscore.me/"
msgstr "https://bootscore.me/"

#: functions.php:277
#: functions.php:273
msgid "Internet Explorer detected"
msgstr "Internet Explorer erkannt"

Expand All @@ -237,7 +234,7 @@ msgstr "Kommentar schreiben"
#: comments.php:103
#, php-format
msgid "Leave a Comment to %s"
msgstr "Kommentar schreiben"
msgstr "Kommentar schreiben %s"

#. Name of the template
msgid "Left Sidebar"
Expand All @@ -247,7 +244,7 @@ msgstr "Linke Sidebar"
msgid "Look what I found: "
msgstr "Schau mal was ich gefunden habe: "

#: header-woocommerce.php:55 header.php:55
#: header.php:55 header-woocommerce.php:55
msgid "Menu"
msgstr "Menü"

Expand Down Expand Up @@ -279,7 +276,7 @@ msgstr "Ältere Kommentare"
msgid "Open side menu"
msgstr "Seitenmenü öffnen"

#: functions.php:281
#: functions.php:277
msgid "or"
msgstr "oder"

Expand All @@ -288,21 +285,21 @@ msgid "Page not found."
msgstr "Seite nicht gefunden."

#: page.php:44 page-templates/page-blank-with-container.php:25
#: page-templates/page-sidebar-left.php:39 page-templates/page-blank.php:25
#: page-templates/page-sidebar-none.php:34
#: page-templates/page-sidebar-none.php:34 page-templates/page-blank.php:25
#: page-templates/page-blank-without-container.php:25
#: page-templates/page-sidebar-left.php:39
msgid "Pages:"
msgstr "Seiten:"

#: functions.php:442
#: functions.php:448
msgid "Password"
msgstr "Passwort"

#: inc/comment-list.php:27
msgid "Pingback:"
msgstr "Pingback:"

#: functions.php:279
#: functions.php:275
msgid "Please use a modern and secure web browser like"
msgstr "Bitte verwende einen modernen und sicheren Browser wie z.B."

Expand All @@ -316,17 +313,8 @@ msgstr "von %s"
msgid "Post Comment"
msgstr "Kommentar senden"

#: author.php:69
msgid "Read more"
msgstr "mehr"

#: archive-sidebar-left.php:66 archive-equal-height.php:64 archive.php:64
#: archive-equal-height-sidebar-right.php:63 category-equal-height.php:64
#: category-sidebar-left.php:64 category.php:62 author-sidebar-left.php:72
#: category-masonry.php:64 author-equal-height.php:70
#: category-equal-height-sidebar-right.php:64
#: author-equal-height-sidebar-right.php:69 author-masonry.php:70 index.php:82
#: index.php:139 archive-masonry.php:64 template-parts/content-search.php:43
#: archive.php:64 index.php:82 index.php:139
#: template-parts/content-search.php:43
msgid "Read more »"
msgstr "Weiterlesen »"

Expand Down Expand Up @@ -380,7 +368,7 @@ msgstr ""
msgid "Start typing..."
msgstr "Kommentar"

#: functions.php:443
#: functions.php:449
msgid "Submit"
msgstr "Senden"

Expand All @@ -390,19 +378,23 @@ msgstr "Senden"
msgid "Tagged %1$s"
msgstr "Schlagworte %1$s"

#: functions.php:278
#: functions.php:274
msgid "This website will offer limited functionality in this browser."
msgstr "Diese Webseite bietet eingeschränkte Funktionen in diesem Browser."

#: functions.php:283
#: functions.php:279
msgid "to display this site correctly."
msgstr "um diese Webseite korrekt darzustellen."

#: woocommerce/cart/mini-cart.php:120
#: woocommerce/cart/mini-cart.php:118
#| msgid "To find out your shipping cost , Please proceed to checkout."
msgid "To find out your shipping cost, please proceed to checkout."
msgstr "Um deine Versandkosten zu berechnen, gehe bitte zur Kasse."

#: woocommerce/ajax-cart/ajax-add-to-cart.php:136
msgid "to your cart."
msgstr "zum Warenkorb hinzufügen."

#: functions.php:160
msgid "Top Footer"
msgstr "Top Footer"
Expand All @@ -419,6 +411,10 @@ msgstr "Top Navigation Suche"
msgid "Website"
msgstr "Webseite"

#: woocommerce/ajax-cart/ajax-add-to-cart.php:136
msgid "You cannot add another"
msgstr "Du kannst keinen weiteren"

#: inc/comment-list.php:56
msgid "Your comment is awaiting moderation."
msgstr "Dein Beitrag wartet auf die Moderation."
Expand Down
Binary file modified languages/de_DE_formal.mo
Binary file not shown.
Loading