VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Add-ons for VP-ASP
 Literal/Multiple Arguments to template-fields
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

devshb
Senior Member

United Kingdom
1898 Posts

Posted - February 20 2007 :  15:45:09  Show Profile  Visit devshb's Homepage  Reply with Quote
Default/normal vpasp doesn't let you use literals as arguments in template-fields, and also it doesn't allow you to use multiple-values for your arguments. In most cases this is fine as it's very rarely needed, but occasionally being able to do one of those things would be very useful indeed.

As an example, say you use multi-ccy, and you want to display a value on your product pages, but the amount is relevant at a site-wide level instead of per-product.

eg you want to put something like this into your template:
Shipping Free for orders over [FORMATCURRENCY 12.5]<br>
[DISPLAYBLURB "Type1"]<br>

etc

with normal vpasp you can't do that, but the pending (as-yet unreleased) version of our template-field addon will let you do that.

It'll let you use literal arguments for all template-fields (standard vpasp ones, custom-built ones you've/we've already created, and byz addon ones), and there's also an example where you can effectively use multiple arguments.

Example of multiple arguments:

[shipping_box "{10}{2}{20}{3}{30}{4}{No Limit}"]

which would then turn it into:

Shipping Weight Restrictions
1-10 Items: 2 Kilos
11-20 Items: 3 Kilos
21-30 Items: 4 Kilos
31+ Items: No Limit

This came about because there are some byz addons pending where we'll find being able to use literals as arguments useful/necessary (as well as being able to have multiple arguments).

Anyway; if anyone has been after this logic and wants to try it out then feel free to post a support ticket to let us know, and we'll let you know your options. I'll be posting a follow-up to this note when it gets officially released; for now it's only available on-request; this is a pending update to our BYZ033 addon (extra-template-fields) -

http://www.bigyellowzone.com/support
("ask a question" link)


Simon Barnaby
Developer
[email protected]
www.BigYellowZone.com
Web Design, Online Marketing and VPASP addons
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000