moving cs cart to another directory without data - cs-cart

Firstly, I have made a sub directory for development and installed cs cart MVE in it.
I want to copy the current cs cart sub-directory and add it to the main domain folder without the testing dummy data I have added in the development phase.
How can I do that?
Secondly, if I have made new changes in the future on the development folder, how can I apply this change to the main domain folder?
Thanks a lot for the help in advance.
Note: a step-by-step guide will be very helpful!

There are a few ways to accomplish those results. First of all, if you just want the demo data to be removed you can alter the database and do the following:
Alter the table and remove every single product, property, banner, etc. Though if you have this code setup you could just run it in one time. Though I do not recommend this as this is way more work than needed and this wont get rid of the images and such stored by the demo data.
You can also do the following:
Go to the products section, click the checkbox in the top left and after that click the gear icon in the top right and select: "Delete selection". Do this a few times and for everything needed (banners, payment methods, shipping methods, etc.) and you are all set.
Or you can do this (recommended):
You can do a store-import of your current store and then switch the directories around so you have no downtime. This is also the way I do my development. You can get the store-import addon for free in the cs-cart marketplace.
But if you were looking for a way just to copy a store without transferring any data you could think about what you want to copy. Basically every setting is stored in the database (so are this similar?). Furthermore every image path, etc. is stored in the database (so are these similar?). And so on. The best way I see how you can do this is by running a store import (this will give you the option to remove all the demo data before importing the new data, you could install a new version of cs-cart with no data, then it will delete all the current data you allready have.)
Hopefully my answer suffices, feel free to ask if you stumble across some problems.

Related

Prestashop 1.7 product list, product view changes

I'm trying to add some extra row after product image in prestashop 1.7 product list page.
I want to add manufacturer title above product title.
Already tried:
Change product-list.tpl code.
.../themes/theme_name/templates/catalog/listing/
but nothing happened.
Here is product image with some info about my problem:
Maybe some one know how to achieve this? Thanks.
You have to edit this file:
prestashop/themes/theme_name/templates/catalog/_partials/miniatures/product
Under the block named product_thumbnail (also external to block if you want)
Ok, I found something by my self. I'm not so sure why it happened but it was some of ".../app/cache/dev/..." - files.
Step by step:
1. Download website file
2. Search for specific classes
3. Found those classes on two files product.tpl and f33as2f1a2sf5asfa2sfasf20132.file.product.tpl.php
4. Then back to my ftp found that second file with long name and change a code there...
5. It works
Maybe its nasty work-around, so that's why I'm asking for more information for those who know more about things like this. Maybe there is something in back office (prestashop dashboard) settings... Developer/production mode or something? because by my opinion is just a nasty work around and I want to know more and learn more about it. Thanks. <- UPDATE: -> its useless to edit cache files, you need to make changes ant clear cache from terminal || or admin dashboard.
UPDATE BELOW (in comments)--->>>

Joomla Quickstart advice

Please I need some guidelines (or link of tutorials) in creating Joomla (3 - 3.5) website with the purchased template design. I wonder how professionals with experience are solving my doubts in practice.
Do you recommend the installation of the purchased blank template with a single installation and configuration of modules and components or installation of template with demo examples (Quickstart)? I know the differences but I was wondering how you are doing.
Till now I've almost always used the Quickstart installation.
I wonder if you clone the main menu (and other navigation and modules) and than you rename a copy for your needs and you change the content or you delete all navigation items except Home and than you are re-creating items according to your needs.
I'm not sure if I can copy the main menu or I copy only his necessary items and than delete overage of template.
It happens to me sometimes if I click on some of category it leads me to the main menu from original item, not to the desired custom copy, even though the path is set (the default items). Therefore, I am not sure which is better... copy main menu and items or to delete all navigation and content of the Quickstart installation and form my own navigation, content and modules.
In short, how to sort out all unnecessary items, and those that I am using should I copy and modify, modify existing, or delete all and make my own needed items.
I believe you will know my concerns.
Thank you and regards,
John
I have created several websites in Joomla with blank template and also with quickstart package.
Advantages with Blank Template
You will get the core theme without any unnecessary content and
basic modules and plugins. You dont have to delete any
contents/articles later.
You will be having authority to place modules at your desired positions. To check the modules position at the frontend simply do this http://example.com/?tp=1.
Disadvantage of Blank Template
There are some module style settings embedded in quickstart package that you wont be able to set yourself without going through full documentation. So sometimes your menu seems distorted.
Disadvantage of Quickstart Package
Deleteing unnecessary articles, removing unnecessary modules is a big headache.
Database size unnecessarily increases.
Steps I follow
I create a quickstart package in localhost and create a blank site with blank template in live site. Whatever settings I need I copy from the local website so that I am saved from removing unnecessary contents from live site. Also sometimes deleting some contents give rise to some other issues. Its better t go with a Blank template.

Joomla - Modifying default category list view (through overrides?)

I'm building a site for a friend and I should state that this is not what I'm doing for living. I just started working with Joomla a few days ago.
Everything is good so far, except I'm stuck at one point.
This is a site for a construction company and I need to create articles for on-going and completed projects. I will create an article for each project and each article will belong to a category, 'Completed' and 'On-Going', respectfully.
I plan to create menu links for 'Completed' and 'On-Going' categories in main menu. I also want to present a thumbnail of the article on the category list. Problem is, standard look of the category list is kinda ugly, and I have no idea how to change it. I'm using a template named PixelDot, but it does not seem to do any good for my problem.
During my research, I stumbled upon concepts 'Layout Overrides' and 'Alternative Layouts'. I have basic html and css knowledge, also some PHP, but I am totally lost on which file(s) to modify. I also need a little help on get the entry text picture as a thumbnail on the category list (this is the list where you see 'articles' aka projects which belongs to the category (completed or on-going), when you clicked on relevant menu button)
Any help will be highly appreciated. My Joomla version is 3.4.1. (which I believe most up-to-date version as today)
I'm sometimes making it more complex while I try to make things detailed and clear, I hope this is not one of those cases.
First, I would suggest using tags rather than categories to manage this. Tags are much better suited for temporary labelling or dividing into groups.
Second, go to the template manager, template view for your template.
Go to the create over ride tab and select the view that you want to override (i.e. tagged items).
This will automatically copy all the files to the correct location in your template.
At that point you can play around with the layouts to your heart's content.
Also ... some pieces of the layout you may want to override may not be in the traditional layout but may be in a jlayout. You can do the same thing with them. THis is all documented in the docs.joomla.org site as well as around the web.
I also would do this with Tags. One reason is, assuming you are using SEF URLS, that the projects article pages will have a unique URL. If you move a project's article from "on-going" to "completed" then you may be changing that SEF url. This will cause your search engine ranking for that page to be lost.
I would tag each article "on-going", "completed", etc and then create a menu item to display only that specific tag. The project's article would stay in its original category, that could be my project type, project location, etc; which also will increase the SEO for that given project's article.

Manually Removed Joomla Component but Title Still Showing Up in Extension Manager

I had a component cause a bunch of errors at installation in my Joomla website. I tried the normal way of removing it by visiting the extension manager and clicking uninstall. This did not work, so I visited these two locations and deleted all the files:
../administrator/components/com_badcomponentname
../components/com_badcomponentname
I then went into phpmyadmin and dropped all the tables that were associated with com_badcomponentname.
The only thing that is left is the listing in the extension manager. I want to be 100% done with this component, but the name still shows up. I can disable the listing and that gets it out of the components drop down list in the admin panel. Where can I go to manually remove the reference?
You say that you dropped all the tables that were associated with the component, however if it is still showing in the Extension Manager, then go back into PhpMyAdmin, go into the table jos_extensions (jos being the prefix which may be different for you) and remove the reference in there too
Ideally you would want to to a search on all tables for the name of the component with or without the prefix com_.
Also inspecting the install SQL files would give you a better idea if you deleted all the associated tables.
In my case, based on #Valentin Despa's answer, I grep'd the full SQL dump of the site, and found the stale menu items in the jos_menu table.

How to detect back button -vs- GoBack() in WP7 app

Maybe I'm over-thinking this, but here's what I'm trying to accomplish.
I have two MVVM projects (assemblies) in my WP7 app. One page in the main project will call another page in the second project. The second page will allow the user to browse through a list of files on the web and select one to be downloaded to Isolated Storage. The files are rather small.
For a little background: I want two assemblies because this file-selection feature is not used often in the app and I want the Main assembly to be as small as possible to decrease startup time. I also want to be able to re-use this file-selection/download component in other apps.
The simple thing I'm trying to figure out is that when the user selects the file and it is downloaded, I will execute a GoBack() to return to the calling page. On the calling page, I need to know if, in fact, the user downloaded a file or if they cancelled out of the operation by simply hitting the back button. I thought the obvious thing might be to just check for the existence of the file in Isolated storage, but that just feel like a bit of a kludge to me.
I also thought about the Messenger, but I'm not sure how that would work across two assemblies.
Any advice would be appreciated.
Thanks
It is tough to know without looking at the code. However, I would suggest that you could pass back a value to the page depending on whether you successfully downloaded your file. Navigate with the value as follows (pass true or false depending on download success):
NavigationService.Navigate(new Uri(("/Page.xaml?download=true", UriKind.Relative));
Then evaluate the page in the destination as follows:
string download = "";
if (NavigationContext.QueryString.TryGetValue("download", out imageurl))
{
}

Resources