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
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
PayPalCart Block - Displaying more than 1 item
-
- Rank: Team Member
- Registered: Dec 07, 2003
- Last visit: May 09, 2010
- Posts: 2703
-
- Rank: Software Foundation
- Registered: Sep 03, 2002
- Last visit: May 09, 2010
- Posts: 909
You could also take the pnRender block and call the item viaCode
<!--[ 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!" -
- Rank: Software Foundation
- Registered: Sep 03, 2002
- Last visit: May 09, 2010
- Posts: 909
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!" -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 222
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 ofbut I can't get it to display just 1 category or alternatively, specify multiple items. It just shows all categories. :Code
!--[ pnmodfunc modname="PayPalCart" type="user" func="whatever" id=123 parameter="value" ]-->
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
- Moderated by:
- Support
