To display the UPCE/BAN/ISBN on the product page
Navigate to “/templates/your template/html/com_j2store/templates/your site’s sub-template/“, create a file called ”default_sku.php” and paste the following content there:
1
<?php
2
/**
3
* @package J2Store
4
* @copyright Copyright (c)2014-17 Ramesh Elamathi / J2Store.org
5
* @license GNU GPL v3 or later
6
*/
7
8
// No direct access
9
defined('_JEXEC') or die;
10
?>
11
12
<?php if(!empty($this->product->variant->sku)) : ?>
13
<div class="product-sku">
14
<span class="sku-text"><?php echo JText::_('J2STORE_SKU')?>
15
</span>
16
<span itemprop="sku" class="sku">
17
<?php echo $this->product->variant->sku; ?>
18
</span>
19
<br>
20
<span itemprop="upc" class="upc>
21
<?php echo $this->product->variant->upc; ?>
22
</span>
23
</div>
24
<?php endif; ?>
Copied!
Create another file called ”view_sku.php” and paste the following content there:
1
<?php
2
/**
3
* @package J2Store
4
* @copyright Copyright (c)2014-17 Ramesh Elamathi / J2Store.org
5
* @license GNU GPL v3 or later
6
*/
7
8
// No direct access
9
defined('_JEXEC') or die;
10
?>
11
<?php if($this->params->get('item_show_product_sku', 1) && !empty($this->product->variant->sku)) : ?>
12
<div class="product-sku">
13
<span class="sku-text"><?php echo JText::_('J2STORE_SKU')?> :</span>
14
<span itemprop="sku" class="sku"> <?php echo $this->product->variant->sku; ?> </span>
15
<br>
16
<span itemprop="upc" class="upc"> <?php echo $this->product->variant->upc; ?> </span>
17
</div>
18
<?php endif; ?>
Copied!
This would display the EBAN in the list view and item view pages.
Last modified 1yr ago
Copy link