Forums / Developer / Donation module instead of Shop

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