This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="collection-grid"> | |
{% for product in collection.products %} | |
<div | |
class="collection-grid__item" | |
<!-- We to know what product we're dealing with --> | |
data-product-id="{{ product.id }}" | |
<!-- A lot of API calls need the product handle, not ID --> | |
data-product-handle="{{ product.handle }}" | |
<!-- We don't always know which variant is selected within a grid item --> | |
data-variant-id="{{ product.selected_or_first_available_variant }}"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const van_tor_price = 250; | |
const van_ott_price = 280; | |
const van_mon_price = 240; | |
const van_edm_price = 150; | |
const van_cal_price = 180; | |
const van_tor_travel_time = 3.5; | |
const van_ott_travel_time = 4; | |
const van_mon_travel_time = 4; | |
const van_edm_travel_time = 1.5; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Calculate the column total on the Capitol One Transactions & Details page. | |
* | |
* Usage: Paste function into console. Then, run calculateTotalAmountOnPage() in console. | |
* | |
* @author https://github.com/macdonaldr93/ | |
* @license GNU GPLv3 | |
*/ | |
function calculateTotalAmountOnPage() { |