How to move CS-CART theme only from a server to another? - php

My question is straightforward, how can I move a cs-cart theme only from a server to another without moving anything more than it?

I would recommend you to
1) Copy the theme files from you original store to the new store theme respository
The installed themes are located at design/themes, the themes repository is located at var/themes_repository.
So you need to do something like this in case the stores are on the same server
cp -R ./design/themes/MY_THEME ../new_store/var/themes_repository
In you case with different servers I would recommend you to backup you theme folder ./design/themes/MY_THEME and extract on the new server to the ./var/themes_repository folder.
After that you will find you theme in the "Browse all available themes" tab in the CS-Cart themes page.
2) Also you can find necessary to import the location for you store - it can be done easily using CS-Cart built-in Export/Import layouts feature.
You can find it in Design -> Layouts under Gear button.
Here you can find more details http://docs.cs-cart.com/4.2.x/themes/layout.html

Related

Is it possible to use WordPress theme preview as main website source that will work all functions?

I'm new in WordPress
I misunderstand one thing about the theme use in WordPress
For example, I wanna create the as same website as this I purchased this template.
But when I installed the theme in WordPress it shows me the default Index.php file with little info, used my purchased theme
And when I purchased the theme there exist all src files of the above website.
How I can use my purchased src files of website that will work all function for ex: logins with db?
Thanks in advance!!!!
After you purchased the theme, you probably have just installed the theme and haven't created any pages or tweaked any settings. So if you want to get the same look as that of the preview website, you probably have to check whether the developer has provided any dummy data for importing.
Most of the themes listed in ThemeForest would have the option to import dummy data, so that customers would be able to install some pre-made posts, pages, config, etc. This might be there inside the custom settings page(as a single button to download the content) of the theme, or maybe they have provided it in separate XML files for you to import. If the files you have downloaded doesn't have it, make sure you downloaded All files & documentation. Here's a sample screenshot:
My guess is that you might have only downloaded using the Installable WordPress file only option.
If you are still unable to get the dummy data, probably you have to ping the support of that theme asking them to provide the dummy data.

Edit themes from wordpress

I know we are allowed to used the themes from wordpress and edit them in the theme editor.
However, working in the theme editor is really annoying. Does anybody know if there is a way to download an entire theme file from Wordpress, so that I can customize it in the editor on my laptop?
thanks for the help
You can use Download Plugins and Themes from Dashboard plugin. it's provides a "download link" in theme's detail page.
While #mohammad's answer is correct, I find it best not to clutter a site with unnecessary plugins, what works best is if you login to your server via FTP or your host's cPanel and download the files that way. It keeps your Wordpress install clean of anything that won't be used too frequently.
If you have any questions on how to do this, your host will be able to guide you without issue.
There are multiple solutions to this problem, you can change theme files through the FTP/SFTP account using Filezilla. or you can access your CPanel account go to the File manager and access your file easily. Other then that you can clone your website to your laptop through any migratory tool after that you can configure your website to the localhost and just make changes in Theme according to your requirement from the Xamp/Wamp folder at your system.

How can I find the file some element is loaded from?

I manage a website which is based on Drupal CMS. I have FTP access and I want to modify the structure of the header.
I know that the header is loaded from separated php file but I don't know what is the path to the file and how to find it in FTP.
Is there any way in Chrome dev tools to find the path to the file and is there a general way to find the files from which some part is loaded?
Check under "Appearance" from admin menu what theme is used and download whole theme over FTP. Themes should be in sites/all/themes dir. Then search the theme files and change what you need.
I don't think that browser can be aware of theme structure since it receives the whole pages and it can not know how page html is built on server side. There is an drupal module called Theme developer which can help you with that:
https://www.drupal.org/project/devel_themer
Unfortunately it exists only for Drupal 6 & Drupal 7 - not sure what version of drupal uses your site.

How To Initiate The (Redux Framework Builder) Generated Admin Folder?

I am trying to include the Redux Framework in my theme. I decided to try the online builder of Redux Framework: http://build.reduxframework.com/ to generate the necessary files for me.
The builder of Redux provides two options:
(1). To generate and export the admin folder.
(2). To generate and export a starter theme with the Redux settings.
I think i need option (1) since i have a theme already in my hands.
The admin folder contains the following:
(1). The Redux Builder generated (.Json) file.
(2). The admin folder itself - which contains the framework and extensions folders along with two (.php) files: (admin-init.php) and (options-init.php).
The documentation of Redux Framework teaches us how to load the config file of the framework inside our theme. It does not inform us through what to do with the exported admin folder and how to use it in our theme - in case we chose to use the online builder.
The online builder of Redux framework states the following:
Download just the admin folder portion. This will provide you with a
folder you can place in a theme or plugin and include
~/admin/admin-init.php to initate it.
Side note: It is written as "initate" instead of "initiate". If any of the developers happen to read this question, it may be a nice thing to correct this small typing mistake.
My Question:
(Q1). How should i initiate the admin file? I couldn't find that in the documentation. Is it about copying its content to the (functions.php) file after fixing the directories? Or something else is required?
Include the Redux framework.
Copy the generated admin folder to your theme.
Copy the contents of admin-init.php to functions.php file of your theme.
Fix the directories names and files depending on your theme's structure.
Is that right or i am missing something up there?
Any clarifications, answers or comments will be greatly appreciated.
Thanks in advance for your help!
There is another way to initiate, i don't know if it's the best way or not
in my themes, i add :
require get_template_directory() . '/admin/admin-init.php'; )
in my function.php so i don't have to fix the directories files and names in redux admin folder depending on my themes.
Lead dev of Redux here. Good call on the spelling check.
Just include that file and that's it! :)

Themeforest theme integration with Yii framework

I have gone through Yii documentation and successfully implemented two different themes for back end and front end of the website. Yii doesnt have good themes and I found themeforest having awesome bootstrap themes. So I installed Yii-booster and downloaded a themeforest theme with bootstrap support.
I was wondering how to integrate it?
1)Do I have to make a new folder in themes folder, and replace css,js, images folder in root
directory
OR
2)Replace the js,css and other folder/files at path protected/extensions/bootstrap/assets
OR
3) Any other way ??
Apply a simple logic. Just copy the theme and make particular layout ,then call the layout in the controllers according to your need.

Categories