Possible to parse Extra Fields?

General ShopSite user discussion

Possible to parse Extra Fields?

Postby dlundell » Wed Mar 28, 2012 10:46 am

Hi,

Is there a way to get at the specific pieces of an Extra Field string?
(treat them as arguments)

Specifically, I have an Extra Field that has a date string like "June 30 2012".
Rather than create 3 Extra Fields for month, day and year, I'd like to be
able to operate on (in shell script lingo) $1 and $2 and $3 of PRODUCT.Field3,
rather than creating separate Extra Fields for each entity.

I've got other more complex examples, where being able to get at a Field
sub-field would be a big help.

Thanks,

Don
dlundell
 
Posts: 95
Joined: Fri Aug 04, 2006 6:13 pm

Re: Possible to parse Extra Fields?

Postby BFChris » Wed Mar 28, 2012 12:20 pm

You could do it with Javascript "split" assuming the separator character is always the same.
~~Barefoot Chris
--------------------------------
Barefoot Chris Web Design
www.barefootchris.net
--------------------------------
BFChris
 
Posts: 322
Joined: Mon Oct 09, 2006 3:28 pm
Location: PA


Return to User Forum

Who is online

Users browsing this forum: No registered users and 102 guests