Post by angelaary » Wed Aug 09, 2017 5:41 pm

I'm beginner in opencart developing, and now i need something pretty simple ( as i think...) i'm using opencart 2.1.0.1 and i made a simple table.

Code: Select all

<table align="left" border="1" cellspacing="1" style="table-layout:fixed;width:500px;">
<tbody>
    <tr>
        <td style="text-align: center;"></td>
        <td style="text-align: center;"></td>
    </tr>
    <tr>
        <td>here i want the product price</td>
        <td>here i want the prduct price</td>
    </tr>
</tbody>
I want to get the product price in the data cells(and maybe to make some operations with it later on the backend). Is it possible by making a html module, or i need to put my code directly on my .tpl page and use the controller?

Developing Android apps and full review on androidapksbox.com.
Contact me by PM.


Newbie

Posts

Joined
Tue Aug 08, 2017 7:31 pm

Post by thekrotek » Wed Aug 09, 2017 7:27 pm

If you want to just add this code once on some page, just add it in .tpl file directly or create VQMod. But for module, yes, you need to create a controller. Also you will need to create admin files, if you want to manage this module position.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am

Who is online

Users browsing this forum: No registered users and 48 guests