Page 1 of 1

Promotion discount applied to shipping item - how to stop this?

Posted: Tue Jun 01, 2010 3:47 pm
by ridelikeaturtle
When a discount is applied via the Promotions module, it is applying the discount to the "Shipping" item which is added with the Flat Rate Shipping I want to apply to my order.  This makes sense and is what I would expect.

But I really don't want "Shipping" discounted.  Is there a way to turn this off in the modules, or is there an other equally "simple" way out of discounting shipping costs?  I don't see anything in the FRShipping, Promotions, Cart, Orders, or CGEcommerceBase modules where I could just turn this off (with a checkbox or preference setting), and I've searched the forums with no luck so far.

Thanks in advance for any hints or tricks to approach this.  ;)

All my system config info is here:

CMS Version
1.7

Installed Modules
CMSMailer
1.73.14
FileManager
1.0.2
MenuManager
1.6.2
ModuleManager
1.3.3
News
2.10.4
nuSOAP
1.0.1
Printing
1.0.4
Search
1.6.2
ThemeManager
1.1.1
TinyMCE
2.7.0
Products
2.8.2
FrontEndUsers
1.9.2
CGExtensions
1.18.8
CGSimpleSmarty
1.4.4
CustomContent
1.5.3
Products
2.8.2
CGEcommerceBase
1.1.1
CGPaymentGatewayBase
1.0.5
Orders
1.8.5
PaypalGateway
2.1.7
SelfRegistration
1.4.2
CGExtensions
1.18.8
CGEcommerceBase
1.1.1
FrontEndUsers
1.9.2
CustomContent
1.5.3
CGSimpleSmarty
1.4.4
Products
2.8.2
CGPaymentGatewayBase
1.0.5
Orders
1.8.6
CGExtensions
1.18.8
SelfRegistration
1.4.2
FormBuilder
0.6.2
Comments
1.9.2
DestinationBasedShipping
1.1
PaypalGateway
2.1.7
CGEcommerceBase
1.1.1
Products
2.8.2
Cart
1.6.2
FrontEndUsers
1.9.2
FRShipping
1.2
FormBuilder
0.6.2
SelfRegistration
1.4.2
Gallery
1.3
FRShipping
1.2
Promotions
1.0.6
JQueryTools
1.0.6

Config Information
php_memory_limit:

process_whole_template:
false
max_upload_size:
128000000
default_upload_permission:
664
assume_mod_rewrite:
false
page_extension:

internal_pretty_urls:
false
use_hierarchy:
true
debug:
false
output_compression:
false
root_url:
http://localhost:8080/sportsink
root_path:
C:\xampp\htdocs\sportsink (0777)
previews_path:
C:\xampp\htdocs\sportsink\tmp\cache (0777)
uploads_path:
C:\xampp\htdocs\sportsink\uploads (0777)
uploads_url:
http://localhost:8080/sportsink/uploads
image_uploads_path:
C:\xampp\htdocs\sportsink\uploads\images (0777)
image_uploads_url:
http://localhost:8080/sportsink/uploads/images
use_smarty_php_tags:
false
locale:

default_encoding:
utf-8
admin_encoding:
utf-8
PHP Information:
Current PHP Version (phpversion):
5.3.1
md5 function (md5_function):
On (True)
GD version (gd_version):
2
tempnam function (tempnam_function):
On (True)
Magic quotes in runtime (magic_quotes_runtime):
Off (False)
Is E_STRICT disabled in error_reporting (E_STRICT):

Is E_DEPRECATED disabled in error_reporting (E_DEPRECATED):

PHP Effective Memory Limit (memory_limit):
128M
Maximum Execution Time (max_execution_time):
60
PHP Safe Mode (safe_mode):
Off (False)
Session Save Path (session_save_path):
C:\xampp\tmp (0777)
Sessions are allowed to use Cookies (session_use_cookies):
On (True)
Checking if the httpd process can create a file inside of a directory it created (create_dir_and_file):

PHP register_globals (register_globals):
Off (False)
PHP output_buffering (output_buffering):
On
disable_functions in PHP (disable_functions):

PHP Open Basedir (open_basedir):

Test for remote URL (test_remote_url):

fsockopen: Connection ok! 
fopen: Connection ok!
File uploads (file_uploads):
On (True)
Maximum Post Size (post_max_size):
128M
Maximum Upload Size (upload_max_filesize):
128M
Basic XML (expat) support (xml_function):
On (True)
Test file_get_contents (file_get_contents):
On (True)
Test ini_set (check_ini_set):
On (True)
Server Information:
Server API (server_api):
apache2handler
Server Database (server_db_type):
MySQL (mysql)
Server Database Version (server_db_version):
5.1.41
Server Software (server_software):
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
Server Operating System (server_os):
WINNT 6.0 On i586

Permission Information
tmp:
C:\xampp\htdocs\sportsink\tmp (0777)
templates_c:
C:\xampp\htdocs\sportsink\tmp\templates_c (0777)
modules:
C:\xampp\htdocs\sportsink\modules (0777)
File Creation Mask (umask):
C:\xampp\htdocs\sportsink\tmp\cache (0777)
config_file:
0666
config.php writable. It is more safe if you change permission to read-only

Re: Promotion discount applied to shipping item - how to stop this?

Posted: Thu Jun 10, 2010 7:41 am
by justhouz
You're right. This is an issue. I've noticed the same thing.

Promotions 1.0.7
FRShipping 1.2
CGEcommerceBase 1.1.1

Re: Promotion discount applied to shipping item - how to stop this?

Posted: Fri Jun 18, 2010 10:12 am
by justhouz
Has anybody got more info on this topic?

Re: Promotion discount applied to shipping item - how to stop this?

Posted: Fri Jun 18, 2010 2:18 pm
by ridelikeaturtle
I've created a workaround for myself, though I don't think it'd work for everyone.

I modified the Orders and CGEcommerceBase PHP code (for the Cart) to make my own "discount" based on the product -- I'm checking for a substring in the product description/summary text to identify what product I want to apply the discount to, and I then modify the unit price as I want.  This maintains the rest of the code for calculating the order totals and all other processing, and doesn't modify the shipping or any other products I don't want to apply the "discount" to.

It's a hack, but it's mine and I've commented my code and I *think* I know what I'm doing, enough to get into trouble anyway, but for the moment it's working fine and does what I want.  I couldn't really get the Promotions module to work the way I wanted to anyway, so for me this is better all around.