Jump to content

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

Where Is This File? Rate Topic   - - - - -

 
  • Adr
  • Advanced Member
  • Members
  • Join Date: 30-Jan 18
  • 85 posts

Posted 14 July 2020 - 09:59 AM #1

hi!

can anyone help me locate admin panel file? i wold like to change this cart icon and disable link for vendors.

 

 

 

 

Thank you

A.

Attached Thumbnails

  • carticon.jpg


 
  • soft-solid
  • Junior Member
  • Authorized Reseller
  • Join Date: 19-Apr 10
  • 1204 posts

Posted 14 July 2020 - 10:14 AM #2

Hello

 

design/backend/templates/menu.tpl

 

Best regards

Robert


Team of SoftSolid
cs-cart.pl, marketplace

We specialize in creating the highest quality addons, safe, useful and flexible


 
  • Adr
  • Advanced Member
  • Members
  • Join Date: 30-Jan 18
  • 85 posts

Posted 17 July 2020 - 05:09 AM #3

Hello

 

design/backend/templates/menu.tpl

 

Best regards

Robert

 

Thank you SoftSolid.

 

Can you please tell me what part of the code is responsible for this cart icon and store front link?

 

I tried to remove this part:

 

 

  {hook name="menu:storefront_icon"}
                    {if !$runtime.company_data.company_id}
                        {$name = __("all_vendors")}
                    {/if}
                <li class="nav-company">
                {if $runtime.company_data.storefront}
                    {$storefront_url = fn_url("profiles.act_as_user?user_id={$auth.user_id}&area=C")}
                    <a href="{$storefront_url}" target="_blank" class="brand" title="{__("view_storefront")}">
                        <i class="icon-shopping-cart icon-white"></i>
                    </a>
                {else}
                    <a class="brand" title="{__("storefront_url_not_defined")}"><i class="icon-shopping-cart icon-white cm-tooltip"></i></a>
                {/if}
                </li>
                {/hook}
 
 
But it didnt heped.
 
Thank you,
A


 
  • soft-solid
  • Junior Member
  • Authorized Reseller
  • Join Date: 19-Apr 10
  • 1204 posts

Posted 17 July 2020 - 05:54 AM #4

Hello

 

<a href="{$storefront_url}" target="_blank" class="brand" title="{__("view_storefront")}">
    <i class="icon-shopping-cart icon-white"></i>
</a>
 
Best regards
Robert

Team of SoftSolid
cs-cart.pl, marketplace

We specialize in creating the highest quality addons, safe, useful and flexible


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

Posted 17 July 2020 - 05:58 AM #5

Did you clear cache after changes are applied?


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    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • Adr
  • Advanced Member
  • Members
  • Join Date: 30-Jan 18
  • 85 posts

Posted 17 July 2020 - 12:45 PM #6

 

Hello

 

<a href="{$storefront_url}" target="_blank" class="brand" title="{__("view_storefront")}">
    <i class="icon-shopping-cart icon-white"></i>
</a>
 
Best regards
Robert

 

 

 

 

Did you clear cache after changes are applied?

 

As I can see this ocures twice in this file:

 

https://prnt.sc/tjl8ar

 

i commeted it out cleared cache but its still visible . Is this the right place for sure?

 

https://prnt.sc/tjlenl

 

Thank you,

A



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

Posted 17 July 2020 - 01:05 PM #7

Try to manually delete the var/cache directory


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    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • Adr
  • Advanced Member
  • Members
  • Join Date: 30-Jan 18
  • 85 posts

Posted 17 July 2020 - 01:08 PM #8

Now it works.

Thank you.

 

Why clear cahe dosnt remove this folder itself?

 

A



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11660 posts

Posted 17 July 2020 - 07:25 PM #9

Now it works.

Thank you.

 

Why clear cahe dosnt remove this folder itself?

 

A

 

Most likely due to ownership or permission problems on your site.  Once you clear the cache manually by removing the var/cache folder, then it should rebuild the cache with ownership/permissions that will allow it to be cleared in the future (depending your setting of DEFAULT_DIR_PERMISSIONS in config.local.php.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • Adr
  • Advanced Member
  • Members
  • Join Date: 30-Jan 18
  • 85 posts

Posted 18 July 2020 - 09:06 AM #10

Most likely due to ownership or permission problems on your site.  Once you clear the cache manually by removing the var/cache folder, then it should rebuild the cache with ownership/permissions that will allow it to be cleared in the future (depending your setting of DEFAULT_DIR_PERMISSIONS in config.local.php.

So what should i change in this file to be fully  cleared in admin panel?

 

<?php
 
 
if (!defined('BOOTSTRAP')) { die('Access denied'); }
 
 
// define('DEBUG_MODE', true);
 
/*
 * PHP options
 */
 
// Log everything, but do not display
error_reporting(E_ALL);
ini_set('display_errors', 0);
 
if (!defined('CONSOLE')) {
    // Set maximum time limit for script execution.
    @set_time_limit(3600);
}
 
/*
 * Database connection options
 */
$config['db_host'] = 'localhost';
$config['db_name'] = 'server';
$config['db_user'] = 'server';
$config['db_password'] = '***********;
 
$config['database_backend'] = 'mysqli';
 
// Database tables prefix
$config['table_prefix'] = 'DB';
 
/*
 * Script location options
 *
 * Example:
 * $config['http_host'] = 'www.yourcompany.com';
 * $config['http_path'] = '/store/cart';
 *
 * $config['https_host'] = 'secure.yourcompany.com';
 * $config['https_path'] = '/secure_dir/cart';
 *
 */
 
// Host and directory where software is installed on no-secure server
$config['http_host'] = 'page.com';
$config['http_path'] = '';
 
// Host and directory where software is installed on secure server
$config['https_host'] = 'page.com';
$config['https_path'] = '';
 
/*
 * Misc options
 */
// Names of index files for the frontend and backend
 
 
 
// DEMO mode
$config['demo_mode'] = false;
 
// Tweaks
$config['tweaks'] = array (
    // Whether to remove any javascript code from description and name of product, category, etc.
    // Auto - false for ULT, true for MVE.
    'sanitize_user_html' => 'auto',
    'anti_csrf' => true, // protect forms from CSRF attacks
    'disable_block_cache' => false, // used to disable block cache
    'disable_localizations' => true, // Disable Localizations functionality
    'disable_dhtml' => false, // Disable Ajax-based pagination and Ajax-based "Add to cart" button
    'do_not_apply_promotions_on_order_update' => true, // If true, the promotions that applied to the order won't be changed when editing the order. New promotions won't be applied to the order.
    'dev_js' => false, // set to true to disable js files compilation
    'redirect_to_cart' => false, // Redirect customer to the cart contents page. Used with the "disable_dhtml" setting.
    'api_https_only' => false, // Allows the use the API functionality only by the HTTPS protocol
    'api_allow_customer' => false, // Allow open API for unauthorized customers
    'lazy_thumbnails' => false, // generate image thumbnails on the fly
    'image_resize_lib' => 'auto', // library to resize images - "auto", "gd" or "imagick"
    'products_found_rows_no_cache_limit' => 100, // Max count of SQL found rows without saving to cache
    'show_database_changes' => false, // Show database changes in View changes tool
    'backup_db_mysqldump' => false, // Backup database using mysqldump when available
);
 
// Key for sensitive data encryption
$config['crypt_key'] = '';
 
// Cache backend
// Available backends: file, sqlite, database, redis, xcache, apc, apcu
// To use sqlite cache the "sqlite3" PHP module should be installed
// To use xcache cache the "xcache" PHP module should be installed
// To use apc cache the "apc" PHP module should be installed
// To use apcu cache the PHP version should be >= 7.x and the "apcu" PHP module should be installed
$config['cache_backend'] = 'file';
$config['cache_redis_server'] = 'localhost';
$config['cache_redis_global_ttl'] = 0; // set this if your cache size reaches Redis server memory size
 
// Storage backend for sessions. Available backends: database, redis
$config['session_backend'] = 'database';
$config['session_redis_server'] = 'localhost';
$config['cache_apc_global_ttl'] = 0;
$config['cache_xcache_global_ttl'] = 0;
 
// Lock backend
// Available backends: database, redis, dummy
// To disable locks use dummy provider
$config['lock_backend'] = 'database';
$config['lock_redis_server'] = 'localhost';
$config['lock_redis_server_password'] = null;
 
// Set to unique store prefix if you use the same Redis/Xcache/Apc storage
// for serveral cart installations
$config['store_prefix'] = '';
 
// CDN server backend
$config['cdn_backend'] = 'cloudfront';
 
// Storage options
$config['storage'] = array(
    'images' => array(
        'prefix' => 'images',
        'dir' => $config['dir']['root'],
        'cdn' => true
    ),
    'downloads' => array(
        'prefix' => 'downloads',
        'secured' => true,
        'dir' => $config['dir']['var']
    ),
    'assets' => array(
        'dir' => & $config['dir']['cache_misc'],
        'prefix' => 'assets',
        'cdn' => true
    ),
    'custom_files' => array(
        'dir' => & $config['dir']['var'],
        'prefix' => 'custom_files'
    )
);
 
// Default permissions for newly created files and directories
define('DEFAULT_FILE_PERMISSIONS', 0666);
define('DEFAULT_DIR_PERMISSIONS', 0777);
 
// Maximum number of files, stored in directory. You may change this parameter straight after a store was installed. And you must not change it when the store has been populated with products already.
define('MAX_FILES_IN_DIR', 1000);
 
// Developer configuration file
if (file_exists(DIR_ROOT . '/local_conf.php')) {
    include_once(DIR_ROOT . '/local_conf.php');
}
 
// Enable DEV mode if Product status is not empty (like Beta1, dev, etc.)
if (PRODUCT_STATUS != '' && !defined('DEVELOPMENT')) {
    ini_set('display_errors', 'on');
    ini_set('display_startup_errors', true);
 
    define('DEVELOPMENT', true);
}
$ips = array(
    
);
// print_r($_SERVER['REMOTE_ADDR']);die;
 if(isset($_SERVER['REMOTE_ADDR']) && in_array($_SERVER['REMOTE_ADDR'],$ips) ) {
    ini_set('display_errors', 'on');
    ini_set('display_startup_errors', true);
    if(!defined('DEVELOPMENT')){
        define('DEVELOPMENT', true);
    }
    if(!defined('DEBUG_MODE')){
        define('DEBUG_MODE', true);
    }
    $config['tweaks']['disable_block_cache'] = true;
    $config['tweaks']['dev_js'] = true;
 }
 
Thank you,
A


 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11660 posts

Posted 18 July 2020 - 05:24 PM #11

Check with your hosting to see what the directory and file permissions (DEFAULT_DIR_PERMISSIONS and DEFAULT_FILE_PERMISSIONS) should be for your site.  The normal permissions are 755 and 644.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • The Tool
  • Been Here Way Too Long Member
  • Members
  • Join Date: 30-Mar 07
  • 3917 posts

Posted 19 July 2020 - 11:07 AM #12

Or simply manually create a directory and file and see what the default permissions are after creation.

 

Then change the following with those permissions:

// Default permissions for newly created files and directories
define('DEFAULT_FILE_PERMISSIONS', 0666);
define('DEFAULT_DIR_PERMISSIONS', 0777);