5 replies [Last post]
arbel's picture
Offline
Bug FinderGetting busy with the Ubercode.
Joined: 08/12/2007
Juice: 331
Was this information Helpful?

Hello,

I'd like the move the attribute selection from the product page to the cart page, any pointers on how to achieve this?

what variable displays the attribute selection in the node.tpl file?

thanks

Idan.

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Moving Attribute selection to cart page

Attributes are tied to the Add to Cart form which is how the customer gets to the cart page in the first place. Moving them from one form to the other would be a pretty significant undertaking.

arbel's picture
Offline
Bug FinderGetting busy with the Ubercode.
Joined: 08/12/2007
Juice: 331
hmm... another sollution to

hmm...

another sollution to what i'm looking for, might be to create a link on the products page (instead of the add to cart button), that will lead to a page generated by a view.

in the link i'll need to send the view the node id of the product and have it display only that product on the page.

I have no idea how to do this, I mean I can create the link but i'm not sure how to supply a view with a variable that will control one of the filters.

also, can the cart page be skipped and go straight to payment? or maybe combine the two into one page?

Thanks

Idan

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3424
Re: hmm... another sollution to

Have you looked at Cart Links? http://www.ubercart.org/docs/1434/cart_links_settings
It might let you do what you want.

<tr>.
arbel's picture
Offline
Bug FinderGetting busy with the Ubercode.
Joined: 08/12/2007
Juice: 331
Re: Re: hmm... another sollution to

Yeh, I don't think they fit.

arbel's picture
Offline
Bug FinderGetting busy with the Ubercode.
Joined: 08/12/2007
Juice: 331
Ok,

Ok,

I've found the sollution to exactly what I needed.

First I created a view with all the product information I wanted.
in this view I added an argurment - node id.

next I created in the product-node.tpl file a link to replace the add to cart link:

<a href="url/view-path-here/<?php print $node->nid; ?>">link text</a>

you can also use $node->title; and the node:title argument in the view for better seo. But I'm working with Hebrew product names so it doesn't really work well in the urls.

Thanks

Idan