The Christmas Chronicles: Notes, stories & 100 essential recipes for midwinter (2024)

<% selected_variant.series_details.seriesTitle %>: Volume Number <%selected_variant.series_details.seriesSequenceNumber%>
<% selected_variant.series_details.seriesTitle %>: Volume Number <%selected_variant.series_details.seriesSequenceNumber%>

<%selected_variant.sub_title%>

On Sale: <% selected_variant.publish_date %>

The Christmas Chronicles: Notes, stories & 100 essential recipes for midwinter (2)

<% selected_variant.series_details.seriesTitle %>: Volume Number <%selected_variant.series_details.seriesSequenceNumber%>
<% selected_variant.series_details.seriesTitle %>: Volume Number <%selected_variant.series_details.seriesSequenceNumber%>

<%selected_variant.sub_title%>

On Sale: <% selected_variant.publish_date %>

Spend £25 and get FREE shipping on Harpercollins.co.uk

Qty:

This product is unavailable, please try our other retailers

about

Product Details

reviews

accessibility

sustainability

    <% awards.text %>

+ Read More

ISBN: <% selected_variant.sku %>
ISBN 10: <% selected_variant.isbn10 %>
Imprint: <% selected_variant.imprint %>
On Sale: <% selected_variant.publish_date %>

Trimsize: <% selected_variant.trim_size %>

Pages: <% selected_variant.pages %>

Age: <% selected_variant.age %>

Category <%index + 1%>: <%value.subject_text%>


    -

+ Read More

Links

    <% awards.text %>

ISBN: <% selected_variant.sku %>
ISBN 10: <% selected_variant.isbn10 %>
Imprint: <% selected_variant.imprint %>
On Sale: <% selected_variant.publish_date %>

Trimsize: <% selected_variant.trim_size %>

Pages: <% selected_variant.pages %>

Age: <% selected_variant.age %>

Category: <%value.subject_text%>

The Christmas Chronicles: Notes, stories & 100 essential recipes for midwinter

How our ebooks work

Ebooks purchased here are fulfilled by our partner, Glose.

Please note that:

  • Ebooks are available for purchase on publication day (pre-order is not available)
  • For all ebook purchases, you will be prompted to create an account or login with your existing HarperCollins username and password. This ensures accurate delivery of your items.
  • To access your ebook(s) after purchasing, you can download the free Glose app or read instantly on your browser by logging into Glose.com. To log in, select OTHER SIGN IN/LOGIN OPTIONS and then click SIGN IN/LOG IN WITH HARPERCOLLINS, using the same email address and password used for your HarperCollins.co.uk account.
  • Ebooks fulfilled through Glose cannot be printed, downloaded as PDF, or read in other digital readers (like Kindle or Nook).
  • For more information about ebooks purchased on HarperCollins.co.uk, please see the following resources:

<% item.watch %>

`; this_variant['catalogPromo'] =[]; this_variant['sociallinks'] = null; this_variant['breadcrumbs'] = []; this_variant['messaging'] =[{"shippinginfotype":"domestic"}];this_variant = self.product.variants.find(function(v){ return v.id == '32888866373710'}); this_variant['contributors'] = [{"lang":"unknown","personName":"Nigel Slater","roleNote":"Author of a textual work","contributorKey":"nigel-slater","roleDescription":"By (author)","id":"005349","roleCode":"A01"}]; this_variant['title'] = `ebook`; this_variant['price'] = 1499; this_variant['priceMoney'] = 14.99; this_variant['compare_at_price'] = 0; this_variant['sku'] = `9780008260200`; this_variant['barcode'] = `9780008260200`; this_variant['isbn10'] = `0008260206`; this_variant['onix_categories'] = [{"subject_code":"W","subject_text":"Lifestyle, Hobbies and Leisure"},{"subject_code":"WB","subject_text":"Cookery \/ food and drink \/ food writing"}]; this_variant['weight'] = `0`; this_variant['praise'] = `}`; this_variant['awards'] = []; this_variant['accessibility'] = [{"notes":"For further information on the accessibility of our products please contact \u003ca href=mailto='accessibility@harpercollins.co.uk'\u003eaccessibility@harpercollins.co.uk\u003c\/a\u003e","description":"Publisher contact for further accessibility information"},{"introduction":"About accessibility for this product"}]; this_variant['sustainability'] = null; this_variant['audio'] = {"soundcloud_url":"https:\/\/w.soundcloud.com\/player\/?url=https%3A\/\/api.soundcloud.com\/tracks\/344434206\u0026amp;auto_play=false\u0026amp;hide_related=false\u0026amp;show_comments=true\u0026amp;show_user=true\u0026amp;show_reposts=false\u0026amp;visual=true","soundcloud_id":"344434206","hcfilepath":"https:\/\/images.harpercollins.co.uk\/hcwebimages\/hccovers\/171100\/171155-exa.mp3"}; this_variant['taxable'] = ``; this_variant['imprint'] = `Fourth Estate`; this_variant['pages'] = `464 pages`; this_variant['age'] = ``; this_variant['publish_date'] = `October 19, 2017`; this_variant['publish_date_raw'] = `2017-10-19`; this_variant['other_retailers'] = [{"otherposition":"null","tier":1,"pdpposition":1,"ads_url":"http:\/\/ads.harpercollins.co.uk\/hcuk?isbn=9780008260200\u0026retailer=amazon","ads_retailer":"amazon","ads_retailer_name":"Amazon","position":1,"ads_isbn":"9780008260200"},{"otherposition":"null","tier":1,"pdpposition":4,"ads_url":"http:\/\/ads.harpercollins.co.uk\/hcuk?isbn=9780008260200\u0026retailer=apple","ads_retailer":"apple","ads_retailer_name":"Apple Books","position":1,"ads_isbn":"9780008260200"},{"otherposition":"null","tier":1,"pdpposition":2,"ads_url":"http:\/\/ads.harpercollins.co.uk\/hcuk?isbn=9780008260200\u0026retailer=googleplay","ads_retailer":"googleplay","ads_retailer_name":"Google Play","position":1,"ads_isbn":"9780008260200"},{"otherposition":"null","tier":1,"pdpposition":5,"ads_url":"http:\/\/ads.harpercollins.co.uk\/hcuk?isbn=9780008260200\u0026retailer=kobo","ads_retailer":"kobo","ads_retailer_name":"Kobo","position":1,"ads_isbn":"9780008260200"},{"otherposition":"null","tier":2,"pdpposition":3,"ads_url":"http:\/\/ads.harpercollins.co.uk\/hcuk?isbn=9780008260200\u0026retailer=hive","ads_retailer":"hive","ads_retailer_name":"Hive","position":"null","ads_isbn":"9780008260200"},{"otherposition":1,"tier":1,"pdpposition":"null","ads_url":"http:\/\/ads.harpercollins.co.uk\/hcuk?isbn=9780008260200\u0026retailer=barnesandnoble","ads_retailer":"barnesandnoble","ads_retailer_name":"Barnes \u0026 Noble","position":2,"ads_isbn":"9780008260200"},{"otherposition":2,"tier":1,"pdpposition":"null","ads_url":"http:\/\/www.booksellers.org.uk\/bookshopsearch","ads_retailer":"localbookshop","ads_retailer_name":"Find Your Local UK Bookshop","position":1,"ads_isbn":"9780008260200"}]; this_variant['example_retailers'] = ``; this_variant['hyphenated_isbn'] = `978-0-00-826020-0`; this_variant['read_sample'] = {"link":"https:\/\/aerbook.com\/sample\/9780008260200","text":"Read a sample"}; this_variant['reviews'] = [{"text":"”'A dream of a book. Slater … has produced such a hymn to winter that we’ll all be able to cope with it this year”","source":"Diana Henry, Telegraph"},{"text":"”'Congratulations Nigel! The Christmas Chronicles is a magical, cosy hug of a book”","source":"Nigella Lawson"},{"text":"”'I’m very, very, very excited about this book”","source":"Ruby Tandoh"},{"text":"'Nigel is a bloody genius' Jamie Oliver"},{"text":"'The greatest cookery writer of them all' Guardian"},{"text":"”'The best food writers combine beauty with practicality, and no one does it more elegantly than Nigel Slater”","source":"Jane Shilling, Daily Mail - BOOKS OF THE YEAR"},{"text":"'The pick of the bunch…bubbling with ideas, suggestions, hints and personal opinions that genuinely help you to make your own mind up about how and what to cook' The Times"},{"text":"'He's a genius' Matthew Fort, Guardian"},{"text":"‘Slater remains the reigning champion, a writer incapable of uninspiring sentences' Daily Express"},{"text":"‘No one writes more temptingly about food' Independent"}]; this_variant['sales_rights'] = `,AD,AE,AF,AG,AI,AL,AM,AN,AO,AR,AS,AT,AU,AW,AZ,BA,BB,BD,BE,BF,BG,BH,BI,BJ,BM,BN,BO,BR,BS,BT,BW,BY,BZ,CA,CC,CD,CF,CG,CH,CI,CK,CL,CM,CN,CO,CR,CU,CV,CX,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,EG,EH,ER,ES,ET,FI,FJ,FK,FM,FO,FR,GA,GB,GD,GE,GF,GG,GH,GI,GL,GM,GN,GP,GQ,GR,GS,GT,GU,GW,GY,HK,HN,HR,HT,HU,ID,IE,IL,IM,IN,IO,IQ,IR,IS,IT,JE,JM,JO,JP,KE,KG,KH,KI,KM,KN,KP,KR,KW,KY,KZ,LA,LB,LC,LI,LK,LR,LS,LT,LU,LV,LY,MA,MC,MD,ME,MH,MK,ML,MM,MN,MO,MP,MQ,MR,MS,MT,MU,MV,MW,MX,MY,MZ,NA,NC,NE,NF,NG,NI,NL,NO,NP,NR,NU,NZ,OM,PA,PE,PF,PG,PH,PK,PL,PM,PN,PR,PS,PT,PW,PY,QA,RE,RO,RS,RU,RW,SA,SB,SC,SD,SE,SG,SH,SI,SK,SL,SM,SN,SO,SR,ST,SV,SY,SZ,TC,TD,TF,TG,TH,TJ,TK,TL,TM,TN,TO,TR,TT,TV,TW,TZ,UA,UG,US,UY,UZ,VA,VC,VE,VG,VI,VN,VU,WF,WS,YE,YT,ZA,ZM,ZW,,`; this_variant['series_details'] = {"seriesSequenceNumber":"","seriesTitle":"","collectionname":""}; this_variant['trim_size'] = ``; this_variant['featured_image'] = '//harpercollins.co.uk/cdn/shop/products/x500_99718882-f71c-4f63-9455-03d20130a604.jpg?v=1707928727&width=350'; this_variant['featured_image_alt'] = `The Christmas Chronicles: Notes, stories & 100 essential recipes for midwinter (9780008260200)`; this_variant['sub_title'] = "Notes, stories \u0026 100 essential recipes for midwinter"; this_variant['showAddToCart']= {"show_shopify_buy":true}; this_variant['requires_shipping'] =false; this_variant['associated_content'] = []; this_variant['sample_links'] = []; this_variant['available'] = `true`; this_variant['variant_description_html'] = `

WINNER OF THE FORTNUM & MASON AWARDS BEST FOOD BOOK 2018

From the BBC1 presenter and bestselling author of Eat, The Kitchen Diaries and Toast comes a new book featuring everything you need for the winter solstice.

The Christmas Chronicles is the story of Nigel Slater’s love for winter, the scent of fir and spruce, ghost stories read with a glass of sloe gin, and beeswax candles with shadows dancing on the ceiling. With recipes, decorations, fables and quick fireside suppers, Nigel guides you through the essential preparations for Christmas and the New Year, with everything you need to enjoy the winter months.

Taking you from 1 November all the way to the end of January, The Christmas Chronicles covers everything from Bonfire Night, Christmas and New Year to Epiphany. Throughout the season, Nigel offers over 100 recipes to see you through the build-up, the celebrations and the aftermath. Here are much-loved classics such as goose and turkey (and making the most of the leftovers), mincemeat and the cake; recipes to make the cold months bearable, like ribsticker bread pudding with Comté and Taleggio, salt crust potatoes with blue cheese and goat’s curd, and hot-smoked salmon, potatoes and dill; as well as bright flavours to welcome the new year, including pink grapefruit marmalade, pear and pickled radish salad and rye, linseed and treacle bread.

Packed with feasts, folktales, myths and memoir and all told in Nigel’s warm and intimate signature style, The Christmas Chronicles is the only book you’ll ever need for winter.

`; this_variant['catalogPromo'] =[]; this_variant['sociallinks'] = null; this_variant['breadcrumbs'] = []; this_variant['messaging'] =[{"shippinginfotype":"domestic"}];this_variant = self.product.variants.find(function(v){ return v.id == '32683262935118'}); this_variant['contributors'] = [{"lang":"unknown","personName":"Nigel Slater","roleNote":"Author of a textual work","contributorKey":"nigel-slater","roleDescription":"By (author)","id":"005349","roleCode":"A01"},{"lang":"unknown","personName":"Nigel Slater","roleNote":"Reader of recorded text, as in an audiobook","contributorKey":"nigel-slater","roleDescription":"Read by","id":"005349","roleCode":"E07"}]; this_variant['title'] = `Audio-Book`; this_variant['price'] = 1599; this_variant['priceMoney'] = 15.99; this_variant['compare_at_price'] = 0; this_variant['sku'] = `9780008260217`; this_variant['barcode'] = `9780008260217`; this_variant['isbn10'] = `0008260214`; this_variant['onix_categories'] = [{"subject_code":"W","subject_text":"Lifestyle, Hobbies and Leisure"},{"subject_code":"WB","subject_text":"Cookery \/ food and drink \/ food writing"}]; this_variant['weight'] = `0`; this_variant['praise'] = `}`; this_variant['awards'] = []; this_variant['accessibility'] = []; this_variant['sustainability'] = null; this_variant['audio'] = {"soundcloud_url":"https:\/\/w.soundcloud.com\/player\/?url=https%3A\/\/api.soundcloud.com\/tracks\/344434206\u0026amp;auto_play=false\u0026amp;hide_related=false\u0026amp;show_comments=true\u0026amp;show_user=true\u0026amp;show_reposts=false\u0026amp;visual=true","soundcloud_id":"344434206","hcfilepath":"https:\/\/images.harpercollins.co.uk\/hcwebimages\/hccovers\/171100\/171155-exa.mp3"}; this_variant['taxable'] = ``; this_variant['imprint'] = `Fourth Estate`; this_variant['pages'] = `455 minutes`; this_variant['age'] = ``; this_variant['publish_date'] = `October 19, 2017`; this_variant['publish_date_raw'] = `2017-10-19`; this_variant['other_retailers'] = [{"otherposition":"null","tier":1,"pdpposition":2,"ads_url":"http:\/\/ads.harpercollins.co.uk\/hcuk?isbn=9780008260217\u0026retailer=amazon","ads_retailer":"amazon","ads_retailer_name":"Audible","position":1,"ads_isbn":"9780008260217"},{"otherposition":"null","tier":1,"pdpposition":1,"ads_url":"http:\/\/ads.harpercollins.co.uk\/hcuk?isbn=9780008260217\u0026retailer=apple","ads_retailer":"apple","ads_retailer_name":"Apple Books","position":1,"ads_isbn":"9780008260217"},{"otherposition":"null","tier":1,"pdpposition":3,"ads_url":"http:\/\/ads.harpercollins.co.uk\/hcuk?isbn=9780008260217\u0026retailer=googleplay","ads_retailer":"googleplay","ads_retailer_name":"Google Play","position":1,"ads_isbn":"9780008260217"},{"otherposition":"null","tier":1,"pdpposition":4,"ads_url":"http:\/\/ads.harpercollins.co.uk\/hcuk?isbn=9780008260217\u0026retailer=kobo","ads_retailer":"kobo","ads_retailer_name":"Kobo","position":1,"ads_isbn":"9780008260217"},{"otherposition":"null","tier":1,"pdpposition":5,"ads_url":"https:\/\/www.xigxag.co.uk?isbn=9780008260217","ads_retailer":"xigxag","ads_retailer_name":"xigxag","position":1,"ads_isbn":"9780008260217"},{"otherposition":1,"tier":1,"pdpposition":"null","ads_url":"http:\/\/ads.harpercollins.co.uk\/hcuk?isbn=9780008260217\u0026retailer=audiobooks","ads_retailer":"audiobooks","ads_retailer_name":"Audiobooks.com","position":2,"ads_isbn":"9780008260217"},{"otherposition":1,"tier":1,"pdpposition":"null","ads_url":"http:\/\/www.booksellers.org.uk\/bookshopsearch","ads_retailer":"localbookshop","ads_retailer_name":"Find Your Local UK Bookshop","position":1,"ads_isbn":"9780008260217"}]; this_variant['example_retailers'] = ``; this_variant['hyphenated_isbn'] = `978-0-00-826021-7`; this_variant['read_sample'] = {"link":"https:\/\/aerbook.com\/sample\/9780008260217","text":"Read a sample"}; this_variant['reviews'] = [{"text":"”'A dream of a book. Slater … has produced such a hymn to winter that we’ll all be able to cope with it this year”","source":"Diana Henry, Telegraph"},{"text":"”'Congratulations Nigel! The Christmas Chronicles is a magical, cosy hug of a book”","source":"Nigella Lawson"},{"text":"”'I’m very, very, very excited about this book”","source":"Ruby Tandoh"},{"text":"'Nigel is a bloody genius' Jamie Oliver"},{"text":"'The greatest cookery writer of them all' Guardian"},{"text":"”'The best food writers combine beauty with practicality, and no one does it more elegantly than Nigel Slater”","source":"Jane Shilling, Daily Mail - BOOKS OF THE YEAR"},{"text":"'The pick of the bunch…bubbling with ideas, suggestions, hints and personal opinions that genuinely help you to make your own mind up about how and what to cook' The Times"},{"text":"'He's a genius' Matthew Fort, Guardian"},{"text":"‘Slater remains the reigning champion, a writer incapable of uninspiring sentences' Daily Express"},{"text":"‘No one writes more temptingly about food' Independent"}]; this_variant['sales_rights'] = `,AD,AE,AF,AG,AI,AL,AM,AN,AO,AR,AS,AT,AU,AW,AZ,BA,BB,BD,BE,BF,BG,BH,BI,BJ,BM,BN,BO,BR,BS,BT,BW,BY,BZ,CA,CC,CD,CF,CG,CH,CI,CK,CL,CM,CN,CO,CR,CU,CV,CX,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,EG,EH,ER,ES,ET,FI,FJ,FK,FM,FO,FR,GA,GB,GD,GE,GF,GG,GH,GI,GL,GM,GN,GP,GQ,GR,GS,GT,GU,GW,GY,HK,HN,HR,HT,HU,ID,IE,IL,IM,IN,IO,IQ,IR,IS,IT,JE,JM,JO,JP,KE,KG,KH,KI,KM,KN,KP,KR,KW,KY,KZ,LA,LB,LC,LI,LK,LR,LS,LT,LU,LV,LY,MA,MC,MD,ME,MH,MK,ML,MM,MN,MO,MP,MQ,MR,MS,MT,MU,MV,MW,MX,MY,MZ,NA,NC,NE,NF,NG,NI,NL,NO,NP,NR,NU,NZ,OM,PA,PE,PF,PG,PH,PK,PL,PM,PN,PR,PS,PT,PW,PY,QA,RE,RO,RS,RU,RW,SA,SB,SC,SD,SE,SG,SH,SI,SK,SL,SM,SN,SO,SR,ST,SV,SY,SZ,TC,TD,TF,TG,TH,TJ,TK,TL,TM,TN,TO,TR,TT,TV,TW,TZ,UA,UG,US,UY,UZ,VA,VC,VE,VG,VI,VN,VU,WF,WS,YE,YT,ZA,ZM,ZW,,`; this_variant['series_details'] = {"seriesSequenceNumber":"","seriesTitle":"","collectionname":""}; this_variant['trim_size'] = ``; this_variant['featured_image'] = '//harpercollins.co.uk/cdn/shop/products/x500_c4306538-0483-45de-9ddb-7246583cc2ab.jpg?v=1707928727&width=350'; this_variant['featured_image_alt'] = `The Christmas Chronicles: Notes, stories & 100 essential recipes for midwinter: Unabridged edition (9780008260217)`; this_variant['sub_title'] = "Notes, stories \u0026 100 essential recipes for midwinter"; this_variant['showAddToCart']= {"show_shopify_buy":false}; this_variant['requires_shipping'] =false; this_variant['associated_content'] = [{"provider":"harpercollins","type":"audio:mp3","link":"https:\/\/images.harpercollins.co.uk\/hcwebimages\/hccovers\/171100\/171155-exa.mp3","text":"Listen to a sample"},{"provider":"harpercollins","type":"audio:soundcloud","link":"https:\/\/w.soundcloud.com\/player\/?url=https%3A\/\/api.soundcloud.com\/tracks\/344434206\u0026amp;auto_play=false\u0026amp;hide_related=false\u0026amp;show_comments=true\u0026amp;show_user=true\u0026amp;show_reposts=false\u0026amp;visual=true","text":"Listen to a sample on Soundcloud"}]; this_variant['sample_links'] = [{"provider":"harpercollins","type":"audio:mp3","link":"https:\/\/images.harpercollins.co.uk\/hcwebimages\/hccovers\/171100\/171155-exa.mp3","text":"Listen to a sample"},{"provider":"harpercollins","type":"audio:soundcloud","link":"https:\/\/w.soundcloud.com\/player\/?url=https%3A\/\/api.soundcloud.com\/tracks\/344434206\u0026amp;auto_play=false\u0026amp;hide_related=false\u0026amp;show_comments=true\u0026amp;show_user=true\u0026amp;show_reposts=false\u0026amp;visual=true","text":"Listen to a sample on Soundcloud"}]; this_variant['available'] = `true`; this_variant['variant_description_html'] = `

WINNER OF THE FORTNUM & MASON AWARDS BEST FOOD BOOK 2018

From the BBC1 presenter and bestselling author of Eat, The Kitchen Diaries and Toast comes a new book featuring everything you need for the winter solstice.

Read by the author, this audiobook is accompanied by a pdf of the recipes from the Christmas Chronicles.

The Christmas Chronicles is the story of Nigel Slater’s love for winter, the scent of fir and spruce, ghost stories read with a glass of sloe gin, and beeswax candles with shadows dancing on the ceiling. With recipes, decorations, fables and quick fireside suppers, Nigel guides you through the essential preparations for Christmas and the New Year, with everything you need to enjoy the winter months.

Taking you from 1 November all the way to the end of January, The Christmas Chronicles covers everything from Bonfire Night, Christmas and New Year to Epiphany. Throughout the season, Nigel offers over 100 recipes to see you through the build-up, the celebrations and the aftermath. Here are much-loved classics such as goose and turkey (and making the most of the leftovers), mincemeat and the cake; recipes to make the cold months bearable, like ribsticker bread pudding with Comté and Taleggio, salt crust potatoes with blue cheese and goat’s curd, and hot-smoked salmon, potatoes and dill; as well as bright flavours to welcome the new year, including pink grapefruit marmalade, pear and pickled radish salad and rye, linseed and treacle bread.

Packed with feasts, folktales, myths and memoir and all told in Nigel’s warm and intimate signature style, The Christmas Chronicles is the only book you’ll ever need for winter.

`; this_variant['catalogPromo'] =[]; this_variant['sociallinks'] = null; this_variant['breadcrumbs'] = []; this_variant['messaging'] =[{"shippinginfotype":"domestic"}];self.selected_variant = self.product.variants.find(function(v){ return v.id == '32684973785166'}); if (window.location.href.indexOf("variant=") > 0 && self.hasAwin == 'true' || window.location.href.indexOf("variant=") > 0 && self.hasVrb =='true' || window.location.href.indexOf("variant=") > 0 && self.hasVr =='true' || window.location.href.indexOf("variant=") > 0 && self.hasVb =='true' ){ self.varSelectID = '32684973785166';// variable to hold it for change self.varSelectID = '32684973785166';// variable to hold it for change self.varSelectID = '32684973785166';// variable to hold it for change }else if(window.location.href.indexOf("variant=") > 0){ self.varSelectID = '32684973785166'; // variable to hold it for change } else{ self.varSelectID = '32684973785166'; } axios.get('/cart.json') .then(function(response){ self.currentCart = response.data; self.changeVariant(); self.loading = false; }) .catch(function(e) { console.error(e); setTimeout(function(){ self.changeVariant(); self.loading = false; }, 700); }); }) .catch(function(e){ console.error(e); }); var ebookNames = ['E-book', 'eBook', 'ebook', 'Ebook', 'e-book', 'e-Book', 'eBook bundle', 'ebook Bundle', 'eBook Bundle', 'ebook bundle'] var currentUrl = window.location.href; if(currentUrl.includes('source=AWIN')){ //------------------------------ IF AWIN console.log(currentUrl) if(self.variantCount < 1){ }else{ $("#variant_id option").each(function(){ var varType = $(this).text(); if(ebookNames.includes(varType)){ $(this).remove(); } }); $(".retail-links").remove(); $(".modalButtonContain").remove(); $.ajax({ type: "POST", url:'/cart.js', data: {"attributes[awin]": 'true', "attributes[vrb]": 'false', "attributes[vr]": 'false', "attributes[vb]": 'false', "attributes[variantCount]": self.variantCount }, success: function(d){}, dataType: 'json' }); } } if(currentUrl.includes('source=vrb')){ //------------------------------ IF VRB if(self.variantCount < 1){ }else{ $("#variant_id option").each(function(){ var varType = $(this).text(); if(ebookNames.includes(varType)){ $(this).remove(); } }); $(".retail-links").remove(); $(".modalButtonContain").remove(); $.ajax({ type: "POST", url:'/cart.js', data: {"attributes[vrb]": 'true', "attributes[awin]": 'false', "attributes[vr]": 'false', "attributes[vb]": 'false', "attributes[variantCount]": self.variantCount }, success: function(d){}, dataType: 'json' }); } } if(currentUrl.includes('source=vr')){ //----------------------------- IF VR if(self.variantCount < 1){ }else{ $("#variant_id option").each(function(){ var varType = $(this).text(); if(ebookNames.includes(varType)){ $(this).remove(); } }); $(".retail-links").remove(); $(".modalButtonContain").remove(); $.ajax({ type: "POST", url:'/cart.js', data: {"attributes[vr]": 'true', "attributes[awin]": 'false', "attributes[vrb]": 'false', "attributes[vb]": 'false', "attributes[variantCount]": self.variantCount }, success: function(d){}, dataType: 'json' }); } } if(currentUrl.includes('source=vb')){// ----------------------------- IF VB if(self.variantCount < 1){ }else{ $("#variant_id option").each(function(){ var varType = $(this).text(); if(ebookNames.includes(varType)){ $(this).remove(); } }); $(".retail-links").remove(); $(".modalButtonContain").remove(); $.ajax({ type: "POST", url:'/cart.js', data: {"attributes[vb]": 'true', "attributes[vrb]": 'false', "attributes[vr]": 'false', "attributes[awin]": 'false', "attributes[variantCount]": self.variantCount }, success: function(d){}, dataType: 'json' }); } } addReadMoreListeners(); $('.aerio_preview svg').hide(); //get product Assets self.productAsset =[{"provider":"aerio","type":"readsample","link":"https:\/\/aerbook.com\/sample\/9780008260200","text":"Read a sample"},{"provider":"harpercollins","type":"audio:mp3","link":"https:\/\/images.harpercollins.co.uk\/hcwebimages\/hccovers\/171100\/171155-exa.mp3","text":"Listen to a sample"},{"provider":"harpercollins","type":"audio:soundcloud","link":"https:\/\/w.soundcloud.com\/player\/?url=https%3A\/\/api.soundcloud.com\/tracks\/344434206\u0026amp;auto_play=false\u0026amp;hide_related=false\u0026amp;show_comments=true\u0026amp;show_user=true\u0026amp;show_reposts=false\u0026amp;visual=true","text":"Listen to a sample on Soundcloud"}]; const images = document.querySelector('#selected-img-container').querySelectorAll('img'); let loadedImages = 0; images.forEach((image) => { image.addEventListener('load', () => { loadedImages += 1; if (loadedImages === images.length) { this.isImagesLoaded = true; } }); // If the image is already cached and the load event has already fired if (image.complete) { loadedImages += 1; } }); if (loadedImages === images.length) { this.isImagesLoaded = true; } }, computed:{ formatOptions: function(){ if(this.product.options){ var format_option = this.product.options.find(function(o){ return o.name == 'Format'}); if(format_option){ return format_option.values } } return []; }, currentPrice: function(){ // gets price var self = this; var changePrice = self.selected_variant.price * self.quantity; return changePrice; }, compareAtPrice: function(){ // gets compare_at var self = this; var compareAtPrice = self.selected_variant.compare_at_price * self.quantity; return compareAtPrice; }, parseAuthor: function(){ var roles = []; var roles_and_names = ''; if (this.selected_variant.contributors){ console.log(this.selected_variant.contributors) let contributors = this.selected_variant.contributors; for( var i = 0; i < contributors.length; i++ ){ if( !roles.includes(contributors[i].roleDescription)){ roles.push(contributors[i].roleDescription); } } for( var j=0; j < roles.length; j++){ roles_and_names += roles[j].replace("By (author)", "By") + ' ' + contributors .filter(function(c){ return c.roleDescription == roles[j] }) .map(function(c){ let contributorsUrl = "/blogs/authors/" + c.contributorKey; return ' ' + c.personName + '' }) .join(',')+ ', '; } this.authorOutputForDataLayer = roles_and_names.replace(/<[^>]*>/g, ''); return roles_and_names; } }, isDigital: function(){ if(this.selected_variant.requires_shipping == false){ return true; } return false; }, daysUntilPublished: function(){ var now = moment(); var publishDate = moment(this.selected_variant.publish_date_raw); return moment.duration(publishDate.diff(now)).asDays(); }, preorderDate: function(){ var publishDate = moment(this.selected_variant.publish_date_raw); return publishDate.subtract(90, 'days').format("D MMMM, YYYY"); }, showAddToCart: function(){ var showCartObj = this.selected_variant.showAddToCart; var available = this.selected_variant.available; if(showCartObj != null && showCartObj.show_shopify_buy == false){ return false; } if(!this.isDigital && this.daysUntilPublished > 0 && this.daysUntilPublished <= 90){ return true; } if(available == 'true'){ return true; }else{ return false; } }, sortedcatalogPromoLinks: function() { if ( this.selected_variant.catalogPromo ){ var newTypeOfLink = this.selected_variant.catalogPromo.find(function(o){return typeof o.position != 'undefined' }); if(newTypeOfLink != undefined){ //use new compare var returnedLinks = this.selected_variant.catalogPromo.filter(function(o){return o.position != null && o.position != 'null' }); function compareNew(a, b) { if (a.position < b.position) return -1; if (a.position > b.position) return 1; return 0; } return returnedLinks.sort(compareNew); } } }, sortedRetailLinks: function() { if ( this.selected_variant.other_retailers ){ var newTypeOfLink = this.selected_variant.other_retailers.find(function(o){return typeof o.pdpposition != 'undefined' }); if(newTypeOfLink != undefined){ //use new compare var returnedLinks = this.selected_variant.other_retailers.filter(function(o){return o.pdpposition != null && o.pdpposition != 'null' }); function compareNew(a, b) { if (a.pdpposition < b.pdpposition) return -1; if (a.pdpposition > b.pdpposition) return 1; return 0; } return returnedLinks.sort(compareNew); }else{ var returnedLinks = this.selected_variant.other_retailers.filter(function(o){return o.position != null && o.position != 'null' }); function compare(a, b) { if (a.position < b.position) return -1; if (a.position > b.position) return 1; return 0; } return returnedLinks.sort(compare).slice(0, 5); } } }, alphabetSort: function(){ if (this.selected_variant.other_retailers){ var newTypeOfLink = this.selected_variant.other_retailers.find(function(o){return typeof o.otherposition != 'undefined' }); if(newTypeOfLink != undefined){ //use new compare var returnedLinks = this.selected_variant.other_retailers.filter(function(o){return o.pdpposition == null || o.pdpposition == 'null' }); function compare2New(a, b) { if (a.otherposition < b.otherposition) return -1; if (a.otherposition > b.otherposition) return 1; return 0; } return returnedLinks.sort(compare2New); }else{ function compare2(c,d){ if (c.ads_retailer_name < d.ads_retailer_name){ return -1; } if (c.ads_retailer_name > d.ads_retailer_name){ return 1; } return 0; } return this.selected_variant.other_retailers.slice(0).sort(compare2); } } }, videoLinks: function(){ var contentObj = this.selected_variant.associated_content; for(i = 0; i < contentObj.length; i++){ if(contentObj[i].type == "video:youtube"){ if(contentObj[i].link.includes("youtu.be")){ var vidLink = contentObj[i].link.replace("youtu.be", "youtube.com/embed"); } else{ var vidLink = contentObj[i].link; } } } return vidLink; }, showQuantitySelectorAndHeart: function(){ if(!this.isDigital && this.daysUntilPublished > 90){ return false; } else if (!this.isDigital && this.daysUntilPublished > 0 && this.daysUntilPublished <= 90){ return true; } else if (this.isDigital && this.daysUntilPublished >= 0){ return false; } else if (this.selected_variant.available == 'true'){ return true; } else { return false; } }, goodreadsSelectedISBN: function(){ var self = this; var selectedOption1 = self.selected_variant.option1 ? self.selected_variant.option1.toLowerCase().replace('-', '') : ''; var selectedOption2 = self.selected_variant.option2 ? self.selected_variant.option2.toLowerCase().replace('-', '') : ''; var selectedOption3 = self.selected_variant.option3 ? self.selected_variant.option3.toLowerCase().replace('-', '') : ''; if(self.selected_variant.sku && selectedOption1.indexOf('ebook') == -1 && selectedOption2.indexOf('ebook') == -1 && selectedOption3.indexOf('ebook') == -1 && selectedOption1.indexOf('audiobook') == -1 && selectedOption2.indexOf('audiobook') == -1 && selectedOption3.indexOf('audiobook') == -1){ return self.selected_variant.sku; } else { var nonEbookVariant = self.product.variants == undefined ? undefined : self.product.variants.find(function(v){ var option1 = v.option1 == null ? '': v.option1.toLowerCase().replace('-', ''); var option2 = v.option2 == null ? '': v.option2.toLowerCase().replace('-', ''); var option3 = v.option3 == null ? '': v.option3.toLowerCase().replace('-', ''); return option1.indexOf('ebook') == -1 && option2.indexOf('ebook') == -1 && option3.indexOf('ebook') == -1 && option1.indexOf('audiobook') == -1 && option2.indexOf('audiobook') == -1 && option3.indexOf('audiobook') == -1; }); return nonEbookVariant == undefined ? null : nonEbookVariant.sku; } }, descriptionHTML: function(){ if(this.selected_variant.variant_description_html != undefined){ function htmlDecode(input){ var e = document.createElement('textarea'); e.innerHTML = input; // handle case of empty input return e.childNodes.length === 0 ? "" : e.childNodes[0].nodeValue; } var desHtml = htmlDecode(this.selected_variant.variant_description_html); return desHtml; } }, displayBreadcrumbs: function(){ if(this.selected_variant.breadcrumbs){ let crumbArray = this.selected_variant.breadcrumbs let breadcrumb = `Home >` let display = crumbArray.map((crumb, index) => { if(index === crumbArray.length - 1 ){ breadcrumb += ` ${crumb.text} > ` }else{ breadcrumb += ` ${crumb.text} >` } }) if(crumbArray.length > 0){ return breadcrumb }else{ return false } } }, isEbook: function(){ var title = this.selected_variant.title; if(this.ebookFormats.includes(title)){ return true }else{ return false } } }, methods:{ containsKey(arr) { console.log(arr) if(arr != undefined){ for(i=0; i < arr.length; i++){ if(arr[i].type == "document:pdf" || arr[i].type == "document:url"){ return true } } } }, showDescription: function(){ if (this.selected_variant.variant_description_html != 'undefined'){ if(this.selected_variant.variant_description_html.length > 2){ return this.showDescriptionBool = false; }else{ return this.showDescriptionBool = true; } } }, image_select: function(url){ this.selected_variant.featured_image = url; }, change: function(qty){ if(qty > 0){ this.quantity = parseInt(qty); } }, addToCart: function(){ //add to cart function var self = this; axios.post('/cart/add.js', { id: self.varSelectID, quantity: self.quantity, properties: { '_sales_rights': self.selected_variant.sales_rights } }) .then(function (response) { console.log(response); window.location.href = '/cart'; }) .catch(function (error) { console.log(error); alert('Sorry we could not add your item to the cart, please try again.'); }); }, changeVariant: function(){ //function to check each variant on change to get info var self = this; for(i=0; i < this.product.variants.length; i++){ if(this.product.variants[i].id == this.varSelectID){ this.selected_variant = this.product.variants[i]; this.selectedIndex = i; } } this.quantity = 1; //sets quantity to one on change this.checkInCart(); this.checkDisable(); this.checkDisableQty(); //adds variant id to url on change var urlParams = new URLSearchParams(window.location.search); urlParams.set('variant', self.selected_variant.id); window.history.replaceState({ variantId: self.selected_variant.id }, '', '?' + urlParams.toString() ); setTimeout(function(){ $('.aerio_preview a').attr('target', '_blank'); if( $( ".aerio_preview a").length > 0){ $('.aerio_preview svg').show(); } }, 700); if(this.selected_variant.variant_description_html != 'undefined'){ this.showDescription(); } var vrnt = this.selected_variant var saleTags = document.querySelectorAll(".hc-sale-tag"); if (vrnt.available && vrnt.compare_at_price && vrnt.compare_at_price > vrnt.price) { var discount = (vrnt.compare_at_price - vrnt.price) * 100 / vrnt.compare_at_price; if (discount != undefined){ for (var i = 0; i

'] });
The Christmas Chronicles: Notes, stories & 100 essential recipes for midwinter (2024)
Top Articles
Latest Posts
Article information

Author: Kelle Weber

Last Updated:

Views: 6686

Rating: 4.2 / 5 (73 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Kelle Weber

Birthday: 2000-08-05

Address: 6796 Juan Square, Markfort, MN 58988

Phone: +8215934114615

Job: Hospitality Director

Hobby: tabletop games, Foreign language learning, Leather crafting, Horseback riding, Swimming, Knapping, Handball

Introduction: My name is Kelle Weber, I am a magnificent, enchanting, fair, joyous, light, determined, joyous person who loves writing and wants to share my knowledge and understanding with you.