We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2762
    • 1,198 Posts
    Hi Marc

    OCx is designed to work with OpenCart installed on another domain/database (actually tested only when are on the same server), but you can use the same db and domain if you want.

    The idea was just a simple snippet to display opencart products in a modx website, for something like "Related products from our Shop"

    Opencart Database info are stored in the module configuration and shared with snippet as parameter (using module parameter sharing)



    The snippet just query opencart db and display items inside modx with a custom chunk (so you can customize like a ditto tpl) and, if you want, can fetch opencart products images in your modx assets/images folder (for better seo and use php thumb)

    [[OCxProduct? &id=`60,75,89` &opencartTpl=`opencartTpl` &orderby=`price` &orderdir=`DESC` &fetchimages=`1` &store_dir=`assets/images/ocx`]]


    The problem was that it is inconvenient and difficult to search for id of products and categories inside OpenCart, so I extended the module with a search for products without leaving modx manager
    At this point I added the last orders and customer research smiley



    A basic demo here
    http://www.tattoocms.it/extras/snippets/ocx-opencart-modx-evolution/ocx-demo.html [ed. note: banzai last edited this post 7 years, 10 months ago.]
      Free MODx Graphic resources and Templates www.tattoocms.it
      -----------------------------------------------------

      MODx IT  www.modx.it
      -----------------------------------------------------

      bubuna.com - Web & Multimedia Design
      • 9995
      • 1,613 Posts
      Missed your post, thanks for explaining. Didn't understand the concept that well.
        Evolution user, I like the back-end speed and simplicity smiley
        • 2762
        • 1,198 Posts
        New Module version 1.8

        * Changed grid system from Easyui to Bootgrid

        * Design now fits Evolution Manager themes

        * Language Support

        * Added snippet example code in Product and Categories module tabs:
        Now you can copy and paste (like wordpress shortcodes) the code to display your opencart products or categories in Evolution



        https://github.com/Nicola1971/OCx

        Video demo:
        https://www.youtube.com/watch?v=p-hrdEmCuLw
          Free MODx Graphic resources and Templates www.tattoocms.it
          -----------------------------------------------------

          MODx IT  www.modx.it
          -----------------------------------------------------

          bubuna.com - Web & Multimedia Design