chrometweaks.org

I need to know how to create outside web links using iPage?

Click Here To View All Answers...


Quick question: I need to know how to create outside web links using iPage? Thanks in advance for any comment. My other question... Hi Please Help.

I am trying to add a quantity field (same as you find in the shopping cart.php)in the product listing part of the index.php file..

Can any tell me if this is possable or how??.

Thanks.

Tony..

Comments (128)

Good question... I dunno what is the answer. I'll do some Googling and get back to you if I discover an good answer. You should email the people at iPage as they probably can answer it..

Comment #1

Thanks Sam..

But I am not to good at php and I`am not where in the index.php I should add the coding?.

Also does p.products_quantity refer to the stock quantity. ( I need the quantity someone wants to buy).

In the product_listing.php file do I simply add...

Case 'PRODUCT_LIST_BUYQUANTITY':.

$lc_text = TABLE_HEADING_BUYQUAMTITY;.

$lc_align = 'center';.

Break;.

Sorry to be a pain!!.

Tony..

Comment #2

Try this contribution.

5553_Qty_Product_Page.

Or do you mean stock?..

Comment #3

Hi Geoffrey.

Thanks for your help..

I have searched for 5553_Qty_Product_Page but can not find anything..

No I don`t mean stock quantity, It is the quantity to buy that I need..

Tony..

Comment #4

You can find how to do it here:.

Http://www.oscommerce.info/kb/osCommerce/G..._and_Tricks/246..

Comment #5

Hi Just found it (5553) I will try it out later..

Thanks..

Comment #6

I tried that process from the Tips and Tricks, but I am getting an error when clicking to see the product info detail page. Any other thoughts on this? I'm also in need of this feature...

Comment #7

Hi.

I got an error just the same at first, but it was because I had placed the input text in the wrong place..

TONY..

Comment #8

Where did you put it to make it work? I put it right where it was directed to go....within the <td> tag. Didn't look right in Homesite when I did it (not the right color)...

Comment #9

Hi.

I added the code within the <td>Tags but before the code already there to try and get the box on the left of the button,.

When I moved it to the end just before the </td> and after the ?> tags all worked fine..

Tony..

Comment #10

I tried it again and it worked, thanks! It isn't looking even though....I'll have to try to improve the 'look'...

Comment #11

Hi All,.

Adding the box is no problem, but when it comes to application_top - my code looks different..

My code.

{$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']);.

What to look for:.

$cart->add_cart($_POST['products_id'], $cart->get_quantity(tep_get_uprid($_POST['products_id'], $_POST['id']))+1, $_POST['id']);.

What to replace with:.

$cart->add_cart($_POST['products_id'], $cart->get_quantity(tep_get_uprid($_POST['products_id'], $_POST['id']))+$_POST['products_id'], $_POST['id']);.

Anyone who can help with this..

I am running OSC 2.2MS2.

Thanks.

Kenneth..

Comment #12

Hi Please Help.

I am trying to add a quantity field (same as you find in the shopping cart.php)in the product listing part of the index.php file..

Can any tell me if this is possable or how??.

Thanks.

Tony..

Comment #13

Pretty simple add p.products_quantity to the product queries in index.php then edit product_listing.php in includes/modules to display...

Comment #14


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