<![CDATA[ Basic OpenCart embedding - My Forums]]> https://forums.modx.com/thread/?thread=16882 <![CDATA[Re: Basic OpenCart embedding]]> https://forums.modx.com/thread/16882/basic-opencart-embedding#dis-post-91473
I thought about using iFrames, but that is not valid XHTML so I decided against it.

You make a good point regarding SEO. In this case it was not a big deal with just a handful of products, but I can certainly see it being a big issue for many clients.

Btw, the shop is running at a SEO friendly URL outside the MODx framework, and could potentially be indexed there, although the MODx embedding would be lost.

As it is, I guess implementations like these are just stop-gaps until we get a fully fledged native MODx cart solution.

Cheers,

Andreas]]>
AndreasT Dec 02, 2007, 01:18 PM https://forums.modx.com/thread/16882/basic-opencart-embedding#dis-post-91473
<![CDATA[Re: Basic OpenCart embedding]]> https://forums.modx.com/thread/16882/basic-opencart-embedding#dis-post-91471
Vertical scroll bars also appears in FF and Safari when the content is over a preset length.

It is a sideeffect of the embedding, but I decided I could live with it.

Borders round objects are an IE artifact and as far as I know impossible to remove, please correct me if I am mistaken.

I often find it hard to do design that look good in IE, so any suggestons on how to improve the embedding is very welcome.

Cheers,

Andreas]]>
AndreasT Dec 01, 2007, 01:33 PM https://forums.modx.com/thread/16882/basic-opencart-embedding#dis-post-91471
<![CDATA[Re: Basic OpenCart embedding]]> https://forums.modx.com/thread/16882/basic-opencart-embedding#dis-post-91469 those scrollbars/borders look kinda... meh. Like an iframe I don’t see scrollbars (FF MacOSX)]]> dev_cw Dec 01, 2007, 07:14 AM https://forums.modx.com/thread/16882/basic-opencart-embedding#dis-post-91469 <![CDATA[Re: Basic OpenCart embedding]]> https://forums.modx.com/thread/16882/basic-opencart-embedding#dis-post-91467 Discounts are available, though not at customer level yet. The structure of the cart system is very open that adding such features should be very easy if you have some PHP experience.
If not, there is a forum with a wishlist and the main developer (Daniel Kerr) seems very attentive to user requests.
Opencart is at version 0.7.7 now, and some work does remain for it to be "complete". The features you mention are surely must have features for most users.
But its is a very good start and works well for basic use.

@dev_cw: Thank you for the kind words. Yes, I use separate tables for the products and also for customers, orders and everything else the cart needs. Both applications are running side by side and OpenCart is embedded using the Object tag, instead of an iFrame that is deprecated in XHTML. Tighter integration with MODx is certainly possible and first thing of business would be to integrate the webuser table with customers.

TresureChest looks very promising, I wold like him to find a way to do a completely separate products solution as the MODx document tree will fast get unwieldy and cluttered since each individual product’s display is done as MODx documents. It will be exiting to watch it’s progress.

Cheers,

Andreas
]]>
AndreasT Dec 01, 2007, 03:40 AM https://forums.modx.com/thread/16882/basic-opencart-embedding#dis-post-91467
<![CDATA[Re: Basic OpenCart embedding]]> https://forums.modx.com/thread/16882/basic-opencart-embedding#dis-post-91466 itsawebthing Nov 30, 2007, 03:54 PM https://forums.modx.com/thread/16882/basic-opencart-embedding#dis-post-91466 <![CDATA[Re: Basic OpenCart embedding]]> https://forums.modx.com/thread/16882/basic-opencart-embedding#dis-post-91465
@itsawebthing: Have you looked at TreasureChest, it looks like a promising MODx shop solution, the video gives a preview of what is to come and it should be available soon (it is commercial though).
http://modxcms.com/forums/index.php/topic,20173.0.html]]>
dev_cw Nov 30, 2007, 03:25 PM https://forums.modx.com/thread/16882/basic-opencart-embedding#dis-post-91465
<![CDATA[Re: Basic OpenCart embedding]]> https://forums.modx.com/thread/16882/basic-opencart-embedding#dis-post-91464 Want the new site to have a shopping cart where items are paid for initially via Paypal (similar to the way buybundle.com operates). Once confirmed payment is made, the service will read the order and take out of inventory for the other sites.
Want to have my site remember customers as they visit the site, and offer discounts.
Also need to be able to add custom items not listed with other sites.

This type of ecommerce functionality is sorely needed within modx, and there has been much discussion about. Wondering about where ecommerce stands with modx. Appreciate replies and input. It would also be fantastic if multiple sites could be based around one install.

Is OpenCart embedded with modx able to do all the above? If not, can Kiwee or shopx?
Don’t want to reinvent the wheel and have to learn modx and something like zen-cart due to time limitations.]]>
itsawebthing Nov 30, 2007, 02:20 PM https://forums.modx.com/thread/16882/basic-opencart-embedding#dis-post-91464
<![CDATA[Re: Basic OpenCart embedding]]> https://forums.modx.com/thread/16882/basic-opencart-embedding#dis-post-91463
The database is the same, but the best would be to have a separate database as OpenCart does not as yet support a table prefix. I had to tweek the OpenCart database class a bit to be able to use the same database as MODx and some other stuff I have on the same server. Many OpenCart tables unfortunately has very common names, such as customer and order, so I modified the sentral query function to insert a prefix, in my case I used oc_. I also had to do a few manual adjustments. I understand that table prefixes will be included in an upcoming version. I can provide the details for my temporary fix if you need them.

As for the embedding, I use a standard object. Here is the code:

<object data="../x/index.php" type="text/html" width="800" height="720">
<a href="../x/index.php">Klikk her</a>
</object>


There is a bug in the URL class in OpenCart, mainly in the handling of ampersands and I couldn’t fix it without breaking something else with the time I had available. This means that the cart will not validate as XHTML, but I can live with that for the time being. I plan to file this as a bug along with a few others and also post my many minor modifications on the OpenCart forum when I get the time.

Cheers,

Andreas
]]>
AndreasT Nov 09, 2007, 12:08 PM https://forums.modx.com/thread/16882/basic-opencart-embedding#dis-post-91463
<![CDATA[Re: Basic OpenCart embedding]]> https://forums.modx.com/thread/16882/basic-opencart-embedding#dis-post-91462 Look good!!! Thank you for sharing.

Is the cart the same db as Modx?

]]>
chinesedream Nov 09, 2007, 11:25 AM https://forums.modx.com/thread/16882/basic-opencart-embedding#dis-post-91462
<![CDATA[Basic OpenCart embedding]]> https://forums.modx.com/thread/16882/basic-opencart-embedding#dis-post-91461
Feedback is welcome, the implementation has not been fully tested with all browsers/platforms and suggestions are very welcome.

The site is in Norwegian and there are few products as yet, but you should get the idea.

The site is here:

http://www.dbconsult.no/nettbutikk.html

Opencart is available here: http://www.opencart.com

Cheers,

Andreas]]>
AndreasT Nov 09, 2007, 03:27 AM https://forums.modx.com/thread/16882/basic-opencart-embedding#dis-post-91461