how to construct a zencart web site with a lot of secondary developments - zen-cart

I am new to my company now, my company site has been created based on 1.3.8a, and there are lot of zencart core files changed , and a lot of new secondary developed files added . now my boss want to update the company site to zencart 1.5.1, and want to construct the site starting from scratch, the new verson of company site should be clear in structure and easy to update.
can any good people give some suggestions ? and any good theads telling about that ?
some thoughts of mine:
1.if new classes files added ,should be placed in includes/classes/jy_class.xxx.php (jy is my company name);
2.if new includes/modules/pages/xxx/header_php.php ,should be placed in includes/modules/jy/pages/xxx/header_php.php
3.if new functions ,should be placed in includes/functions/extra_functions/jy_functions_xxx.php
I know that this question is a opened question , but it is very important for me. I want some zencart developing experts give me some good advices.

Suggestions 1 and 3 are fine. Suggestion 2 won't work; the page cannot be in the subdirectory jy - it must be in includes/modules/pages/xxx/header_php.php. You also want to initiate this activity as soon as possible; Zen Cart 1.3.8a has been compromised for a long time and is not secure.

Related

In Prestashop After Shifing Server-In Admin-Product etc. Pages showing 500 Internal Server Error

I am using PrestaShop 1.7.5.2 and recently changed my server & now the problem is that in my admin few pages are not working like "Products, Invoices, Stocks, Module Manager, Module Catalogue, Theme Catalogue etc.
My front end is working fine.
I have read almost all the content available but was not able to find exact solution to it.
Any help will be highly appreciated
Thanks,
GC
Edited just now by gauravchawla18 (see edit history)
Your database is incomplete. At least ps_translation table is missing.
Please check your database import.

Simplest CMS ever?

I’m building a super simple website with 5 pages and I want a CMS that allows me to change the text and the pictures in a couple of them.
In the past I used wordpress, but it has way too many features that i don’t need in this case.
I’ve been trying to learn gatsby.js so I would like to build it on that, but trying to see how to source from Netlify-CMS I started facing an overwhelming amount of information which I'm not sure I need.
Any tips?
Thanks!
M
Netlify has a built in CMS, and it's compatible with Gatsby! You can find examples online. It should be good for smaller sites, but for larger projects, I really like Prismic.io. Contentful is another popular one, but it's a bit pricier than prismic.
Edit: reread your comment about sourcing from Netlify. Netlify is not a "source" plug in in Gatsby. You use a local file +markdown source, and do the configuration for netlify, which adds an admin interface at an endpoint. You configure your data models in the interface, create login, etc. Then, when you submit changes, it modifies files in your connected git repo, so the local file + remark will make the data available in the graphql queries.
In the end I used Forestry.io, a good simple solution that did exactly what I needed in combination with Jekyll.

Best alternative to drupal for small-scale sites

I recently started learning about drupal integration and because I wanted to learn how to create sites that I give to people with no html experience who want to be able to update their site. Through my research I learned that Drupal is the best supported CMS. It really does have a lot of nice features and accomplishes the job, but it almost has too many features for what I want.
I'm assuming there is some kind of open-source software for
I am an aspiring web developer trying to build my portfolio/gain experience. What I've been trying to do is build sites for clients that I can lose complete contact with--so when their store hours change and they have no HTML experience, I get emails about updating their site.
I figure there are three approaches: (tell me if there are more)
I write a php app that allows them to edit their site
I use a CMS (Drupal) to let them edit their site
I write scripts that embed text files formatted with {white-space: pre;}
I've so far implemented each method on 3 different sites, and they all work with drawbacks. I would prefer an open-source alternative to writing my own app for stability/security. Drupal seems more oriented towards allowing multiple users to add content, whereas I only want one user update existing content. The third option works well for computer-literate clients, but anyone who can navigate onto their server to change the file could probably figure out how to update the site without any of these approaches.
To sum up my problem, can anyone tell me the term I am looking for? Content Management System refers to the site framework for sites with a growing number of content posts (correct me if I'm wrong). What is the term for the site framework for editing sites with predefined but editable pages? If you could please tell me that, then I can at least research this question on my own. Otherwise, if you have any advice or solutions, they are much appreciated!
Thanks
user1470887, you've asked a great question. The answer, unfortunately, is that too many of the existing CMS products overlook this use case. It doesn't have an exact name as far as I know.
The term "in-place editing" describes one version of this (user clicks text on web page, block of text becomes a form, user edits contents and presses submit button, new text is sent to webserver and saved, and the form becomes normal text again). But I gather you would be happy with anything that lets them edit-existing but not create-new.
I'm also guessing you don't want to build your own Drupal module or commission one.
I do not know Drupal well enough to know whether there's a Drupal module that meets your needs. I'd recommend a careful search, though, especially if you are already somewhat familiar with Drupal. (Yes, Drupal can seem like too much CMS at times.)
However ... if you can't find a Drupal solution or want an alternative to Drupal, MODX Revolution does have an answer: set it up and then install Bob Ray's NewsPublisher add-on. It will put an "edit" button on pages which a user has the right to edit, but not on pages where they don't have edit rights. (And of course users will only be able to edit the title, body content etc - not the entire page.)
Bob Ray has literally written the book on MODX (MODX: The Official Guide). I was able to successfully adapt NewsPublisher to a project last year similar to what you have described, with predefined pages that the user would only need to edit over time. The latest NewsPublisher version, untested by me, is said to be further improved and can now be styled much more easily using CSS. That should allow you to give your users a customised and consistent interface.
As andmag also notes, MODX is a very flexible system for web developers focused on the presentation layer. It has the best templating system going.
I'll recomend you to try MODX. It gives you big flexibility to run your php or html code.

Joomla1.5 CRUD extension tutorial

I need to build a basic CRUD joomla extension for a customer.
On the user's side, it must display a product list when the user choose a category, and the product details when an item is selected in the list. On the product details page, the user can send a message to the site's owner regarding the chosen product.
On the admin side, user must be able to add/modify/delete products and categories. That's about it.
Does anybody knows (a) good tutorial(s) that could help me get started with this project?
I've worked with php 4 years ago and have 5+ years experience in web development (.net), but i'm new to joomla.
Thanks in advance!
Sounds like to me you are looking for an e-commerce extension with a catalog mode (no purchases/no cart enabled) and an Ask a Question form on product pages. I know that at least Virtuemart has this ability exactly. I am sure there are other simpler carts that will also accommodate your need. http://extensions.joomla.org/extensions/e-commerce/shopping-cart
Spend a couple of hours trying out carts, no code writing required.
A great place to start is the Joomla docs site.
Checkout Component Development section.
Also, here is MVC Component Tutorial (there are 6 section to it, look for links at the bottom for "Next"), it will definitely put you on the right track. You will have to add a lot of your project specific things and do out of the box things, but it should be pretty easy.
Just keep things separate to make it easier
View/Template - your presentation
Controller - logic
Model - Data Access Layer (DAL)

In Magento, how can I preview a page before saving it?

I am using the Magento ver. 1.4.0.1 Community Edition. The problem I am running into is that Magento only allows me to preview pages that I have already saved. This works fine if I am creating a new page - but what if I am editing a current page? I want to be sure that the changes I make look good on the site before saving them.
Does anyone know of a way to preview a static cms page before saving the changes made? I'm open to using some sort of plugin if anyone knows of one.
Thanks
Currently there isn't one in Magento, you'll just have to save it and view it.
A lot of the work I've done in Magento has been done on a development server, once everything was set it got moved to the production server. I'm not saying you need two servers, but having at least a development instance of Magento will help when editing a live site.
for non-trivial changes, I normally create a new page with a URL that's not linked anywhere and then load that up to preview, before copying the content/settings to the real page.