-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
111 changed files
with
1,955 additions
and
1,743 deletions.
There are no files selected for viewing
This file contains 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
491 changes: 247 additions & 244 deletions
491
..._tabs/attributes/YOUR_ADMIN/includes/modules/extra_tabs/attributes/jscript_attributes.php
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
60 changes: 28 additions & 32 deletions
60
...ormation/YOUR_ADMIN/includes/modules/extra_tabs/information/tab_contents_collect_info.php
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,36 @@ | ||
<?php | ||
if (isset($_GET['pID']) && $_GET['pID'] != '') { | ||
$languages = zen_get_languages(); | ||
$languages = zen_get_languages(); | ||
|
||
$orderedQuery = "SELECT sum(products_quantity) as products_ordered | ||
FROM " . TABLE_ORDERS_PRODUCTS . " | ||
WHERE products_id = " . $_GET['pID']; | ||
$ordered = $db->Execute($orderedQuery); | ||
$orderedQuery = "SELECT sum(products_quantity) as products_ordered | ||
FROM " . TABLE_ORDERS_PRODUCTS . " | ||
WHERE products_id = " . $_GET['pID']; | ||
$ordered = $db->Execute($orderedQuery); | ||
|
||
$viewQuery = "SELECT language_id, products_viewed | ||
FROM " . TABLE_PRODUCTS_DESCRIPTION . " | ||
WHERE products_id = " . $_GET['pID']; | ||
$view = $db->Execute($viewQuery); | ||
$viewQuery = "SELECT language_id, products_viewed | ||
FROM " . TABLE_PRODUCTS_DESCRIPTION . " | ||
WHERE products_id = " . $_GET['pID']; | ||
$view = $db->Execute($viewQuery); | ||
|
||
$viewArray = array(); | ||
foreach ($view as $item) { | ||
$viewArray[] = array( | ||
'language_id' => $item['language_id'], | ||
'views' => $item['products_viewed']); | ||
} | ||
?> | ||
<div class="form-group"> | ||
<ul class="list-group col-sm-3"> | ||
<li class="list-group-item justify-content-between">Numbers in stock:<span class="badge badge-default badge-pill"><?php echo $productInfo['products_quantity']['value']; ?></span></li> | ||
<li class="list-group-item justify-content-between">Numbers sold: <span class="badge badge-default badge-pill"><?php echo $ordered->fields['products_ordered']; ?></span></li> | ||
<li class="list-group-item justify-content-between">Times viewed: | ||
<?php | ||
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { | ||
echo '<span class="badge badge-default badge-pill">' . zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . $viewArray[$i]['views'] . '</span>'; | ||
} | ||
?> | ||
<li class="list-group-item justify-content-between">reviews (maybe seperate tab)</li> | ||
<li class="list-group-item"></li> | ||
<li class="list-group-item"></li> | ||
</ul> | ||
</div> | ||
<?php | ||
$viewArray = array(); | ||
foreach ($view as $item) { | ||
$viewArray[] = array( | ||
'language_id' => $item['language_id'], | ||
'views' => $item['products_viewed']); | ||
} | ||
?> | ||
<div class="col-sm-12"> | ||
<ul class="list-group col-sm-3"> | ||
<li class="list-group-item justify-content-between">Numbers in stock:<span class="badge badge-default badge-pill"><?php echo $productInfo['products_quantity']['value']; ?></span></li> | ||
<li class="list-group-item justify-content-between">Numbers sold: <span class="badge badge-default badge-pill"><?php echo $ordered->fields['products_ordered']; ?></span></li> | ||
<li class="list-group-item justify-content-between">Times viewed: | ||
<?php for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { ?> | ||
<span class="badge badge-default badge-pill"><?php echo zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . $viewArray[$i]['views']; ?></span> | ||
<?php } ?> | ||
</li> | ||
</ul> | ||
</div> | ||
<?php | ||
} else { | ||
echo '<p class="bg-info">Please save the new product first.</p>'; | ||
} |
This file contains 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
Oops, something went wrong.