Skip to content

Instantly share code, notes, and snippets.

View bryanleetc's full-sized avatar

Bryan Lee bryanleetc

View GitHub Profile
@axflo
axflo / product_details_for_widget
Created January 4, 2019 09:07
Snippet to be pasted in console in product details page to get data for the product widget
price = cleanPrice();
supply_id = window.location.pathname.split('/')[4];
title = $('.-margin-left-md > h3')[0].innerText;
supplier = $('.product-options__value:has(a)')[0].firstChild.text;
image = $('.img-container-extra-lg')[0].firstChild.src;