like these lines in .install file not work properly, there is no such "content" module in D7, and even i've installed cck, the code is still not work. content_notify is undefined functions.

//drupal_load("module", "content");
//content_notify("install", "codeless_discounts");

Even i comment out all lines of .install file and enabled the module, the module not work properly, when i go to product->manage field, there is not such codeless_dicount field in the drop-down list i can select.

i think the module is lack of hook_field_schema (), the field type can't be created.

Comments

hkvega01’s picture

Bugs of codeless discount code all fixed, i almost wrote a new module. Discount code not work all fixed, need to fix arg2->XXXX get the discount code from the pane and convert the sql statement from d6 to d7. but there are two bugs,

1) the javascript got error

ReferenceError: uc_discountsOnLoad is not defined

...nction($){jQuery(document).ready(function () { uc_discountsOnLoad(e); })})(jQuer...

2) sometimes when submitted a discount code, the credit card module will be displayed.

If someone can fix about two bugs, i will post my code.

thanks

hkvega01’s picture

i just fixed All bugs of uc_discount_alt & codeless discount field and totally but except one thing, first time to load checkout page still not update the line items, because of the javascript is not work in drupal 7, please see the following thread,

http://drupal.org/node/1942524

drupal 7 seems not using js script to update line items, so i can't still make onload update line items. but if any method onload can call "uc_quote_checkout_returned_rates" of module uc_quote, that will solve the problems

polishyourimage’s picture

Can you post your patch for fixing the "Content" module dependency?

dvasquez’s picture

Hello, did you fix the problem?
Thanks!

dvasquez’s picture

Issue summary: View changes

lack of hook_field_schema ()

tinker’s picture

Issue summary: View changes
Status: Active » Closed (fixed)

Most of this should be fixed in 7.x-2.0-alpha2. Please note that the 'codeless_discount_field' and 'product_price_alterer' submodules have not yet been ported to drupal 7. Your site should not allow these to be installed.