Jump to content

How do I use PHP with Cube Cart?


Guest Amalgam

Recommended Posts

Guest Amalgam

I am new to Cube Cart. Apparently, I cannot use the <?php ?> tags I would normally use. How would I add my own php script to a Cube Cart page?

Thanks.

Link to comment
Share on other sites

I am new to Cube Cart. Apparently, I cannot use the <?php ?> tags I would normally use. How would I add my own php script to a Cube Cart page?

Thanks.

Hi,

Cubecart templates do not support PHP code, they only display the results of PHP scripts. To add functionality, you must edit the php script related to the template you need to modify. For example, edit viewProd.inc.php script to add functionality to viewProd.tpl file.

Thanks

/Goober

Link to comment
Share on other sites

Guest Amalgam

edit viewProd.inc.php script to add functionality to viewProd.tpl file.

Thanks, Goober. But where do I find the aforementioned viewProd.inc.php file?

Nevermind... I found it. :(

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...