CSCART: How to create category programmatically - cs-cart

Can someone please help me to how to create a category programmatically in cs-cart?
I have tried to insert category details manually in database and it is displayed only in backend not in front end.
When i tried to edit it and save the category without giving any changes it shows the category in frontend...I dono what happen in that step.. please guide me

Check the tables you are updating (4):
*categories, *categories_descriptions, *product_sales and *product_categories,
I found the 'category_id' field in each one. May be it can help you. Or you can enable any MySQL logging system on saving in order to 'catch' any other tables involved in category info storing.

Related

From which table does magento extract the shipping and handling information in Order page on admin panel?

Previously I thought that the "price" shown in the order page under "Shipping and Handling Information" block in magento's admin panel is retrieved from "sales_flat_quote_shipping_rate" table but when I changed the value of price in the database manually it doesn't reflect any changes, from that i concluded that the price is not retrieved from that table.
Can anyone help me to understand this?
I have attached the screenshot to make clear what I am talking about.
Any help is appreciated.
Orders data are saved in database tables sales_flat_order and sales_flat_order_item
Check columns base_shipping_amount & shipping_amount in sales_flat_order table
To update the Shipping / Flat Rate, why are you modifying the DB, you can achieve this from the admin section.
Update the values their.
System -> Configuration -> Sales -> Shipping Methods -> Flat Rate.
In case you need to update it for a particular order then you can use tables suggested by Dushyant Joshi

Creating a Search Box/Data - Joomla v1.5.25

I need help on Joomla v1.5.25, I already have it running and everything seems fine.
I wish to add a list of data for example a list of KFC Outlets, and enable a search box so that visitors can just key in the City Name of the KFC outlet that they are looking for and the result will be a list of KFC Outlets matching the City Name keyed in.
Apologize if this question have been asked previously, and I am new to this. Hope someone can shed some light or point me to the proper site for this question.
Thanks
Either you can use some1else's work - I suggest
Check out http://www.kfc.com/storelocator/Default.aspx?address=new%20york
And take the results on that page
This is only good for USA - if you need all countries then you will need to go through all their sites and collect results for all the pages.
or you should:
create a new table in mysql each row should have info about a kfc outlet (address, phone, open hours, etc...)
create a new joomla component or module in which you should have your sql select query to search and then return the list of results.
You can then create a form on any page for searching

Joomla 'sobipro' - extracting data

I have taken over a Joomla project that needs rebuilding.
I need to get out the user data and some other data linked to users, I have found most of it in the jos_user table and also a table named jos_comprofiler.
There is data inside of jos_sobipro_field_data that I also need, but I do not know how this table related to anything else can someone please explain? I am able to write SQL and the JOIN statements to get it out once I understand how it all fits together.
Finally the table jos_comprofiler references an avatar which is an image name like '100_4f97c0b3c2c31.jpg' where can I find these images?
Thanks, Jake
I can tell you where those tables are coming from:
- jos_users is the user table used by Joomla core, together with jos_user_profiles for additional profile information.
- jos_comprofiler is a table created by the Community Builder extension from http://www.joomlapolis.com/.
- jos_sobipro_field_data is a table created by SobiPro from http://sobipro.sigsiu.net/
Maybe that helps you find the next steps. Maybe someone else knows more details.

Magento checkout method recorded in database

Is the Magento checkout method recorded anywhere in the database.
I know the value can be accessed during the session i.e. register, guest etc but after the order is placed is the value recorded anywhere?
Anton S gave a good answer but if you need more help viewing tables and their fields in the Magento database, this is a really useful tool.
http://www.magereverse.com/
Simply select your version of Magento and then start selecting tables. It gives you correlations between various fields in the tables as well, which can be helpful when tracking down entity data.
Hope this helps!
Checkout method is stored in the sales_flat_quote table in the customer_is_guest field. A value of 1 indicates the customer checked out using the guest checkout option. A value of 0 indicates the customer checked out using their account. You can access the quote using its id from the order object.

Create A Product Review In Magento

I am trying to import product reviews from an older site to our new Magento site.
I am having troubles trying to create the actual product review in a script. Has anyone tried doing this before and know how to accomplish this?
It looks like reviews use the entity models and I can't seem to get the review object to do what I want it to do. Here is what I have tried doing so far and its throwing back some an error about foreign keys not being respected. Not sure how to make this work. Any help would be appreciated.
$review = Mage::getModel('review/review');
$review->setEntityPkValue(141292);
$review->setStatusId(1);
$review->setTitle("This is an inserted title");
$review->setDetail("This is an inserted detail");
$review->setNickname("First Last");
$review->save();
My guess would be that it's asking for a product and store to link the review with. Reading the install sql (under app/code/core/Mage/Review/sql/, it looks like there are constraints between review and each of:
core_store
catalog_product_entity
review_status
review_entity
Hope this helps,
JD

Resources