Jump to content


Photo
- - - - -

PHP Inclusions


2 replies to this topic

#1 MaxD

MaxD

    Administrator

  • Administrators
  • 715 posts

Posted 12 March 2014 - 04:39 PM

php_inclusions.jpg

 

This tweak executes PHP codes included into info pages, text blocks, products and categories descriptions.

Write code the same way you do at TPL files.

You need to install MaxEditor (it supports PHP code insertions). Use "Source" mode for coding.

 

Download at OpenCart.com


  • 0

#2 Guest (guest)

Guest (guest)
  • Guests

Posted 14 November 2014 - 02:12 PM

Hello,

 

Thanks for the extension.

 

I try to use it with "product tabs" extension and added a PHP code to this module. But it didn't work. The code i added in the maxeditor source;

 

<?php
date_default_timezone_set("UTC");

$amount = 10000; // Formatless amount, 100.00 TL = 10000

$currency = 'TL'; // Amount currency

$timestamp = date('YmdHis'); // Timestamp

$apiID = "im09696470095f782ae94a1415656592"; // Merchant API ID - in current eg.,

$publicKey = sha1($apiID);

$hash = sha1($apiID . $timestamp . $amount);

echo "<iframe height='350' width='750' src='https://www.iyzico.c...p}/hash/{$hash}' seamless='seamless'></iframe>";

?>

 

and the result on the page was "; ?> only. How can i solve the problem?

 

Thanks

 


  • 0

#3 Berk Koç

Berk Koç

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 14 November 2014 - 02:19 PM

php_inclusions.jpg

 

This tweak executes PHP codes included into info pages, text blocks, products and categories descriptions.

Write code the same way you do at TPL files.

You need to install MaxEditor (it supports PHP code insertions). Use "Source" mode for coding.

 

Download at OpenCart.com

 

The above post is belong to me. I wanted to be logged in to get notifications.

Thanks


  • 0



Reply to this topic



  



 

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Community Skin by Fredson Nunes Junior