Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can you tell me how I did this?


agiftcodotcom

Recommended Posts

Posted

During the development of my site, I made it so that guests could see the model number of the products and they could order multiple quantities without going into the descriptions. See This and you'll see what I mean. Someone asked me how I did this and, to be honest, I don't remember. Does anyone know of simple scripts and/or contributions that make this happen?

Contributions I used : Updated 06-13-04 23:42

----------------

Vote on My Graphis Poll

Posted
During the development of my site, I made it so that guests could see the model number of the products and they could order multiple quantities without going into the descriptions. See This and you'll see what I mean. Someone asked me how I did this and, to be honest, I don't remember. Does anyone know of simple scripts and/or contributions that make this happen?

I think you set this in your admin console under configuration, product listing?

Posted

One down, one to go :D

 

To add a quantity field in the product listing view: go to includes/modules/product_listing.php and replace

 

          case 'PRODUCT_LIST_BUY_NOW':
           $lc_align = 'center';
           $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> ';
           break;
       }

 

With

 

          case 'PRODUCT_LIST_BUY_NOW':
         $lc_align = 'center';
         $lc_text = tep_draw_form('buy_now' . $listing['products_id'], tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']), 'POST') . tep_draw_input_field('list_quantity', '1', 'size=2') . tep_image_submit('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</form> ';
           break;
       }

Contributions I used : Updated 06-13-04 23:42

----------------

Vote on My Graphis Poll

Posted

I'm not sure how you did it, but I used the instructions for 'Add New Product Fields' to get my model numbers (plus many other fields) displayed.

 

http://www.oscommerce.com/community/contri...h,add+new+field

 

HTH,

 

Terry

Terry Kluytmans

 

Contribs Installed: Purchase Without Account (PWA); Big Images, Product Availability, Description in Product Listing, Graphical Infobox, Header Tags Controller, Login Box, Option Type Feature, plus many layout changes & other mods of my own, like:

 

Add order total to checkout_shipment

Add order total to checkout_payment

Add radio buttons at checkout_shipping (for backorder options, etc.)

Duplicate Table Rate Shipping Module

Better Product Review Flow

 

* If at first you don't succeed, find out if there's a prize for the loser. *

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...