Jump to content

Using prestashop, but my website is not exactly part of it


sledge

Recommended Posts

So I'm thinking of using PrestaShop in my website, but only for administration purposes.

My website will be on the root folder, and PrestaShop will be on "/admin" folder.

Are there any available built-in classes that I can use on my website for linking Prestashop to my website without the need of my pages to be part of Prestashop?

 

This is what's in my mind:

 

class PrestaShopProduct
{
function getPrice();
function getTitle();
function getDescription();
//etc

function showHTML();
//etc
}

 

And then, in my website, the page that displays a product:

 

<?php
   $product = new PrestaShopProduct($_GET['product_id']);
   $product->showHTML();
?>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...