Codeigniter 2.1.3 with VQMOD possible? - php

I have a purchased product called Multiscraper (MS), which is basically built on CI 2.1.3, and is a webpage scraper for various shopping carts.
So, why do I want to use vqmod (of something else that can bring about similar results)?
Because I have modifications and additions I want to make to improve the functionality of MS.
Why do I not make these changes in the same file?
Because the developers of the product post updates to their product which may offer improvements. If I start modifying the original files directly, it will become very difficult to manage these updates when they arrive.
I am hoping for a way to modify these files with only the functions I want to improve upon.
If it can be done with VQMOD, then it will be much easier to debug and fix things after an update.
So I tried installing VQMOD and the effects only affect the \system\core and nothing else.
How to manage it? Anybody?
NOTE: I am aware that CI has functionality to extend classes. I posted another question on that subject here: How to extend classes in purchased product (Multiscraper) built on Codeigniter 2.1.3

No there's no version of this for codeigniter but you have an integration guide here
https://github.com/vqmod/vqmod/wiki/Integration-with-Other-Platforms

Related

Dynamically add or remove code module in a laravel project

I have been trying to understand how this concept works. Adding or removing code modules from laravel project. I have seen this feature in many places such as quickadminpanel.com, October CMS etc. These sites are used to create an admin panel quicker, there is an interesting feature that i found in quickadminpanel that is installing module that i need. Basically i want to achieve this but i don't know how to do !! May be someone can help as this feature and concept actually exists.
The author himself replied in a mail. Now the concept is much clear to me. He simply replied this, "It's similar to how Laravel works with stubs - copy-pasting files as templates, replacing the variables in content: youtube.com/watch?v=eWarTZuates&t=1s"

Proper way to update WordPress plugin (for updates)

I am making a woocommerce website and I was wondering what is the best way to update plugins (details) and still be able to update the plugin.
For example, I have two plugins that I just want to change the content in them like the currencies in woocommerce writes د.ب which is in Arabic Bahraini Dinar and I wanted it to be BHD.
Also another example I wanted to change in the wc-vendor plugin the namings instead of calling them vendors I want to call them artists.
I been reading articles about the best methods to update a plugin but I am not sure if they are also valid if I just wanted to change the "Naming" not "functionality"
https://www.seedprod.com/customizing-wordpress-plugins/
Summary:
I appreciate if you can tell me how to change plugin content and still be able to update it.
Thanks!
If you're using plugins developed by others, you may have more problem again in the future if the plugins update. Ask the developer or create an issue regarding the problem. Unless you're writing it of your own, you can play the changes locally or create an staging environment. If sound no problem, that's the time you need to replace code in plugins directory.
I assume, upstream developers are not able or willing to provide hooks for your need.
If you really must modify a plugin, put the plugin source code in a version control system (Git, Mercurial, ...). Make a branch for your changes, and each time a new upstream version comes up, import the upstream version and forward merge your modifications.

Install Magento without database

How to install Magento and skip the database validation? I don't need sales order, shipping, etc. Just wanna make a Magento as a CMS module.
Or, any best CMS that running lightly?
i've tried Magento Lite but there's an error.
not sure what you mean by "skip the database validation". But if you want to use Magento as a cms and have the sales and other modules stripped I recommend this.
It's a Magento version that has stripped the catalog, sales, customers and many others.
I've tested it and it runs smoothly.
[EDIT]
If you are asking about any CMS in general or looking for one that runs lightly, then I think this is completely off topic and to broad for any answer to cover it.
Each CMS has it's advantages and disadvantages.
I think you shouldn't base your search for a CMS on its "lightness". This should be a secondary reason. First you have to find the ones that fit your needs and then compare them.
Start looking here for example.

How to create a Zen Cart payment module

I'm interested in writing a Zen Cart payment module for a certain payment-gateway for people to download and install in their ecommerce website. My experience with Zen Cart is minimal so I don't know where to start. I checked the FAQ section on Zen Cart's website and I only found completed modules, no code examples of how to write one from scratch, or how to deploy it. Could someone possibly give me some example code or teach me the basics involved?
Your best bet is to download other payment modules (there is a list here) and see how they work. Developing payment modules is such a specialized task that I doubt anyone has written documentation for it. I am sure you can find a module with well-documented source code.
Your approach really depends on the API/interface the gateway provides. If you look at the built-in Linkpoint module, it just uses cURL to communicate with Linkpoint. If you look at Beanstream INTERAC (in free software add ons), it uses cURL but it also expects a couple of callback URLs to be provided. There are other models too - your best bet is to get an understanding of what the gateway wants, and then look for an existing module that also uses this communication model.

What is the proper way to develop a custom theme/template for Magento 1.4

I have recently started working on an eCommerce site for a company and they have selected Magento 1.4.0 to run their store. I have spent most of my PHP "career" working with various MVC frameworks (even Zend with Magento is supposed to be based on) but the complexity of Magento seems to be on another level with no seemingly good resources to look to for help.
Looking around the site I have seen suggestions for certain books to use as reference, but they all refer to Magento 1.2 or 1.3.
My goal is to develop for Magento in a way that I do not alter any of the base code so that the client can easily upgrade the version of Magento and just "drop in" my code and have it work. The current issue is how to properly use the layout/template breakdown correctly and how to add custom model/controller functionality to the application without hacking away at Magento's core code base.
how to properly use the layout/template breakdown correctly
What you need to know is the folder structure of the Magento & the use of its own MVC structure. This is a very very important part to get you started from the basic roots. Whatever version you use, the folder structure & the MVC structure followed by Magento will almost never change. Try to follow the Magento's own Knowledge Base & Wiki tutorials. If you want you can also follow some other sites as well.
how to add custom model/controller functionality to the application
without hacking away at Magento's core code base
You will need to use the custom module functionality to override the core code base of model / controller. It's a simple process of writing the main logic in a XML file, of what core class you want to override of Magento, in your module's "etc" folder. Try to understand the process first, from the Knowledge Base & Wiki tutorials, to get a firm grip on overriding core classes.
I hope this helps.

Categories