Would love feedback, just getting started with opencart.
Both have only been tested with 2.2. Your mileage may vary with other releases.
1) Hide Reward Points
This just hides reference to reward points in the admin interface pricing for products and options. I was just going to do it manually for the site I was working on, but figured 95% of sites out there probably don't use that functionality. It doesn't change open carts' functionality in any other way.
Github Link: https://github.com/lucasjkr/opencart-hide-reward-points
2) Add Additional Option Types
Opencart has a few predefined option types, like "select", "radio", "image", etc. What happens when you want to have 5 image options (for an example) but need to display each somewhat differently on your products page? Originally I thought about repurposing a few of the existing option types, but that would preclude me from using those option types elsewhere. So added a few new types instead (in this example, the option types added are "Image Small, Image Medium and Medium Large" but you can obviously edit as you see fit.)
The vqmod works on the backend - code snippet is included for your front end page for you to modify for use in your theme.
Github Link: https://github.com/lucasjkr/opencart-ad ... tion-types
Both are 100% free (GPL license) - would love feedback, contributions, etc. And I hope no one makes minor modifications and sells them on Opencart.com, but only because it would make me sad for giving away when I should have sold them
Both have only been tested with 2.2. Your mileage may vary with other releases.
1) Hide Reward Points
This just hides reference to reward points in the admin interface pricing for products and options. I was just going to do it manually for the site I was working on, but figured 95% of sites out there probably don't use that functionality. It doesn't change open carts' functionality in any other way.
Github Link: https://github.com/lucasjkr/opencart-hide-reward-points
2) Add Additional Option Types
Opencart has a few predefined option types, like "select", "radio", "image", etc. What happens when you want to have 5 image options (for an example) but need to display each somewhat differently on your products page? Originally I thought about repurposing a few of the existing option types, but that would preclude me from using those option types elsewhere. So added a few new types instead (in this example, the option types added are "Image Small, Image Medium and Medium Large" but you can obviously edit as you see fit.)
The vqmod works on the backend - code snippet is included for your front end page for you to modify for use in your theme.
Github Link: https://github.com/lucasjkr/opencart-ad ... tion-types
Both are 100% free (GPL license) - would love feedback, contributions, etc. And I hope no one makes minor modifications and sells them on Opencart.com, but only because it would make me sad for giving away when I should have sold them

But to make sure, VqMod Extensions can also be uploaded and used like
OcMod-Extensions, by use of the new Integrated VQmod for OpenCart 2
https://www.opencart.com/index.php?rout ... n_id=19501
such VqMod File Names like:
add-new-option-type.xml
would not longer be valid, but need to be changed to:
add-new-option-type.vqmod.xml
in order to make such VqMod's installable by the Default OcMod Installer Routine.
Their Content is then saved in the DB, similar to the OcMod-way of doing this, and so handled in the same way, I assume, after first findings and conclusions on this, and shown on the image below!
Just a tip, to stay compatible..., good Luck !

Ernie
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Personally, I wouldn't bother uploading OCmod or VQmod XML files to the database via the OpenCart extension installer. Assuming you use the Integrated VQMod, I'd rather use FTP:
If it is a VQmod XML file, just upload it to the vqmod/xml folder, without the need to rename it. Then do a Extensions > Modifications > Refresh, and it will process the VQmod XML from this remote vqmod/xml folder.
If it is a OCmod XML file, it's file name has to end with '.ocmod.xml', but it can be uploaded to the system folder, and you can then do the same Extensions > Modifications > Refresh.
No need to keep the XML files in the database!
If it is a VQmod XML file, just upload it to the vqmod/xml folder, without the need to rename it. Then do a Extensions > Modifications > Refresh, and it will process the VQmod XML from this remote vqmod/xml folder.
If it is a OCmod XML file, it's file name has to end with '.ocmod.xml', but it can be uploaded to the system folder, and you can then do the same Extensions > Modifications > Refresh.
No need to keep the XML files in the database!
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
well, thank you, it takes some time, to find out.
I originally de-installed/removed VqMod in full, and placed all new named xxx.vqmod.xml files into the system/... Section, when switching to the integrated VqMod Setup. I was unaware of, that the VqMod Sub could further be used.
Some of the VqMod's, I tried to install by the OcMod Install Routine, and they worked as well, but I was rather just curious, how this would look in the DB !
Onby an image, to give you an impression, slowly, I am getting familiar...
Ernie

I originally de-installed/removed VqMod in full, and placed all new named xxx.vqmod.xml files into the system/... Section, when switching to the integrated VqMod Setup. I was unaware of, that the VqMod Sub could further be used.
Some of the VqMod's, I tried to install by the OcMod Install Routine, and they worked as well, but I was rather just curious, how this would look in the DB !
Onby an image, to give you an impression, slowly, I am getting familiar...

Ernie
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Well, it's all documented in the embedded readme.txt fileI was unaware of, that the VqMod Sub could further be used.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Who is online
Users browsing this forum: No registered users and 8 guests