Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Categories - shopping cart - breadcrumb


smartsaga

Recommended Posts

Posted

I came across the need to show the last used $breadcrumb->trail info on the shopping cart where a customer hits the "Add to cart" button. Here is how it goes:

 

1. The producs are all in one big mondo category arranged in subcategories.

2. Most products appear in most of the categories on the website.

3. Customer clicks down through subcategories and finds the desired product.

4. Customer clicks on "Add to cart". NOTE: There is a breadcrumb trail in this page where the "Add to cart" button is. This is the breadcrumb info I want to show in the shopping cart.

5. The customer is taken to a page wher he/she may select the color, and other properties of the product and then click "Add to cart" again.

6. Customer now sees the shoping cart page and:

- Sees the product desciption

- Does not see from which "fake" category he selected the product from.

 

I would like to see an option to display this info not only in the shopping cart page but also on the Order Review on the admin side.

 

Why?

 

Lets say the customer adds two items to the cart. Maybe the same item but from another subcategory. I want the customer to know from which subcategory the product was added and reord that info so that it displays on the admin side under Order Review.

 

It would be useful to have a function that we could call, say for example, display_last_trail(); or something like that anywhere on the page or subsequent pages.

 

I hope I am not being too confusing. I just could not figure out how to do it. I was thinking of using the function that creates and returns $cPath but that only shows the info of the product not where it came from on the website, a.k.a. the last $breadcrumb->trail.

 

Have a good one.

Archived

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

×
×
  • Create New...