Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Product Code Field Rate Topic   - - - - -

 
  • becomarius
  • Senior Member
  • Members
  • Join Date: 09-Feb 12
  • 194 posts

Posted 09 July 2018 - 11:16 AM #1

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-lab...iew-add-on.html

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


CS Cart lovers


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19703 posts

Posted 09 July 2018 - 12:52 PM #2

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:

                <div class="ty-product-block__sku">
                    {assign var="sku" value="sku_`$obj_id`"}
                    {$smarty.capture.$sku nofilter}
                </div>

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • becomarius
  • Senior Member
  • Members
  • Join Date: 09-Feb 12
  • 194 posts

Posted 09 July 2018 - 01:17 PM #3

 

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:

                <div class="ty-product-block__sku">
                    {assign var="sku" value="sku_`$obj_id`"}
                    {$smarty.capture.$sku nofilter}
                </div>

Working only if i disable ECL addon

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


CS Cart lovers


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19703 posts

Posted 10 July 2018 - 05:21 AM #4

I use this https://www.ecom-lab...iew-add-on.html

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

 

Please PM me URL of your website


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • kogi
  • Senior Member
  • Members
  • Join Date: 16-Aug 07
  • 617 posts

Posted 28 March 2019 - 09:19 PM #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:

                <div class="ty-product-block__sku">
                    {assign var="sku" value="sku_`$obj_id`"}
                    {$smarty.capture.$sku nofilter}
                </div>

find / -type f -name '*.base' -exec chown kogi.kogi {} \;

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19703 posts

Posted 29 March 2019 - 05:19 AM #6

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


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • Ghiyas
  • Senior Member
  • Trial users
  • Join Date: 07-Aug 17
  • 158 posts

Posted 08 May 2019 - 11:26 AM #7

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

                <div class="ty-product-block__sku">
                    {assign var="sku" value="sku_`$obj_id`"}
                    {$smarty.capture.$sku nofilter}
                </div>

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
  • Senior Member
  • Members
  • Join Date: 16-Aug 07
  • 617 posts

Posted 08 May 2019 - 11:34 AM #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

<div class="grid-list vs-grid-table-wrapper">
{strip}

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

    <div class="ty-column{$columns}">
    {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}

        <div class="ty-grid-list__item ty-quick-view-button__wrapper">
        {assign var="form_open" value="form_open_`$obj_id`"}
        {$smarty.capture.$form_open nofilter}
        {hook name="products:product_multicolumns_list"}
            <div class="vs-grid vs-grid-table">
                <div class="preview-image">
                    <div class="ty-center scroll-image animate scale">
                        {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}

                    </div>
                </div>

                <div class="ty-product-block__sku">
                    {assign var="sku" value="sku_`$obj_id`"}
                    {$smarty.capture.$sku nofilter}
                </div>

                <div class="title-wrapper">
                    {if $item_number == "Y"}<span class="item-number">{$cur_number}.&nbsp;</span>{math equation="num + 1" num=$cur_number assign="cur_number"}{/if}
                    {assign var="name" value="name_$obj_id"}
                                        <div class="title-wrapper-inner"><bdi>{$smarty.capture.$name nofilter}</bdi></div>
                </div>
                <div class="price-wrapper {if $settings.Appearance.show_prices_taxed_clean=="Y"}vs-grid-tax{/if}">
                    <div class="clearfix prices-container">

                        <div class="clearfix">
                            <div class="ty-float-left">
                                {assign var="price" value="price_`$obj_id`"}
                                {$smarty.capture.$price nofilter}<br/>
                            </div>

                            <div class="ty-float-right">
                            {assign var="old_price" value="old_price_`$obj_id`"}
                            {if $smarty.capture.$old_price|trim}{$smarty.capture.$old_price nofilter}{/if}
                            </div>

                                                                                                   75,47         33%


find / -type f -name '*.base' -exec chown kogi.kogi {} \;

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19703 posts

Posted 08 May 2019 - 01:13 PM #9

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

                <div class="ty-product-block__sku">
                    {assign var="sku" value="sku_`$obj_id`"}
                    {$smarty.capture.$sku nofilter}
                </div>

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


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • Ghiyas
  • Senior Member
  • Trial users
  • Join Date: 07-Aug 17
  • 158 posts

Posted 08 May 2019 - 01:52 PM #10

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 



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19703 posts

Posted 08 May 2019 - 01:54 PM #11

In this case check parent theme. Usually it is 

 

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


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.