Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Credit Class/Gift Vouchers/Discount Coupons 5.10


Strider

Recommended Posts

Hey,

 

I'm not sure of the exact answer, but here are some places to start.

 

Check your config files:

 

includes/configure.php

--and--

admin/includes/configure.php

 

Make sure there are no paths to "admin" in anything that says "catalog". 

 

Then you can check your filename definitions in:

 

includes/filenames.php

 

and make sure there are no paths to "admin" where there shouldn't be.

 

I'm sure someone on this thread can pinpoint the exact place, but this should get you started in the right direction.

that worked, I had a bad entry for some reason.

 

Thank you

Link to comment
Share on other sites

  • Replies 4.8k
  • Created
  • Last Reply

Top Posters In This Topic

I have another question. I am trying to install the GV options, but when I go to the modules>order total> it only shows the standard ones. I have ot_coupon and ot_gv.php in the modules directory but they are still not showing up. Is there somewhere I can check to make sure that the right directories are being loaded. The rest of the package is working just fine, just the install part seems to be missing.

 

thank you

-chris

Link to comment
Share on other sites

Strider,

 

5.10c is basically the same as CCGV 5.10b.

 

--- excerpt from contrib section ---

26 Jun 2004 - ccgv-510c Author: Steel Shadow 

I fixed a slight bug in the admin so that now when you click on the Catagory's title it will open the catagory, and show the first subcatagory instead of just staying on what ever catagory you where on before.

----

 

Does anyone know the modified files (or better yet, the modified code) so I don't have to go through 100 files to find one different line? Is it just categories.php?

 

Thanks.

Drive it like you stole it.

Link to comment
Share on other sites

After log-in the following error pops up.

 

1146 - Table 'user_0s61.TABLE_COUPON_GV_CUSTOMER' doesn't exist

 

select amount from TABLE_COUPON_GV_CUSTOMER where customer_id = '2'

 

[TEP STOP]

 

 

Error is on a live store, help please.

Link to comment
Share on other sites

After log-in the following error pops up.

 

1146 - Table 'user_0s61.TABLE_COUPON_GV_CUSTOMER' doesn't exist

 

select amount from TABLE_COUPON_GV_CUSTOMER where customer_id = '2'

 

[TEP STOP]

Error is on a live store, help please.

You need to check your installation, you database tables are not defined properly. Check that you have installed correctly the changes to application_top.php in both the catalog/includes directory and the admin/includes directory. This is where they get defined I think. Also double check the language files. And of course make sure you have run the sql file and created all the needed tables. Craig :)

Happy Coding!

Craig Garrison Sr

Anything worth having, is worth working for.

Multi Vendor Shipping V1.1 Demo Catalog

3 Vendors, each category, "buy" a product from each category to see how MVS works during checkout.

Multi Vendor Shipping V1.1 Demo Admin

login: [email protected]

pass: mvs_demo

MVS Thread:

Multi-Vendor Shipping

My contribs:

Download Multi Vendor Shipping V1.1

Vendor Email

Vendor Info in easypopulate

EZ Price Updater

And more to come!

Link to comment
Share on other sites

I'm wondering if my shopping cart problems could be related to this contribution -- see this forum thread.

 

My shoppingcart.php is as follows. Please let me know if you see any problems that could cause the behavior I'm seeing. I don't mean to dump this in others' laps, but I have really searched to my limits.

 

<?php
/*
 $Id: shopping_cart.php,v 1.35 2003/07/24 21:14:33 Strider Exp $
 $Id: shopping_cart.php,v 1.35 2003/06/25 21:14:33 hpdl Exp $
 $Id: shopping_cart.php,v 1.3.2.6 2003/05/12 23:11:20 wilt Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 class shoppingCart {
   var $contents, $total, $weight, $cartID, $content_type;

   function shoppingCart() {
     $this->reset();
   }

   function restore_contents() {
//ICW replace line
     global $customer_id, $gv_id, $REMOTE_ADDR;
//      global $customer_id;

     if (!tep_session_is_registered('customer_id')) return false;

// insert current cart contents in database
     if (is_array($this->contents)) {
       reset($this->contents);
       while (list($products_id, ) = each($this->contents)) {
         $qty = $this->contents[$products_id]['qty'];
         $product_query = tep_db_query("select products_id from " . TABLE_CUSTOMERS_BASKET . " where customers_id = '" . (int)$customer_id . "' and products_id = '" . tep_db_input($products_id) . "'");
         if (!tep_db_num_rows($product_query)) {
           tep_db_query("insert into " . TABLE_CUSTOMERS_BASKET . " (customers_id, products_id, customers_basket_quantity, customers_basket_date_added) values ('" . (int)$customer_id . "', '" . tep_db_input($products_id) . "', '" . $qty . "', '" . date('Ymd') . "')");
           if (isset($this->contents[$products_id]['attributes'])) {
             reset($this->contents[$products_id]['attributes']);
             while (list($option, $value) = each($this->contents[$products_id]['attributes'])) {
               tep_db_query("insert into " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " (customers_id, products_id, products_options_id, products_options_value_id) values ('" . (int)$customer_id . "', '" . tep_db_input($products_id) . "', '" . (int)$option . "', '" . (int)$value . "')");
             }
           }
         } else {
           tep_db_query("update " . TABLE_CUSTOMERS_BASKET . " set customers_basket_quantity = '" . $qty . "' where customers_id = '" . (int)$customer_id . "' and products_id = '" . tep_db_input($products_id) . "'");
         }
       }
//ICW ADDDED FOR CREDIT CLASS GV - START
       if (tep_session_is_registered('gv_id')) {
         $gv_query = tep_db_query("insert into  " . TABLE_COUPON_REDEEM_TRACK . " (coupon_id, customer_id, redeem_date, redeem_ip) values ('" . $gv_id . "', '" . (int)$customer_id . "', now(),'" . $REMOTE_ADDR . "')");
         $gv_update = tep_db_query("update " . TABLE_COUPONS . " set coupon_active = 'N' where coupon_id = '" . $gv_id . "'");
         tep_gv_account_update($customer_id, $gv_id);
         tep_session_unregister('gv_id');
       }
//ICW ADDDED FOR CREDIT CLASS GV - END
     }

// reset per-session cart contents, but not the database contents
     $this->reset(false);

     $products_query = tep_db_query("select products_id, customers_basket_quantity from " . TABLE_CUSTOMERS_BASKET . " where customers_id = '" . (int)$customer_id . "'");
     while ($products = tep_db_fetch_array($products_query)) {
       $this->contents[$products['products_id']] = array('qty' => $products['customers_basket_quantity']);
// attributes
       $attributes_query = tep_db_query("select products_options_id, products_options_value_id from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where customers_id = '" . (int)$customer_id . "' and products_id = '" . tep_db_input($products['products_id']) . "'");
       while ($attributes = tep_db_fetch_array($attributes_query)) {
         $this->contents[$products['products_id']]['attributes'][$attributes['products_options_id']] = $attributes['products_options_value_id'];
       }
     }

     $this->cleanup();
   }

   function reset($reset_database = false) {
     global $customer_id;

     $this->contents = array();
     $this->total = 0;
     $this->weight = 0;
     $this->content_type = false;

     if (tep_session_is_registered('customer_id') && ($reset_database == true)) {
       tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " where customers_id = '" . (int)$customer_id . "'");
       tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where customers_id = '" . (int)$customer_id . "'");
     }

     unset($this->cartID);
     if (tep_session_is_registered('cartID')) tep_session_unregister('cartID');
   }

   function add_cart($products_id, $qty = '1', $attributes = '', $notify = true) {
     global $new_products_id_in_cart, $customer_id;

     $products_id = tep_get_uprid($products_id, $attributes);
     if ($notify == true) {
       $new_products_id_in_cart = $products_id;
       tep_session_register('new_products_id_in_cart');
     }

     if ($this->in_cart($products_id)) {
       $this->update_quantity($products_id, $qty, $attributes);
     } else {
       $this->contents[] = array($products_id);
       $this->contents[$products_id] = array('qty' => $qty);
// insert into database
       if (tep_session_is_registered('customer_id')) tep_db_query("insert into " . TABLE_CUSTOMERS_BASKET . " (customers_id, products_id, customers_basket_quantity, customers_basket_date_added) values ('" . (int)$customer_id . "', '" . tep_db_input($products_id) . "', '" . $qty . "', '" . date('Ymd') . "')");

       if (is_array($attributes)) {
         reset($attributes);
         while (list($option, $value) = each($attributes)) {
           $this->contents[$products_id]['attributes'][$option] = $value;
// insert into database
           if (tep_session_is_registered('customer_id')) tep_db_query("insert into " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " (customers_id, products_id, products_options_id, products_options_value_id) values ('" . (int)$customer_id . "', '" . tep_db_input($products_id) . "', '" . (int)$option . "', '" . (int)$value . "')");
         }
       }
     }
     $this->cleanup();

// assign a temporary unique ID to the order contents to prevent hack attempts during the checkout procedure
     $this->cartID = $this->generate_cart_id();
   }

   function update_quantity($products_id, $quantity = '', $attributes = '') {
     global $customer_id;

     if (empty($quantity)) return true; // nothing needs to be updated if theres no quantity, so we return true..

     $this->contents[$products_id] = array('qty' => $quantity);
// update database
     if (tep_session_is_registered('customer_id')) tep_db_query("update " . TABLE_CUSTOMERS_BASKET . " set customers_basket_quantity = '" . $quantity . "' where customers_id = '" . (int)$customer_id . "' and products_id = '" . tep_db_input($products_id) . "'");

     if (is_array($attributes)) {
       reset($attributes);
       while (list($option, $value) = each($attributes)) {
         $this->contents[$products_id]['attributes'][$option] = $value;
// update database
         if (tep_session_is_registered('customer_id')) tep_db_query("update " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " set products_options_value_id = '" . (int)$value . "' where customers_id = '" . (int)$customer_id . "' and products_id = '" . tep_db_input($products_id) . "' and products_options_id = '" . (int)$option . "'");
       }
     }
   }

   function cleanup() {
     global $customer_id;

     reset($this->contents);
     while (list($key,) = each($this->contents)) {
       if ($this->contents[$key]['qty'] < 1) {
         unset($this->contents[$key]);
// remove from database
         if (tep_session_is_registered('customer_id')) {
           tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " where customers_id = '" . (int)$customer_id . "' and products_id = '" . tep_db_input($key) . "'");
           tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where customers_id = '" . (int)$customer_id . "' and products_id = '" . tep_db_input($key) . "'");
         }
       }
     }
   }

   function count_contents() {  // get total number of items in cart
     $total_items = 0;
     if (is_array($this->contents)) {
       reset($this->contents);
       while (list($products_id, ) = each($this->contents)) {
         $total_items += $this->get_quantity($products_id);
       }
     }

     return $total_items;
   }

   function get_quantity($products_id) {
     if (isset($this->contents[$products_id])) {
       return $this->contents[$products_id]['qty'];
     } else {
       return 0;
     }
   }

   function in_cart($products_id) {
     if (isset($this->contents[$products_id])) {
       return true;
     } else {
       return false;
     }
   }

   function remove($products_id) {
     global $customer_id;

     unset($this->contents[$products_id]);
// remove from database
     if (tep_session_is_registered('customer_id')) {
       tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " where customers_id = '" . (int)$customer_id . "' and products_id = '" . tep_db_input($products_id) . "'");
       tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where customers_id = '" . (int)$customer_id . "' and products_id = '" . tep_db_input($products_id) . "'");
     }

// assign a temporary unique ID to the order contents to prevent hack attempts during the checkout procedure
     $this->cartID = $this->generate_cart_id();
   }

   function remove_all() {
     $this->reset();
   }

   function get_product_id_list() {
     $product_id_list = '';
     if (is_array($this->contents)) {
       reset($this->contents);
       while (list($products_id, ) = each($this->contents)) {
         $product_id_list .= ', ' . $products_id;
       }
     }

     return substr($product_id_list, 2);
   }

   function calculate() {
     $this->total_virtual = 0; // ICW Gift Voucher System
     $this->total = 0;
     $this->weight = 0;
     if (!is_array($this->contents)) return 0;

     reset($this->contents);
     while (list($products_id, ) = each($this->contents)) {
       $qty = $this->contents[$products_id]['qty'];

// products price
       $product_query = tep_db_query("select products_id, products_price, products_tax_class_id, products_weight from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'");
       if ($product = tep_db_fetch_array($product_query)) {
// ICW ORDER TOTAL CREDIT CLASS Start Amendment
         $no_count = 1;
         $gv_query = tep_db_query("select products_model from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'");
         $gv_result = tep_db_fetch_array($gv_query);
         if (ereg('^GIFT', $gv_result['products_model'])) {
           $no_count = 0;
         }
// ICW ORDER TOTAL  CREDIT CLASS End Amendment
         $prid = $product['products_id'];
         $products_tax = tep_get_tax_rate($product['products_tax_class_id']);
         $products_price = $product['products_price'];
         $products_weight = $product['products_weight'];

         $specials_query = tep_db_query("select specials_new_products_price from " . TABLE_SPECIALS . " where products_id = '" . (int)$prid . "' and status = '1'");
         if (tep_db_num_rows ($specials_query)) {
           $specials = tep_db_fetch_array($specials_query);
           $products_price = $specials['specials_new_products_price'];
         }

         $this->total_virtual += tep_add_tax($products_price, $products_tax) * $qty * $no_count;// ICW CREDIT CLASS;
         $this->weight_virtual += ($qty * $products_weight) * $no_count;// ICW CREDIT CLASS;
         $this->total += tep_add_tax($products_price, $products_tax) * $qty;
         $this->weight += ($qty * $products_weight);
       }

// attributes price
       if (isset($this->contents[$products_id]['attributes'])) {
         reset($this->contents[$products_id]['attributes']);
         while (list($option, $value) = each($this->contents[$products_id]['attributes'])) {
           $attribute_price_query = tep_db_query("select options_values_price, price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id = '" . (int)$prid . "' and options_id = '" . (int)$option . "' and options_values_id = '" . (int)$value . "'");
           $attribute_price = tep_db_fetch_array($attribute_price_query);
           if ($attribute_price['price_prefix'] == '+') {
             $this->total += $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax);
           } else {
             $this->total -= $qty * tep_add_tax($attribute_price['options_values_price'], $products_tax);
           }
         }
       }
     }
   }

   function attributes_price($products_id) {
     $attributes_price = 0;

     if (isset($this->contents[$products_id]['attributes'])) {
       reset($this->contents[$products_id]['attributes']);
       while (list($option, $value) = each($this->contents[$products_id]['attributes'])) {
         $attribute_price_query = tep_db_query("select options_values_price, price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id = '" . (int)$products_id . "' and options_id = '" . (int)$option . "' and options_values_id = '" . (int)$value . "'");
         $attribute_price = tep_db_fetch_array($attribute_price_query);
         if ($attribute_price['price_prefix'] == '+') {
           $attributes_price += $attribute_price['options_values_price'];
         } else {
           $attributes_price -= $attribute_price['options_values_price'];
         }
       }
     }

     return $attributes_price;
   }

   function get_products() {
     global $languages_id;

     if (!is_array($this->contents)) return false;

     $products_array = array();
     reset($this->contents);
     while (list($products_id, ) = each($this->contents)) {
       $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_model, p.products_image, p.products_price, p.products_weight, p.products_tax_class_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$products_id . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
       if ($products = tep_db_fetch_array($products_query)) {
         $prid = $products['products_id'];
         $products_price = $products['products_price'];

         $specials_query = tep_db_query("select specials_new_products_price from " . TABLE_SPECIALS . " where products_id = '" . (int)$prid . "' and status = '1'");
         if (tep_db_num_rows($specials_query)) {
           $specials = tep_db_fetch_array($specials_query);
           $products_price = $specials['specials_new_products_price'];
         }

         $products_array[] = array('id' => $products_id,
                                   'name' => $products['products_name'],
                                   'model' => $products['products_model'],
                                   'image' => $products['products_image'],
                                   'price' => $products_price,
                                   'quantity' => $this->contents[$products_id]['qty'],
                                   'weight' => $products['products_weight'],
                                   'final_price' => ($products_price + $this->attributes_price($products_id)),
                                   'tax_class_id' => $products['products_tax_class_id'],
                                   'attributes' => (isset($this->contents[$products_id]['attributes']) ? $this->contents[$products_id]['attributes'] : ''));
       }
     }

     return $products_array;
   }

   function show_total() {
     $this->calculate();

     return $this->total;
   }

   function show_weight() {
     $this->calculate();

     return $this->weight;
   }
// CREDIT CLASS Start Amendment
   function show_total_virtual() {
     $this->calculate();

     return $this->total_virtual;
   }

   function show_weight_virtual() {
     $this->calculate();

     return $this->weight_virtual;
   }
// CREDIT CLASS End Amendment

   function generate_cart_id($length = 5) {
     return tep_create_random_value($length, 'digits');
   }

   function get_content_type() {
     $this->content_type = false;

     if ( (DOWNLOAD_ENABLED == 'true') && ($this->count_contents() > 0) ) {
       reset($this->contents);
       while (list($products_id, ) = each($this->contents)) {
         if (isset($this->contents[$products_id]['attributes'])) {
           reset($this->contents[$products_id]['attributes']);
           while (list(, $value) = each($this->contents[$products_id]['attributes'])) {
             $virtual_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD . " pad where pa.products_id = '" . (int)$products_id . "' and pa.options_values_id = '" . (int)$value . "' and pa.products_attributes_id = pad.products_attributes_id");
             $virtual_check = tep_db_fetch_array($virtual_check_query);

             if ($virtual_check['total'] > 0) {
               switch ($this->content_type) {
                 case 'physical':
                   $this->content_type = 'mixed';

                   return $this->content_type;
                   break;
                 default:
                   $this->content_type = 'virtual';
                   break;
               }
             } else {
               switch ($this->content_type) {
                 case 'virtual':
                   $this->content_type = 'mixed';

                   return $this->content_type;
                   break;
                 default:
                   $this->content_type = 'physical';
                   break;
               }
             }
           }
// ICW ADDED CREDIT CLASS - Begin
         } elseif ($this->show_weight() == 0) {
           reset($this->contents);
           while (list($products_id, ) = each($this->contents)) {
             $virtual_check_query = tep_db_query("select products_weight from " . TABLE_PRODUCTS . " where products_id = '" . $products_id . "'");
             $virtual_check = tep_db_fetch_array($virtual_check_query);
             if ($virtual_check['products_weight'] == 0) {
               switch ($this->content_type) {
                 case 'physical':
                   $this->content_type = 'mixed';

                   return $this->content_type;
                   break;
                 default:
                   $this->content_type = 'virtual_weight';
                   break;
               }
             } else {
               switch ($this->content_type) {
                 case 'virtual':
                   $this->content_type = 'mixed';

                   return $this->content_type;
                   break;
                 default:
                   $this->content_type = 'physical';
                   break;
               }
             }
           }
// ICW ADDED CREDIT CLASS - End
         } else {
           switch ($this->content_type) {
             case 'virtual':
               $this->content_type = 'mixed';

               return $this->content_type;
               break;
             default:
               $this->content_type = 'physical';
               break;
           }
         }
       }
     } else {
       $this->content_type = 'physical';
     }

     return $this->content_type;
   }

   function unserialize($broken) {
     for(reset($broken);$kv=each($broken);) {
       $key=$kv['key'];
       if (gettype($this->$key)!="user function")
       $this->$key=$kv['value'];
     }
   }

  // ------------------------ ICW CREDIT CLASS Gift Voucher Addittion-------------------------------Start
  // amend count_contents to show nil contents for shipping
  // as we don't want to quote for 'virtual' item
  // GLOBAL CONSTANTS if NO_COUNT_ZERO_WEIGHT is true then we don't count any product with a weight
  // which is less than or equal to MINIMUM_WEIGHT
  // otherwise we just don't count gift certificates

   function count_contents_virtual() {  // get total number of items in cart disregard gift vouchers
     $total_items = 0;
     if (is_array($this->contents)) {
       reset($this->contents);
       while (list($products_id, ) = each($this->contents)) {
         $no_count = false;
         $gv_query = tep_db_query("select products_model from " . TABLE_PRODUCTS . " where products_id = '" . $products_id . "'");
         $gv_result = tep_db_fetch_array($gv_query);
         if (ereg('^GIFT', $gv_result['products_model'])) {
           $no_count=true;
         }
         if (NO_COUNT_ZERO_WEIGHT == 1) {
           $gv_query = tep_db_query("select products_weight from " . TABLE_PRODUCTS . " where products_id = '" . tep_get_prid($products_id) . "'");
           $gv_result=tep_db_fetch_array($gv_query);
           if ($gv_result['products_weight']<=MINIMUM_WEIGHT) {
             $no_count=true;
           }
         }
         if (!$no_count) $total_items += $this->get_quantity($products_id);
       }
     }
     return $total_items;
   }
// ------------------------ ICW CREDIT CLASS Gift Voucher Addittion-------------------------------End
 }
?>

Link to comment
Share on other sites

Hello,

 

This is my first post. I've spent the afternoon adding adding ccgv-510d to my code. From the admin side, the contribution seems to be behaving right, except for the aesthetic issue with BOX_HEADING_GV_ADMIN showing up instead of the correct name for GV admin. I can live with that.

 

More importantly, I am getting a weird and frustrating error when I try to check out. I have my shopping cart loaded up, then I proceed to checkout, and I get this error message:

 

Parse error: parse error, unexpected $ in checkout_shipping.php on line 456

 

I went to checkout_shipping and 456 is the last line of the file and it reads like this:

 

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

Wha happen?!? I already removed the extra space/returns at the end of that file.

 

Application_bottom is in its pristine state from my original osC2.2 MS2 install.

 

I suspect it's a silly syntax error, though it could be related to one of the contribs I have already installed:

 

1. authorize.net AIM v. 1.7

2. product description

3. account balance (I didn't find this gift voucher contribution until after I'd attempted the very simplistic account balance contribution. I've deactivated it through the admin controls and removed all the code I think that could mess anything up, but you never know.)

 

 

Any insight would be greatly appreciated.

Link to comment
Share on other sites

Hello,

 

This is my first post. I've spent the afternoon adding adding ccgv-510d to my code.  From the admin side, the contribution seems to be behaving right, except for the aesthetic issue with BOX_HEADING_GV_ADMIN showing up instead of the correct name for GV admin. I can live with that.

 

More importantly, I am getting a weird and frustrating error when I try to check out.  I have my shopping cart loaded up, then I proceed to checkout, and I get this error message:

 

Parse error: parse error, unexpected $ in checkout_shipping.php on line 456

 

I went to checkout_shipping and 456 is the last line of the file and it reads like this:

 

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

Wha happen?!?  I already removed the extra space/returns at the end of that file.

 

Application_bottom is in its pristine state from my original  osC2.2 MS2 install.

 

I suspect it's a silly syntax error, though it could be related to one of the contribs I have already installed:

 

1. authorize.net AIM v. 1.7

2. product description

3. account balance (I didn't find this gift voucher contribution until after I'd attempted the very simplistic account balance contribution.  I've deactivated it through the admin controls and removed all the code I think that could mess anything up, but you never know.)

Any insight would be greatly appreciated.

 

Your right, it is a syntax error. The message leading you to the end of the file means there is a closing tag missing somewhere. Double check the areas of code you had to modify for the installation. Look for missing "}". Most common. Redo your code copy and paste. Should fix it. Craig :)

Happy Coding!

Craig Garrison Sr

Anything worth having, is worth working for.

Multi Vendor Shipping V1.1 Demo Catalog

3 Vendors, each category, "buy" a product from each category to see how MVS works during checkout.

Multi Vendor Shipping V1.1 Demo Admin

login: [email protected]

pass: mvs_demo

MVS Thread:

Multi-Vendor Shipping

My contribs:

Download Multi Vendor Shipping V1.1

Vendor Email

Vendor Info in easypopulate

EZ Price Updater

And more to come!

Link to comment
Share on other sites

Your right, it is a syntax error. The message leading you to the end of the file means there is a closing tag missing somewhere. Double check the areas of code you had to modify for the installation. Look for missing "}". Most common. Redo your code copy and paste. Should fix it. Craig :)

 

Dear blucollarguy,

 

thank you!!! there were some comment marks that I had missed. :blush:

Link to comment
Share on other sites

is anyone experiencing a problem where the new customer coupon is not being emailed with the coupon code, but instead with a blank spot where it is supposed to be?

Link to comment
Share on other sites

hmn, it's weird, I've uploaded all the files, edit the code easily but when creating a new product with model and name it GIFT25, I still get the shipping charge of $6 when checking out.

 

The $6 is flat charge, I try to switch the option of include shipping to False and then back to True but there is still shipping charge (it does not disappear as it's suppose to). No want would be gift certificate with shipping charge since there is nothing to ship. What did I do wrong? Please help.

 

Btw, this is one of the best hack for OScommerce, I believe it should implemented as a standard feature in the next version.

Link to comment
Share on other sites

I have ccgb-510b installed and the gift voucher side works just fine.

 

I would like to offer a 10% discount coupon. I have tried changing the Coupon Amount under Admin to '10.0000%' instead of '10.0000' (pounds), but at checkout it does not calculate the percentage discount, it keeps taking ?10 off. Also, the email that gets sent says The Gift Voucher is worth ?10.00.

I am using Zone rates in the shipping module.

 

Order total is:

Discount Coupons 9

Gift Vouchers 740

Shipping 2

Sub-Total 1

Tax 3

Total 900

Mary-Ann

Chief Cook and Bottlewasher

Jack-of-All-Trades

Running 2.2MS2

Link to comment
Share on other sites

Hello

 

Great forum...great contribution.  I have read most of the 110 pages and have found a lady that had the same problem as I have.  JaaMor fixed hers through the checkout process file......I tried this and other suggestions but alas I had tried all  but to no avail.  Still can't queue GV or get them to show in the shopping cart box.

 

Problem:

 

Order, pay for GV but it doesn't show up in the shopping cart box nor can you send to someone (link is not there). Nor do any GV show in the queue, even though it is set to true.

 

Trap

 

I'm having this same problem, has anyone solved it yet?

Tara Lang

Link to comment
Share on other sites

I have, it keeps jumping back to 10.0000% when I go back into Coupon Admin  B)

 

It also shows as ?10 in the email that gets sent to the customer instead of 10% off. Is there something on the db that needs changing? I also do not want to send a Welcome email so I have placed a 0 in the 'Welcome Gift Voucher Amount' column under 'My Store'. I will send the voucher to specific people myself. Is this perhaps messing it around?

 

This is my order total for Gift Vouchers. The Discount Coupons' order is in my post above.

order_total.JPG

Thanks

Mary-Ann

Chief Cook and Bottlewasher

Jack-of-All-Trades

Running 2.2MS2

Link to comment
Share on other sites

nam: weight needs to be 0 and downloads = true and model=GIFT*. but there is a problem with flatrate if there is more than a gv in the cart I believe. Also be sure to checkout your checkout_shipping script. The GV_ text is because you didn't include the edit the admin app_top file to include the app_top_ccgv

 

mary: Your discount amount looks fine try editing your Uses per Coupon and Uses per Customer. They need to be reset when you change/edit an existing coupon. They default back to 0 and 1 respectively when editing a coupon.

 

ScrltOTara: make sure your product and model# is set to GIFTwhatever and that you have enabled gift vouchers in admin-modules-order total

 

mjm: I have it running on three sites with linkpoint and I haven't had any problems with it. What problems are you having.

(my knowledge is so small you would think that an ant was a genius in comparison)

Link to comment
Share on other sites

Strider, the total being sent to Linkpoint is different than the total being sent to the OSCommerce admin. Linkpoint is not taking the discount off the order and the user is being charged the full amount. The OSCommerce admin is reporting the total with the discount.

 

I have resolved this problem by commenting out some lines in the Linkpoint script and replacing the total variable, however if you have a better solution I am all ears.

Link to comment
Share on other sites

OK,

 

I've searched the forums and can't seem to find this particular answer.

 

I'd like to somehow embed the coupon code in a link so that all a user has to do is click and the coupon will be applied (if it meets qualifications).

 

For example, I want to send out an email that mentions a discount, like 10% off any order over $100. While I could give them the straight code, and have them enter in the coupon box at checkout, I'd like to eliminate that step for them, since only recipients of that email should receive the discount.

 

I know that once a code has been entered, the code is persistent, so I'm certain there must be a way to do this. I just haven't hit on how.

 

Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...