256 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Sells items exclusively on Envato Market
+1 more
evaske says

Hello,

So I am currently in the process of making a pricebox widget for the SiteOrigins Pagebuilder but have come across an issue. I have a field for features and then a button underneath that says Add Features and when clicked it adds a new field. I therefore am saving all these features in to an array which when being used in the normal theme widget area works perfectly.

The problem is though that SiteOrigins doesn’t seem to show the array value as if it resets it each time. The array is being saved to $instance[‘fields’] because it is outputting on the site but then when I go back to edit the price box through the sitebuilder the field is empty.

Anyone got any ideas on what I can try or is able to help me out by taking a look at my code quickly? I have pastebinned the code below so you can see it :)

http://pastebin.com/ThKe2cMR
256 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Has been part of the Envato Community for over 3 years
  • Sells items exclusively on Envato Market
+1 more
evaske says

Slightly modified code:

http://pastebin.com/wM6rCM0h

No one got any idea as to why Page Builder doesn’t want to recall the array of fields even though it is saved?

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by