Roberto Remondini Posted March 29, 2021 Share Posted March 29, 2021 Good evening everyone, I'm editing a Ps 1.6.1.11 ecommerce made with POS Rossi 3 theme. I need to show the SKU, EAN13 and UPC code for the items. I modified the code by adding this: <p id = "product_reference"{if empty($product->reference) || !$product->reference} style="display: none;" {else} style="display: block !important;" {/if}> <label>Codice</label> <span class="editable" itemprop="sku" style="font-weight:400;color:#777;">{if !isset($groups)}{$product->reference|escape:'html':'UTF-8'}{/if}</span> </p> <p id = "product_ean13"{if empty($product->ean13) || !$product->ean13} style="display: none;" {else} style="display: block !important;" {/if}> <label>{l s='Ean13:'} </label> <span {if !empty($product->ean13) && $product->ean13} content="{$product->ean13}"{/if}>{$product->ean13|escape:'html':'UTF-8'}</span> </p> <p id = "product_upc"{if empty($product->upc) || !$product->upc} style="display: none;" {else} style="display: block !important;" {/if}> <label>{l s='UPC:'} </label> <span {if !empty($product->upc) && $product->upc} content="{$product->upc}"{/if}>{$product->upc|escape:'html':'UTF-8'}</span> </p> It works fine for products without variants but it shows nothing when I go to select a specific product variants (es. size, color, model, etc). I think is necessary add som javascripts code to update informations when a variant is selected. Any idea to how to do it? Link to comment Share on other sites More sharing options...
Guest Posted March 30, 2021 Share Posted March 30, 2021 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now