Exclusive eBooks, Software Solutions, Quality Guaranteed
 
Web NukeBiz
Welcome to NukeBiz · Members
Amazon
show cart or checkout0 items
Cart Value: 0.00

Forums » DragonflyCMS Projects » Storez » [done] Checkout templated
[done] Checkout templated
A comprehensive shopping cart solution.
Topic initiation via Bugger.

Post new topic    Reply to topic    Printer Friendly Page     Forum Index »  eCommerce » Storez

View previous topic :: View next topic  
Author Message
movix
Nice Poster
Nice Poster

Offline Offline
Joined: Mar 02, 2012
Posts: 7

PostPosted: Thu Mar 08, 2012 7:54 pm
Post subject: [done] Checkout templated

Hello,

I modified the checkout dialog so that it now uses templates and want to share this.

I've made no changes to the database.
I extracted the html code from checkout.php.
I created some functions near the end of checkout.php to save some redundant code parts.
I created a file functions.js that holds the form validation javascripts.
And finlaly created the various template files.

I've done some quick checks over most functionalities, hope i forgot nothing since i do not use all functionalities. The things i'm generaly using are working for me. Please make your own testings befor putting in production.

I'm motivated to do some more templating for storez and will post it here. But there is no timeline for this.

Movix


movix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache/MySQL 5.1.49/PHP 5.3.6/ DF 9.3.2.0
Back to top
View user's profile
movix
Nice Poster
Nice Poster

Offline Offline
Joined: Mar 02, 2012
Posts: 7

PostPosted: Sat Mar 10, 2012 12:52 pm
Post subject: Re: Checkout templated

I noticed some errors in the work i submited. I'll fix them and post a new zip file in a few days.


movix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache/MySQL 5.1.49/PHP 5.3.6/ DF 9.3.2.0
Back to top
View user's profile
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Wed Mar 14, 2012 5:06 pm
Post subject: Re: Checkout templated

I shall review before the next release.

_________________
DonationsPro for vBulletin, SMF, MyBB, DragonflyCMS


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Thu Apr 26, 2012 4:10 pm
Post subject: Re: [done] Checkout templated

Reviewed - given the issues that I encountered, and knowing how difficult it is to resolve templating issues in such a complex scenario, I started from scratch and have now completed it.

After years of templating, for the first time I got caught by a simple extra space in an IF statement that had me frustrated for a few hours, grrr.
  • eliminated the deprecated ereg useage throughout Storez.
  • adopted your idea of templating common variables - thanks for that.
  • templated shipping methods that feed into checkout and order display
  • templated payment methods that feed into checkout and order display
  • templated the customer and admin email advices
Successfully tested many of the possible scenarios.

_________________
DonationsPro for vBulletin, SMF, MyBB, DragonflyCMS


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
movix
Nice Poster
Nice Poster

Offline Offline
Joined: Mar 02, 2012
Posts: 7

PostPosted: Fri May 11, 2012 4:51 am
Post subject: Re: [done] Checkout templated

Hi,

thanks for your work that i'll check out.
I'd like to learn, so could you please make some comments about the issues you encountered ?

Thanks Movix


movix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache/MySQL 5.1.49/PHP 5.3.6/ DF 9.3.2.0
Back to top
View user's profile
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 17, 2004
Posts: 1543
Location: Netizen
PostPosted: Fri May 11, 2012 11:40 am
Post subject: Re: [done] Checkout templated

I didn't exactly take notes but issues like undefined variables and arrays, plus shipping (or was it payment?) was broken - easier to start from scratch than try to debug.

In any event, the result is now more complete since I have now templated code from other files that are included in the checkout process.

That required standardization of all the payment and shipping files (long overdue) and I templated the email advices as a final touch.

File compare will illustrate what I mean.

_________________
DonationsPro for vBulletin, SMF, MyBB, DragonflyCMS


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index »  eCommerce » Storez
Page 1 of 1
All times are GMT + 9.5 Hours



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum