Post by nureddin21 » Sun Mar 27, 2022 12:59 am

mikeinterserv wrote:
Sun Mar 27, 2022 12:36 am
Here is an OCmod based on EVENTS for product images download.
Installs as a MODULE in extensions/modules. You can install / uninstall from there.
Gets the ORIGINAL images as uploaded, zips and automatically downloads.
This is the code provided earlier in a Mod.
.
More than wonderful ... Thank you .

New member

Posts

Joined
Tue Feb 23, 2021 2:48 am

Post by straightlight » Sun Mar 27, 2022 1:05 am

Getting better now. However, other than the code structure itself, I would also cast the $this->request->get to integers whenever the case need be.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by mikeinterserv » Sun Mar 27, 2022 1:13 am

straightlight wrote:
Sun Mar 27, 2022 1:05 am
Getting better now. However, other than the code structure itself, I would also cast the $this->request->get to integers whenever the case need be.
Well - Those lines were all taken from OC :-)
But yes that should be done.
Also I could have added the required LINK in the REPLACE for button but I wanted to add it as DATA as well.
Maybe you can add it to your EVENTS gh page to EXPLAIN how a SIMPLE EVENTS MOD WORKS :-) A
Last edited by mikeinterserv on Sun Mar 27, 2022 1:41 am, edited 1 time in total.

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by mikeinterserv » Sun Mar 27, 2022 1:19 am

straightlight wrote:
Sun Mar 27, 2022 1:05 am
However, other than the code structure itself
Ha - I am more interested in how it works than how it looks :-)
New Product Images Download Mod
viewtopic.php?f=202&t=227722#p840031

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by straightlight » Sun Mar 27, 2022 5:55 am

mikeinterserv wrote:
Sun Mar 27, 2022 1:19 am
straightlight wrote:
Sun Mar 27, 2022 1:05 am
However, other than the code structure itself
Ha - I am more interested in how it works than how it looks :-)
New Product Images Download Mod
viewtopic.php?f=202&t=227722#p840031
And a great advantage using Events; using our own ways to present methods. :)

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by jeefins » Fri Apr 01, 2022 1:04 am

mikeinterserv wrote:
Sun Mar 27, 2022 12:36 am
Here is an OCmod based on EVENTS for product images download.
Installs as a MODULE in extensions/modules. You can install / uninstall from there.
Gets the ORIGINAL images as uploaded, zips and automatically downloads.
This is the code provided earlier in a Mod.
.
Hello! Thank you for your efforts! I can't use it directly to Journal3. What other files do I need to modify? Thanks again for your selflessness!

Newbie

Posts

Joined
Sat Feb 12, 2022 12:23 pm

Post by mikeinterserv » Fri Apr 01, 2022 3:19 am

jeefins wrote:
Fri Apr 01, 2022 1:04 am
mikeinterserv wrote:
Sun Mar 27, 2022 12:36 am
Here is an OCmod based on EVENTS for product images download.
Installs as a MODULE in extensions/modules. You can install / uninstall from there.
Gets the ORIGINAL images as uploaded, zips and automatically downloads.
This is the code provided earlier in a Mod.
.
Hello! Thank you for your efforts! I can't use it directly to Journal3. What other files do I need to modify? Thanks again for your selflessness!
Ok on this ONE occasion ONLY - I will adapt it for that.
You are going to have to send me or attach catalog/model/journal3/product.php
I will post the extension here when I have done it..

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by jeefins » Fri Apr 01, 2022 1:46 pm

mikeinterserv wrote:
Fri Apr 01, 2022 3:19 am
jeefins wrote:
Fri Apr 01, 2022 1:04 am
mikeinterserv wrote:
Sun Mar 27, 2022 12:36 am
Here is an OCmod based on EVENTS for product images download.
Installs as a MODULE in extensions/modules. You can install / uninstall from there.
Gets the ORIGINAL images as uploaded, zips and automatically downloads.
This is the code provided earlier in a Mod.
.
Hello! Thank you for your efforts! I can't use it directly to Journal3. What other files do I need to modify? Thanks again for your selflessness!
Ok on this ONE occasion ONLY - I will adapt it for that.
You are going to have to send me or attach catalog/model/journal3/product.php
I will post the extension here when I have done it..
I am sending you the product.php file of the journal3 theme as an attachment. You are really amazing, thank you mikeinterserv!

Newbie

Posts

Joined
Sat Feb 12, 2022 12:23 pm

Post by phpscript7 » Fri Apr 01, 2022 1:57 pm

mikeinterserv wrote:
Sun Mar 27, 2022 12:36 am
Here is an OCmod based on EVENTS for product images download.
Installs as a MODULE in extensions/modules. You can install / uninstall from there.
Gets the ORIGINAL images as uploaded, zips and automatically downloads.
This is the code provided earlier in a Mod.
.
ocmod is not working

New member

Posts

Joined
Wed Jan 04, 2017 3:55 pm

Post by jeefins » Fri Apr 01, 2022 2:07 pm

phpscript7 wrote:
Fri Apr 01, 2022 1:57 pm
mikeinterserv wrote:
Sun Mar 27, 2022 12:36 am
Here is an OCmod based on EVENTS for product images download.
Installs as a MODULE in extensions/modules. You can install / uninstall from there.
Gets the ORIGINAL images as uploaded, zips and automatically downloads.
This is the code provided earlier in a Mod.
.
ocmod is not working
The default theme template is normal and awesome. But only the main image is downloaded.

Newbie

Posts

Joined
Sat Feb 12, 2022 12:23 pm

Post by straightlight » Fri Apr 01, 2022 8:55 pm

phpscript7 wrote:
Fri Apr 01, 2022 1:57 pm
mikeinterserv wrote:
Sun Mar 27, 2022 12:36 am
Here is an OCmod based on EVENTS for product images download.
Installs as a MODULE in extensions/modules. You can install / uninstall from there.
Gets the ORIGINAL images as uploaded, zips and automatically downloads.
This is the code provided earlier in a Mod.
.
ocmod is not working
That's because the provided ZIP file on the above is not OCMod.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by mikeinterserv » Fri Apr 01, 2022 11:15 pm

phpscript7 wrote:
Fri Apr 01, 2022 1:57 pm
ocmod is not working
So what's up, This only works with the STANDARD theme.
Did you go to extensions > modules > images download and INSTALL.
If it doesn't work then there are changes to your code that cannot be accounted for.
Its an EXTENSION > MODULE not an OCMod as such as pointed out by straightlight.

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales
Who is online

Users browsing this forum: No registered users and 8 guests