🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
1/16
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off
1/16

🎁APK Bee Venom Comprehensive Cream⏰Last Day 50% Off

$29.99
$59.99
Save $30.00
🥳Buy More Save More🥳
Please select a 🥳buy more save more🥳
Quantity
/** @private {string} */ class SpzCustomAnchorScroll extends SPZ.BaseElement { static deferredMount() { return false; } constructor(element) { super(element); /** @private {Element} */ this.scrollableContainer_ = null; } isLayoutSupported(layout) { return layout == SPZCore.Layout.LOGIC; } buildCallback() { this.viewport_ = this.getViewport(); this.initActions_(); } setTarget(containerId, targetId) { this.containerId = '#' + containerId; this.targetId = '#' + targetId; } scrollToTarget() { const container = document.querySelector(this.containerId); const target = container.querySelector(this.targetId); const {scrollTop} = container; const eleOffsetTop = this.getOffsetTop_(target, container); this.viewport_ .interpolateScrollIntoView_( container, scrollTop, scrollTop + eleOffsetTop ); } initActions_() { this.registerAction( 'scrollToTarget', (invocation) => this.scrollToTarget(invocation?.caller) ); this.registerAction( 'setTarget', (invocation) => this.setTarget(invocation?.args?.containerId, invocation?.args?.targetId) ); } /** * @param {Element} element * @param {Element} container * @return {number} * @private */ getOffsetTop_(element, container) { if (!element./*OK*/ getClientRects().length) { return 0; } const rect = element./*OK*/ getBoundingClientRect(); if (rect.width || rect.height) { return rect.top - container./*OK*/ getBoundingClientRect().top; } return rect.top; } } SPZ.defineElement('spz-custom-anchor-scroll', SpzCustomAnchorScroll); const STRENGTHEN_TRUST_URL = "/api/strengthen_trust/settings"; class SpzCustomStrengthenTrust extends SPZ.BaseElement { constructor(element) { super(element); this.renderElement_ = null; } isLayoutSupported(layout) { return layout == SPZCore.Layout.CONTAINER; } buildCallback() { this.xhr_ = SPZServices.xhrFor(this.win); const renderId = this.element.getAttribute('render-id'); SPZCore.Dom.waitForChild( document.body, () => !!document.getElementById(renderId), () => { this.renderElement_ = SPZCore.Dom.scopedQuerySelector( document.body, `#${renderId}` ); if (this.renderElement_) { this.render_(); } this.registerAction('track', (invocation) => { this.track_(invocation.args); }); } ); } render_() { this.fetchData_().then((data) => { if (!data) { return; } SPZ.whenApiDefined(this.renderElement_).then((apis) => { apis?.render(data); document.querySelector('#strengthen-trust-render-1539149753700').addEventListener('click',(event)=>{ if(event.target.nodeName == 'A'){ this.track_({type: 'trust_content_click'}); } }) }); }); } track_(data = {}) { const track = window.sa && window.sa.track; if (!track) { return; } track('trust_enhancement_event', data); } parseJSON_(string) { let result = {}; try { result = JSON.parse(string); } catch (e) {} return result; } fetchData_() { return this.xhr_ .fetchJson(STRENGTHEN_TRUST_URL) .then((responseData) => { if (!responseData || !responseData.data) { return null; } const data = responseData.data; const moduleSettings = (data.module_settings || []).reduce((result, moduleSetting) => { return result.concat(Object.assign(moduleSetting, { logos: (moduleSetting.logos || []).map((item) => { return moduleSetting.logos_type == 'custom' ? this.parseJSON_(item) : item; }) })); }, []); return Object.assign(data, { module_settings: moduleSettings, isEditor: window.self !== window.top, }); }); } } SPZ.defineElement('spz-custom-strengthen-trust', SpzCustomStrengthenTrust);


💪 180-Day Money-Back Guarantee – Love it, or get a full refund!
✅ Effectively removes eczema, stubborn dark spots, psoriasis, acne, scars, folliculitis, seborrheic dermatitis, warts, moles, aging skin, fine lines, and more
✅ Long-lasting results with no recurrence
👨‍⚕️ Made in the USA, tested by FDA and GMP-certified organizations
✅ Suitable for all skin types, including sensitive skin
✅ 100% natural ingredients, gentle and non-irritating
⚡ No need to worry about skin blemishes anymore, give back your beautiful skin
 
💟Our goods are authentic, with genuine patents; counterfeits must be investigated! Customer, please identify our products!
Are you worried about wrinkles from aging? 
Are you worried about sagging skin?
Are you worried about unsightly creases on your body?
 
Say Goodbye To Lengthy Treatments And Unhealthy Chemicals!

Clinically tested by dermatologists,  Bee Venom Comprehensive Cream can show significant improvements in wrinkles and skin laxity within 7 days.

Try it now, and if it doesn't work
we guarantee a full refund of your money!

Feedback from Real Users After Using the Product

Women over 60 can definitely use this! My skin is very sensitive. Even though my hormones no longer fluctuate like they used to, my skin still reacts to certain skincare products. I've reached the age where I’ve started showing signs of aging, so I had to change my beauty routine. I saw this product had excellent reviews, so I decided to give it a try.

I’ve been using it for over a month now. It applies beautifully, and my skin doesn’t feel greasy. I can feel an improvement in my skin's elasticity, but I was waiting for my husband or kids to notice (since it’s my biggest insecurity and something I thought they’d pick up on). About a week later, my son finally noticed. He said, “Hey, your wrinkles are gone.” We were both surprised by how well it works.

I’ve already gone through six bottles, and I plan to keep using it until the day I no longer care about my appearance—or forever.
— Emily Johnson

For years, I’ve struggled with sagging skin on my arms, primarily due to aging and weight fluctuations after losing weight. I had tried various products with little success until a friend recommended Bee venom Comprehensive Cream, and I decided to give it a shot.

I committed to using it consistently, applying it twice daily for about three weeks. To my surprise, I started noticing significant changes after just one week! The cream absorbed quickly and felt refreshing on my skin. By the end of the month, my arms felt noticeably firmer, and the sagging skin looked much smoother. This product has completely transformed my confidence, and I’m truly grateful for it! I highly recommend it to anyone dealing with similar issues!—Jessica Williams, Sydney

"I was a bit hesitant at first about using this wrinkle cream because I'm allergic to bees. I reached out to customer service to confirm if it was safe, and they assured me it was. After doing a small patch test with no reaction, I decided to give it a shot. To my surprise, this Serum Stick really works wonders! It's the best value among all my skincare products. The photo I took after four weeks shows my skin looking almost as good as my friends who are ten years younger.My wrinkles have significantly reduced, and my skin feels much smoother. The fine lines around my lips have lessened, too, so I no longer look like I have a mustache, which makes me really happy! I’m excited to keep using it to maintain a more youthful appearance!"- Marlene Rivera

I'm 37 years old this year, and after the birth of my second child, my belly turned into a typical 'mommy belly,' saggy and wrinkled. I felt terrible and didn't even want to exercise because it jiggled with every step. I tried cocoa butter and massages for 2 months, but nothing really changed. My doctor suggested surgery, but I didn't want scars or the high costs. My husband ordered this product for me, and it feels amazing. It absorbs quickly and leaves no residue, even in the folds. I use it every day, applying it 3-4 times, and by the fifth day, I could feel my skin tightening—a cool, firm feeling. After two weeks, I could see daily changes with my own eyes. The skin gradually became firmer, and the elasticity slowly returned. Now, after almost two months, my belly is completely normal again—no wrinkles, no sagging, just firm like the skin of a 20-year-old. I've also noticed that the skin around my belly has become brighter. I'm planning to get some for my 60-year-old mother next because I believe it will work wonders on her aging arms, too.  ——Ashley Moore, Ottawa

Bee venom Comprehensive Cream addresses all the problems associated with sagging skin, wrinkles, and more!

  • Consider it your favorite high-performance facial night cream, redesigned for your complete body!
  • Our full-body treatment revitalizes and tones your skin by infusing it with brightening chemicals such as Niacinamide, which effectively addresses aging and dark spots.
  • Our solution slows down the aging process by utilizing the strength of a robust peptide mix. It lifts your skin from neck to toe, minimizing creases and wrinkles for smoother, firmer skin.
  • Not only does our exquisite cream revitalize your skin, but it also hydrates and plumps it, creating a deep hydration barrier.
Say Goodbye To Lengthy Treatments And Unhealthy Chemicals!

A comprehensive solution: Eliminate various skin issues

Congrats The Significant Improvement & Changes on Our Customers Within A Month!

"I’ve had stubborn skin tags on my face for a while and considered laser treatment at a clinic, but it’s so pricey. I found this cream online and saw that it uses bee venom, which is supposed to be effective for removing skin tags. I decided to give it a try, and the results have been incredible! After just two days, the tags started to soften, and by the fifth day, they were falling off on their own. Best of all, there was no pain at any point in the process. This cream is truly an affordable solution that worked wonders for me!" - Peggy Haligan, Manchester, UK

"Having chafing is the worst, the itchiness is unbearable, and it's so embarrassing trying not to scratch when I’m out in public. Wearing pants just makes it worse! I found this cream online and decided to give it a try. Honestly, it worked wonders—relieved the itch within minutes, and the inflamed area started calming down right away. After just five days, the irritation was completely gone, with no marks left behind. So glad I tried this!" - Grace Persse, Edinburgh, UK

"I had some stubborn skin tags under my arms that were so uncomfortable, especially with the daily friction. I came across this cream online and thought, why not give it a try? Honestly, it’ work! After just two days, the tags started to get thinner and darker, and a few days later, most of them had fallen off. The best part? No pain and no scars left behind. I never thought such a cost-effective cream could be such a great solution" Emma Carlson, Bristol, UK

"I’ve had so many moles on my back and tried everything—medications, oils, sprays—but nothing really worked. I was about to accept it as a long-term issue until I found this cream. By day three, I noticed the moles starting to shrink, and now, after applying it twice daily in the morning and at night, most of them are completely gone! It’s such an easy-to-use solution, and I’m so relieved to finally have something that actually works." - Marie McClure, London, UK

One Cream, Countless Solutions for All Your Skin Concerns

A Powerful All-Body Solution for Multiple Skin Concerns

The Botulinum Toxin & Bee Venom Skin Treatment Cream is a potent remedy for addressing various skin issues, owing to its unique blend of bioactive compounds from bee venom. With proven anti-inflammatory, antibacterial properties, and powerful enzymes, it effectively tackles different skin problems.

These compounds work together to repair damaged tissues, promote skin cell regeneration, and support overall skin healing. As an 𝑴𝒖𝒍𝒕𝒊-𝑺𝒚𝒎𝒑𝒕𝒐𝒎 solution, this cream provides 𝑴𝒖𝒍𝒕𝒊-𝑺𝒚𝒎𝒑𝒕𝒐𝒎 care to handle multiple skin concerns in one powerful formula.

Melittin can reduce the swelling, redness, and pain associated with the inflamed skin or lumps.

This enzymes can help to the formation of new skin cells and repair the skin more efficiently.

Increases blood flow to deliver more nutrients to the skin cells, which helps damaged or aging skin recover faster.

This process is crucial for skin regeneration, helping to maintain a fresh, smooth complexion and repair damaged tissues.

Bee Venom: Nature’s Solution for Soothing Chronic Skin Conditions

Bee venom is rich in bioactive compounds like melittin, apamin, and adolapin, which have been scientifically shown to reduce inflammation by inhibiting inflammatory pathways and improve blood circulation to affected areas, delivering nutrients vital for skin repair. Regular use of this cream can effectively soothe chronic skin conditions like eczema, psoriasis, and rosacea, promoting smoother, healthier skin naturally.

Highly Recommended by Leading Board-Certified Dermatologists

"As a dermatologist, I’ve always been passionate about finding effective, natural solutions for skin problems. After extensive research and testing with my lab team, and clinical trials involving over 2,000 participants, I discovered that bee venom is a powerful natural ingredient for addressing a wide range of skin concerns. This led me to create the Ourlyard® Botulinum Toxin & Bee Venom Skin Treatment Cream—an all-in-one solution designed to naturally and effectively relieve multiple skin issues with precision." - Dr. Kylea Allora, MD. Dermatologist

✅ #1 The Medical Republic Recommended

✅ Cruelty-Free

✅ UK Medicines and Healthcare products Regulatory Agency (MHRA) Certified

✅ UK Certified Organic-Compliant Ingredients

✅ British Academy of Dermatology (BAD) Approved

✅ Suitable for Bee-Allergic Individuals

✅ Relieves Skin Discomforts Instantly

✅ Long Term Result & Prevent Infections

Here are More of Our Happy Customers

"I had so many seborrheic warts on my face, and I knew liquid nitrogen treatment was an option, but it’s so expensive, and I’d heard it might leave scars. So, I decided to try this cream because I’d heard about bee venom being great for skin tags. And it’s true—the seborrheic warts have reduced significantly! They started getting lighter in color and gradually faded after just a little over a week. I never thought I could get dermatologist-level results at home. This cream saved me so much time and money!" - Devin Reed, Birmingham, UK

"Having so many skin tags under my armpit has been so uncomfortable and embarrassing—it’s kept me from wearing sleeveless tops, and I’ve just wanted to get rid of them. A friend who works at a clinic recommended I try a bee venom cream since it’s known to help with skin tags. I didn’t expect such quick results! After using it for just 8 days, the tags have reduced significantly, and my skin looks brighter and smoother. It feels like new, healthy skin has come back!" - Sally McGill,  Leeds, UK

 

"As I’ve gotten older, I’ve noticed more skin tags appearing on my face. I know they’re harmless, but they really bother me and affect my appearance. I decided to try this bee venom cream after spotting it at the clinic, and the results have been incredible. Within just two days, some of the skin tags started to lighten, and eventually, many of them fell off completely. My face looks so much clearer now, and I honestly feel like I’ve turned back the clock 10 years. I’m so glad I gave it a try!" - Mark Lewis, Oxford, UK

Ourlyard® Botulinum Toxin & Bee Venom Skin Treatment Cream Receives 2024 The Medical Republic Excellence Award

Clinical Tested On Over 2000+ Participants: 100% NO Allergic Reaction

Our comprehensive cream is safe for individuals allergic to bees, due to its carefully formulated ingredients and the strong support provided by rigorous testing to ensure both safety and efficacy.

Clinical trials conducted for 2 months with 2000+ participants aged 3 to 65 ( Regulated by FDA guidelines )

100% of participants reported No Allergic Reaction during the study period: 
- No side effects
- No flare-ups & maintain calmer skin
- No irritation or discomfort is felt in the affected area

Participants reported High Satisfaction during the study period:
- 96.8% Report significant removal after 7 days
- 98.7% No Rebound Effect
- 100% No scarring or mark
- 100% No pain during the process
- 98.4% Feel satisfied with the result
- 93.7% Plan to purchase this product after trial 

All Products are Patented and Certified. Ensuring Top Quality and Authenticity.

Customers can confidently purchase the quality product on our website!

Ourlyard® Botulinum Toxin & Bee Venom Skin Treatment Cream

 contains six proven, powerful ingredients that have been used to effectively treat skin issues for millions of people worldwide, including eczema, acne, dark spots, and skin inflammation.

  • Bee Venom Peptides: Bee venom peptides mimic the skin's natural response to micro-stimulation, stimulating the production of collagen and elastin. This can instantly tighten, firm, and blur the appearance of the skin, providing a temporary lifting effect.
  • Botulinum Toxin: This concentrated ingredient effectively reduces fine lines and wrinkles, especially in areas like the forehead and around the eyes, helping to restore a smooth and youthful complexion.
  • Sapphire-Infused Triple Peptide: Celebrated as the pinnacle of peptide technology, this complex penetrates the skin layers more deeply for accelerated results, effectively addressing the concerns of crepey and lax skin.
  • Hyaluronic Acid: Hyaluronic acid is a powerful moisturizer naturally found in the skin that can absorb and retain up to 2,000 times its weight in water. It deeply hydrates the skin, fills in fine lines and wrinkles, and restores the skin's elasticity and fullness.
  • Acetyl Hexapeptide-8: Acetyl Hexapeptide-8, known as a non-invasive alternative to Botox, works by blocking nerve signals to relax muscles, reducing deep wrinkles like forehead lines and crow's feet, and enhancing skin firmness.
  • Collagen: Collagen is the main structural protein in the skin, responsible for maintaining its elasticity and firmness. As we age, the body's production of collagen decreases, leading to sagging skin and wrinkles. Supplementing collagen can help restore the skin's smoothness and elasticity.

Does our bee venom come from killed or injured bees?

The bees are neither harmed nor killed. Our bee venom extraction technology is certified by the British Humane Association, ensuring that no bees are injured. We use an electric stimulation method, where a specially designed device gently prompts the bees to release their venom. This is done by placing the electric stimulator under the bees, creating a mild electrical current that stimulates venom secretion. The venom is collected through the bee's stinger. Because the current is very low, the bees are not harmed and can continue to live and work normally after the venom is collected.


Specifications:
Ourlyard® Botulinum Toxin & Bee Venom Skin Treatment Cream (2/4/6 Jars).

Origin: Kent, England

Shelf life: 3 years

We support Global Delivery

For each piece of our product purchased, we donate a portion of our profit to support the Cruelty-Free International organization, which helps to promote the protection of animals and end animal cruelty around the globe. By purchasing our product, you are supporting our cause to provide a more animal-friendly beauty culture. Don't hesitate to contribute your passion for that.


Specification

Origin: USA

Net content: 50ml

Shelf life: 3 years

Applicable skin type: all

We support Global Delivery


⚡Click On "ADD TO CART" To Get Yours Now!

✨OUR GUARANTEE✨


✅We truly believe we make some of the most innovative products in the world, and we want to make sure we back that up with a risk-free ironclad 45-day guarantee.

✅If you don't have a positive experience for ANY reason, we will do WHATEVER it takes to make sure you are 100% satisfied with your purchase.

✅Buying items online can be a daunting task, so we want you to realize that there is an absolute ZERO risk in buying something and trying it out. If you don't like it, no hard feelings we'll make it right.

✅We have 24/7/365 Ticket and Email Support.

WHY US?👇

  • We work directly with manufacturers all over the world to ensure the best quality of our products. We have a Quality Control department which helps us to keep our promise!
  • Price is always competitive.
  • Awesome Customer Service
  • Amazing products along with High Quality
  • Read reviews from our lovely customers

🔥 The price is limited! 🔥 Grab yours as the limited promotion available!

✈ Worldwide Shipping ✈  

Please note that shipping is insured. However, you may receive your items earlier. Tracking Numbers will ALWAYS be sent so you can track it every step of the way! Cool things are worth waiting for! 😉

🔒 100% Risk-Free Purchase 🔥 

  • We truly offer stunning, trendy high-quality products in the world.
  • We will do WHATEVER it takes with outstanding customer service support to assist everyone.
  • If you are not satisfied with receiving the goods, you can apply for a refund.
  • You can pay with PayPal, which will protect your money.

✅Payments Via PayPal®, Credit and Debit cards.

If you want to checkout with a Credit and Debit Card, just enter your * Card No, * Expiration Date, and * CVV.
f34603c6042c7802af86fc595826003b48c8f721fa4f1ffa117ffea06bd06849.png

153a0932404b13aa72f600fa0f9237172d5147ac6302b2183812028339748e9c.png

class SpzSmartBlockComponent extends SPZ.BaseElement { constructor(element) { super(element); this.templates_ = null; this.container_ = null; this.i18n_ = {}; this.config_ = {}; this.show_type_ = 3; this.product_resource_id_ = ''; this.collection_resource_id_ = ''; this.cart_items_ = []; this.customer_id_ = ''; this.order_id_ = ''; } static deferredMount() { return false; } isLayoutSupported(layout) { return layout == SPZCore.Layout.CONTAINER; } buildCallback() { const template_type = window.SHOPLAZZA.meta.page.template_type; if (template_type === 1) { this.show_type_ = 3; this.product_resource_id_ = window.SHOPLAZZA.meta.page.resource_id; } else if (template_type === 2) { this.show_type_ = 4; this.collection_resource_id_ = window.SHOPLAZZA.meta.page.resource_id; } else if (template_type === 15){ this.show_type_ = 5; } else if (template_type === 13){ this.show_type_ = 6; } else if (template_type === 20){ this.show_type_ = 7; this.customer_id_ = window.SHOPLAZZA.customer.customer_id; } else if (template_type === 35){ this.show_type_ = 8; this.order_id_ = window.location.pathname.split('/').pop(); } this.templates_ = SPZServices.templatesForDoc(this.element); this.setAction_(); } mountCallback() { console.log('appzebu smart mounted'); const that = this; const themeName = window.SHOPLAZZA.theme.merchant_theme_name; const isGeek = /Geek/.test(themeName); this.fetchRules().then((res) => { if (res && res.rules && res.rules.length) { const blockEl = document.getElementById('smart_recommend_block'); SPZ.whenApiDefined(blockEl).then((api) => { api.render({data: res}, true).then(() => { if (isGeek && that.show_type_ === 6) { blockEl.querySelector('.plugin_container_wrpper').style.padding = '30px 0'; } const recommendStyle = document.createElement('style'); recommendStyle.innerHTML = ` .plugin__recommend_container,.app-recommend-card { display: none !important; } `; document.head.appendChild(recommendStyle); const fetchList = []; res.rules.forEach((rule) => { fetchList.push(this.fetchRuleProductList(rule.id)); }); const fetchAll = Promise.all(fetchList); fetchAll.then((p_res) => { res.rules.forEach((rule, index) => { rule.products = p_res[index] && p_res[index].products; const ruleEl = document.getElementById('smart_recommend_rule_' + rule.id); SPZ.whenApiDefined(ruleEl).then((api) => { api.render({data: rule}, true).then(() => { that.impressListen(`#smart_recommend_rule_ul_${rule.id}`, function(){ that.trackRuleImpress(rule); }); const btnElList = document.querySelectorAll(`#smart_recommend_rule_ul_${rule.id} button`); btnElList.forEach((btnEl) => { if (btnEl && rule.config && rule.config.quick_shop_button_bg_color && rule.config.quick_shop_button_text_color) { btnEl.style.backgroundColor = rule.config.quick_shop_button_bg_color; btnEl.style.color = rule.config.quick_shop_button_text_color; } }) }); }); }); }); }) }) } else { if (window.top !== window.self) { const template_type = window.SHOPLAZZA.meta.page.template_type; const holderEl = document.getElementById('smart_recommend_preview_no_data_placeholder'); SPZ.whenApiDefined(holderEl).then((api) => { api.render({data: { isCart: template_type === 13, isCollection: template_type === 2, isProduct: template_type === 1, isIndex: template_type === 15 }}, true); }); } } }); } setAction_() { this.registerAction('quickShop', (data) => { const that = this; const product_id = data.args.product_id; const productIndex = data.args.productIndex; const rule_id = data.args.rule_id; const ssp = data.args.ssp; const scm = data.args.scm; const cfb = data.args.cfb; const ifb = data.args.ifb; const modalRender = document.getElementById('smart_recommend_product_modal_render'); if (product_id) { this.fetchProductData(product_id).then((res) => { const product = res.products && res.products.length && res.products[0] || {}; product.cfb = cfb; product.ifb = ifb; SPZ.whenApiDefined(modalRender).then((api) => { api.render({product: product, productIndex: productIndex, rule_id: rule_id, ssp: ssp, scm: scm, show_type: that.show_type_}, true).then(() => { const modalEl = document.getElementById('smart_recommend_product_modal'); SPZ.whenApiDefined(modalEl).then((modal) => { that.impressListen('#smart_recommend_product_modal', function(){ that.trackQuickShop({ rule_id: rule_id, product_id: product_id }); }); modal.open(); }); const formEl = document.getElementById('smart_recommend_product_form'); SPZ.whenApiDefined(formEl).then((form) => { form.setProduct(product); }); const variantEl = document.getElementById('smart_recommend_product_variants'); SPZ.whenApiDefined(variantEl).then((variant) => { variant.handleRender(product); }); }); }) }); } }); this.registerAction('handleScroll', (data) => { this.directTo(data.args.rule_id, data.args.direction); }); this.registerAction('handleProductChange', (data) => { const variant = data.args.data.variant; const product = data.args.data.product; const imageRenderEl = document.getElementById('smart_recommend_product_image'); SPZ.whenApiDefined(imageRenderEl).then((api) => { api.render({ variant: variant, product: product }); }); }); this.registerAction('handleAtcSuccess', (detail) => { const data = detail.args; data.data.product = data.data.product || {}; data.data.variant = data.data.variant || {}; const product_id = data.data.product.id; const product_title = data.data.product.title; const variant_id = data.data.variant.id; const price = data.data.variant.price; const rule_id = data.rule_id; const aid = `smart_recommend.${this.show_type_}.${rule_id}`; const ifb = data.data.product.ifb; const cfb = data.data.product.cfb; const ssp = data.ssp; const scm = data.scm; const spm = `smart_recommend_${this.show_type_}.${data.spmIndex}`; const params = { id: product_id, product_id: product_id, number: 1, name: product_title, variant_id: variant_id, childrenId: variant_id, item_price: price, source: 'add_to_cart', _extra: { aid: aid, ifb: ifb, cfb: cfb, scm: scm, spm: `..${window.SHOPLAZZA.meta.page.template_name}.${spm}`, ssp: ssp, } }; this.tranckAddToCart(params); }); this.registerAction('addATCHook', (data) => { const params = data.args; const spm = `smart_recommend_${this.show_type_}.${params.spmIndex}`; this.myInterceptor_ = window.djInterceptors && window.djInterceptors.track.use({ event: 'dj.addToCart', params: { aid: `smart_recommend.${this.show_type_}.` + params.rule_id, ssp: params.ssp, scm: params.scm, cfb: params.cfb, spm: `..${window.SHOPLAZZA.meta.page.template_name}.${spm}`, }, once: true }); }); } tranckAddToCart(detail) { if (window.$) { window.$(document.body).trigger('dj.addToCart', detail); } } fetchRules() { const payload = { show_type: this.show_type_, }; let that = this; if (this.show_type_ === 6) { let line_items = []; return this.fetchCart().then((res) => { if (res && res.cart && res.cart.line_items) { line_items = res.cart.line_items.map((item) => { return { product_id: item.product_id, variant_id: item.variant_id, quantity: item.quantity, price: item.price } }); } payload.line_items = line_items; that.cart_items_ = line_items; return that.fetchRulesRequest(payload); }); } else { if (this.show_type_ === 3) { payload.line_items = [{ product_id: this.product_resource_id_ }]; } else if (this.show_type_ === 4) { payload.collection_id = this.collection_resource_id_; } else if (this.show_type_ === 7) { payload.customer_id = this.customer_id_; } else if (this.show_type_ === 8) { payload.order_id = this.order_id_; } return this.fetchRulesRequest(payload); } } fetchRulesRequest(payload) { return fetch(window.SHOPLAZZA.routes.root + "/api/possum/recommend_query", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(payload) }).then(function(res){ if(res.ok){ return res.json(); } }); } fetchCart() { return fetch(`/api/cart/cart-select?r=${Math.random().toString(36).slice(-4)}`) .then((res) => { if (res.ok) { return res.json(); } }); } fetchRuleProductList(rule_id) { const payload = { page: 1, limit: 100, fields: ["title", "url", "image", "min_price_variant.price", "min_price_variant.compare_at_price"], rule_id: rule_id, }; if (this.show_type_ === 3) { payload.line_items = [{ product_id: this.product_resource_id_ }]; } else if (this.show_type_ === 4) { payload.collection_id = this.collection_resource_id_; } else if (this.show_type_ === 6) { payload.line_items = this.cart_items_; } else if (this.show_type_ === 7) { payload.customer_id = this.customer_id_; } else if (this.show_type_ === 8) { payload.order_id = this.order_id_; } return fetch(window.SHOPLAZZA.routes.root + "/api/possum/recommend_products", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(payload) }).then(function(res){ if(res.ok){ return res.json(); } }).catch(function(err){ console.log(err); }); } fetchProductData(product_id) { return fetch(window.SHOPLAZZA.routes.root + "/api/possum/products", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ product_ids: [product_id], fields: [ "images", "options", "min_price_variant", "variants"] }) }).then(function(res){ if(res.ok){ return res.json(); } }).catch(function(err){ console.log(err); const loadingEl = document.getElementById('smart_recommend_loading'); if (loadingEl) { loadingEl.style.display = 'none'; } }); } getStyle(ele, style) { if (!ele) return; if (window.getComputedStyle) { return window.getComputedStyle(ele)[style]; } return ele.currentStyle[style]; } directTo(id, direction) { const scrollElement = document.getElementById(`smart_recommend_rule_ul_${id}`); const blockWidth = parseInt(this.getStyle(scrollElement, 'width')); const scrollLength = (blockWidth * 0.19 - 12) * 5; const scrollPoint = scrollElement.scrollWidth - scrollElement.clientWidth; if (!scrollElement) return; if (direction === 'left') { if (document.dir === 'rtl') { scrollElement.scrollTo({ left: Math.abs(scrollElement.scrollLeft) >= scrollPoint - 100 ? 0 : scrollElement.scrollLeft - scrollLength, behavior: 'smooth' }); return; } scrollElement.scrollTo({ left: Math.max(scrollElement.scrollLeft - scrollLength, 0), behavior: 'smooth' }); } else { if (document.dir === 'rtl') { scrollElement.scrollTo({ left: Math.abs(scrollElement.scrollLeft) >= scrollPoint + 100 ? 0 : scrollElement.scrollLeft + scrollLength, behavior: 'smooth' }); return; } scrollElement.scrollTo({ left: scrollElement.scrollLeft >= scrollPoint - 100 ? 0 : scrollElement.scrollLeft + scrollLength, behavior: 'smooth' }); } } trackRuleImpress(rule) { if (window.sa && window.sa.track) { window.sa.track("plugin_common", { plugin_name: "upsell", event_type: "impressions", rule_id: rule.id, ssp: rule.ssp, scm: rule.scm, show_type: this.show_type_, support_app_block: window.SHOPLAZZA.theme.support_app_block }); window.sa.track("module_impressions", { aid: `smart_recommend.${this.show_type_}.${rule.id}`, support_app_block: window.SHOPLAZZA.theme.support_app_block }); } } trackQuickShop(data) { window.sa && sa.track && sa.track("plugin_common", { plugin_name: "upsell", event_type: "quick_shop", rule_id: data.rule_id, product_id: data.product_id, show_type: this.show_type_, }); } impressListen(selector, cb) { const el = document.querySelector(selector); const onImpress = (e) => { if (e) { e.stopPropagation(); } cb(); }; if (el && !el.getAttribute('imprsd')) { el.addEventListener('impress', onImpress) } else if (el) { onImpress(); } } } SPZ.defineElement('spz-custom-smart-block', SpzSmartBlockComponent);