Jump to content

dwx

Members
  • Content count

    13
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    The User
  1. dwx

    [Contribution] oscThumb

    Would anyone know how to set oscThumb so that every image is 135 pixels x 135 pixels. I do realise that this may stretch the thumbnail that has been created. Further to this if anyone may know would it be possible to make the thumbnail 135 x 135 pixels and have it somehow crop the thumbnail to keep proportions?
  2. dwx

    Master Products - MS2

    I want to get an image button to change the value of a quantity box on the fly (under master_listing.php). Current code: *Note: this is the default *Form* for oscommerce. <form name="buy_now_" method="post" action="http://127.0.0.1/shop/product_info.php?products_id=29&action=add_slave&osCsid=bda5cdffb3966a2dd814f16b3d435cdf"><input type="hidden" name="osCsid" value="bda5cdffb3966a2dd814f16b3d435cdf" /> $lc_text .='<script LANGUAGE="JavaScript"> function writeText (form) { form.qty_prodid_101.value = "1" } </SCRIPT>'; *Note: Products_Id here is equal to 101 $lc_text = 'Quantity:' . tep_draw_input_field('Qty_ProdId_' . $listing['products_id'], '0', 'size="4"'); $lc_text .='<INPUT TYPE="image" SRC="../shop/images/purchase_item.gif" NAME="button" onClick="writeText(this.form)">'; The Goal of this is that when the image is clicked it changes the quantity to 1 which in effect purchases just that individual slave. (there is another slave underneath with a quantity of 0 as well)
  3. dwx

    Master Products - MS2

    so what would the link require then to add an individual slave to the cart?
  4. dwx

    Master Products - MS2

    I have 2 slaves linked to 1 master. I cannot seem to purchase just 1 slave. Here are two methods I am trying with no luck whatsoever. Method 1: If I manually try to add a slave through "product_info.php?product_id=slaveid&action=add_slave" it seems to just result in an empty cart. I imagine that his SHOULD work, any ideas here? Method 2: This code seems to purchase the master and that adds both the slaves to the cart. tep_draw_hidden_field('products_id', $listing['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); $lc_text .= '<br><br><input type="hidden" name="products_id" value="100"><input type="image" src="../shop/images/purchase_item.gif" '; (the value of 100 is in fact the slave product Id) Any ideas/help would be greatly appreciated!
  5. dwx

    Master Products - MS2

    anyone know how i would sort the fields in an options drop down? sizes for clothes seem to come up all over the place, eg: 6,10,16,12
  6. dwx

    Master Products - MS2

    anyone know how i would sort the fields in an options drop down? sizes for clothes seem to come up all over the place, eg: 6,10,16,12
  7. dwx

    Master Products - MS2

    any way to sort the fields in an options drop down? sizes for clothes seem to come up all over the place, eg: 6,10,16,12
  8. dwx

    Master Products - MS2

    i'm trying to get product_info.php to display 2 slave product colum values in a ROW format instead of the column format. eg: How slave products currently display by default. SLAVE PRODUCT 1 | PRICE: $10 | DESCRIPTION | OTHERINFO SLAVE PRODUCT 2 | PRICE: $10 | DESCRIPTION | OTHERINFO How i want it to display: SLAVE PRODUCT 1 PRICE $10 DESCRIPTION OTHERINFO - page break of some sort - SLAVE PRODUCT 2 PRICE $10 DESCRIPTION OTHERINFO I believe there will need to be alot of messing about with master_listing and master_products. Can someone possibly give me the quickest and easiest way to achieve this extra row listing format. Cheers!
  9. dwx

    Master Products - MS2

    i've installed master products and master accessories in the exact order as described in the latest installation update. i can add 2 slave products that are both assigned to a master to the shopping cart okay. when i go to add one of those slave products individually, or if a add a normal product (non-slave and non-master), it proceeds to the shopping cart, only to say it is EMPTY!. any ideas? i feel the problem lies in product_info.php. note: i am using product_listing_col code to show the listing of products in columns, however this should not interfere with this current problem, as current problem seems to be from product_info > shopping_cart.php
×