chrometweaks.org

Do any web iPage hosting service offered cpanel to manage website or build a web page?

Click Here To View All Answers...


Got a question, hope someone can answer... Do any web iPage hosting service offered cpanel to manage website or build a web page? Thanks for any comment. Another question on my mind: All the items I sell are unique, is there a way to remove the option of having more than one in the cart?.

Cheers all..

Comments (217)

Good question... I dunno what is the right answer. I'll do some research in Google and get back to you if I discover an good answer. You should email the people at iPage as they probably could help you..

Comment #1

There must be a way of disabling this, or locking the box?..

Comment #2

When you add your product to your shop give it a quantity of one and then in your admin do not allow ordering of unstocked products...

Comment #3

Yeah, but the user can still fiddle with the quantity box, which has no meaning, but to display the out of stock warning, if I cant get rid of it, can I just "lock" it?..

Comment #4

In admin under configuration-stock set Allow Checkout to False..

Comment #5

That will stop them from buying extra yes, but it wont stop them trying! does anyone know where abouts the box is created and I can try to lock it..

Cheers..

Comment #6

The box is created in shopping_cart.php......

In my setup it is around line 172, look for this:.

$info_box_contents[$cur_row][] = array('align' => 'center',.

                                            'params' => 'class="productListing-data" valign="top"',.

                                            'text' => tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"')tep_draw_hidden_field('products_id[]', $products[$i]['id']));.

It is the 'text' => tep_draw_input_field above.

I do not know how to "lock" it - in fact it is what I am looking for now.

It would be nice to just have the quantity displayed, not as an input field.

You can hide it by changing tep_draw_input_field.

To.

Tep_draw_hidden_field.

But that's not going to work for me either.

If you figure it out, please post your findings so I can use it also.

Thanks..

Comment #7

OK I found it.......

In shopping_cart.php change this:.

Around line 172 in my setup.

$info_box_contents[$cur_row][] = array('align' => 'center',.

                                            'params' => 'class="productListing-data" valign="top"',.

                                            'text' => tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"')tep_draw_hidden_field('products_id[]', $products[$i]['id']));.

To this:.

$info_box_contents[$cur_row][] = array('align' => 'center',.

                                            'params' => 'class="productListing-data" valign="top"',.

                                            'text' => $products[$i]['quantity']tep_draw_hidden_field('products_id[]', $products[$i]['id']));.

Now the cart should simply display the quantity ordered without giving the customer the option to change the quantity in the cart..

I tested going thru the ordering process and it works for my setup...

Comment #8

Not much you can do with people trying to buy more than what you have, it only shows as an error on their end..

Comment #9

If you hide the box of quantity selection, even so your customers will be able to add items to the cart. it just is enough they click several times in the add cart..

To if it have always the same quantity for all the products, you should edit shopping_cart.php, in includes/classes/..

Comment #10

All the items I sell are unique, is there a way to remove the option of having more than one in the cart?.

Cheers all..

Comment #11

I have searched through tthe whole of the admin and cant find any simple options so I'm guessing it must be coding?! anyone know where it is?..

Comment #12


This question was taken from a support group/message board and re-posted here so others can learn from it.