6 replies [Last post]
charleston's picture
Offline
Joined: 10/01/2007
Juice: 14
Was this information Helpful?

Hi Guys,

Can anyone tell me if this is possible to have a Shopping cart and a Quote cart on ubercart site? I have products that have price and when I'm going to add cart it will added to the shopping cart to process paypal or credit card transaction. On the other hand I have also products that don't have price and to be request for quotation from the customer.

Any tips or feedback about this functionality? or how it can be done through ubercart. Thank you cheers! Smiling

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Shopping cart and Quote cart

The easiest thing to do would be to write a module that implements hook_nodeapi(). When the $op is 'view', it acts like hook_form_alter(), but instead of a form, you can change the $node->content array. Then, you can do something like

<?php
 
if ($node->sell_price == 0){
    unset(
$node->content['add_to_cart']);
  }
?>

to prevent the add to cart form from displaying. You would also want to disable the add to cart column in the product table. I don't know of a good way to disable some of those forms without hacking the product module.

charleston's picture
Offline
Joined: 10/01/2007
Juice: 14
Re: Re: Shopping cart and Quote cart

Thanks for the quick response Lyle! but I already find a way to interact with add to cart. The only thing that I'm working on right now is where to find the checkout quote script that passing the items variable to -> checkout page -> review page. - $_POST

see attached file on my cart page, as you can see their are two cart, so Shopping cart is no problem I just set to default payment settings to paypal, credit card etc.

On quote cart is where I'm working on. I'm adding a script for it and I need to find the exact script in the cart module to use quotation process. What are your thoughts about this? thanks

AttachmentSize
cart.JPG 77.34 KB
psynaptic's picture
Offline
Early adopter... addicted to alphas.Not KulvikTheminator
Joined: 08/28/2007
Juice: 731
Re: Re: Re: Shopping cart and Quote cart

One of the first few posts I made on these forums was about a 'quote cart' type functionality. It was before the crash so it's not on here any longer. The idea was that each product would have an add to cart button as usual but also have an optional add to quote button. Products could be added to both like in your screen capture. The quote part of the order would then be dealt with manually.

How far are you on with this functionality? I'd love to see what you have.

bmagistro's picture
Offline
Getting busy with the Ubercode.
Joined: 09/24/2007
Juice: 199
Re: Re: Re: Re: Shopping cart and Quote cart

has anyone made any progress with this?

trep316's picture
Offline
Joined: 01/10/2008
Juice: 2
Re: Re: Re: Re: Re: Shopping cart and Quote cart

Hi everyone, I'm one of the people who worked on the project described by the topic starter. To answer some of your questions, the website is up and running, it has been more than 3 weeks now since it was deployed. Both the shopping cart and quote cart are working spectacularly, I'm not sure if I'm allowed to post links of e-commerce websites, but you can check it out by visiting http://furnitureoutlet1.com

The only issue now is that when a customer submits his/her quotation, the email notification describes an online order instead of quotation details. Does anyone have any idea how to implement two different notifications, one for order and the other for quotation. Any help greatly appreciated, thanks. Smiling

Let me just add that you guys are doing a fantastic job, Ubercart, by far is the most flexible and efficient shopping cart application I have ever used. I have been exposed to Zen cart as well as the E-commerce module of Drupal over the past year or so, but none of them even come close to Ubercart (in my opinion).

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: Re: Re: Re: Re: Shopping cart and Quote cart

(This is a side note to say feel free to link to your site, especially a cool looking one like that. Thanks for the praise, and best of luck with the rest of the site build!)