Intall cscart intergration with control

1. only work on rel 12 or later version

step needed for setting up cscart integration with control

If your captcha is not working make sure you have gd, php-gd, and freetype installed

If thumbnails do not update

  1. make sure the thumbnails dir is mounted, since control will try to find the old thumbnails and delete it and cscart should generate new thumbnail upon http request.
  2. ssh into the web server and cd into their skins directory
     #cd /var/www/html/cscart/skins
  3. You can edit a list of files that use show_thumbnail using the command.
     #vi `grep -r show_thumbnail * | cut -d\: -f1 | sort | uniq | xargs`
    You want to change "Y" to "N" in those lines.

To use parent image when child has no image:

  1. login to cscart admin page
  2. Select Design tab
  3. select skin-selector sub-tab and check what skin they currently use
  4. select template editor sub-tab
  5. follow these folders: <skin_name> -> customer -> views -> products -> components

  6. double click product_options.tpl

Replace the line

'src': '{config.no_image_path}',

with

'src': '{$image_pair_var.icon.image_path}',

Note that zoomifier (3rd party add-on) will always use the parent image as it is not child-aware.

To remove the Simbirsk Technologies details

Go to Admin -> Company. Set this up with proper details for the company. This is used in numerous parts of the program.

To make the left column show level 1 and level 2 categories simultaneously on the left column

Go to Admin Page -> Design -> Blocks. On the left column expand the "Categories" field and click on "edit". Choose Plain in the Filling field then save.

To clear the cache (or thumbnails)

Go to Admin Page. Add ?cc to the URL to clear cache. Add ?ct to the URL to clear thumbnails.

If images stop loading (cscart 2.x and up)

This is very likely caused by the AUTO_INCREMENT value in some of the tables have reached their upper limit. The tables names are cscart_images and cscart_images_links. You have to use mysqldump to back up these tables:

"su -" to root. And disable the "incremental_cscart" process in the /etc/inittab. Save the changed /etc/inittab file. and issue "init Q". Then "ps -lef | grep cscart" to make sure no incremental_cscart process running.

Then:

mysqldump -u [username] -p [db_name] cscart_images >imagesbackup.sql
mysqldump -u [username] -p [db_name] cscart_images_links >imageslinksbackup.sql

You have to manually edit the files and look for:

Engine=MyISAM AUTO_INCREMENT=[some large number] DEFAULT

Change [some large number] to a reasonable number after deleting data from the end of the file. Then re-import this file

mysql -u [username] -p [db_name] <imagesbackup.sql
mysql -u [username] -p [db_name] <imageslinksbackup.sql

Alternatively, you can (if you have an idea what number to reset to) do it all from mysql:

mysql -u [username] -p [db_name]
[enter password]
delete from cscart_images where image_id>[number to reset to]
delete from cscart_images_links where image_id>[number to reset to]
alter table cscart_images_links AUTO_INCREMENT = [number to reset to]
alter table cscart_images AUTO_INCREMENT = [number to reset to]

at this point, whether you did export/import or the mysql method, all images would disappear from the site. You need to delete all images in the images/detailed/ directory and then redump all the stock (don't use the -i option in fdb2log, and don't use the -I option for log2cscart)

cd /u/cc/[company directory]
cp ../standard/dblog.dat .
fdb2log -B [location] -a 9
log2cscart

Verify that the images are reloaded in the customer's website. re-enable the log2cscart in "/etc/inittab".

"su -" to root. And enable the "incremental_cscart" process in the /etc/inittab. Save the changed /etc/inittab file. and issue "init Q". Then "ps -lef | grep cscart" to make sure log2cscart process is running.

If you find staad/stgaad does not save your web descriptions:

First make sure there is a webnote subdirectory under the company. Also if you have multiple locations, make sure the LOCATION directory is under webnote. If this is already there and you find .inter files in it, make sure you load a copy of "fixdeg" from the binl directory.

Don't forget to create a new default online debtor from scratch so that all the owings are 0

Using external data source.

Instead of using Control data, it is possible to set up the use of an external data source such as ACCPAC. If the online location for the store has this set up in the branch record, then a different updater called "acc2csmin" will need to be run regularly in place of log2cscart. Since we have no notification on when these quantities change, the updater has to be run at regular intervals. acc2csmin only updates the quantity of items set to "S" and those that have a supplier stock code (#1). If item is a kit, it will automatically query for the components and update the number of kits that can be put together based on them.

If you get an error message in website "Error Occured"

The fix is just the REPAIR the tables.

mysql -u cscart -p <dbname>
<type password here.  It's a secret>
REPAIR TABLE cscart_sessions;
REPAIR TABLE cscart_seo_names;

<dbname> is bodycart or bodyfactorycart

If you need to login to purchase a cs cart license from the web store

Our "tech support" credentials is:

login: support@crecom.com.au

Password:

AspaceSecret123

cscart.html (last edited 2018-08-01 00:24:30 by fuzzy)