Skip to content

[[[EXPERIMENTAL]]] - OXID Module for data sync and user login save to cookie

Notifications You must be signed in to change notification settings

ongr-archive/OxidSyncModule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

OXID sync module

This replaces OXID frontend with ongr site. Most request will be redirected to a new site, only adding product to cart will be done in OXID. And ONGR site will know about cart from ongr_basket cookie and user data will be available in ongr_user cookie.

Installation

Place ongr catalog in OXID shop modules directory then via admin panel set ONGR url in module settings and enable it .

Usage

Prepare SEO urls for export/sync to ongr platform. Iterate trough articles, categories and content to generate all possible SEO url links:

articles:

$list = oxNew('oxlist');
$list->init('oxarticle');
$list->selectString('select * from oxarticles');

foreach ($list as $article) {
    $article->getLink();
}

categories:

$list = oxNew('oxlist');
$list->init('oxcategory');
$list->selectString('select * from oxcategories');

foreach ($list as $category) {
    $category->getLink();
}

and content:

$list = oxNew('oxlist');
$list->init('oxcontent');
$list->selectString('select * from oxcontents');

foreach ($list as $content) {
    $content->getLink();
}

Don't forget to iterate through all subshops and languages.

About

[[[EXPERIMENTAL]]] - OXID Module for data sync and user login save to cookie

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages