Skip to content

Commit 1ed2f45

Browse files
committed
add ebay us shop buttons. remove video section in product page since no videos now
1 parent ac55393 commit 1ed2f45

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

components/common.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function loadCommonNav(productModel) {
8989
<div><a href="#picgroup1">${productModel} Black Gallery</a></div>
9090
<div><a href="#picgroup2">${productModel} White Gallery</a></div>
9191
<div><a href="#man">Manual</a></div>
92-
<div><a href="#install">Installation Guide</a></div>
92+
<!-- <div><a href="#install">Installation Guide</a></div> -->
9393
`;
9494
document.querySelector('.container').prepend(nav);
9595
}
@@ -198,6 +198,9 @@ function createShopButton(productModel) {
198198
${ getAmazonASIN(productModel) ? `<a href="https://www.amazon.com/dp/${getAmazonASIN(productModel)}" target="_blank" class="btn btn-success btn-lg">
199199
Shop ${productModel} on Amazon
200200
</a>` : ''}
201+
${ geteBayItemNoUs(productModel) ? `<a href="https://www.ebay.com/itm/${geteBayItemNoUs(productModel)}" target="_blank" class="btn btn-success btn-lg">
202+
Shop ${productModel} on eBay US
203+
</a>` : ''}
201204
${ geteBayItemNoDe(productModel) ? `<a href="https://www.ebay.de/itm/${geteBayItemNoDe(productModel)}" target="_blank" class="btn btn-success btn-lg">
202205
Shop ${productModel} on eBay DE
203206
</a>` : ''}
@@ -221,6 +224,16 @@ function getAmazonASIN(productModel) {
221224
return asinMap[productModel];
222225
}
223226

227+
function geteBayItemNoUs(productModel) {
228+
const itemNoUsMap = {
229+
'S400': '146757421134',
230+
'S300': '146830895088',
231+
'E02': '146784537007',
232+
'W01': '146826136765'
233+
};
234+
return itemNoUsMap[productModel];
235+
}
236+
224237
function geteBayItemNoDe(productModel) {
225238
const itemNoDeMap = {
226239
'S400': '146886599741',

products/s300.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
loadImageHandlers();
1010

1111
const container = document.querySelector('.container');
12-
// container.innerHTML += createShopButton('S300');
12+
container.innerHTML += createShopButton('S300');
1313
container.innerHTML += createGallerySection('S300', 'Black', 8);
1414
container.innerHTML += createGallerySection('S300', 'White', 8);
1515
container.innerHTML += createManualSection('S300');

products/s400.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
container.innerHTML += createGallerySection('S400', 'Black', 13);
1414
container.innerHTML += createGallerySection('S400', 'White', 13);
1515
container.innerHTML += createManualSection('S400');
16-
container.innerHTML += createInstallGuideSection('F70waHapdNk');
16+
// container.innerHTML += createInstallGuideSection('F70waHapdNk');
1717

1818
loadFooter();
1919
});

0 commit comments

Comments
 (0)