Zen Cart Logo
Forums / General Questions / Zen Experts... need help with modifying Cross Sell page...

Zen Experts... need help with modifying Cross Sell page...

Locked

Views: 1,301

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
30 Mar 2007, 2:55 AM
#1
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Zen Experts... need help with modifying Cross Sell page...

Hello!

I'm trying to help a client make a modification to his cross sell mod.

Instead of just SHOWING an item for his customers, he wants a buy now button so they can add the product.

You can see what I'm doing here:

http://dev.neoheat.com/index.php?main_page=product_info&cPath=7&products_id=1

(click on the "we also recommend")

I have the "Display Cart After Adding Product" set to false.

I'd like it to return to the same product page after adding to cart, but instead its trying to go to:
http://dev.neoheat.com/index.php?main_page=product_info

I know its an error with my code, I've kind of hacked up the section to get this to work.

Any way I can stop zen cart from trying to change the page at all, after something being added to the cart?

30 Mar 2007, 3:03 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Zen Experts... need help with modifying Cross Sell page...

Can't see your exact code but did notice that the normal product buy button on hover states "add to cart" and this button in the also recommend area on hover states "buy now"...

So I assume that the code snippet that you hacked in is not the same as the "add to cart code....if correct why not?

30 Mar 2007, 12:19 PM
#3
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Zen Experts... need help with modifying Cross Sell page...

kobra:

Can't see your exact code but did notice that the normal product buy button on hover states "add to cart" and this button in the also recommend area on hover states "buy now"...

So I assume that the code snippet that you hacked in is not the same as the "add to cart code....if correct why not?

Its the same as the code from the product listing pages, because I don't want a quantity box.

30 Mar 2007, 5:26 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Zen Experts... need help with modifying Cross Sell page...

Its the same as the code from the product listing pages
I would take a look at the default action of this productlisting page and it may be better to use the code for the "add to cart" or same code and remove the qty display as I think that this routine performs the page direction that you want

30 Mar 2007, 11:54 PM
#5
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Zen Experts... need help with modifying Cross Sell page...

kobra:

I would take a look at the default action of this productlisting page and it may be better to use the code for the "add to cart" or same code and remove the qty display as I think that this routine performs the page direction that you want

I've changed it to match the code that is on the product Info display page, but now that's causing anything I add to the cart to be the last product on the page, since its an input within the add product form. Know what I mean? I had figured that using product listing codes would work, since there can be a product listing (like new products) below a regular product page.

31 Mar 2007, 12:02 AM
#6
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Zen Experts... need help with modifying Cross Sell page...

jettrue:

I've changed it to match the code that is on the product Info display page, but now that's causing anything I add to the cart to be the last product on the page, since its an input within the add product form. Know what I mean? I had figured that using product listing codes would work, since there can be a product listing (like new products) below a regular product page.

Doh, nevermind, there isn't a zen cart setting where new product can be below the product info display page...

But I still wonder if there's a way to do what I want to do without the redirect being messed up...

31 Mar 2007, 12:22 AM
#7
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Zen Experts... need help with modifying Cross Sell page...

jettrue:

Doh, nevermind, there isn't a zen cart setting where new product can be below the product info display page...

But I still wonder if there's a way to do what I want to do without the redirect being messed up...

Woohoo, I got it working by closing the main product form, and then giving each xsell product its own form, YAY~

31 Mar 2007, 1:27 AM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Zen Experts... need help with modifying Cross Sell page...

Great!!! Isn't this partr of the code and did you have to provide unique names for these?

And did you end up with the product listing snippett or the product page snippett?

Pat yourself on the back!!