• My account
    • (X)Sign in

      I am a returning customer at TYPO3 Multishop

      Enter your username and password here in order to log in on the website:

      Forgot your password?

      Not yet customer of TYPO3 Multishop?

      • Order history
      • Automatic generated e-mail history
      • Track your Order
      New at TYPO3 Multishop
You are here:

Help by translating Multishop in your local language

On the following page you can help by translating Multishop in your local language:




The following language are already translated by our supporters:

  • Dutch
  • German
  • French

Obtain the quantity field value

Author Message
Multishop experienced
Topic creator
registered since: 08.06.2013
Posts: 9
Dear all,

I additional question to my previous solved thread (https://www.typo3multishop.com/forum/list_post/product-listing-multiple-select-and-multiple-add-to-cart-561/):

My products are listed in a single line down by down and the user has the possiblity to enter a quantity value and click on the "add to cart" button in EACH line.

There is no need for a detail page. That works pretty fine.

But after clicking on the add to cart button the quantitiy field gets empty, allthough my basket is updated.

For this purpose I tried th following code in my modified product_listing.php for obtaining the quantity field value as a $_POST variable ($qty or $qty2) but unfortunately without success:

$button_submit = '<input type="text" ' .$qtydisplay. 'id="quantity" size="5" name="quantity" value="';
$qty = $_POST['quantity'];
$qty2 = $_REQUEST['quantity'];
$button_submit .= $qty2;
$button_submit .= '" >&nbsp;';
//$button_submit .= '<input name="Submit" type="submit" value="'. $this->pi_getLL('checkout') .'"/>';
$button_submit .= '<input name="products_id" id="products_id" type="hidden" value="'.$product['products_id'].'" /><input id="multishop_add_to_cart" ' .$qtydisplay. 'name="Submit" type="submit" value="Add to cart"/>';


Does anyone an idea how to solve this?


[This article was edited 2 times, at last 12.07.2013 at 12:51.]
Written on: 12. 07. 2013 [12:50]
Bas van Beek
Multishop guru
registered since: 12.05.2010
Posts: 644
Update to V3 and if the issue still there post on:


Also try our package:


Written on: 23. 06. 2014 [20:29]