Page 1 of 2

New round of Ecommerce modules

Posted: Wed Apr 14, 2010 11:25 pm
by calguy1000
Hi guys.

I know people have had problems with my ecommerce modules as of late... I''ve been working on them hot and heavy... and although I didn't want to, due to some enhancements that were sponsored,  I had to release some fixes to Products and to Orders as well.

Well I've spent probably about a months worth of full time effort on these modules, and although I'm not completely done yet... I think I've done enough testing that I can say that this stuff works.

Alert, there is a brand new, but absolutely required module:

CGEcommerceBase
This module is used to tie everything together.  Not only does it provide preferences, but alot of the classes and utility functions that are needed for translating data from one module to the others.  Once you dig into its admin interface you will see why, and although this module is still in its infancy it will make make more and more sense as more functionality is added.   You will need to configure this module in its entirety, though it's farily simple,  just enter in the preferences, and select the various modules that you're using.

Changed Modules.

Products:
There has been alot of new functionality added into this module of late, including:
- Advanced Search
- Sort by User defined fields in the summary view
- Breadcrumbs
- Hierarchical URLS
- Got rid of a bunch of preferences (they're now in the CGEcommerceBase module)
- This module still works without the ecommerce stuff.

Cart:
This module has had extensive modifications to work with the new CGEcommerceBase stuff, particularly so that the cart could be used with multiple different modules, other than Products.

Orders
This module has also gotten alot of work... including:
- Adds company fields to the addresses
- Adds the ability to support multiple payments on an order
- Sends more information to the payment gateway modules.

Availability
This module has received extensive modifications over the last months, and is now significantly different:
- The add and edit reservation templates now use alot of javascript and jquery
- Adds support for reservation deposits and can calculate them automatically
- Now can add a reservation deposit to the cart.
- Many, Many bug fixes and minor enhancements.

CGPaymentGatewayBase
- This module has had new prototypes added that the Orders 1.8 module now calls... allowing sending more information to the payment gateways.

AuthNetAIM
This module has been updated to work with CGPaymentGatewayBase

warehouse_taxes
Very minor updates to work with the new Orders module.

Modules that need further development
The following modules haven't been updated to work with the new stuff yett.   Stand by, they'll be coming soon.  I'll work on the payment gateways, shipping and taxes modules first... they should be the simplest.

ManyBaskets
GiftBaskets
PaypalGateway
AuthNetAIM
FRShipping
FRTaxes
DestinationBasedShipping

Re: New round of Ecommerce modules

Posted: Fri Apr 16, 2010 8:40 am
by cb2004
Excellent work Calguy. Keep it up.

Re: New round of Ecommerce modules

Posted: Fri Apr 16, 2010 11:12 am
by clj83
Many thanks Calguy for all your hard work. I have come across one thing whilst setting up a new system. It looks like the new version of Cart (1.6) is not appearing in the module manager and also in forge the xml file under cart 1.6 is actually the cgEcommerceBase xml and not the new cart xml.

Thanks

Chris

Re: New round of Ecommerce modules

Posted: Fri Apr 16, 2010 12:16 pm
by nicmare

Code: Select all

Products:
...
- Sort by User defined fields in the summary view
AWESOME. thanks dude!
---
f:fieldname -- Allows sorting by values of custom fields.

how does this work? when i want to sort by my custom field named "rating" then i write sortby="f:rating" ?

Re: New round of Ecommerce modules

Posted: Fri Apr 16, 2010 2:13 pm
by clj83
Hey,

Okay so I got it mostly working problem free. So far the only thing I have come across is that the FEU properties, such as name, address line 1, etc..., are not being mapped into the order form at all. I have Address Retrieval Method set to use customer profile and I have set the appropriate fields to use in the mapping form. Is anyone else having this problem?

One other question. In the previous version of Orders it was possible to set available countries and states. This has gone now as far as I can see, or am I missing something? Will it be reappearing at a later date?

Cheers

Chris

Re: New round of Ecommerce modules

Posted: Fri Apr 16, 2010 2:58 pm
by calguy1000
Yeah, aparently I missed the restricted state and country list stuff in one of the merges.  an Orders 1.8.1 is coming out shortly.

Re: New round of Ecommerce modules

Posted: Mon Apr 19, 2010 3:21 pm
by clj83
Hi,

Orders 1.8.1 fixes the problem with the FEU address mapping and allows you to select the default countries and states as with previous version of Orders which is great, thanks. Have found one remaining bug though today.

I am not using a payment gateway, just manual checkout. When I hit the submit I get the following error,

Fatal error: Call to undefined method orders_order::get_cc_number() in /public_html/lib/smarty/Smarty.class.php(1954) : eval()'d code on line 11

Anyone else getting this?

Thanks

Chris

Re: New round of Ecommerce modules

Posted: Mon Apr 19, 2010 3:29 pm
by calguy1000
That is in your template... it's a remnant from the old system that only handled 1 payment per order.
You'll have to fix up the template.

I suggest you restore the default invoice template to defaults (default templates tab) and re-create your template, or see what has changed.

Re: New round of Ecommerce modules

Posted: Tue Apr 20, 2010 8:55 am
by clj83
Hi,

If anyone else has trouble with this error,

Fatal error: Call to undefined method orders_order::get_cc_number() in /public_html/lib/smarty/Smarty.class.php(1954) : eval()'d code on line 11

Just uninstall Orders and then reinstall it and that should solve the problem.

Thanks for all  your hard work on this Calguy, the eCommerce suite is really excellent.

Chris

Re: New round of Ecommerce modules

Posted: Wed Apr 21, 2010 2:43 pm
by isi
Hello Callguy1000,

thank you for excellent work.

After the update I can't get the cart module working. I see the following error:

Fatal error: Call to undefined method stdClass::get_base_price() in /var/www/kunden/kerber/cmsms/modules/Cart/Cart.module.php on line 312

Here the relevant installed modules (all reinstalled yet):

Cart 1.6
CGEcommerceBase 1.0
CGExtensions 1.18.3
CGPaymentGatewayBase 1.0.5
CGSimpleSmarty 1.4.4
FrontEndUsers 1.8.2
Orders 1.8.1
PaypalGateway 2.1.7
Products 2.7.2

Klaus

Re: New round of Ecommerce modules

Posted: Wed Apr 21, 2010 4:35 pm
by calguy1000
Cart 1.6 was not availabile in module manager due to an error on my part.
it is now uploaded,and should be available shortly.

When you upgrade make sure you clear your cart (or restart your browser).  it should be fixed.

Re: New round of Ecommerce modules

Posted: Wed Apr 21, 2010 5:08 pm
by clj83
Hi,

I am continuing to work with the new eCommerce modules. I have found a couple more bugs. In Products when the custom field image always gets deleted when I edit a product. The value is still shown but the image is deleted an no longer appears on the website. If I hit browse and select the image again when I am editing the product and hit submit everything is fine. The other custom fields don't appear to be being deleted. Anyone else experiencing this?

I added the paypal gateway to the setup and added all the relevant required information. However, when I click 'Checkout' the page refreshes and returns showing the default template without anything in the content area, it doesnt go to paypal. The form looks correct if I view source of the confirm order page before hitting 'Checkout'.

Anyone else experiencing either of these problems?

Thanks

Chris

Re: New round of Ecommerce modules

Posted: Fri Apr 23, 2010 7:30 am
by isi
Hi Calguy1000,

i have install a new system (cmsms 1.7, previous was 1.6.7) with the ecommerce modules and the Cart module works.

So it has something to do with my old installation/configuration. I am in a evaluation phase for a new customer. I can switch to the newer system. It is not a production problem.

May be there is an upgrade problem.

greetings
Klaus

Re: New round of Ecommerce modules

Posted: Fri Apr 30, 2010 3:44 pm
by Tino
Hi,

Firstly, thanks to Calguy for the whole ecommerce package, this is my first time using it and so far so good!

I've been through the ecommerce article in your blog and have installed Cart, Products, and Order, and the various other modules needed for these (all installed yesterday through module manager, so I'm assuming they are the latest versions). My first test run through the site, with Paypal Gateway working in the sandbox, seemed to work fine.

So I've now moved on to tidying up the look of the whole system and I've come across a small problem with FEU. I've created various user properties, and assigned them to my ecommerce group, but I can't seem to change the sort order of them. When I click on the up and down arrows that appear next to them in the group tab of the FEU admin area, the page seems to do something, but the order doesn't change.

I've had a search around and can't seem to find an answer - any ideas?

P.S. - Apologies if this should have been a new thread, I wasn't sure if that or keeping all these questions together was better.

Many thanks,
Tino

Re: New round of Ecommerce modules

Posted: Fri Apr 30, 2010 3:53 pm
by JeremyBASS
@Tino  your right that sounds like an FEU question.. but question for you.. this in IE?  bet if you check it in FF it works.. this is a bug.  hope that helps.. Cheers Jeremy