Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[CONTRIBUTION] CCGV (trad)


Vger

Recommended Posts

I asked this question a couple of weeks ago, but haven't got a reply yet. Since then i have be trying to trouble shoot it with no success. I have seen other people with similar problems but either there solution is not listed or it doesn't work for me. Here is my problem

 

I am having an error when I try to check gv_faq or send a voucher as a customer. Here is the error

 

Fatal error: Cannot redeclare tep_make_cat_ullist() (previously declared in /home/mikarose/public_html/thesearchenginespecialists/TheModBod/includes/boxes/ul_categories.php:88) in /home/mikarose/public_html/thesearchenginespecialists/TheModBod/includes/boxes/ul_categories.php on line 88

 

Besides that the voucher works fine. I manually edited all the files and i think the problem is because i have the Points module installed. If anyone could let me know why I am getting this error I would really appreciate it. Here is a link that shows my account.php Code

 

http://mikarose.com/thesearchenginespecial...ccountCode.html

 

 

Thanks

 

Brad

Link to comment
Share on other sites

The reason you probably got no response is that your site is modified with code which we know nothing about e.g. "tep_make_cat_ullist()" is not a part of osCommerce.

 

You are also using the Points and Rewards system. There is some code you can use to make this work with CCGV, but it is not included with the CCGV(trad) contribution. If you go to the original CCGV contribution you should find the code to make the Points and Rewards system work with CCGV.

 

Vger

Link to comment
Share on other sites

Hi.

 

I have just installed this contrib and it look like its what I am after.

 

The discount code is working fine but I do have one question.

 

I have sent a voucher to someone via my account options but it did not charge me, how do you setup vouchers so people can buy them and send them to people ?

 

Regards

 

Rob

Regards

 

Rob.

Link to comment
Share on other sites

Just installed this great contrib....thanks for all the hard work! I really appreciate it. I do have one question and request for help. I noticed that gift vouchers need to have a weight of ZERO while everything else needs a weight. I saw the SQL statement that would give everything a weight of one. This won't work for me as many of my products, but not every product, already have a weight. Since I'm a SQL weakling can someone help me with a SQL statement that would only put a weight value of one if the weight value was zero while leaving the current weight value if it was greater than zero. Thanks in advance for any help with this.

Link to comment
Share on other sites

Weight is only used for two things:

 

1. To see if the product has zero weight and is a 'virtual' product

 

2. To set a definite weight for each product if you ship by weight.

 

If only some of your products have a weight then you can't be shipping by weight, so it should make no difference if your 'physical' products all have the same weight.

 

However, if you want to keep your existing weights then this is the SQL query to use (always backup your db before running SQL queries):

 

UPDATE products SET products_weight="1" WHERE products_weight="0";

 

This will only apply a weight if the product has no weight. Don't forget that if you have already set up Gift Vouchers with zero weight that you will have to edit them back to zero weight after doing this.

 

Vger

Edited by Vger
Link to comment
Share on other sites

Weight is only used for two things:

 

1. To see if the product has zero weight and is a 'virtual' product

 

2. To set a definite weight for each product if you ship by weight.

 

If only some of your products have a weight then you can't be shipping by weight, so it should make no difference if your 'physical' products all have the same weight.

 

However, if you want to keep your existing weights then this is the SQL query to use (always backup your db before running SQL queries):

 

UPDATE products SET products_weight="1" WHERE products_weight="0";

 

This will only apply a weight if the product has no weight. Don't forget that if you have already set up Gift Vouchers with zero weight that you will have to edit them back to zero weight after doing this.

 

Vger

 

thanks....that seemed to work. i have another question, i don't want to charge sales tax for the gift certificates. i only charge sales tax currently for orders being shipped to the same state we ship from. is there a way to configure this to prevent sales tax from being added to a gift cert/voucher?

 

thanks in advance....

Link to comment
Share on other sites

is there a way to configure this to prevent sales tax from being added to a gift cert/voucher?

The way the order totals are set up the tax is applied before gv balance is applied - therefore the tax question doesn't apply to you.

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Link to comment
Share on other sites

1. When a Gift Certificate is set up as a 'virtual' Product in your Catalog you decide whether or not to apply a tax class to it. If you don't apply a tax class then tax is not added to the value of the voucher.

 

2. When someone uses the voucher (redeems it against an order) then Chooch is correct and it is applied after the tax is levied on the subtotal.

 

However, this does mean that no tax gets paid at all on the Gift Voucher when you buy it and when you redeem it against a purchase. In countries where there's just one tax rate for all this is not a problem because you can include tax in the price of your goods, but in countries like the USA where you pay State Tax when the customer lives in the same state as the online store, but not if they live in another state, then this can create a problem. The tax man will want his cut of the purchase price of the goods before a Gift Voucher is used.

 

You will have to adjust the sort order to allow for this, or else adjust the tax settings within the Gift Voucher settings themselves.

 

I'm not based in the USA so don't ask me how you do this.

 

Vger

Link to comment
Share on other sites

VGER - thank you for all your hard work. After installing your contrib, it's easy to see that this was a lot of hard work. I had to install manually and it took me a couple hours, but that's to be expected for any serious contrib.

 

My problem is this:

 

http://stickypod.com/osc/osc/gv_redeem.php?gv_no=9c5c8f

 

Notice the osc listed twice. I have my store setup with several mods so I will have to fix this manually.

 

When I erase one of the folders listed, it redeems the coupon after I sign in. I just have no clue where to modify the output to eliminate the duplicate folder.

 

If I missed it in this forum, please point me to the answer.

 

Many thanks, Tom

 

Keywords: folder, wrong folder, duplicate folder

Anyone can buy a camera... it's what you do with it that counts!

Sticky Pod

www.stickypod.com

Link to comment
Share on other sites

The duplicate is probably coming from your includes/configure.php file. You appear to have it at the end of one form of address and then at the beginning of another - so it appears twice. It's no good posting that link, because it would only be valid to the person logging in.

 

If you post your includes/configure.php file, minus the db name, user name and password, I'll take a look at it.

 

Vger

Link to comment
Share on other sites

The duplicate is probably coming from your includes/configure.php file. You appear to have it at the end of one form of address and then at the beginning of another - so it appears twice. It's no good posting that link, because it would only be valid to the person logging in.

 

If you post your includes/configure.php file, minus the db name, user name and password, I'll take a look at it.

 

Vger

Here you go:

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.stickypod.com/osc'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://www.stickypod.com/osc'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.stickypod.com');

define('HTTPS_COOKIE_DOMAIN', 'www.stickypod.com');

define('HTTP_COOKIE_PATH', '/osc/');

define('HTTPS_COOKIE_PATH', '/osc/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_ADMIN', '/admin/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

Thanks for the help! Tom

Anyone can buy a camera... it's what you do with it that counts!

Sticky Pod

www.stickypod.com

Link to comment
Share on other sites

The way the order totals are set up the tax is applied before gv balance is applied - therefore the tax question doesn't apply to you.

 

thanks for the reply. my problem is someone comes and buys JUST a gift certificate. currently my system is charging sales tax. how do i configure this not to happen?

Link to comment
Share on other sites

define('HTTP_SERVER', 'http://www.stickypod.com');

define('HTTP_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/osc/');

 

and this (below) doesn't belong in this file at all:

define('DIR_WS_ADMIN', '/admin/');

 

Vger

Link to comment
Share on other sites

how do i configure this not to happen?

 

1. Don't apply a tax class to Gift Vouchers when you add them as products, and/or

2. Stop editing the Sort Order under Modules --> Order Total and return them to how they are by default e.g:

 

1 = Sub Total

2 = Shipping

3 = Tax

9 = Discount Coupons

740 = Gift Vouchers

900 = Total

 

Vger

Link to comment
Share on other sites

define('HTTP_SERVER', 'http://www.stickypod.com');

define('HTTP_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/osc/');

 

and this (below) doesn't belong in this file at all:

define('DIR_WS_ADMIN', '/admin/');

 

Vger

Thanks for the help, but no joy. I made the changes just as you suggested and everything appears to be working fine. The result is:

 

http://stickypod.com/osc/osc/gv_redeem.php?gv_no=b1c5de

 

As you can see, the results are the same. Is it possible it's in the output file? Maybe something within the database?

 

Thanks for the help.

Anyone can buy a camera... it's what you do with it that counts!

Sticky Pod

www.stickypod.com

Link to comment
Share on other sites

Look in the includes/local/ folder to see if there is an alternative (development only) configure.php file in there. If you find one (in either includes/local or admin/includes/local) rename or delete them.

 

Vger

Link to comment
Share on other sites

Vger,

 

I looked eveywhere for a solution but i don't understand why it is bringing up that error. Fatal error: Cannot redeclare tep_make_cat_ullist() (previously declared)

 

It doesn't make sense, i have search the gv_send.php and the modifications made to the account.php but dont' see anything to do with cat_ullist. So i don't know why the error is popping up. I can't even click on the Gift FAQ link becuase it gives me the same error. if you could tell me what code needs to be changed i would appreciate it. I have been working on this for days with NO LUCK.

 

Thanks

 

Brad

Link to comment
Share on other sites

Look in the includes/local/ folder to see if there is an alternative (development only) configure.php file in there. If you find one (in either includes/local or admin/includes/local) rename or delete them.

 

Vger

The only thing in both of those folders is a .cvsignore file. It states it must be there to reference the configure.php

 

Here's something I discovered; when I send a part of my voucher balance to someone, the link is correct. So it appears to be the initial coupon link only.

 

What do you think?

 

Many thanks, Tom

Anyone can buy a camera... it's what you do with it that counts!

Sticky Pod

www.stickypod.com

Link to comment
Share on other sites

The error 'tep_make_cat_ullist()' is, as I have told you before, nothing to do with CCGV(trad) or the default osCommerce install. It's down to a contribution you have installed so you are the only one who can resolve it.

 

Vger

Vger,

 

I looked eveywhere for a solution but i don't understand why it is bringing up that error. Fatal error: Cannot redeclare tep_make_cat_ullist() (previously declared)

 

It doesn't make sense, i have search the gv_send.php and the modifications made to the account.php but dont' see anything to do with cat_ullist. So i don't know why the error is popping up. I can't even click on the Gift FAQ link becuase it gives me the same error. if you could tell me what code needs to be changed i would appreciate it. I have been working on this for days with NO LUCK.

 

Thanks

 

Brad

Link to comment
Share on other sites

The error which is adding an extra 'osc' folder to the url is nothing to do with CCGV(trad). It has to lay somewhere in your website configuration.

 

Vger

The only thing in both of those folders is a .cvsignore file. It states it must be there to reference the configure.php

 

Here's something I discovered; when I send a part of my voucher balance to someone, the link is correct. So it appears to be the initial coupon link only.

 

What do you think?

 

Many thanks, Tom

Link to comment
Share on other sites

No, you can use either, but the extra code for the Points & Rewards module is posted in one of the text files in the other CCGV contribution.

 

Vger

Hi Rhea,

Would you know exactly where the extra code is, please? I couldn't find it.

 

Thank you

Link to comment
Share on other sites

vger,

 

The only module i have installed is Points and CCGV(trad) the only time i get the error is when i am trying to use CCGV send module. The problem is i dont' know where to start to fix the problem. Reguardless to say it is getting late and i am tired of this problem. My question is how much would you charge vger to fix this problem.

 

Thanks,

 

Brad

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...