Post by hypemedia » Fri Feb 09, 2018 10:40 pm

We had this problem for a client:
He wanted to have several geographical regions the user can select in front end (Germany, USA, Rest of the World).
Then he wanted to have several warehouses for the stock. And then combine the 2 of them so he could create Warehouse 1 to have the stock for Germany and USA and warehouse 2 for the rest of the world.

We have created an module that uses Geo zones and language and some extra fields for stock in the product page. There is a lot of code modified and lots of core Views where we have added the features.
This was done in opencart 2.2 with vqmod. We want now to move all this to Opencart 3 and use event only modifications system.

Is not clear to us what to do if I need to add an extra tab for example in the product edit page, in between the existing tabs with the new functionality.

How is this part done without rewriting code and just injecting in the existing template the new code and functionality?

Active Member

Posts

Joined
Fri Aug 17, 2012 5:39 pm

Post by IP_CAM » Sat Feb 10, 2018 2:35 am

One of those Extensions could possibly be of help on this. ;)
Ernie
---
Store Pickup Shipping (Multiple locations) for Opencart
https://www.opencart.com/index.php?rout ... on_id=2958
---
Pickup From Multiple Store 1.5 - 2.X
https://www.opencart.com/index.php?rout ... n_id=28431
---
found here:
https://www.opencart.com/index.php?rout ... rch=Pickup

Ernie's OpenCart v.1.5.6.5 LIGHT + V-Pro + OpenShop Admin v.1.75 Test Sites
http://www.bigmax.ch - http://www.opencart.li/shop/ - http://www.velomech.ch/cart/
Image


User avatar
Guru Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by kestas » Sat Feb 10, 2018 3:39 pm

If you want use your own module, you need upgrade it to new version of OC. But if this in old version was done by changing core files, it is very dificult to upgrade to the newest version...

Custom OpenCart modules and solutions. Just PM me... Extensions you can find here and here


Active Member
Online

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by hypemedia » Sun Feb 25, 2018 2:39 pm

No, it was done using vqmod. My questions was if is possible to modify view using events in opencart 3 and not using an DOM parser library to do this.
With vqmod was easy to modify an existing admin view without rewriting code.

Active Member

Posts

Joined
Fri Aug 17, 2012 5:39 pm

Post by kestas » Sun Feb 25, 2018 3:34 pm

"How is this part done without rewriting code and just injecting in the existing template the new code and functionality?" You can make this like in your old version using vqmod or ocmod. Or ask some developer for the help.

Custom OpenCart modules and solutions. Just PM me... Extensions you can find here and here


Active Member
Online

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by hypemedia » Sun Feb 25, 2018 3:52 pm

The ideea was if is possible to do it just using Events no ocmod or vqmod. I am the developer of the extension not need to ask for help to modify it. It was a discussion about if is possible to implement the modifications that in previous version were done with ocmod or vqmod, in OC 3 exclusively using Events?

Active Member

Posts

Joined
Fri Aug 17, 2012 5:39 pm
Who is online

Users browsing this forum: No registered users and 8 guests