Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Addon} Modular Front Page


kymation

Recommended Posts

cool, that should help a bit.

 

The idea is to have a setup of

 

 

[iMAGE] [PRODUCT NAME]

[iMAGE] [PRODUCT DESC]

[iMAGE] [PRODUCT DESC]

[iMAGE] [PRODUCT DESC]

[iMAGE]

 

or something similar, with it going right across... maybe a price kinda like the 'other' listing pages

 

Thomas

 

.. going in.. dont see me in 2 hours call 911 ;)

A signature is something that reflects its user. - The dictionary

 

The question is not, 'to code, or not to code'

the question is, 'if we do not code, are we really alive?'

-- anonymous

Link to comment
Share on other sites

Hi Kymation,

 

thanks for this great addon. I have test it and i will used it in every shop. I translate the language files to : Dutch, German, Portugues, Italian, Spanish,

French, Polish, Danish, Norvegian, Finnish, Swedish and Catalan.

But I have a small wishlist !

1/ Languages Titles for New Products like in Upcoming products

2/ Languages Titles for Featured Products like in Upcoming products

If you find time to build this

 

Thx

 

Kozak

Link to comment
Share on other sites

Find this line in catalog/includes/modules/front_page/scroller.php:

 

	    $header .= '  width: 610px;' . "\n";

 

and change that 610 to whatever width you want.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Set the scroller's sort order to a lower number than the other modules. This is covered in the instructions.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Hi Jim,

 

I have a little trouble with the banner rotator module. I set all the banners in the admin panel (the test ones provided with the contribution) but it doesn't seem to work like it supposed to. Instead of displaying the images one after another, it only shows one static image (no fading to the next one). When I refresh the browser, it displays another image.

 

I can't figure out what could be the problem!

 

Can U help?

 

Thanks,

Tony

Link to comment
Share on other sites

Hello Jim

 

I have your module working correctly but have also installed Mindsparx Star Product, which again works as expected but I can not control the position of where it appears on the front page, at present it appears below the front page modules I have installed, here's the code extract from my index.php

 

} else { // default page
// Start Modular Front Page
 ?>
 <div class="contentContainer">
 <?php echo $oscTemplate->getBlocks('front_page'); ?>
 </div>
 <?php
// End Modular Front Page
// STAR PRODUCT PIMPED START...
    if (SHOW_STARPRODUCT=="true") {
   include(DIR_WS_MODULES . FILENAME_STAR_PRODUCT); }
// STAR PRODUCT PIMPED END...

 }

 

I think I may have answered my own question in writing the post, Is it really just as simple as

 

} else { // default page
// STAR PRODUCT PIMPED START...
    if (SHOW_STARPRODUCT=="true") {
   include(DIR_WS_MODULES . FILENAME_STAR_PRODUCT); }
// STAR PRODUCT PIMPED END...
// Start Modular Front Page
 ?>
 <div class="contentContainer">
 <?php echo $oscTemplate->getBlocks('front_page'); ?>
 </div>
 <?php
// End Modular Front Page

 }

 

Ken

Os-commerce v2.3.3

Security Pro v11

Site Monitor

IP Trap

htaccess Protection

Bad Behaviour Block

Year Make Model

Document Manager

X Sell

Star Product

Modular Front Page

Modular Header Tags

Link to comment
Share on other sites

Hi Jim,

 

I have a little trouble with the banner rotator module. I set all the banners in the admin panel (the test ones provided with the contribution) but it doesn't seem to work like it supposed to. Instead of displaying the images one after another, it only shows one static image (no fading to the next one). When I refresh the browser, it displays another image.

 

I can't figure out what could be the problem!

 

Can U help?

 

Thanks,

Tony

 

never mind...i figured it out!

 

10x :)

Link to comment
Share on other sites

Your first code snippit will place the Star Products at the bottom of the first page; the second will place it at the top. No other placement is possible unless you convert Star Products into a 2.3.1 module.

 

Looking at the description of Star Products, it looks like you could do that with the Featured Products module set to just one product.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Hi Jim,

 

I reverse the code as I want more than one featured product to be generated by the front page modules.

 

thanks

 

Ken

Os-commerce v2.3.3

Security Pro v11

Site Monitor

IP Trap

htaccess Protection

Bad Behaviour Block

Year Make Model

Document Manager

X Sell

Star Product

Modular Front Page

Modular Header Tags

Link to comment
Share on other sites

  • 2 weeks later...

I've uploaded a new package that fixes a bug in the Banner Rotator that made links from the banners fail to load the correct page. I have also added language-dependant titles to the New Products and Featured Products modules. If you are upgrading from an older version, uninstall your existing module before replacing the module file.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

i was testing some of the options on the scroller and came across this error when i enabled the scrolled to be on featured products shown....

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') order by rand() limit ' at line 13

select p.products_id, p.products_image, pd.products_name from products p join products_description pd on pd.products_id = p.products_id where p.products_status = '1' and pd.language_id = '1' and p.products_id in () order by rand() limit 15

[TEP STOP]

 

please advise. thanks.

Link to comment
Share on other sites

If you want it on the top of the front page, just set the Sort Order for that module less than all the other modules.

 

If you want to move it into the Header so it shows on all pages, you'll have to modify the Banner Rotator module to work with the Header-Footer Contents modules. You'll need to change the $group and the code in the class method to match the Header-Footer modules.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

I haven't done it, but the modules are very similar, so it shouldn't be all that hard. A working knowledge of PHP would certainly help.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...