Fork me on GitHub

PayPalCart Block - Displaying more than 1 item  Bottom

  • Hi,

    I am working on a test site for a small business. I want to use PayPalCart http://www.natewelch…viewarticle&artid=3 but I need it to display certain items on the home page, versus the whole store. I now see that PaypalCart comes with a block I could use. However, it only shows one item at a time. Does anyone know if the code could be edited so it displays multiple items? I am still somewhat new to Postnuke and am not sure how to accomplish this.

    Thank you for any input.



    edited by: Thug21, Sep 22, 2007 - 08:32 PM
  • Why not display multiple blocks?

    --
    David Pahl
    Zikula Support Team
  • You could also take the pnRender block and call the item via

    Code

    <!--[ pnmodfunc modname="PayPalCart" type="user" func="whatever" id=123 parameter="value" ]-->

    That could be a solution if you don't intend to change articles every 5 minutes. It's perhaps more interesting for shops that don't change that often.

    You could also try my Simpletemplate module from the NOC. There you could store a template with several of these function calls and put it on the frontpage.

    --
    best regards from Kiel, sailing city

    Steffen Voss

    Member of the Zikula Steering Committee
    Read The Zikulan's Blog "If you want people to RTFM, make a better FM!"
  • Thank you both for the replies.

    As for simpletemplate, could you be so kind as to explain a bit more about it's install and use?
  • well it's a very simple module. There's no DB involved. You can simply put a template called v4b_simpletemplate_view_example.html into /modules/simpleTemplates/pntemplates and call that via index.php?module=simpleTemplate&func=view&page=example
    You can also set simplatemplate as frontpage module
    type = user
    func = view
    parameter = page=example

    Within this template you have all the pnRender functionality. For example you can call any module function with either pnmodfunc or pnmodapifunc depending on whether it is a UI funtion or a API function (pnuser.php = pnmodfunc / pnuserapi.php = pnmodapifunc)

    --
    best regards from Kiel, sailing city

    Steffen Voss

    Member of the Zikula Steering Committee
    Read The Zikulan's Blog "If you want people to RTFM, make a better FM!"
  • Thank you for the explanation! icon_smile

    I'll give it a try tomorrow. icon_smile



    edited by: Thug21, Sep 23, 2007 - 02:13 AM
  • Hi,

    I still found haven't found what I need to put in your simple template to get the needed results.

    Is there anyway you might be able to take a look at paypalcart and see what exactly I need to add? I've tried variations of

    Code

    !--[ pnmodfunc modname="PayPalCart" type="user" func="whatever" id=123 parameter="value" ]-->
    but I can't get it to display just 1 category or alternatively, specify multiple items. It just shows all categories. :

    Help on this would be much appreciated. It's the only big hurdle I need to overcome with the site. If desired, I am able to pay to get this working.

    Thank you.



    edited by: Thug21, Sep 27, 2007 - 06:52 PM

This list is based on users active over the last 60 minutes.