Donation module instead of Shop

Author Message

Rana Faheem

Wednesday 23 April 2008 11:31:30 pm

Hello All,
I am developing a site for NGO here i am dealing Donation module in which donation is paid through Paypal for three categories
Projects (Pay for one project from the project list)
Direct For NGO itself
For different poor families (Pay for one family at a time )
I want to ask how i can customize the shop for these or i have to develop a new module.
Please guide me.

With Regards
Amir Faheem

Bruce Morrison

Thursday 24 April 2008 12:26:56 am

Hi

Have a look at http://ez.no/developer/forum/developer/shop_donation . It's quite long but probably worth your while having a look.

The end result, at least on my part, was: http://www.thebutterflyfoundation.org.au/how_to_support_butterfly/donations

I ended up created a specific donation content type with a price & options attribute. In the actual content object the price is 0 and the various donation amounts are set in the options.

These will also make good reading:
http://ez.no/doc/ez_publish/technical_manual/4_0/concepts_and_basics/webshop
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/datatypes/price
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/datatypes/option

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Rana Faheem

Monday 28 April 2008 2:38:44 am

Hi Bruce Morrison,
Thank you for your Answer and hoping again.
I read all the links you mentioned. Now what i did.I copied the shop module and made copy with the name Donation and with parallel /shop/basket.tpl i can access /donation/basket.tpl
I want to customize the donation module. Now Its working but when i used donate button whose link is given in line_view_donation.tpl
and link should follow template in

  <a href={"/donation/basket"|ezurl}>
      <div>
{attribute_view_gui attribute=$node.object.data_map.ngoimage image_class ="small"}
         <div class="basketlink">
                     <a class="tobasket" href={"donation/basket" | ezurl}>
                            <input class="button" type="submit" name="ngoDonate" value="{'Donate'|i18n('design/ezwebin/donation/basket')}" />
                    </a>

          </div>
   </div>
      </a>

It is going in /shop/basket template.If i make changes here it will effect to webshop for which i am using this and i want separate behavior from donation and webshop.

with Regards
Rana Amir Faheem

Bruce Morrison

Monday 28 April 2008 3:38:00 am

Hi Rana

I don't understand why you copied the shop module to do this. There are many ways (discussed the thread from my previous message) to do this that don't require such a drastic approach.

Perhaps you can outline your reasoning for this approach?

cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Rana Faheem

Monday 05 May 2008 11:04:23 pm

Hi Bruce Morrison,

I want to keep separate basket for both webshop and donation module and
some changes in donation module that will not effect in the working of webshop
see one website

http://www.sciaf.org.uk/

and also site referred by you both consider donation in different way even some columns are not required used in it just to continue the shop.

with Regards
Rana Amir Faheem

Rana Faheem

Wednesday 07 May 2008 4:32:57 am

Hello All,

Currently i am facing a problem that is related to basket.I want different basket for two modules one for donation and second is obviously webshop.
When i select items for donation after that items from webshop can be selected and vice versa for webshop that in real i do not want to do in this way.

But i want this deal separate. Webshop items should deal nothing with donation items.

what i think one object of basket is created and all selected items goes in to that current global basket.

Now any one can guide me here to deal the situation and HOW?

With Regards
Rana Amer Faheem

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 16:14:28
Script start
Timing: Jan 18 2025 16:14:28
Module start 'layout'
Timing: Jan 18 2025 16:14:28
Module start 'content'
Timing: Jan 18 2025 16:14:29
Module end 'content'
Timing: Jan 18 2025 16:14:29
Script end

Main resources:

Total runtime0.9303 sec
Peak memory usage4,096.0000 KB
Database Queries66

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0041 589.3594152.6250
Module start 'layout' 0.00420.0038 741.984439.4453
Module start 'content' 0.00790.9210 781.4297593.4375
Module end 'content' 0.92890.0013 1,374.867220.1641
Script end 0.9303  1,395.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.3148160.0002
Check MTime0.00120.1332160.0001
Mysql Total
Database connection0.00060.069810.0006
Mysqli_queries0.860492.4839660.0130
Looping result0.00060.0696640.0000
Template Total0.902697.020.4513
Template load0.00210.224720.0010
Template processing0.900596.801420.4503
Template load and register function0.00010.010410.0001
states
state_id_array0.00080.086110.0008
state_identifier_array0.00060.060520.0003
Override
Cache load0.00190.2028630.0000
Sytem overhead
Fetch class attribute can translate value0.00060.063520.0003
Fetch class attribute name0.00150.161680.0002
XML
Image XML parsing0.00100.105120.0005
class_abstraction
Instantiating content class attribute0.00000.0031120.0000
General
dbfile0.00080.0898220.0000
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
17content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 44
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs