BigCommerce - Hosted Ecommerce Software by Interspire

Interspire Forum

 
Go Back   Interspire Forum > Interspire Shopping Cart Community Forum > Customization and Integration > Code Modification and Addon Releases

Reply
 
Thread Tools Display Modes
  #11  
Old 02-19-2010, 03:37 PM
cupargarden + cupargarden is offline
Interspire Customer
 
Join Date: Nov 2009
Posts: 549
Default

Thanks for your reply Johnny. I have tried to install in 5.5.2 - the option ' Get X% off all items in one or more categories' disappears from the Create a Discount page, but no new discount options appear. Not sure why, this is such an extensive mod that I don't even know where to begin to look to debug the issue.

Hopefully this sort of thing (coupons and discounts) will be fixed in the next release.
Reply With Quote
  #12  
Old 07-12-2010, 11:21 AM
websnail + websnail is offline
Interspire Customer
 
Join Date: Jul 2008
Posts: 1,548
Default

Quote:
Originally Posted by mmamonster View Post
Has anyone used this with 5.0.6?

I'm getting a bunch of errors, such as:
Undefined property: RULE_PERCENTOFFITEMSINCAT::$forcediscountmessage in /home/<username>/public_html/modules/rule/percentoffitemsincat/module.percentoffitemsincat.php on line 155
Small bug in the code:

Open: /modules/rule/module.percentoffitemsincat.php

Find:
PHP Code:
private $forceddiscountmessage
Replace with:
PHP Code:
private $forcediscountmessage
__________________
ShoppingCartCommunity - Community Forum, Mods, Hacks, Add-ons & a growing KB (was InterspireD)
SnailSolutions Mod Shop - for Royal Mail Adv, Max Chars, Currency Converters, etc...
Web Mollusc appreciation fund (Paypal: info [at] websnail.net)
Reply With Quote
  #13  
Old 07-12-2010, 03:52 PM
websnail + websnail is offline
Interspire Customer
 
Join Date: Jul 2008
Posts: 1,548
Default

Made a couple more adjustments to the code so it made a bit more sense:

Open: modules/rule/buyxgetamountoffy/buyxgetamountoffy.php

Find:
PHP Code:
$discounttext '$'.number_format($this->amount_discounted2); 
Replace with:
PHP Code:
            $currency GetDefaultCurrency();
            if (
$currency['currencystringposition'] == "LEFT") {
                
$GLOBALS['CurrencyLeft'] = $currency['currencystring'];
                
$GLOBALS['CurrencyRight'] =  '';
            }
            else {
                
$GLOBALS['CurrencyRight'] =  $currency['currencystring'];
                
$GLOBALS['CurrencyLeft'] = '';
            }    
            
$discounttext $GLOBALS['CurrencyLeft'].number_format($this->amount_discounted2).$GLOBALS['CurrencyRight']; 

Open: modules/rule/buyxgetamountoffy/templates/buyxgetamountoffy.tpl

Find:
PHP Code:
<option value="Dollars" %%GLOBAL_DollarsSelected%%>Dollars</option
Replace with:
PHP Code:
<option value="Dollars" %%GLOBAL_DollarsSelected%%>$/&#163;/€ (Currency)</option> 
Just makes it a little tidier on what exactly you're getting off with the currency accurate now.
__________________
ShoppingCartCommunity - Community Forum, Mods, Hacks, Add-ons & a growing KB (was InterspireD)
SnailSolutions Mod Shop - for Royal Mail Adv, Max Chars, Currency Converters, etc...
Web Mollusc appreciation fund (Paypal: info [at] websnail.net)
Reply With Quote
  #14  
Old 07-18-2010, 12:38 PM
websnail + websnail is offline
Interspire Customer
 
Join Date: Jul 2008
Posts: 1,548
Default

Bizarre scenario with one error in Express checkout when selecting my billing address (ie: stage 1)

Error:
Quote:
number_format() expects parameter 1 to be double, string given in /home/foo/public_html/store/modules/rule/percentoffitemsincat/module.percentoffitemsincat.php at 358
Not had this on my production or Multi-page checkout

Fix was to do this...

Open: /modules/rule/percentoffitemsincat/module.percentoffitemsincat.php

Find:
PHP Code:
$this->minimumorder $tmp['var_minimumorder']; 
Replace with:
PHP Code:
$this->minimumorder $tmp['var_minimumorder'] * 1
__________________
ShoppingCartCommunity - Community Forum, Mods, Hacks, Add-ons & a growing KB (was InterspireD)
SnailSolutions Mod Shop - for Royal Mail Adv, Max Chars, Currency Converters, etc...
Web Mollusc appreciation fund (Paypal: info [at] websnail.net)
Reply With Quote
  #15  
Old 09-17-2010, 09:43 AM
Imag-e-nation + Imag-e-nation is offline
Interspire Customer
 
Join Date: Feb 2010
Posts: 91
Default

Getting an error on 5.5.2, I have created 10% store wide discount for over £10 in the cart, I add a £14.99 item and the discount works but the adjusted subtotal is giving £280
any ideas?
Reply With Quote
  #16  
Old 06-05-2012, 02:01 PM
porle + porle is offline
Interspire Customer
 
Join Date: Oct 2009
Posts: 64
Default

Hi All,

Can anyone verify if this mod will play nice with 5.5.2?

P.
Reply With Quote
  #17  
Old 06-06-2013, 09:23 PM
websnail + websnail is offline
Interspire Customer
 
Join Date: Jul 2008
Posts: 1,548
Default

Right folks... I've worked out 90% of the way this module works with a view to making it 6.1.x compatible but I've hit a problem with the old variable $product['discount_price'] and the usage of the $this->calculateonbulkdiscounts flag/option in this custom module.

There's more discussion about it on this forum thread so any pointers would be welcome
__________________
ShoppingCartCommunity - Community Forum, Mods, Hacks, Add-ons & a growing KB (was InterspireD)
SnailSolutions Mod Shop - for Royal Mail Adv, Max Chars, Currency Converters, etc...
Web Mollusc appreciation fund (Paypal: info [at] websnail.net)
Reply With Quote
  #18  
Old 02-19-2014, 01:58 AM
red1x + red1x is offline
Interspire Customer
 
Join Date: Jul 2009
Posts: 245
Default

hi - what versions does this work with?
__________________
aslandesign.com.au & adghosting.com.au for all your online solutions
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump