Jump to content
Latest News: (loading..)
JcMagpie

Support thread for featured products with Ribbon v2.3.4.1 CE

Recommended Posts

This is based on an existing addon so all credit goes to the original author. I have only made a very small change.

A simple addon to let you place a featured products carousel with “Wow!” Ribbons on the index page.

Simply install the files and install and turn on.

It requires owl_carousel so if you do not have that then just follow the instructions included to install that.

It has been tested on the v2.3.4.1 CE Only.

image.thumb.png.51c3a836ed9d3c14abb5c1f760d2399d.png

 


 

Share this post


Link to post
Share on other sites
On 6/24/2018 at 12:29 PM, JcMagpie said:

This is based on an existing addon so all credit goes to the original author. I have only made a very small change.

A simple addon to let you place a featured products carousel with “Wow!” Ribbons on the index page.

Simply install the files and install and turn on.

It requires owl_carousel so if you do not have that then just follow the instructions included to install that.

It has been tested on the v2.3.4.1 CE Only.

image.thumb.png.51c3a836ed9d3c14abb5c1f760d2399d.png

 

Seems awesome is it possible to use it with categories?? I use the same Frozen CE version..

Like I want featured categories on my index page.. Please help would be deeply appreciated..

Warm Regds./

radhavallabh

Share this post


Link to post
Share on other sites

I’m not sure I understand what your asking, If a category is to be a featured or special then its simpler just to change its image.


 

Share this post


Link to post
Share on other sites
1 hour ago, JcMagpie said:

I’m not sure I understand what your asking, If a category is to be a featured or special then its simpler just to change its image.

I meant use Categories in the Carousel rather than the products.. The image and link will be of the category specified..

Edited by radhavallabh

Share this post


Link to post
Share on other sites

No sorry no plans to do that, just don't see the point. If you want to display cats then ask @burt  as he has a Cat's on index add-on as part of the 28d thing.

Or post in the commercial section to get one coded.


 

Share this post


Link to post
Share on other sites
12 minutes ago, JcMagpie said:

No sorry no plans to do that, just don't see the point. If you want to display cats then ask @burt  as he has a Cat's on index add-on as part of the 28d thing.

Or post in the commercial section to get one coded.

Okay Thank you will do that...:smile:

Share this post


Link to post
Share on other sites

The Add-on has been updated to use owl carousel 2.3.4 and include the display issue fix.

It no longer requires the owl_carousel 2.3.4 script to be loaded locally. These are now loaded to the header and footer using Header_Tags and use CDN rather than local install.

Owl requires the owl style sheets and jQuery to be loaded in a specific order to work properly. See the recommendations here

https://owlcarousel2.github.io/OwlCarousel2/docs/started-installation.html

If you are using any other add-on using owl it may cause issues if it’s not installed correctly.

It is still a no core change add-on.

Install and turn on both Header_Tags then simply install the other files and install and turn on the new add-on.

It has been tested on the v2.3.4.1 CE Only.


 

Share this post


Link to post
Share on other sites

Just a fiddle with the addon, and noticed a few things

  • any reason for having two header modules instead of just the one? - one for the css the other for java script could you not just do something like the below - similar was done for the colourbox header tag as part of the product info page
	$oscTemplate->addBlock( '<script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.js"></script>' . "\n", $this->group);
    $oscTemplate->addBlock( '<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.css">' . "\n", 'header_tags');
    $oscTemplate->addBlock( '<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.theme.default.css">' . "\n", 'header_tags');
  • tried turning on showing the product descriptions, and got an error on featured_products_carousel.php line 37 should tep_i_featured_products_carousel_limit_text not be tep_fp_featured_products_carousel_limit_text
  • noticed it was possible to have a product shown, after being selected as a featured product been set to inactive 

I managed to fix that by adding product_status to the query that gets the information to be shown, then warping the array that outputs the product info in a if statement that checks the product status - not sure if that is the best way of achieving that, but it worked for me.

Share this post


Link to post
Share on other sites

For point one I just followed the recomendation by the Owl 2.3.4 documentation which requires script to be in the footer hence the 2 tags addons.

https://owlcarousel2.github.io/OwlCarousel2/docs/started-installation.html

As for the description I'll have a look, probably in the old version 🙄 as Its not something I have knowingly changed on this version.


 

Share this post


Link to post
Share on other sites

Has been updated to fix error as i loaded up old files, they will work but just with default Owl2 settings.

Bug fix to make speed controls work.

If you want to edit then in template file,

Find line autoPlay: and copy it and replace autoPlay: with autoplayTimeout:

Find paginationSpeed: and replace with autoplaySpeed:

Find slideSpeed: and replace with navSpeed:

Find navigationText and replace with navText

 

The issue with discription is still to be fixed. For now it's been disabled.

Edited by JcMagpie

 

Share this post


Link to post
Share on other sites

Bug fixed to make product description show properly. You can simply replace the template file, or uninstall and replace files and reinstall.

Sorry was just poor editing on my part. Full Pakage has been uploaded to apps.

image.thumb.png.d851141d955c08eae67ed469597fedc6.png

Edited by JcMagpie

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×