Jump to content



Latest News: (loading..)

bruyndoncx

Member Since 20 Apr 2004
OFFLINE Last Active Yesterday, 10:56 PM
-----

Posts I've Made

In Topic: [Addon} Modular Front Page

14 May 2013 - 03:45 AM

View Postkymation, on 14 May 2013 - 03:40 AM, said:

Thanks for the code. Can I add this to the distribution for Modular Front Page? You get full credit of course.
Yeah, sure. I don't even mind if you take credit for it as I'm not able to provide suipport for it in a timely matter. I have a shop to run ...

In Topic: [Addon} Modular Front Page

13 May 2013 - 10:21 PM

How to add Woothemes flex slider as a front page module

Please note only the essential switches are included as parameters in the module, if you want anything fancy you'll have to extend it, or modify the javascript directly in the code

1) Javascript

Download the last version from
http://www.woothemes.com/flexslider/

You need to create a new folder as /ext/modules/front_page/flexslider/ and put the css file and the javascript file in this folder (following the front_page convention for external files).

2) Language files

for each of the languages you use, create a flex_slider.php file as
catalog/includes/(language)/includes/modules/front_page/flex_slider.php
with the following content:
<?php
/*
  $Id: flex_slider.php v1.0 20101109 Kymation $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2010 osCommerce

  Released under the GNU General Public License
*/

  define( 'MODULE_FRONT_PAGE_FLEX_SLIDER_TITLE', 'Flex Slider' );
  define( 'MODULE_FRONT_PAGE_FLEX_SLIDER_DESCRIPTION', 'Control the function of the flex slider module on the front page.' );

?>


3) ftp flex_slider front_page module Attached File  flex_slider.php   9.34K   1 downloads

Load up the attached php as catalog/includes/modules/front_page/flex_slider.php

4) install module
Navigate to your admin front page section and install the module.

Enjoy

In Topic: Moving forward, MS2 and beyond towards a responsive webshop

13 May 2013 - 01:50 AM

About responsive sliders and carousels:

Not sure if RoyalSlider would be better, but for now I settled on Flexslider and Elastislide (responsive and touchenabled, reasonably wide browser support according to the docs)

Added a slider on the home page, using Flexslider jquery script (basic slider) and included it as a frontpage module based on the banner_rotator code (autostarting)
http://flexslider.woothemes.com

Also using the featured products as Top Picks on the home page and fitted it in as a Elastislide carousel (manual scrolling)
http://tympanus.net/codrops/2011/09/12/elastislide-responsive-carousel/
The elastislide carousel is also used at the bottom of the product pages to show other products in the same category.

In Topic: [Addon} Modular Front Page

12 May 2013 - 09:53 PM

I have about 7000 active products, having them all in a dropdown really slows down the system. In our case the products_id is also our barcode on the products, so we're quite used to referring to that number, so it is not that hard to enter the numbers directly.

The point I was making is that if there was a configurable limit imposed it would be more workable, and people could choose to increase the limit if they really want to wait for the long dropdown arrays to build up on screen.

I'm happy with my code as it stands :)

In Topic: [Addon} Modular Front Page

12 May 2013 - 07:26 PM

I went ahead to try it out using a hardcoded limit, so replacing from the while contruct at the end of the function

	 if (tep_db_num_rows($products_query) < 100) {
		while( $products_data = tep_db_fetch_array( $products_query ) ) {
		  $products_array[] = array( 'id' => $products_data['products_id'],
									 'text' => $products_data['products_name']
								   );
		}
		return tep_draw_pull_down_menu( $name, $products_array, $products_id );
	  } else {
		return tep_draw_input_field( $name, $products_id );
	  }

Now I just can enter the product ids required