Jump to content

Octane

Members
  • Content count

    11
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Michael
  1. Octane

    Quantity Price Breaks

    I found the issue. Compare the catalog/admin/categories.php file in the distribution with your oscommerce file. There are a couple of sections that have been missed in the install instructions.
  2. Octane

    Quantity Price Breaks

    I spent all morning adding this module to OSC 2.3.3.4 - manually editing all the files that needed to be changed according to the instructions, and I also don't see the part to edit the price breaks when editing a product. Anyone solved this issue?
  3. Octane

    Need to find specific item in $order

    Thank you WebSource 5, that gave me the info I needed. I got it working. Here is my final source: $products = $cart->get_products(); for ($i=0, $n=sizeof($products); $i<$n; $i++) { if ($products[$i]['name']=="Ultra Race Fuel Concentrate") { $this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_SALARGEPARCEL_TEXT_TITLE, 'methods' => array(array('title' => $this->quotes['error']))); $this->quotes['error'] = 'NF Ultra Race Fuel Concentrate cannot be shipped by airmail.'; return $this->quotes; } }
  4. Octane

    Need to find specific item in $order

    This is what I'm trying to do: if (in_array("Ultra Race Fuel Concentrate", $cart->get_products())) { $this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_SALARGEPARCEL_TEXT_TITLE, 'methods' => array(array('title' => $this->quotes['error']))); $this->quotes['error'] = 'NF Ultra Race Fuel Concentrate cannot be shipped by airmail.'; return $this->quotes; }
  5. Octane

    Need to find specific item in $order

    Thanks for the quick reply. I still can't seem to get it to work. This is the code I've got: $foundultra = false; if (in_array("Ultra Race Fuel Concentrate", $cart->get_products())) { $foundultra = true; } However when I test for it, it always tests false. The product is in the array: print_r ($cart->get_products()); This shouldn't be that difficult. I'm wondering about myself today.
  6. I have a certain product that cannot be sent by airmail. I am trying to modify my shipping module to throw an error if this product is in their cart. My php skills are very basic. Please excuse the stupid question. I do need to sort this out though. I've tried the following: $foundproduct = false; if (in_array("product", $order)) { $foundproduct = true; } This gives me the following error: Can someone please give me the correct php? Thanks
  7. I am also using the spu.php (Store Pick Up Contribution). I was wondering if it is possible to modify it so that in checkout_shipping.php it only shows the title: Collect your order R0.00 o But in checkout_confirmation.php it will add an address etc. Shipping Method (Edit) Collect your order My Shop Street My Shop Suburb My Shop Postcode Is this possible?
  8. Octane

    NEW! Complete Order Editing Tool!

    Are there step-by-step instructions on how to install this please? I hope this isn't a repost, but 152 pages is taking me ages to read through! Thanks Michael
×