Jump to content
Vger

[CONTRIBUTION] CCGV (trad)

Recommended Posts

coupon_redeem_track

 

There will be multiple entries for each of those in the 'configuration' table. You need to go through it all and delete all ccgv entries.

 

Vger

Share this post


Link to post
Share on other sites
coupon_redeem_track

 

There will be multiple entries for each of those in the 'configuration' table. You need to go through it all and delete all ccgv entries.

 

Vger

 

Thanks coupon_redeem_track deleted also.

 

I have gone through the configuration table again, I can't find any other rows that mention 'gv' which the others seemed to. I've looked in all the fields for all the rows that exist and I really can't work out what else to remove, this is what I have:

 

configuration_title configuration_key configuration_value

1 Store Name STORE_NAME

2 Store Owner STORE_OWNER

3 E-Mail Address STORE_OWNER_EMAIL_ADDRESS

4 E-Mail From EMAIL_FROM

5 Country STORE_COUNTRY

6 Zone STORE_ZONE

7 Expected Sort Order EXPECTED_PRODUCTS_SORT

8 Expected Sort Field EXPECTED_PRODUCTS_FIELD

9 Switch To Default Language Currency USE_DEFAULT_LANGUAGE_CURRENCY

10 Send Extra Order Emails To SEND_EXTRA_ORDER_EMAILS_TO

11 Use Search-Engine Safe URLs (still in development) SEARCH_ENGINE_FRIENDLY_URLS

12 Display Cart After Adding Product DISPLAY_CART

13 Allow Guest To Tell A Friend ALLOW_GUEST_TO_TELL_A_FRIEND

14 Default Search Operator ADVANCED_SEARCH_DEFAULT_OPERATOR

15 Store Address and Phone STORE_NAME_ADDRESS

16 Show Category Counts SHOW_COUNTS

17 Tax Decimal Places TAX_DECIMAL_PLACES

18 Display Prices with Tax DISPLAY_PRICE_WITH_TAX

19 First Name ENTRY_FIRST_NAME_MIN_LENGTH

20 Last Name ENTRY_LAST_NAME_MIN_LENGTH

21 Date of Birth ENTRY_DOB_MIN_LENGTH

22 E-Mail Address ENTRY_EMAIL_ADDRESS_MIN_LENGTH

23 Street Address ENTRY_STREET_ADDRESS_MIN_LENGTH

24 Company ENTRY_COMPANY_MIN_LENGTH

25 Post Code ENTRY_POSTCODE_MIN_LENGTH

26 City ENTRY_CITY_MIN_LENGTH

27 State ENTRY_STATE_MIN_LENGTH

28 Telephone Number ENTRY_TELEPHONE_MIN_LENGTH

29 Password ENTRY_PASSWORD_MIN_LENGTH

30 Credit Card Owner Name CC_OWNER_MIN_LENGTH

31 Credit Card Number CC_NUMBER_MIN_LENGTH

32 Review Text REVIEW_TEXT_MIN_LENGTH

33 Best Sellers MIN_DISPLAY_BESTSELLERS

34 Also Purchased MIN_DISPLAY_ALSO_PURCHASED

35 Address Book Entries MAX_ADDRESS_BOOK_ENTRIES

36 Search Results MAX_DISPLAY_SEARCH_RESULTS

37 Page Links MAX_DISPLAY_PAGE_LINKS

38 Special Products MAX_DISPLAY_SPECIAL_PRODUCTS

39 New Products Module MAX_DISPLAY_NEW_PRODUCTS

40 Products Expected MAX_DISPLAY_UPCOMING_PRODUCTS

41 Manufacturers List MAX_DISPLAY_MANUFACTURERS_IN_A_LIST

42 Manufacturers Select Size MAX_MANUFACTURERS_LIST

43 Length of Manufacturers Name MAX_DISPLAY_MANUFACTURER_NAME_LEN

44 New Reviews MAX_DISPLAY_NEW_REVIEWS

45 Selection of Random Reviews MAX_RANDOM_SELECT_REVIEWS

46 Selection of Random New Products MAX_RANDOM_SELECT_NEW

47 Selection of Products on Special MAX_RANDOM_SELECT_SPECIALS

48 Categories To List Per Row MAX_DISPLAY_CATEGORIES_PER_ROW

49 New Products Listing MAX_DISPLAY_PRODUCTS_NEW

50 Best Sellers MAX_DISPLAY_BESTSELLERS

51 Also Purchased MAX_DISPLAY_ALSO_PURCHASED

52 Customer Order History Box MAX_DISPLAY_PRODUCTS_IN_ORDER_HISTORY_BOX

53 Order History MAX_DISPLAY_ORDER_HISTORY

54 Small Image Width SMALL_IMAGE_WIDTH

55 Small Image Height SMALL_IMAGE_HEIGHT

56 Heading Image Width HEADING_IMAGE_WIDTH

57 Heading Image Height HEADING_IMAGE_HEIGHT

58 Subcategory Image Width SUBCATEGORY_IMAGE_WIDTH

59 Subcategory Image Height SUBCATEGORY_IMAGE_HEIGHT

60 Calculate Image Size CONFIG_CALCULATE_IMAGE_SIZE

61 Image Required IMAGE_REQUIRED

62 Gender ACCOUNT_GENDER

63 Date of Birth ACCOUNT_DOB

64 Company ACCOUNT_COMPANY

65 Suburb ACCOUNT_SUBURB

66 State ACCOUNT_STATE

67 Installed Modules MODULE_PAYMENT_INSTALLED

68 Installed Modules MODULE_ORDER_TOTAL_INSTALLED

69 Installed Modules MODULE_SHIPPING_INSTALLED

79 Enable Flat Shipping MODULE_SHIPPING_FLAT_STATUS

80 Shipping Cost MODULE_SHIPPING_FLAT_COST

81 Tax Class MODULE_SHIPPING_FLAT_TAX_CLASS

82 Shipping Zone MODULE_SHIPPING_FLAT_ZONE

83 Sort Order MODULE_SHIPPING_FLAT_SORT_ORDER

84 Default Currency DEFAULT_CURRENCY

85 Default Language DEFAULT_LANGUAGE

86 Default Order Status For New Orders DEFAULT_ORDERS_STATUS_ID

87 Display Shipping MODULE_ORDER_TOTAL_SHIPPING_STATUS

88 Sort Order MODULE_ORDER_TOTAL_SHIPPING_SORT_ORDER

89 Allow Free Shipping MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING

90 Free Shipping For Orders Over MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER

91 Provide Free Shipping For Orders Made MODULE_ORDER_TOTAL_SHIPPING_DESTINATION

92 Display Sub-Total MODULE_ORDER_TOTAL_SUBTOTAL_STATUS

93 Sort Order MODULE_ORDER_TOTAL_SUBTOTAL_SORT_ORDER

94 Display Tax MODULE_ORDER_TOTAL_TAX_STATUS

95 Sort Order MODULE_ORDER_TOTAL_TAX_SORT_ORDER

96 Display Total MODULE_ORDER_TOTAL_TOTAL_STATUS

97 Sort Order MODULE_ORDER_TOTAL_TOTAL_SORT_ORDER

98 Country of Origin SHIPPING_ORIGIN_COUNTRY

99 Postal Code SHIPPING_ORIGIN_ZIP

100 Enter the Maximum Package Weight you will ship SHIPPING_MAX_WEIGHT

101 Package Tare weight. SHIPPING_BOX_WEIGHT

102 Larger packages - percentage increase. SHIPPING_BOX_PADDING

103 Display Product Image PRODUCT_LIST_IMAGE

104 Display Product Manufaturer Name PRODUCT_LIST_MANUFACTURER

105 Display Product Model PRODUCT_LIST_MODEL

106 Display Product Name PRODUCT_LIST_NAME

107 Display Product Price PRODUCT_LIST_PRICE

108 Display Product Quantity PRODUCT_LIST_QUANTITY

109 Display Product Weight PRODUCT_LIST_WEIGHT

110 Display Buy Now column PRODUCT_LIST_BUY_NOW

111 Display Category/Manufacturer Filter (0=disable; 1... PRODUCT_LIST_FILTER

112 Location of Prev/Next Navigation Bar (1-top, 2-bot... PREV_NEXT_BAR_LOCATION

113 Check stock level STOCK_CHECK

114 Subtract stock STOCK_LIMITED

115 Allow Checkout STOCK_ALLOW_CHECKOUT

116 Mark product out of stock STOCK_MARK_PRODUCT_OUT_OF_STOCK

117 Stock Re-order level STOCK_REORDER_LEVEL

118 Store Page Parse Time STORE_PAGE_PARSE_TIME

119 Log Destination STORE_PAGE_PARSE_TIME_LOG

120 Log Date Format STORE_PARSE_DATE_TIME_FORMAT

121 Display The Page Parse Time DISPLAY_PAGE_PARSE_TIME

122 Store Database Queries STORE_DB_TRANSACTIONS

123 Use Cache USE_CACHE

124 Cache Directory DIR_FS_CACHE

125 E-Mail Transport Method EMAIL_TRANSPORT

126 E-Mail Linefeeds EMAIL_LINEFEED

127 Use MIME HTML When Sending Emails EMAIL_USE_HTML

128 Verify E-Mail Addresses Through DNS ENTRY_EMAIL_ADDRESS_CHECK

129 Send E-Mails SEND_EMAILS

130 Enable download DOWNLOAD_ENABLED

131 Download by redirect DOWNLOAD_BY_REDIRECT

132 Expiry delay (days) DOWNLOAD_MAX_DAYS

133 Maximum number of downloads DOWNLOAD_MAX_COUNT

134 Enable GZip Compression GZIP_COMPRESSION

135 Compression Level GZIP_LEVEL

136 Session Directory SESSION_WRITE_DIRECTORY

137 Force Cookie Use SESSION_FORCE_COOKIE_USE

138 Check SSL Session ID SESSION_CHECK_SSL_SESSION_ID

139 Check User Agent SESSION_CHECK_USER_AGENT

140 Check IP Address SESSION_CHECK_IP_ADDRESS

141 Prevent Spider Sessions SESSION_BLOCK_SPIDERS

142 Recreate Session SESSION_RECREATE

143 Installed Modules MODULE_STS_INSTALLED

144 Use Templates? MODULE_STS_DEFAULT_STATUS

145 Code for debug output MODULE_STS_DEBUG_CODE

146 Files for normal template MODULE_STS_DEFAULT_NORMAL

147 Base folder MODULE_STS_TEMPLATES_FOLDER

148 Template folder MODULE_STS_TEMPLATE_FOLDER

149 Default template file MODULE_STS_TEMPLATE_FILE

150 Use template for infoboxes MODULE_STS_INFOBOX_STATUS

151 Use template for index page MODULE_STS_INDEX_STATUS

152 Files for index.php template MODULE_STS_INDEX_NORMAL

153 Check parent templates MODULE_STS_INDEX_PARENT

154 Use template for the image popup page MODULE_STS_POPUP_IMAGE_STATUS

155 Files to include MODULE_STS_POPUP_IMAGE_FILES

156 Use template for product info page MODULE_STS_PRODUCT_INFO_STATUS

157 Enable STS3 compatibility mode MODULE_STS_PRODUCT_V3COMPAT

158 Files for normal template MODULE_STS_PRODUCT_INFO_NORMAL

159 Files for content template MODULE_STS_PRODUCT_INFO_CONTENT

160 Send HTML or Text Invoices to Customers EMAIL_INVOICE

161 Default E-Mailed HTML Invoice Template EMAIL_TEMPLATE_FILE

162 Enable PayPal Module MODULE_PAYMENT_PAYPAL_STATUS

163 E-Mail Address MODULE_PAYMENT_PAYPAL_ID

164 Transaction Currency MODULE_PAYMENT_PAYPAL_CURRENCY

165 Sort order of display. MODULE_PAYMENT_PAYPAL_SORT_ORDER

166 Payment Zone MODULE_PAYMENT_PAYPAL_ZONE

167 Set Order Status MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID

168 Last Database Restore DB_LAST_RESTORE

 

 

I'm sure I'm missing something but I can't see what else to remove.

 

Thanks Lotti

Share this post


Link to post
Share on other sites

Agh - you're using the Simple Template System - about which I know less than nothing.

 

Vger

Share this post


Link to post
Share on other sites
Agh - you're using the Simple Template System - about which I know less than nothing.

 

Vger

 

Oh, is that the problem then, I can't use the two contributions together, terrible news.

 

Thanks for trying to help me out.

 

Lotti

Share this post


Link to post
Share on other sites

Hello,

 

I am using the latest CCGV with RC1. The coupons can now be redeemed first time thanks to the session fix by 'bwaters'.

 

However I have a stranger one in admin->coupon_admin.php where the coupon title and description are not showing. They are stored in the database and are shown on the confirmation page but not in the initial table of coupons and not if you edit an old coupon?

 

Simon

Share this post


Link to post
Share on other sites
Hello,

 

I am using the latest CCGV with RC1. The coupons can now be redeemed first time thanks to the session fix by 'bwaters'.

 

However I have a stranger one in admin->coupon_admin.php where the coupon title and description are not showing. They are stored in the database and are shown on the confirmation page but not in the initial table of coupons and not if you edit an old coupon?

 

Simon

 

It looks like coupon_id in the coupon_description table is not being written to i.e. the value is zero. But I don't know why? I am using mysql 4 and php 4.

 

Simon

Share this post


Link to post
Share on other sites

RC1 stands for Release Candidate 1 - and there could well be an RC2, 3,4 and 5. I won't be upgrading CCGV(trad) until it becomes a stable version.

 

Vger

Share this post


Link to post
Share on other sites
RC1 stands for Release Candidate 1 - and there could well be an RC2, 3,4 and 5. I won't be upgrading CCGV(trad) until it becomes a stable version.

 

Vger

 

Thanks. I do understand your point but RC1 is currently the only available download from the osCommerce website. Anyone new to the project in the last month is going to have major issues installing this great contribution.

 

On an aside, purhaps a download history of the project should be made available, allowing new comers to download pre-RC1 snapshots?

 

Cheers

Simon

Share this post


Link to post
Share on other sites
It looks like coupon_id in the coupon_description table is not being written to i.e. the value is zero. But I don't know why? I am using mysql 4 and php 4.

 

Simon

 

It seems that the cid is dropped from the url on the preview page like so...

 

admin/coupon_admin.php?action=update&oldaction=new&cid=

 

The cid is used to assign the coupon_id in the coupon_description table so that is why it is zero. Sorry but still no fix as yet.

 

Simon

Share this post


Link to post
Share on other sites
On an aside, purhaps a download history of the project should be made available, allowing new comers to download pre-RC1 snapshots?

 

I couldn't agree more. Also the PDF download of the Knowledge Base for MS2 has been replaced with the Knowledge Base for MS3 (which hasn't been released and is years behind).

 

In the meantime you can download osCommerce 2.2 MS2 from sourceforge.net

 

I am not going to update CCGV(trad) for a development version of osCommerce. Only last week I downloaded and installed phpBB RC3 and it underwent major changes within days to become RC4.

 

Vger

Share this post


Link to post
Share on other sites
Agh - you're using the Simple Template System - about which I know less than nothing.

 

Vger

 

Sorry, could you answer one more question, is there a definition I need to add to filenames.php?

 

It seems your contribution is compatible with STS, my problem is a missing definition in filenames.php

 

Thanks Lotti

Share this post


Link to post
Share on other sites

Hi there all!

 

I'm hoping someone out there can help me as I have spent 3 days trying to figure this out, scouring both forums and googling.

 

I have managed to get the CCGV contrib working - mostly (thanks to those involved in this version as it cleaned up the mess I had with another ccgv install.)

 

The issue I now have is when I go to the checkout_payment page to pay for an order, when I try to use 'Tick to use Gift Voucher account balance' it tells me I haven't selected a payment method, however, when I select a payment method and then tick the box, it proceeds normally and deducts from the credit in my account.

 

It almost seems like the Gift Voucher needs to be a payment module (even though I know that others have this contrib working so it doesn't need to be!)

 

Any help would be much appreciated.

 

R. Sam

Share this post


Link to post
Share on other sites

The latest version of CCGV (trad) doesn't have that problem - because I removed the 'Redeem' button on the Checkout Payment page.

 

The problem previously was that there were two 'forms' nested in that page and it wasn't possible to seperate them.

 

If you clicked the Redeem button before selecting a Payment method then you got that error - which you would get anyway if you tried to proceed without selecting a payment method. By removing the Redeem button then all you have to do now is to click 'Continue' and it works fine.

 

Vger

Share this post


Link to post
Share on other sites

Thank you for this... it is exactly what I need!

One problem I have run into is after redeeming a credit voucher when I try to pay using it I dont see the "tick to use' box I am reading about in this forum. All I see in the 'Credits Available' box is Gift Vouchers/Discount Coupons and Enter Redeem Code (with the box and redeem button).

I dont think I missed code anywhere... have you seen this before?

Cori

Share this post


Link to post
Share on other sites

With CCGV(trad), provided you added the My Account option during the install, then you can send the Gift Voucher to someone else from My Account.

 

There is no 'Redeem' button any longer in CCGV(trad) so either you are using an old version - or else you are using CCGV which I don't support here.

 

Vger

Share this post


Link to post
Share on other sites
There is no 'Redeem' button any longer in CCGV(trad) so either you are using an old version - or else you are using CCGV which I don't support here.

 

Vger

I thought I saw that the redeem button shouldnt be there so I just downloaded what I thought was the latest version again and checked the code and I still see it.

My bigger problem however is that I dont see any way to use the credit. I dont see a checkbox or the text to 'tick to use voucher' or whatever the verbiage is.

Cori

Share this post


Link to post
Share on other sites

Did you enter GIFT as the start of the Model Number when you added it to your Catalog? If not then it won't be recognised as a Gift Voucher and just as another product with the name Gift Voucher.

 

e.g. GIFT_25, GIFT_50 etc.

 

Vger

Share this post


Link to post
Share on other sites

Everything seems to be working fine except on the payment page, I have no checkbox to use the gift voucher as a payment... even though I show a balance.

Can anyone send me a screenshot of what it is supposed to show and where the actual code for that is so I can troubleshoot why it isnt displaying.

I also have checked several times to be sure I have the latest version of which I still see the redeem button.

Cori

Share this post


Link to post
Share on other sites
Sorry, could you answer one more question, is there a definition I need to add to filenames.php?

 

It seems your contribution is compatible with STS, my problem is a missing definition in filenames.php

 

Thanks Lotti

 

Just to let anyone else who uses STS know, I got this working and both contributions work fine together.

Share this post


Link to post
Share on other sites

If there were any particular changes you had to make, either to STS orCCGV(trad) then can you post them here? I can then add them as a help file to the next update of CCGV(trad).

 

Vger

Just to let anyone else who uses STS know, I got this working and both contributions work fine together.

Share this post


Link to post
Share on other sites
The latest version of CCGV (trad) doesn't have that problem - because I removed the 'Redeem' button on the Checkout Payment page.

 

The problem previously was that there were two 'forms' nested in that page and it wasn't possible to seperate them.

 

If you clicked the Redeem button before selecting a Payment method then you got that error - which you would get anyway if you tried to proceed without selecting a payment method. By removing the Redeem button then all you have to do now is to click 'Continue' and it works fine.

 

Vger

 

 

Thanks Vger,

 

you are a champ! I reloaded the two order_total module files and it worked like a charm. I thought I had the latest version, but I must have missed those module files when I was installing this version over the other version I had that wasn't working.

 

Thanks too, for such a quick response. I have been on other forums for other things and waited weeks for answers (that's even if I got an answer) so thanks again.

 

Regards, Sam

Share this post


Link to post
Share on other sites
If there were any particular changes you had to make, either to STS orCCGV(trad) then can you post them here? I can then add them as a help file to the next update of CCGV(trad).

 

Vger

 

Sure, I'm going to try again on another site and will make a careful note if there's something special I did other than correcting user error :blush:

 

Doing the same for the STS site.

 

Thanks for all your help.

 

Lotti

Share this post


Link to post
Share on other sites

Sorry for all the posts but I really need help with this.

It seems as if the redeem button only shows up sometimes.

And in stepping through the credit_selection function code, in the while statement, I notice that $use_credit_amount contains the checkbox I am not able to see, but when I comment through the code, it seems that it is there the first loop then loses that value in the $output_string by the time the while loop ends.

Does anyone have any ideas what could be going on?

Thanks in advance.

Cori

Share this post


Link to post
Share on other sites

Hi,

 

Firstly I just wanted to say GREAT CONTRIB and GREAT DOCO, keep up the good work, but then want to also ask... Has there been any progress on getting the contrib working with PayPal IPN v2.2? It's been a while since that contrib has been out but there still doesn't seem to be any info posted about getting the two contribs working together.

 

The only issue I've got is where to add the following line:

 

$order_total_modules->apply_credit();// CCGV

 

presumably this should go just before $parameters['num_cart_items'] = $item; but could you please clarify.

 

Thanks,

Nick

Share this post


Link to post
Share on other sites

The contribution seems quite cool, i'm testing it on my develop server ight now, and got no problem at all since now.

 

But i feel that something is missing, and would be very cool to have some more features like this:

 

1) Is IMPERATIVE to know how much Discount and/or Gift are around: a list of customers with their Voucher Balance is necessary, and possibly a list of the gift not already redeemed

2) If i just need to generate a Gift Voucher without sending a mail, that's not possibile, and i've to send it to my account and tell the customers the code by voice, or print the email, after having reedemed the coupon and so on... that's too long, and a new menu for just generate coupon would be a nice shortcut.

 

beside this two little lacks (wich i'll gonna do myself if the Boss of this contrib would allow me) the contrib is a piece of cake!


my contribution: Alex's Contributions

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×