Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Addon} Modular Front Page


kymation

Recommended Posts

It will always show that test. That is the instruction for entering data in that field. The data in the field will only show when you edit the module.

 

You have probably corrupted the database entry for that field. Try uninstalling and reinstalling the module. If that doesn't work, you will have to clean the database using your database management tool.

 

When you get that fixed, try using this version of your text:

 

We do hope that you will enjoy your visit to our new store. <br/>. We have a wide range of lovely things for the Day of your life. If we don\\\'t have what you want please get in touch with us.<br/> We hope to see you again. Have a lovely Day.<br/>

 

Regards

Jim

 

Edit: Forum harked up the code again.

Edited by kymation

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

Link to comment
Share on other sites

When I first installed this addon it behaved as you describe I.e you could not access and edit what you had already created. When I updated the addon to the newest version it now works correctly. Have you got the version from 15th May 2013?

Live shop Phoenix 1.0.8.4 on PHP 7.4 Working my way up the versions.

Link to comment
Share on other sites

When I first installed this addon it behaved as you describe I.e you could not access and edit what you had already created. When I updated the addon to the newest version it now works correctly. Have you got the version from 15th May 2013?

 

Yes

Link to comment
Share on other sites

Jim

 

A re-install worked fine. I tried the text you suggested and the only flaw was that the triple slashed word 'don\\\'t' appeared precisely like that on the page. Simple expedient; expand word(s) to 'do not'!

 

Thanks

 

Martin

Link to comment
Share on other sites

  • 2 weeks later...

Hi Jim,

 

I've installed the modular front page on my cart and it works great. I'm using the featured products add on and it works perfectly for what I need. Now I just need to change the way it looks to align and display properly like the other product listings on different pages instead of the generic look osc uses. I'm not sure how to go about this. Do I edit the featured.php file? To see what I'm talking about you can visit my site and look at the home page and then pick a category and you'll see the product listings are completely different looking with a add to cart button. http://192.163.206.252/~timerco1/

 

I've tried looking through this topic for hints but I haven't found anything yet.

Edited by qspider
Link to comment
Share on other sites

I would start with adding a class to the Featured Products module, then use some CSS to change the look. Find this line in includes/modules/front_page/fp_featured.php:

 

    $featured__content .= '  <div class="contentText">' . PHP_EOL;

 

and change it to

 

    $featured__content .= '  <div class="contentText featured_products">' . PHP_EOL;

 

and then add the featured_products{} class to your stylesheet.

 

The whole thing uses a table for formatting. This is ripped straight from the old Featured Products addon that has been around since the osCommerce 2.2 days. It really should be replaced by DIVs and some modern CSS. I should do that someday. If I ever find the time.

 

Regards

Jim

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

Link to comment
Share on other sites

I would start with adding a class to the Featured Products module, then use some CSS to change the look. Find this line in includes/modules/front_page/fp_featured.php:

 

 $featured__content .= ' <div class="contentText">' . PHP_EOL;

 

and change it to

 

 $featured__content .= ' <div class="contentText featured_products">' . PHP_EOL;

 

and then add the featured_products{} class to your stylesheet.

 

The whole thing uses a table for formatting. This is ripped straight from the old Featured Products addon that has been around since the osCommerce 2.2 days. It really should be replaced by DIVs and some modern CSS. I should do that someday. If I ever find the time.

 

Regards

Jim

Thanks! I was able to change the design.

Link to comment
Share on other sites

I'm currently using this module (http://addons.oscommerce.com/info/7626), but the scroller scrolls down only on pictures, not text. How can I fix this? Due to the stilefloat.css I can't place the text below the picture, it always appears next to the pic.

Even if the code goes like this:

while ($products_data = tep_db_fetch_array($products_query)) {

$body_text .= '<table border="1"><tr><td><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_data['products_id']) . '"><img src="http://konyhatizezercikk.hu/kepek/'. $products_data['products_image'].'" width="300" height="300" title="'. $products_data['products_name'].'" alt="'. $products_data['products_name'].'" style="padding: 0 ' . MODULE_FRONT_PAGE_SCROLLER_IMAGE_PADDING . 'px;"></td></tr><tr><td>'.$products_data['products_name'].'<br /></td></tr><tr><td>' . $currencies->display_price($products_data['products_price'], tep_get_tax_rate($products_data['products_tax_class_id'])) . '</a></td></tr></table>';

}

 

 

Looking forward to your answer.

Link to comment
Share on other sites

I'm currently using this module (http://addons.oscommerce.com/info/7626), but the scroller scrolls down only on pictures, not text. How can I fix this? Due to the style

 

$header .= '#scroller div.scrollableArea * {' . "\n";

$header .= ' position: relative;' . "\n";

$header .= ' float: left;' . "\n";

$header .= ' margin: 0;' . "\n";

$header .= ' padding: 0;' . "\n"

 

I can't place the text below the picture, it always appears next to the pic.

Even if the code goes like this:

while ($products_data = tep_db_fetch_array($products_query)) {

$body_text .= '<table border="1"><tr><td><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_data['products_id']) . '"><img src="http://konyhatizezercikk.hu/kepek/'. $products_data['products_image'].'" width="300" height="300" title="'. $products_data['products_name'].'" alt="'. $products_data['products_name'].'" style="padding: 0 ' . MODULE_FRONT_PAGE_SCROLLER_IMAGE_PADDING . 'px;"></td></tr><tr><td>'.$products_data['products_name'].'<br /></td></tr><tr><td>' . $currencies->display_price($products_data['products_price'], tep_get_tax_rate($products_data['products_tax_class_id'])) . '</a></td></tr></table>';

}

Link to comment
Share on other sites

The scroller module is only designed for images. You will have to recode it to work with text, and I won't be able to do that for you.

 

Regards

Jim

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

Link to comment
Share on other sites

I could. I'll add that to the wish list. Don't expect it anytime soon.

 

You could also set the module to Featured and select the products that it show.

 

Regards

Jim

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

Link to comment
Share on other sites

  • 2 weeks later...

@@kymation

 

Great Addon, setup without any problems.

 

Q. Is it possible to increase the number of featured items from 10 to 20 or more?

 

your answer was

 

It's possible, but you would have to modify the code.

 

Regards

Jim

 

could you be a bit more specific about the area or code that limits the output to 10 inside the admin area?

inside the includes/modules/front_page/fp_featured.php on line 22/23 there is this following code

 

// Set the number of featured products in case the constant is not defined

var $featured_products = 10;

 

changing 10 to 12 or any other number has no effect.

i mean i can say, show 20 items but i can only insert max. 10 items inside the admin area.

Link to comment
Share on other sites

@@kymation

 

Never mind, found it!

 

*(if module has not been installed yet!)

Line 135, change the "configuration_value" from 10 to 12 (in my case).

 

I installed the module once and so it didn't accept any alternation (even after removing and re-installing) so i went inside the database

and changed it there. inside the "configuration" table -> "configuration_title" (Max Featured Products) -> "configuration_value".

 

Thank you.

Edited by Tsimi
Link to comment
Share on other sites

  • 4 weeks later...

It looks just like this. Or completely different. It's modular, so you get to choose what it looks like.

 

Regards

Jim

 

Sorry Jim.. I clicked on your footer jQuery Banner Rotator link and didn't realize that I wound up in the MFP support thread.. I really am more curious about the jQBR. Thx

Link to comment
Share on other sites

  • 3 weeks later...

I have installed this module on a different site with no issues however I am having an issue with it after installing on a different site.

 

The issue I am having is in the Featured Products area. I am having the same problem of only 6 products being able to be chosen for display through the admin area no many how many times, and in how many places (fp_featured.php & phpMyAdmin through the configuration area as posted above) I make the change.

 

I did have a different "Featured Products" module installed before I remembered this module had the feature I wanted. I completely removed the other module thinking there might be some type of coding conflict but that didn't work either.

 

I don't know which file(s) I should post here for examination so any suggestions would be welcome as would assistance. I truly find this module useful in my sites.

Link to comment
Share on other sites

UPDATE: I dropped all my tables (this is essentially a new installation anyway), reuploaded the new installation database.sql file, added the query for the 1 module I have that required it and reinstalled all modules that automatically writes to the database.

 

I now see the 12 products however only 6 products have the option to make a selection. Additionally, there is no description text next to the last 6 fields, just blank fields.

 

It is essentially the same problem as before, only 6 options can be chosen.

Link to comment
Share on other sites

That's a bug in the latest version. Find this line in the fp_featured.php:

 

    tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Max Featured Products', 'MAX_DISPLAY_FEATURED_PRODUCTS', '10', 'Set the maximum number of featured products to allow.', '6', '222', now())");

 

and change it to this:

    tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Max Featured Products', 'MAX_DISPLAY_FEATURED_PRODUCTS', '10', 'Set the maximum number of featured products to allow.', '3', '222', now())");

 

Then uninstall the module. Go to your database management tool and search the configuration table for MAX_DISPLAY_FEATURED_PRODUCTS and delete all rows found. Then go back to your Admin and reinstall the module.

 

You should now see an entry in your Admin for Max Featured Products under Configuration >> Maximum Values. Set that to the number of products that you want to feature, then uninstall and reinstall the module again. It should now work.

 

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...