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
Please PM me URL of your website
kogi
March 28, 2019, 12:00am
5
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)
kogi
May 8, 2019, 12:00am
8
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}