LemonStand Forum: New Theme: Utility - LemonStand Forum

Jump to content

  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • This topic is locked

New Theme: Utility

#1 User is offline   Eric 

  • Developer
  • PipPipPip
  • Group: Members
  • Posts: 1,290
  • Joined: 04-August 10
  • LocationVancouver, Canada

Posted 04 February 2011 - 04:36 PM

Hello everyone,

We're releasing a free LemonStand theme, named Utility.

Demo
Download
Source Repository
Support: Please use the community forums.
This theme is intended as a developer tool, and not officially supported.

Warning: self-hosted payment methods currently require their payment form partials to be edited to POST to the Pay page, like so:
http://bit.ly/kQ0oRN

<?= open_form(array('action' => root_url($site_settings->store->pay_path . '/' . $order->order_hash))) ?>


Posted Image
0

#2 User is offline   Beats 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 192
  • Joined: 18-January 11

Posted 05 February 2011 - 09:28 AM

Looks Great! Much more options then the original!
0

#3 User is offline   abebob 

  • Member
  • Group: Members
  • Posts: 1
  • Joined: 10-February 11

Posted 10 February 2011 - 01:01 AM

Can you describe the process of uninstalling this theme?
0

#4 User is offline   Eric 

  • Developer
  • PipPipPip
  • Group: Members
  • Posts: 1,290
  • Joined: 04-August 10
  • LocationVancouver, Canada

Posted 10 February 2011 - 12:09 PM

View Postabebob, on 10 February 2011 - 01:01 AM, said:

Can you describe the process of uninstalling this theme?


Hi!

There is no uninstallation process for themes yet, as they are simple CMS backups. What you will need to do is delete all templates, pages, and partials. Then, you can create your frontend store from scratch, use a different "theme," or import the demo backup: http://forum.lemonst...e-demo-website/

It may be easier to delete templates, pages, and partials by enabling filesystem CMS objects in Settings -> CMS Settings. Then, delete all files in the folders on filesystem.
0

#5 User is offline   activeholdingco 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 177
  • Joined: 23-September 10

Posted 11 February 2011 - 09:01 AM

View PostEric, on 10 February 2011 - 12:09 PM, said:

It may be easier to delete templates, pages, and partials by enabling filesystem CMS objects in Settings -> CMS Settings. Then, delete all files in the folders on filesystem.


It would be great if there was a built in way of deleting all partials, templates, pages. Maybe by executing a URL to provide a hidden but easy way of doing it. This way it doesn't happen accidentally but easy to use for developers.
0

#6 User is offline   activeholdingco 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 177
  • Joined: 23-September 10

Posted 11 February 2011 - 09:43 AM

I found a bug, either in the core or in your imageforge module when dealing with images/thumbnails.

Right now in getThumbnailPath it calls the core:onProcessImage. If this has a result it runs root_url function:

$processed_images = Backend::$events->fireEvent('core:onProcessImage', $this, $width, $height, $returnJpeg, $params);
foreach ($processed_images as $image)
{
	if (strlen($image))
		return root_url($image);
}


In your imageforce_module it does this:

$thumbnail_file = PATH_APP . $thumbnail_path;

if(file_exists($thumbnail_file))
	return root_url($thumbnail_path);


So basically it runs root_url twice which in my case makes the url look like this:

/path/path/upload instead of /path/upload

So it comes down to, should the modules return the root_url function or the core?
0

#7 User is offline   Eric 

  • Developer
  • PipPipPip
  • Group: Members
  • Posts: 1,290
  • Joined: 04-August 10
  • LocationVancouver, Canada

Posted 11 February 2011 - 09:44 AM

View Postactiveholdingco, on 11 February 2011 - 09:01 AM, said:

It would be great if there was a built in way of deleting all partials, templates, pages. Maybe by executing a URL to provide a hidden but easy way of doing it. This way it doesn't happen accidentally but easy to use for developers.


Hi!

I agree, we're discussing this and theming in general internally. Thanks!
0

#8 User is offline   activeholdingco 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 177
  • Joined: 23-September 10

Posted 11 February 2011 - 09:52 AM

Also another bug in Shop:products partial:

You call $image_url which as described above calls root_url. Then on line 47, you call it again:

      <img src="<?= root_url($image_url) ?>" width="<?= $width ?>" height="<?= $height ?>" />

0

#9 User is offline   Eric 

  • Developer
  • PipPipPip
  • Group: Members
  • Posts: 1,290
  • Joined: 04-August 10
  • LocationVancouver, Canada

Posted 11 February 2011 - 11:53 AM

View Postactiveholdingco, on 11 February 2011 - 09:52 AM, said:

Also another bug in Shop:products partial:

You call $image_url which as described above calls root_url. Then on line 47, you call it again:

      <img src="<?= root_url($image_url) ?>" width="<?= $width ?>" height="<?= $height ?>" />



Thanks!
0

#10 User is offline   pmeissner 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 128
  • Joined: 11-January 10
  • LocationElverson, PA

Posted 12 February 2011 - 04:00 AM

The link doesn't work for the demo.
http://ls-theme-utility.us.to:1301/

0

#11 User is offline   Danny 

  • Co-Founder
  • Group: +Administrators
  • Posts: 295
  • Joined: 30-October 09
  • LocationVancouver, BC

Posted 14 February 2011 - 08:41 AM

View Postpmeissner, on 12 February 2011 - 04:00 AM, said:

The link doesn't work for the demo.
http://ls-theme-utility.us.to:1301/



We need to get this up on another domain. Will update soon.

#12 User is offline   Eric 

  • Developer
  • PipPipPip
  • Group: Members
  • Posts: 1,290
  • Joined: 04-August 10
  • LocationVancouver, Canada

Posted 14 February 2011 - 08:04 PM

View Postpmeissner, on 12 February 2011 - 04:00 AM, said:

The link doesn't work for the demo.
http://ls-theme-utility.us.to:1301/



Fixed. New link: http://themes.lemons...pp.com/utility/

Thanks
0

#13 User is offline   j.lindberg 

  • Member
  • Group: Members
  • Posts: 16
  • Joined: 06-December 10

Posted 14 February 2011 - 10:31 PM

Thanks for everyone's help so far... LemonStand is a great e-commerce app. However, I have noticed that the new Utility Theme's Product page is not compatible with Opera. When going into a product page, Opera goes back to the category page and continues in what seems like a constant redirect.
0

#14 User is offline   pmeissner 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 128
  • Joined: 11-January 10
  • LocationElverson, PA

Posted 15 February 2011 - 03:40 AM

View PostEric, on 14 February 2011 - 08:04 PM, said:



I like all the new themes found here :rolleyes:

One issue with the theme though. My browser (Safari5.0.3) just loads the billing section of the checkout. See screenshot.

Attached File(s)


0

#15 User is offline   activeholdingco 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 177
  • Joined: 23-September 10

Posted 15 February 2011 - 08:09 AM

Few more bugs to report with the gallery. Things are throwing 404 for me.

templates/gallery.php

Change
<script>Galleria.loadTheme('/resources/3rd/galleria_classic/galleria.classic.js');</script>


To
<script>Galleria.loadTheme('<?= root_url('/') ?>resources/3rd/galleria_classic/galleria.classic.js');</script>


pages/gallery/page_gallery.php

Change
$data_list[] = array('image' => '/' . $old_path . '/' . $old_file, 'thumb' => '/' . $new_path . '/' . $new_file);


To
$data_list[] = array('image' => root_url('/') . $old_path . '/' . $old_file, 'thumb' => root_url('/') . $new_path . '/' . $new_file);

0

#16 User is offline   activeholdingco 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 177
  • Joined: 23-September 10

Posted 15 February 2011 - 08:22 AM

Another one:

css/main.css

Calls for image that doesn't exist:
.slidify {
  background: url(../images/list-bullet.png) no-repeat 98% 0;
}

0

#17 User is offline   activeholdingco 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 177
  • Joined: 23-September 10

Posted 15 February 2011 - 08:26 AM

@pmeissner

Found this bug aswell:

Open cms/pages/store_checkout/block_billing_info.php

Find:
LS.sendRequest('<?= Phpr::$request->getCurrentUri() ?>', 'on_action', {


Replace:
LS.sendRequest('<?= root_url(Phpr::$request->getCurrentUri()) ?>', 'on_action', {

0

#18 User is offline   activeholdingco 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 177
  • Joined: 23-September 10

Posted 15 February 2011 - 08:32 AM

I would check this thread:
http://forum.lemonst...-theme-utility/

Eric pushed some updates to github and I suggested some fixes in the post. I would make sure you are using the latest version in case it might fix some problems you are having.
0

#19 User is offline   Eric 

  • Developer
  • PipPipPip
  • Group: Members
  • Posts: 1,290
  • Joined: 04-August 10
  • LocationVancouver, Canada

Posted 15 February 2011 - 10:23 AM

Fixed: https://github.com/l...4827b085ff52e30

Interesting bug. I was triggering .click() on A elements that do not return false (stop event propagation). Firefox/Chrome don't mind, Opera/IE do. When JavaScript goes wrong.

Thanks guys!
0

#20 User is offline   activeholdingco 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 177
  • Joined: 23-September 10

Posted 15 February 2011 - 12:14 PM

@Eric

I think you are still missing the second root_url on page_gallery.php for the thumbnail?

Thanks for the quick updates.
0

Share this topic:


  • 3 Pages +
  • 1
  • 2
  • 3

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users