<![CDATA[ [snippet+module] OCx Display Opencart products and categories in MODX Evolution - My Forums]]> https://forums.modx.com/thread/?thread=100187 <![CDATA[ [snippet+module] OCx Display Opencart products and categories in MODX Evolution]]> https://forums.modx.com/thread/100187/snippet-module-ocx-display-opencart-products-and-categories-in-modx-evolution?page=2#dis-post-541636
Display Opencart products and categories in MODX Evolution

Snippets Features:

OcxCategory: Display one or more Opencart Category by category id
OcxProducts: Display one or more Opencart product by product id
OcxRelated: Display one or more Opencart products searching for a keyword in Opencart fields name, description or model

Add to cart from MODx (requires Add to Cart via URL link Opencart extension)
Buy from Amazon (Requires Opencart Amazon Affiliate Webstore Opencart extension )

OCx Module Features:

Display and search orders inside MODX Manager
Display and search products inside MODX Manager
Display and search categories inside MODX Manager
Display and search customers inside MODX Manager

http://www.tattoocms.it/extras/snippets/ocx-opencart-modx-evolution.html

https://github.com/Nicola1971/OCx

]]>
banzai May 18, 2016, 12:41 PM https://forums.modx.com/thread/100187/snippet-module-ocx-display-opencart-products-and-categories-in-modx-evolution?page=2#dis-post-541636
<![CDATA[Re: [snippet+module] OCx Display Opencart products and categories in MODX Evolution]]> https://forums.modx.com/thread/100187/snippet-module-ocx-display-opencart-products-and-categories-in-modx-evolution?page=2#dis-post-548677
* 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]]>
banzai Feb 10, 2017, 04:05 PM https://forums.modx.com/thread/100187/snippet-module-ocx-display-opencart-products-and-categories-in-modx-evolution?page=2#dis-post-548677
<![CDATA[Re: [snippet+module] OCx Display Opencart products and categories in MODX Evolution]]> https://forums.modx.com/thread/100187/snippet-module-ocx-display-opencart-products-and-categories-in-modx-evolution?page=2#dis-post-542476 ]]> fourroses666 Jun 15, 2016, 05:32 AM https://forums.modx.com/thread/100187/snippet-module-ocx-display-opencart-products-and-categories-in-modx-evolution?page=2#dis-post-542476 <![CDATA[Re: [snippet+module] OCx Display Opencart products and categories in MODX Evolution]]> https://forums.modx.com/thread/100187/snippet-module-ocx-display-opencart-products-and-categories-in-modx-evolution#dis-post-542349
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]]>
banzai Jun 10, 2016, 02:46 PM https://forums.modx.com/thread/100187/snippet-module-ocx-display-opencart-products-and-categories-in-modx-evolution#dis-post-542349
<![CDATA[Re: [snippet+module] OCx Display Opencart products and categories in MODX Evolution]]> https://forums.modx.com/thread/100187/snippet-module-ocx-display-opencart-products-and-categories-in-modx-evolution#dis-post-542345 Its possible to run both OC and MODX in the same root?

I have some Opencart sites but this would be very nice also to use MODX.
Do you have an example live site?
]]>
fourroses666 Jun 10, 2016, 09:16 AM https://forums.modx.com/thread/100187/snippet-module-ocx-display-opencart-products-and-categories-in-modx-evolution#dis-post-542345
<![CDATA[Re: [snippet+module] OCx Display Opencart products and categories in MODX Evolution]]> https://forums.modx.com/thread/100187/snippet-module-ocx-display-opencart-products-and-categories-in-modx-evolution#dis-post-542343
version RC 1.7.2

- cleaner code (less query, common snippets functions moved to an external file)
- more placeholders for chunk template (added: quantity, views and model)
- more ordering options (now you can order products by: product_id, price, quantity and viewed)
- noResults snippet parameter (now you can customize the "no product found" message)

http://www.tattoocms.it/extras/snippets/ocx-opencart-modx-evolution.html

]]>
banzai Jun 10, 2016, 07:17 AM https://forums.modx.com/thread/100187/snippet-module-ocx-display-opencart-products-and-categories-in-modx-evolution#dis-post-542343
<![CDATA[Re: [snippet+module] OCx Display Opencart products and categories in MODX Evolution]]> https://forums.modx.com/thread/100187/snippet-module-ocx-display-opencart-products-and-categories-in-modx-evolution#dis-post-542252
Grazie, Grazie mille !
You're awesome, it works !! Thank you so much.

Kindly regards,
Appeltje
]]>
appeltje Jun 07, 2016, 01:56 PM https://forums.modx.com/thread/100187/snippet-module-ocx-display-opencart-products-and-categories-in-modx-evolution#dis-post-542252
<![CDATA[Re: [snippet+module] OCx Display Opencart products and categories in MODX Evolution]]> https://forums.modx.com/thread/100187/snippet-module-ocx-display-opencart-products-and-categories-in-modx-evolution#dis-post-542247
New 1.6.3 with two new parameters:


  • convert: convert charset (default 0)
  • charset: character set (default ISO-8859-1)
https://github.com/Nicola1971/OCx

Update both snippets to the new 1.6.3 code and add to your snippet calls
&convert=`1`


waiting for your feedback wink
]]>
banzai Jun 07, 2016, 10:53 AM https://forums.modx.com/thread/100187/snippet-module-ocx-display-opencart-products-and-categories-in-modx-evolution#dis-post-542247
<![CDATA[Re: [snippet+module] OCx Display Opencart products and categories in MODX Evolution]]> https://forums.modx.com/thread/100187/snippet-module-ocx-display-opencart-products-and-categories-in-modx-evolution#dis-post-542226
Domaine de Félines => Domaine de Flines

You see the é is missing]]>
appeltje Jun 07, 2016, 02:18 AM https://forums.modx.com/thread/100187/snippet-module-ocx-display-opencart-products-and-categories-in-modx-evolution#dis-post-542226
<![CDATA[Re: [snippet+module] OCx Display Opencart products and categories in MODX Evolution]]> https://forums.modx.com/thread/100187/snippet-module-ocx-display-opencart-products-and-categories-in-modx-evolution#dis-post-542207 I have tried your changes and now it leaves out all the special characters

]]>
appeltje Jun 06, 2016, 09:55 AM https://forums.modx.com/thread/100187/snippet-module-ocx-display-opencart-products-and-categories-in-modx-evolution#dis-post-542207