Product Code Field

Hi

For 4.7.4

I now there are somewhere a topic about this, but i can`t find

In need to add "product code" field on product grid, product list and others... i now there are somewhere a .less file to add or remove these option

I use this https://www.ecom-labs.com/ready-to-use-add-ons/cs-cart-configurable-grid-view-add-on.html

but when title is to long, the product code don`t show

Here is example for grid list:

- design/themes/THEME/templates/blocks/product_list_templates/products_multicolumns.tpl (all product listing templates are located here)

- add the following code:

show_sku=true

- design/themes/THEME/templates/blocks/list_templates/grid_list.tpl

- add the following code in the required place:

                
{assign var="sku" value="sku_`$obj_id`"} {$smarty.capture.$sku nofilter}

Here is example for grid list:

- design/themes/THEME/templates/blocks/product_list_templates/products_multicolumns.tpl (all product listing templates are located here)

- add the following code:

show_price=true

- design/themes/THEME/templates/blocks/list_templates/grid_list.tpl

- add the following code in the required place:

                
{assign var="sku" value="sku_`$obj_id`"} {$smarty.capture.$sku nofilter}

Working only if i disable ECL addon

I will like to still use it :( ...for other reason

I use this https://www.ecom-labs.com/ready-to-use-add-ons/cs-cart-configurable-grid-view-add-on.html

but when title is to long, the product code don`t show

Please PM me URL of your website

I couldn't get this to work with the latest version of cscart and vivashop.

Should it work or have I muffed it up?

Here is example for grid list:

- design/themes/THEME/templates/blocks/product_list_templates/products_multicolumns.tpl (all product listing templates are located here)

- add the following code:

show_price=true

- design/themes/THEME/templates/blocks/list_templates/grid_list.tpl

- add the following code in the required place:

                
{assign var="sku" value="sku_`$obj_id`"} {$smarty.capture.$sku nofilter}

Regarding vivashop please contact theme developers. Most possibly, default template is overriden somewhere in their addon

I cannot seem to figure out how to add the product code to the grid view. I have tried adding

                
{assign var="sku" value="sku_`$obj_id`"} {$smarty.capture.$sku nofilter}

to the grid_list.tpl file but still no success :(

Alternatively, if there was a way I could use one of the product features to display this, that would work (I have set up one with the Show in product list enabled, but this only shows the feature in the list view, not grid view)

I cannot seem to figure out how to add the product code to the grid view. I have tried adding

This mod does work. Hopefully this will show you where to put the code

{strip}

{foreach from=$splitted_products item=“sproducts” name=“sprod”}
{foreach from=$sproducts item=“product” name=“sproducts”}

{if $product} {assign var="obj_id" value=$product.product_id} {assign var="obj_id_prefix" value="`$obj_prefix``$product.product_id`"} {include file="common/product_data.tpl" product=$product show_name=true}
{assign var="form_open" value="form_open_`$obj_id`"} {$smarty.capture.$form_open nofilter} {hook name="products:product_multicolumns_list"}
{assign var="discount_label" value="discount_label_`$obj_prefix``$obj_id`"} {$smarty.capture.$discount_label nofilter} {include file="views/products/components/product_icon.tpl" product=$product show_vs_gallery=true}
{assign var="sku" value="sku_`$obj_id`"} {$smarty.capture.$sku nofilter}
{if $item_number == "Y"}{$cur_number}. {math equation="num + 1" num=$cur_number assign="cur_number"}{/if} {assign var="name" value="name_$obj_id"}
{$smarty.capture.$name nofilter}
{assign var="price" value="price_`$obj_id`"} {$smarty.capture.$price nofilter}
{assign var="old_price" value="old_price_`$obj_id`"} {if $smarty.capture.$old_price|trim}{$smarty.capture.$old_price nofilter}{/if}
75,47 33%

I cannot seem to figure out how to add the product code to the grid view. I have tried adding

                
{assign var="sku" value="sku_`$obj_id`"} {$smarty.capture.$sku nofilter}

to the grid_list.tpl file but still no success :(

Alternatively, if there was a way I could use one of the product features to display this, that would work (I have set up one with the Show in product list enabled, but this only shows the feature in the list view, not grid view)

Did you add show_sku=true here?

design/themes/THEME/templates/blocks/product_list_templates/products_multicolumns.tpl

Did you add show_sku=true here?

design/themes/THEME/templates/blocks/product_list_templates/products_multicolumns.tpl

I don't have a product_list_templates folder

In this case check parent theme. Usually it is

design/themes/responsive/templates/blocks/product_list_templates/products_multicolumns.tpl

Any one know how I can do this with UniTheme v1? I've tried doing all of the above but it doesn't appear to work

You should edit corresponding changed the files files of UniTheme, not Responsive theme

I have edited the files for UniTheme but it doesn't seem to do anything. I have also tried using ?cc&ctpl to clear the cache but I appear to be doing something wrong?

It is required to examine issue on your server. May be another 3rd party addon overrides the same template