Forums / All Other Contributions/Addons / Carousel Featured Products (carouFresel style) [Support Thread]

Carousel Featured Products (carouFresel style) [Support Thread]

Views: 20,548

Results 1 to 20 of 22
29 Sep 2012, 7:20 AM
#1
kamelion0927 avatar

kamelion0927

Zen Follower

Join Date:
Dec 2009
Posts:
208
Plugin Contributions:
1

Carousel Featured Products (carouFresel style) [Support Thread]

This is the official support thread for Carousel Featured Products. Just as the name implies, I duplicated the featured products module and stuck it inside of a jquery carousel (carouFresel to be exact).

This mod has been tested and is working on Zen Cart v1.5 and v1.51. I also have it working in conjunction with Nivo Slider and the CSS/JS loader.

This is my first mod and I'm not a coder so I'll do as much as I can to help with my limited knowledge of jquery and php if you run into issues - just go easy on me please.

29 Sep 2012, 8:39 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Carousel Featured Products (carouFresel style) [Support Thread]

I'll go easy. :)
I don't mean any of the following to sound "heavy", but I'm aware that it might, so I wanted to say that up-front.
It's an interesting concept, but I think it might be necessary to add some clarification for people who look at it to consider using it.

To be clear, this mod completely duplicates the built-in featured-products functionality and sets up two completely different sets of featured products specifically managed by this plugin, thus giving the storeowner three completely separately controlled featured-products systems, right?
And if they uninstall this plugin then they completely lose all the featured-products data that they'd set up in the plugin, and would then need to completely recreate all their featured-products data in the default built-in featured-products pages, right?
And there's no way to make these two new sets of featured products copy anything from their already-set-up featured products, right?
And there's no means provided in this plugin to simply add the carousel display functionality to the existing built-in featured products handler, right?
Are there additional caveats which storeowners should be aware of before using this plugin?

I can see people saying that it looks really complicated because of all the files involved (most of them used just to add the duplication of already-built-in functionality) instead of simply tweaking a single template file so that the output can display as a scrolling carousel.

How would you respond to someone who just wanted to add the carousel to the built-in featured-products data?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

30 Sep 2012, 3:43 AM
#3
kamelion0927 avatar

kamelion0927

Zen Follower

Join Date:
Dec 2009
Posts:
208
Plugin Contributions:
1

Re: Carousel Featured Products (carouFresel style) [Support Thread]

Darn it! You're right - I hadn't considered the fact that if you uninstall the module, the featured products would be gone. Thanks for bringing that up - better now than when someone gets upset because all their hard work goes to pot.

I was trying to make installation as easy as possible with as many features as possible and I think I went a little overboard :blush:; I tend to do that a lot. I'll add the carousel to the current featured products, add a switch to turn it off and on and resubmit the mod.

Thanks for taking the time to look it over, I really appreciate it.

30 Sep 2012, 6:12 AM
#4
kamelion0927 avatar

kamelion0927

Zen Follower

Join Date:
Dec 2009
Posts:
208
Plugin Contributions:
1

Re: Carousel Featured Products (carouFresel style) [Support Thread]

Okay - the mod has been rearranged and resubmitted.

This mod utilizes the flexibility of carouFredsel with the convenience of the Zen Cart featured products module.

Once installed, you will be able to choose whether to display the featured products on the home page neatly inside a carousel that is controlled by the viewer or the standard Zen Cart display.

PLEASE NOTE: This is a jquery based mod so it may be a bit tricky to install if you are unfamiliar with jquery and you have other mods that use jquery. If you have the CSS/JS Loader installed, you may have to move some javascript around and create an auto loader file for your index page.

17 Oct 2012, 7:33 PM
#5
dix30simulation avatar

dix30simulation

New Zenner

Join Date:
Aug 2012
Location:
Montreal, Canada
Posts:
30
Plugin Contributions:
0

Re: Carousel Featured Products (carouFresel style) [Support Thread]

Hello,

This MOD sounds interesting but after installing all files and running the .sql, i do not get any option to setup.
*configuration/carousel featured products configuration *has no option displayed.
Also when running the .sql patch only 8 items were installed. Anything missing?

Thanks,

Dan

18 Oct 2012, 12:24 AM
#6
kamelion0927 avatar

kamelion0927

Zen Follower

Join Date:
Dec 2009
Posts:
208
Plugin Contributions:
1

Re: Carousel Featured Products (carouFresel style) [Support Thread]

Make sure the file YOUR_ADMIN > includes > languages > english > extra_definitions > carousel_featured_defines.php exists (YOUR_ADMIN being the name of your store admin folder). The options to configure the carousel and turn it off and on are in configuration > carousel featured products - no install needed within your admin dashboard.

I just installed this mod on both a 1.39h and 1.51 site as is and it worked.

There are only eight options to install so you're okay there.

If it still isn't showing any configuration options, try running the uninstall.sql and re-running the configuration sql.

18 Oct 2012, 3:24 AM
#7
dix30simulation avatar

dix30simulation

New Zenner

Join Date:
Aug 2012
Location:
Montreal, Canada
Posts:
30
Plugin Contributions:
0

Re: Carousel Featured Products (carouFresel style) [Support Thread]

kamelion0927:

Make sure the file YOUR_ADMIN > includes > languages > english > extra_definitions > carousel_featured_defines.php exists (YOUR_ADMIN being the name of your store admin folder). The options to configure the carousel and turn it off and on are in configuration > carousel featured products - no install needed within your admin dashboard.

Yup, did that, the file is indeed in the right place, did uninstalled and reinstalled the .sql but in vain...I get the following:
Attachment 11325
Looks like it's missing some file when uploading the whole thing. I confirm all files are into right place.:unsure:

I just installed this mod on both a 1.39h and 1.51 site as is and it worked.
I use 1.50, would this make any differences?

There are only eight options to install so you're okay there.
Uninstalling the .sql gets me only 5 off!:no:

If it still isn't showing any configuration options, try running the uninstall.sql and re-running the configuration sql.

Thanks for your help

Dan

30 Oct 2012, 3:55 PM
#8
dix30simulation avatar

dix30simulation

New Zenner

Join Date:
Aug 2012
Location:
Montreal, Canada
Posts:
30
Plugin Contributions:
0

Re: Carousel Featured Products (carouFresel style) [Support Thread]

Anyone would know why there is no option as seen below, am I missing something, first time this happened compare to all plugins I have already installed. :(

Attachment 11376

1 Nov 2012, 3:20 PM
#9
kamelion0927 avatar

kamelion0927

Zen Follower

Join Date:
Dec 2009
Posts:
208
Plugin Contributions:
1

Re: Carousel Featured Products (carouFresel style) [Support Thread]

dix30simulation:

Anyone would know why there is no option as seen below, am I missing something, first time this happened compare to all plugins I have already installed. :(

Attachment 11376

Apparently it's due to an incorrect faq uninstall. According to guru swguy, (see post here), the uninstall file is incorrect.

Try using

SET @configuration_group_id=0;
SELECT @configuration_group_id:=configuration_group_id
FROM configuration_group
WHERE configuration_group_title= 'Carousel Featured Products'
LIMIT 1;
DELETE FROM configuration WHERE configuration_group_id = @configuration_group_id AND configuration_group_id != 0;;
DELETE FROM configuration_group WHERE configuration_group_id = @configuration_group_id AND configuration_group_id != 0;;

DELETE FROM admin_pages WHERE page_key = 'configCarouselFeatured' LIMIT 1;

to uninstall. Then you can reinstall the sql again if you still want the mod.

13 Nov 2012, 2:51 PM
#10
dix30simulation avatar

dix30simulation

New Zenner

Join Date:
Aug 2012
Location:
Montreal, Canada
Posts:
30
Plugin Contributions:
0

Re: Carousel Featured Products (carouFresel style) [Support Thread]

kamelion0927:

Apparently it's due to an incorrect faq uninstall. According to guru swguy, (see post here), the uninstall file is incorrect.

Try using

SET @configuration_group_id=0;
SELECT @configuration_group_id:=configuration_group_id
FROM configuration_group
WHERE configuration_group_title= 'Carousel Featured Products'
LIMIT 1;
DELETE FROM configuration WHERE configuration_group_id = @configuration_group_id AND configuration_group_id != 0;;
DELETE FROM configuration_group WHERE configuration_group_id = @configuration_group_id AND configuration_group_id != 0;;

DELETE FROM admin_pages WHERE page_key = 'configCarouselFeatured' LIMIT 1;

> to uninstall. Then you can reinstall the sql again if you still want the mod.

Thank you, uninstalling was successfull although do get the same error while installing any .sql ( up to 4 differents plugins) and do get the same error message. Looks like there is a core file that is been modified since and is needed by any plugin

Attachment 11427

Where can I delete these extra **""""**?
15 Nov 2012, 10:15 PM
#11
bn17311 avatar

bn17311

Zen Follower

Join Date:
Apr 2010
Posts:
319
Plugin Contributions:
0

Re: Carousel Featured Products (carouFresel style) [Support Thread]

hi,
install went fine except for admin doesn't show up any options,

i have checked the 1 admin file uploaded

anything else to check

thanks
Bryan

19 Nov 2012, 8:57 AM
#12
bn17311 avatar

bn17311

Zen Follower

Join Date:
Apr 2010
Posts:
319
Plugin Contributions:
0

Re: Carousel Featured Products (carouFresel style) [Support Thread]

working now, nice module

bn

5 Dec 2012, 10:19 PM
#13
dharrison avatar

dharrison

Zen Follower

Join Date:
Mar 2009
Location:
Essex, UK
Posts:
448
Plugin Contributions:
0

Re: Carousel Featured Products (carouFresel style) [Support Thread]

Hi kamelion0927

Great app and I have got it installed and configured fine. I just have one little question: How can I get the Carousel box to display above the main page content on the home page?

Any help is gratefully received. ;)

Debbie Harrison
DVH Design | Web Design blog

5 Dec 2012, 11:12 PM
#14
kamelion0927 avatar

kamelion0927

Zen Follower

Join Date:
Dec 2009
Posts:
208
Plugin Contributions:
1

Re: Carousel Featured Products (carouFresel style) [Support Thread]

Did you want to move just the featured products or all of them (i.e. new products, specials, etc.)?

6 Dec 2012, 9:45 AM
#15
dharrison avatar

dharrison

Zen Follower

Join Date:
Mar 2009
Location:
Essex, UK
Posts:
448
Plugin Contributions:
0

Re: Carousel Featured Products (carouFresel style) [Support Thread]

Just the featured products box in the center column. I'm not using the other ones.

I just would like to move it so it displays before the main page content.

I have tried with the code offline, but no go. I have basic PHP skills if that helps, but I can follow patterns (monkey see, monkey do).

Debbie Harrison
DVH Design | Web Design blog

6 Dec 2012, 7:54 PM
#16
bn17311 avatar

bn17311

Zen Follower

Join Date:
Apr 2010
Posts:
319
Plugin Contributions:
0

Re: Carousel Featured Products (carouFresel style) [Support Thread]

hi,
if i understand you properly go to ( example here https://www.catchagrip.co.uk )

includes/templates/YOUR TEMPLATE/templates/

edit file tpl_index_default.php

move code below

<?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>

place it directly above

<div id="indexDefaultMainContent" class="content"><?php require($define_page); ?></div>

hope this helps

bn

7 Dec 2012, 3:11 AM
#17
kamelion0927 avatar

kamelion0927

Zen Follower

Join Date:
Dec 2009
Posts:
208
Plugin Contributions:
1

Re: Carousel Featured Products (carouFresel style) [Support Thread]

dharrison:

Just the featured products box in the center column. I'm not using the other ones.

I just would like to move it so it displays before the main page content.

I have tried with the code offline, but no go. I have basic PHP skills if that helps, but I can follow patterns (monkey see, monkey do).

I've been doing the same thing for years and it's the only way to learn this stuff in my not so expert opinion.

bn - you're almost there. See the line above the call for the featured products?

<?php
  $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_MAIN);
  while (!$show_display_category->EOF) {
?>

That's what tells the template to check if the featured products needs to be shown. If you only move the call for the featured products, the template won't know to check for it and it won't work. In your case Debbie, it would be easiest to just move the whole block of code (as shown below) to the place on the template that you want it.

<?php
  $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_MAIN);
  while (!$show_display_category->EOF) {
?>

<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_FEATURED_PRODUCTS') { ?>
<?php
/**
 * display the Featured Products Center Box
 */
?>
<?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
<?php } ?>

<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS') { ?>
<?php
/**
 * display the Special Products Center Box
 */
?>
<?php require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?>
<?php } ?>

<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_NEW_PRODUCTS') { ?>
<?php
/**
 * display the New Products Center Box
 */
?>
<?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>
<?php } ?>

<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_UPCOMING') { ?>
<?php
/**
 * display the Upcoming Products Center Box
 */
?>
<?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS)); ?><?php } ?>


<?php
  $show_display_category->MoveNext();
} // !EOF
?>

I hope that makes sense - I've got a holiday happy kid yapping in my ear nonstop and am finding it difficult to concentrate. :frusty: If it doesn't, please let me know and I'll try to clarify.

4 Mar 2013, 6:17 PM
#18
ezboutiqueweb avatar

ezboutiqueweb

New Zenner

Join Date:
Dec 2012
Posts:
4
Plugin Contributions:
0

Re: Carousel Featured Products (carouFresel style) [Support Thread]

Hi, Just installed
Please note that I had to manually upload the language file from admin, as the folder structure seemed to be incorrect when uploading, but manual upload got it working fine - you may want to fix in future releases.

Zen structure is : admin->includes-->languages-->english-->extra definitiions

Module Structure is admin-->includes-->english-->extra definitions

That might be why some folks are having problems with uploading and seeing the configuation menu in the admin end. :)

2 Nov 2013, 1:48 PM
#19
adb34 avatar

adb34

Totally Zenned

Join Date:
Mar 2008
Location:
Brampton, Cumbria, United Kingdom, United Kingdom
Posts:
825
Plugin Contributions:
0

Re: Carousel Featured Products (carouFresel style) [Support Thread]

Fantastic way of showing products, however I have an interesting problem. It does not cycle through the products. I have installed this on to two different websites the same way, one works, one does not. I cannot find the differences as to why one works. site of the one that is not working https://www.edencraftsupplies.co.uk

Learning Fast.
Eden Craft Supplies

10 Jun 2014, 4:54 AM
#20
thomaswhiteeagle avatar

thomaswhiteeagle

New Zenner

Join Date:
May 2007
Posts:
93
Plugin Contributions:
0

Re: Carousel Featured Products (carouFresel style) [Support Thread]

I'm also trying to move the featured products as provided by this mod to be above the text content on the home page Really wish there was a way to call it somewhere in between text content on the home page but short of that would like to move it above the text. I've tried both solutions posed here, considering the second solution to probably be more sound. However the first solution breaks the page The second ssolution as I've applied it by putting the code so it is just above: <div id="indexDefaultMainContent"><?php require($define_page); ?></div> then what happens is an endless loop where it is loading dozens and dozens of the featured carousels onto the page.
I'm using zen 1.5.1 and the responsive westminster template which has it built in.