Share » Forums » General » Add to basket quantity field ?

Add to basket quantity field ?

Add to basket quantity field ?

Monday 12 March 2007 5:38:15 am - 3 replies

Author Message

Bruce Morrison

Monday 12 March 2007 4:02:20 pm

Hi Martin

I've had a quick look over the code (3.8.6) and it would appear that there is no facility to allow for what you want. You'd have to create a custom module or patch the corew to achieve this.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

christian bencivenni

Saturday 17 November 2007 11:59:11 am

No one had found a way?

Lo' F.

Sunday 17 April 2011 9:01:35 am

This post is relatively old, anyway...

I wanted to integrate an input field too, allowing clients to define the quantity directly from the product page and.. here's the way:

the kernel/shop/basket.php has it already pre-defined...

...


if ( $http->hasPostVariable( "Quantity" ) )
    {
        $quantity = (int)$http->postVariable( "Quantity" );
        if ( $quantity <= 0 )
        {
            $quantity = 1;
        }
    }
    else
    {
        $quantity = 1;
    }
...

...just need to add the input field inside the form

...


<input type="text" name="Quantity" size="2" value="1" />
...

Might save some time to some others.. that's it!

loredanaebook.it

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu