osCmax v2.5 User Manual
Results 1 to 3 of 3

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 ...

      
  1. #1
    Anonymous
    Guest


    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

  2. #2
    Member
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    69
    Rep Power
    0


    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

  3. #3
    Member
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    69
    Rep Power
    0


    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

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •