Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Wife is buggin


jhande

Recommended Posts

Posted

I changed the title in the box header to - "Recent Arrivals".

 

On the home page it displays a random 6 products from all categories, which is fine.

The "more" link takes you to a page which displays all recent arrivals from the past 30 days, which is fine.

 

On a category or sub-category page it displays a random 6 products from the current category or sub-category, that's fine too.

Wifes issue:

The "more" link takes you to a page which displays all recent arrivals from the past 30 days.

She wants instead:

The "more" link to take you to a page which displays only recent arrivals in that category or sub-category from the past 30 days.

 

I told her I don't think that's possible.

 

Is it?

 

If so, how?

 

She's driving me nuts. pinch.gif

I'll be back with a few more of her brillant ideas once my foggy brain clears. crying.gif

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Posted

I changed the title in the box header to - "Recent Arrivals".

 

On the home page it displays a random 6 products from all categories, which is fine.

The "more" link takes you to a page which displays all recent arrivals from the past 30 days, which is fine.

 

On a category or sub-category page it displays a random 6 products from the current category or sub-category, that's fine too.

Wifes issue:

The "more" link takes you to a page which displays all recent arrivals from the past 30 days.

She wants instead:

The "more" link to take you to a page which displays only recent arrivals in that category or sub-category from the past 30 days.

 

I told her I don't think that's possible.

 

Is it?

 

If so, how?

 

She's driving me nuts. pinch.gif

I'll be back with a few more of her brillant ideas once my foggy brain clears. crying.gif

 

Why isn't it possible?

 

Unless I'm missing something currently you have ..

 

More = all recent arrivals

 

you want ..

 

 

More = all recent arrivals WHERE categories_id = X

 

What's the issue?

Posted

Hi Jim

I would imagine there is a contribution for this somewhere.

OR

there is a contribution that adds a "NEW" image to new products this might save you.

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted

I dont understan the question - can you show an example?

 

Sounds like you want to limit the new products box to a per category basis and a 30 day limit?

Posted

Thanks for the reply guys.

 

Let me try to explain better. blush.gif

 

The what's new infobox performs just fine.

 

It's the results on the products_new.php page my wife whats changed.

 

I quess more along the lines of what Robert mentioned.

 

index.php page more link = (products_new.php) all categories

 

category or sub-category page, more link = (products_new.php) only the current category (or sub-category).

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Posted

Why isn't it possible?

 

Unless I'm missing something currently you have ..

 

More = all recent arrivals

 

you want ..

 

 

More = all recent arrivals WHERE categories_id = X

 

What's the issue?

 

Hi Robert,

 

Could you possibly elaborate a bit more on how and where I can implement your suggestion? blush.gif

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Posted
On a category or sub-category page it displays a random 6 products from the current category or sub-category, that's fine too.

 

Good start as the script therefore knows the category id.

 

She wants instead:

The "more" link to take you to a page which displays only recent arrivals in that category or sub-category from the past 30 days.

 

Ok so add to the more link the category id like ?more_cat=xxx

 

On the display page check for $_GET['more_cat'] and if there add it to the query so that only products that are from that category are returned ( see products_to_categories table which you would need to JOIN ).

 

Hope that helps.

Posted

Hope that helps.

 

Thanks Robert, I'll check it out. wink.gif

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Archived

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

×
×
  • Create New...