Jump to content



Member Since 20 Feb 2009
Offline Last Active Aug 02 2022 08:27 AM

#65704 Can I empty the cscart_stat_requests table?

Posted by nodame on 31 December 2009 - 07:08 AM

Clicking on "Remove statistics" at the Statistics area will clear all stats related sql data. Including emptying cscart_stats_requests.

(My database went from 103mb to 43mb from removing statistics)

Hope that helps.

#57822 Developers Guide to CS-Cart Framework

Posted by nodame on 30 September 2009 - 06:33 AM

Posted by snorocket before: http://docs.cs-cart.com/

#56228 Can someone explain me the "My changes" addon?

Posted by nodame on 06 September 2009 - 08:18 PM

To explain further, I will try to provide another common example :

For example, you want to add your own stylesheet to the site.
Instead of directly modifying the code within the tpl files provided by cscart, you can do the following:

Found within customer\common_templates is the styles.tpl, which defines the stylesheets used by cscart.
You can see within the styles.tpl, they've provided a hook for you to use, where the hook name is
{hook name="index:styles"}

So within the customer/addons/my_changes folder, create an "index" folder (if you have not done so already).
Then create a new tpl file to link to your stylesheet.
As you do not want to overwrite cscart's stylesheets but to add your own stylesheet. You create a new tpl file named "styles.post.tpl"

So the final structure/path will be something like:

Inside styles.post.tpl, you add the HTML code to link to your stylesheet.
Example for me, I decided to put my own stylesheet inside the my_changes folder too for convenience sake, so I create a folder named "css" and add a new css file named "styles.css" inside there. And then inside styles.post.tpl, I write the HTML code as such:
<link href="{$config.skin_path}/addons/my_changes/css/styles.css" rel="stylesheet" type="text/css" />

After doing these, I do a refresh of my web site, and the HTML code will be appended after the css links code of cscart.

Note: the my_changes addon must be set to "Active" in the admin addons area.

Of course you can place your stylesheet anywhere, and then provide a absolute link to link to your css files like:
<link href="http://link.to.whereever.you.like/stylename.css" rel="stylesheet" type="text/css" />