PATH:
home
/
thebhoeo
/
public_html
/
wp-content
/
themes
/
woodmart
/
js
/
scripts
/
wc
woodmartThemeModule.ptTable=function(){var e=document.querySelector(".wd-pt-table");if(e){var t=e.querySelectorAll(".wd-pt-remove"),r=e.querySelectorAll(".wd-desired-price-opener"),d=e.querySelectorAll(".wd-desired-price-cancel"),o=e.querySelectorAll(".wd-desired-price-save");t.forEach(function(t){t.addEventListener("click",function(t){t.preventDefault();var r=this;e.parentNode.querySelector(".wd-loader-overlay").classList.add("wd-loading"),jQuery.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_remove_from_price_tracker_in_my_account",security:woodmart_settings.pt_remove_button_nonce,product_id:r.dataset.productId,variation_id:r.dataset.variationId},method:"POST",success:function(t){if(t&&(t.success&&r.closest("tr").remove(),t.data.content)){tempDiv=document.createElement("div"),tempDiv.innerHTML=t.data.content;var d=tempDiv.querySelector(".wd-pt-content").childNodes;e.parentNode.replaceChildren(...d)}},error:function(){console.error("ajax remove from waitlist error")},complete:function(){e.parentNode.querySelector(".wd-loader-overlay").classList.remove("wd-loading")}})})}),r.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault();var t=this.closest("td").querySelector(".wd-desired-price-edit"),r=this.closest("td").querySelector(".amount"),d=this.closest("td").querySelector(".wd-cell-empty");t&&(t.classList.toggle("wd-hide"),this.classList.toggle("wd-hide")),r&&r.classList.add("wd-hide"),d&&d.classList.add("wd-hide")})}),d.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault();var t=this.closest(".wd-desired-price-edit"),r=t.closest("td").querySelector(".amount"),d=t.closest("td").querySelector(".wd-cell-empty");t&&(t.classList.add("wd-hide"),t.parentNode.querySelector(".wd-desired-price-opener").classList.remove("wd-hide")),r&&r.classList.remove("wd-hide"),d&&d.classList.remove("wd-hide")})}),o.forEach(function(t){t.addEventListener("click",function(t){t.preventDefault();var r=this.closest(".wd-desired-price-edit"),d=r.querySelector('[name="wd-desired-price-change"]'),o=document.querySelector(".woocommerce-notices-wrapper");if(d){var a=d.value;e.parentNode.querySelector(".wd-loader-overlay").classList.add("wd-loading"),jQuery.ajax({url:woodmart_settings.ajaxurl,data:{action:"woodmart_update_price_tracker_desired_price",security:woodmart_settings.pt_update_desired_price_nonce,product_id:r.dataset.productId,variation_id:r.dataset.variationId,desired_price:a},method:"POST",success:function(e){if(e){if(e.data.notice){var t=o.querySelectorAll(".wd-notice"),d=document.createElement("div"),a=e.success?"success":"warning";t.forEach(e=>{e.remove()}),d.classList.add("wd-notice",`wd-${a}`),d.append(e.data.notice),o.append(d)}if(e.success){var c=r.parentNode.querySelector(".amount"),i=r.parentNode.querySelector(".wd-cell-empty");if(c&&c.remove(),i&&i.remove(),e.data.desired_price_html){var s=document.createElement("div");s.innerHTML=e.data.desired_price_html,r.parentNode.prepend(s.firstElementChild)}r.classList.add("wd-hide"),r.parentNode.querySelector(".wd-desired-price-opener").classList.remove("wd-hide")}}},error:function(){console.error("ajax update desired price error")},complete:function(){e.parentNode.querySelector(".wd-loader-overlay").classList.remove("wd-loading")}})}})})}},window.addEventListener("load",function(){woodmartThemeModule.ptTable()});
[+]
..
[-] filtersArea.min.js
[edit]
[-] quickShop.min.js
[edit]
[-] loginSidebar.js
[edit]
[-] shopLoader.min.js
[edit]
[-] woocommerceWrappTable.min.js
[edit]
[-] abandonedCart.min.js
[edit]
[-] product360Button.min.js
[edit]
[-] swatchesLimit.js
[edit]
[-] frequentlyBoughtTogether.js
[edit]
[-] quickShopVariationForm.min.js
[edit]
[-] trackProductViewed.min.js
[edit]
[-] frequentlyBoughtTogether.min.js
[edit]
[-] sortByWidget.js
[edit]
[-] woocommerceQuantity.min.js
[edit]
[-] stickyDetails.min.js
[edit]
[-] filterDropdowns.min.js
[edit]
[-] commentImage.min.js
[edit]
[-] woocommerceQuantity.js
[edit]
[-] singleProductTabsAccordion.js
[edit]
[-] addToCartAllTypes.min.js
[edit]
[-] swatchesVariations.min.js
[edit]
[-] loginTabs.js
[edit]
[-] categoriesAccordion.min.js
[edit]
[-] checkoutRemoveBtn.min.js
[edit]
[-] productImagesGallery.js
[edit]
[-] singleProductTabsSideHidden.js
[edit]
[-] stickyAddToCart.js
[edit]
[-] swatchesVariations.js
[edit]
[-] imagesGalleryInLoop.min.js
[edit]
[-] quickShop.js
[edit]
[-] product360Button.js
[edit]
[-] initZoom.js
[edit]
[-] emailSubscriptionCheckboxes.min.js
[edit]
[-] headerCategoriesMenu.js
[edit]
[-] headerCategoriesMenu.min.js
[edit]
[-] freeGiftsTable.js
[edit]
[-] wishlist.min.js
[edit]
[-] checkoutQuantity.min.js
[edit]
[-] ptSubscribeForm.min.js
[edit]
[-] productHover.js
[edit]
[-] updateAjaxDeliveryDates.js
[edit]
[-] productMoreDescription.min.js
[edit]
[-] woocommercePriceSlider.min.js
[edit]
[-] productImages.js
[edit]
[-] productReviewsLikes.min.js
[edit]
[-] filterDropdowns.js
[edit]
[-] singleProductTabsAccordion.min.js
[edit]
[-] shopMasonry.min.js
[edit]
[-] woodmartCompare.js
[edit]
[-] searchByFilters.js
[edit]
[-] gridQuantity.min.js
[edit]
[-] swatchesOnGrid.js
[edit]
[-] productsLoadMore.min.js
[edit]
[-] productGalleryVideo.js
[edit]
[-] variationsPrice.min.js
[edit]
[-] productReviewsCriteria.js
[edit]
[-] emailSubscriptionCheckboxes.js
[edit]
[-] freeGiftsTable.min.js
[edit]
[-] dynamicDiscountsTable.min.js
[edit]
[-] waitlistTable.min.js
[edit]
[-] abandonedCart.js
[edit]
[-] shopMasonry.js
[edit]
[-] wishlistGroup.js
[edit]
[-] wishlist.js
[edit]
[-] checkoutFields.js
[edit]
[-] addToCartAllTypes.js
[edit]
[-] imagesGalleryInLoop.js
[edit]
[-] productReviews.js
[edit]
[-] waitlistSubscribeForm.min.js
[edit]
[-] categoriesDropdowns.min.js
[edit]
[-] filtersArea.js
[edit]
[-] cartWidget.min.js
[edit]
[-] estimateDeliveryOnCart.js
[edit]
[-] productRecentlyViewed.min.js
[edit]
[-] woocommerceWrappTable.js
[edit]
[-] waitlistSubscribeForm.js
[edit]
[-] productReviewsLikes.js
[edit]
[-] checkoutRemoveBtn.js
[edit]
[-] cartQuantity.min.js
[edit]
[-] productMoreDescription.js
[edit]
[-] ptSubscribeForm.js
[edit]
[-] shopPageInit.js
[edit]
[-] countProductVisits.min.js
[edit]
[-] loginDropdown.min.js
[edit]
[-] productReviewsCriteria.min.js
[edit]
[-] loginDropdown.js
[edit]
[-] actionAfterAddToCart.min.js
[edit]
[-] miniCartQuantity.js
[edit]
[-] woodmartCompare.min.js
[edit]
[-] searchByFilters.min.js
[edit]
[-] miniCartQuantity.min.js
[edit]
[-] updateCartFragmentsFix.min.js
[edit]
[-] waitlistTable.js
[edit]
[-] onRemoveFromCart.min.js
[edit]
[-] quickShopVariationForm.js
[edit]
[-] categoriesAccordion.js
[edit]
[-] singleProductTabsSideHidden.min.js
[edit]
[-] loginTabs.min.js
[edit]
[-] checkoutFields.min.js
[edit]
[-] estimateDeliveryOnCart.min.js
[edit]
[-] productFilters.js
[edit]
[-] wishlistGroup.min.js
[edit]
[-] productRecentlyViewed.js
[edit]
[-] productFilters.min.js
[edit]
[-] shopLoader.js
[edit]
[-] productHover.min.js
[edit]
[-] quickView.min.js
[edit]
[-] checkoutQuantity.js
[edit]
[-] cartWidget.js
[edit]
[-] onRemoveFromCart.js
[edit]
[-] quickView.js
[edit]
[-] woocommerceComments.js
[edit]
[-] countProductVisits.js
[edit]
[-] dynamicDiscountsTable.js
[edit]
[-] loginSidebar.min.js
[edit]
[-] woocommerceComments.min.js
[edit]
[-] swatchesOnGrid.min.js
[edit]
[-] cartQuantity.js
[edit]
[-] productImagesGallery.min.js
[edit]
[-] updateAjaxDeliveryDates.min.js
[edit]
[-] gridQuantity.js
[edit]
[-] stickySidebarBtn.min.js
[edit]
[-] productVideo.min.js
[edit]
[-] variationsPrice.js
[edit]
[-] productReviews.min.js
[edit]
[-] ajaxFilters.js
[edit]
[-] productImages.min.js
[edit]
[-] trackProductViewed.js
[edit]
[-] ptTable.min.js
[edit]
[-] actionAfterAddToCart.js
[edit]
[-] stickyAddToCart.min.js
[edit]
[-] ptTable.js
[edit]
[-] swatchesLimit.min.js
[edit]
[-] shopPageInit.min.js
[edit]
[-] productVideo.js
[edit]
[-] productGalleryVideo.min.js
[edit]
[-] ajaxFilters.min.js
[edit]
[-] stickyDetails.js
[edit]
[-] productsLoadMore.js
[edit]
[-] woocommercePriceSlider.js
[edit]
[-] sortByWidget.min.js
[edit]
[-] commentImage.js
[edit]
[-] productsTabs.min.js
[edit]
[-] productsTabs.js
[edit]
[-] categoriesDropdowns.js
[edit]
[-] initZoom.min.js
[edit]
[-] updateCartFragmentsFix.js
[edit]
[-] stickySidebarBtn.js
[edit]