osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Best way of controlling (max one product at checkout)

This is a discussion on Best way of controlling (max one product at checkout) within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; Hi as the subject suggests. I was wondering if anyone has ever attempted to configure their site to only allow ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 03-29-2004, 12:57 AM
Anonymous
Guest
 
Posts: n/a
Default Best way of controlling (max one product at checkout)

Hi as the subject suggests.

I was wondering if anyone has ever attempted to configure their site to only allow one product at checkout.

What would your suggestion be in doing so?

Edit the classes/shopping_cart.php??
Remove Qty and buttons etc in the shopping_cart_tpl.php?
Implications with cookies stored?

Well any thoughts, ideas or its impossible are welcomed!

regads

Mike Van diike in Greece

www.mobilegamer.gr
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 03-29-2004, 02:50 AM
Member
 
Join Date: Nov 2003
Location: Greece
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
vandiike
Default

I saw on another post: http://oscdox.com/index.php?name=PNp...mp;p=7786#7786

about editing: includes/application_top.php


What do you think? initiate another tep_redirect??

Regards

Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 03-30-2004, 02:33 AM
Member
 
Join Date: Nov 2003
Location: Greece
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
vandiike
Default

OK got it.

in includes/application_top.php

put:

// customer adds a product from the products page
case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) {
if ($cart->count_contents() == 0) {
$cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']);
}
}
tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));
break;

in this case the add item is not working if there is already a product in the cart.

With regards to Jfield

Cheers

Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
checkout bug, picture doesnt show during checkout ogilirca osCMax v2 Installation issues 1 05-31-2006 06:04 AM
Downloadable product error on checkout robfor osCMax v2 Features Discussion 2 05-20-2006 04:23 AM
controlling text width in right/left columns. lhotch osCMax v1.7 Discussion 3 09-29-2004 01:38 PM
Tax is lost at checkout if product weight is zero NickW osCMax v1.7 Installation 4 08-10-2004 03:09 AM
pricing tweks on product info page and checkout cvc505 osCommerce 2.2 Installation Help 0 06-28-2003 05:01 AM


All times are GMT -8. The time now is 05:19 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax