Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Modifying content in "New Products For May"


Guest

Recommended Posts

A quick question for everyone:

 

I have 2 types of products. My Main category of products were added to the database some time ago and since then Ive updated with more "secondary" products. These secondary products have filled up my "New Products for <Month>" at the bottom fo the page.

 

I believe this is taking the spotlight off of the primary products Id like peopel to see more often. Is there any way to selectively change what items or categories of items get displayed in the "New Products for May" box at the bottom of the store? Id also like to find a way to do this for the "Whats New" Infobox on the top left...

 

Thanks in advance!

Josh

Link to comment
Share on other sites

  • Replies 61
  • Created
  • Last Reply

ok look for the define('HEADING_TITLE', "What\'s New ...

 

i made i cange to mine that reads

 

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'Welcome to ' . STORE_NAME . '!');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', $breadcrumb->last() . ' ' . 'Categories');

 

 

 

i will give you instructions

 

but if you want to see how it looks go to http://www.artofthetime.com

at the end of the day the code will be good

Link to comment
Share on other sites

ok this is what you have to do:

 

 

go to includes/classes/breadcrumb.php and look for

 

 

 

 

class breadcrumb {

var $_trail;

 

 

function breadcrumb() {

$this->reset();

}

 

 

 

Change to:

 

 

 

class breadcrumb {

var $_trail;

 

function last() {

$trail_size = sizeof($this->_trail);

return $this->_trail[$trail_size-1]['title'] ;

}

 

function breadcrumb() {

$this->reset();

}

 

 

 

now go to

Directory: includes/languages/english/index.php

 

and Around Line 19:

 

define('HEADING_TITLE', 'Let\'s See What We Have Here');

 

Alter to:

 

define('HEADING_TITLE', $breadcrumb->last());

 

 

Around Line 39:

 

define('HEADING_TITLE', 'Categories');

 

Alter to:

 

define('HEADING_TITLE', $breadcrumb->last() . ' ' . 'Categories');

 

 

 

Save both files and you will not get the catagory heading at the top of each catagory page

instead of the standard "Let's See What We Have Here" and "Categories"

at the end of the day the code will be good

Link to comment
Share on other sites

ok the "New Products For May"

really looks like

 

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

 

so if you want to remove the word may just take out %s

at the end of the day the code will be good

Link to comment
Share on other sites

hey, i also want to do something similar, i visited your site and some categories. i liked it but can you tell how to replave the word categories after every category example you have "Heather Lee Categories", Digital Categories, i dont want the word categories at the end, should i replace the word categories from this code

 

define('HEADING_TITLE', $breadcrumb->last() . ' ' . 'Categories');

Link to comment
Share on other sites

that is a easy one look for

 

define('HEADING_TITLE', $breadcrumb->last() . ' ' . 'Categories');

 

and change that to

 

define('HEADING_TITLE', $breadcrumb->last() );

 

// dont forget that you need 2 parentesis at the end ) );

at the end of the day the code will be good

Link to comment
Share on other sites

successfull editing, but i would like to know about this code, what does this code change, i only applied the first one and it worked

 

Around Line 39:

 

define('HEADING_TITLE', 'Categories');

 

Alter to:

 

define('HEADING_TITLE', $breadcrumb->last() . ' ' . 'Categories');

Link to comment
Share on other sites

Thats not what Im asking....

 

The actual products inside the "Whats New for May" are what I want to change. If I have category #1 and category #2, I ONLY want products from category #1 to show up in that box, NOT products from Category #2.

 

How do I do that?

Link to comment
Share on other sites

ok that code what it dose is the is aprt of a else if

 

"} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'Welcome to ' . STORE_NAME . '!');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', $breadcrumb->last() . ' ' . 'Categories');

"

 

and that controls the page title or the categori name that it would normaly display.

 

 

you will see it better on

 

http://www.oscommerce.com/forums/index.php?s=&...ndpost&p=851060

at the end of the day the code will be good

Link to comment
Share on other sites

you gave link to this post itself. i still did not understand what does this code mean, can you explain in clear english.

 

Around Line 39:

 

define('HEADING_TITLE', 'Categories');

 

Alter to:

 

define('HEADING_TITLE', $breadcrumb->last() . ' ' . 'Categories');

Link to comment
Share on other sites

ok the define is becase it is a constant and the tytle is HEADING_TITLE. now you are setting the value to be $breadcrumb->last() witch is a variable.

 

the vriable $breadcrumb will take the value of the last position.

 

you do have to set that variable in the file name cludes/classes/breadcrumb.php. if you fallow the instructions of that i posted before you should not have any problems

at the end of the day the code will be good

Link to comment
Share on other sites

i never said i had any probs, look i even added this code in to includes/languages/english/index.php but nothing changed the first part of your code helped me, but i wanted to know that if i dont change this line 39 code will i face any probs (currently i am satisfied with you code for line 19) . hope you understand

Link to comment
Share on other sites

Thats not what Im asking....

 

The actual products inside the "Whats New for May" are what I want to change. If I have category #1 and category #2, I ONLY want products from category #1 to show up in that box, NOT products from Category #2.

 

How do I do that?

Link to comment
Share on other sites

ok the "New Products For May"

really looks like

 

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

 

so if you want to remove the word may just take out %s

 

Hi, I have a quick question regarding 'New products for May'

 

I have removed the text from the title bar of this box, but I would now like to remove the title bar completely, so that when the site loads the new products appear but just in a box.

 

What part of the code (and where) would I need to change to remove the title bar of this box only?

 

Hope you can help, thanks

Link to comment
Share on other sites

hello MoisesZaragoza i saw your website and under it the page all products. i do need the same, i think you used it from contribution, but i want one more thing in it, look what i want

 

in your all products page, there is the buy now button beside every product, but hey i would like to have one more feature. i want a checkbox beside every product. when the buyer selects the checkbox and then presses a buy now button at the end of all rpducts, he can add many products at a time inspite of having to add each product to the cart. do you know how to do it. or do i need to explain more.

Link to comment
Share on other sites

Hi, I have a quick question regarding 'New products for May'

 

I have removed the text from the title bar of this box, but I would now like to remove the title bar completely, so that when the site loads the new products appear but just in a box.

 

What part of the code (and where) would I need to change to remove the title bar of this box only?

 

Hope you can help, thanks

 

 

ok if you want to remove the bar you will have to go to:

 

includes/modules/new_products.php

and look for

 

new contentBoxHeading($info_box_contents);

 

anf just coment it out so it looks like

 

# new contentBoxHeading($info_box_contents);

 

That shoud do it

at the end of the day the code will be good

Link to comment
Share on other sites

ok if you want to remove the bar you will have to go to:

 

includes/modules/new_products.php

and look for

 

new contentBoxHeading($info_box_contents);

 

anf just coment it out so it looks like

 

# new contentBoxHeading($info_box_contents);

 

That shoud do it

 

Damn you're quick, and good! I had isolated that bit of code but wasn't sure if I could comment it out. It's working like a charm, I thank you.

Link to comment
Share on other sites

hello MoisesZaragoza i saw your website and under it the page all products. i do need the same, i think you used it from contribution, but i want one more thing in it, look what i want

 

in your all products page, there is the buy now button beside every product, but hey i would like to have one more feature. i want a checkbox beside every product. when the buyer selects the checkbox and then presses a buy now button at the end of all rpducts, he can add many products at a time inspite of having to add each product to the cart. do you know how to do it. or do i need to explain more.

 

 

Ok my all products dose not come from a contribution i actually have a category named all and i have a copy of all there.

 

I do not know how to do the check box but i am sure some one here should be able to help you

at the end of the day the code will be good

Link to comment
Share on other sites

Damn you're quick, and good! I had isolated that bit of code but wasn't sure if I could comment it out. It's working like a charm, I thank you.

 

 

Thanks i am flattered that you think i am good.

at the end of the day the code will be good

Link to comment
Share on other sites

ok i dont know if i am getting this right.

you want to have a category with all your products?

 

if that is what you want to do. you just create a cat named all and then jusr link each product to it. ot takes some time but it will go fast once you have the hang of it

at the end of the day the code will be good

Link to comment
Share on other sites

ok, once again:

 

I have 2 product categories: category #1 and category #2. All the newest products are from category #2, and so the only products that show up in the "New Products For May" box at the bottom are from category #2. What I want is to ONLY have products from Category #1 show up in the "New Products For May" box. When people look at the "Whats New For May" box, I dont want them to see ANY products from Category #2. How do I accomplish this?

 

I dont know how to make myself any more clear...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...